diff --git a/java-analytics-admin/README.md b/java-analytics-admin/README.md index 9e53fe565fe0..5747738f77c6 100644 --- a/java-analytics-admin/README.md +++ b/java-analytics-admin/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.23.0 + 26.25.0 pom import @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.38.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java index c47bac89ac22..e72cbee3d675 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java @@ -418,7 +418,7 @@ public final UnaryCallable listAccoun * 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. + * resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * *

Returns an error if the target is not found. @@ -456,7 +456,7 @@ public final void deleteAccount(AccountName name) { * 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. + * resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * *

Returns an error if the target is not found. @@ -493,7 +493,7 @@ public final void deleteAccount(String name) { * 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. + * resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * *

Returns an error if the target is not found. @@ -529,7 +529,7 @@ public final void deleteAccount(DeleteAccountRequest request) { * 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. + * resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * *

Returns an error if the target is not found. @@ -1145,7 +1145,7 @@ public final UnaryCallable createPropertyCallab * 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. + * resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * *

Returns an error if the target is not found, or is not a GA4 Property. @@ -1183,7 +1183,7 @@ public final Property deleteProperty(PropertyName name) { * 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. + * resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * *

Returns an error if the target is not found, or is not a GA4 Property. @@ -1220,7 +1220,7 @@ public final Property deleteProperty(String name) { * 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. + * resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * *

Returns an error if the target is not found, or is not a GA4 Property. @@ -1258,7 +1258,7 @@ public final Property deleteProperty(DeletePropertyRequest request) { * 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. + * resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * *

Returns an error if the target is not found, or is not a GA4 Property. @@ -1383,7 +1383,9 @@ public final UnaryCallable updatePropertyCallab // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a user's link to an account or property. + * Creates a FirebaseLink. + * + *

Properties can have at most one FirebaseLink. * *

Sample code: * @@ -1395,23 +1397,30 @@ public final UnaryCallable updatePropertyCallab * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]"); - * UserLink response = analyticsAdminServiceClient.getUserLink(name); + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); + * FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(parent, firebaseLink); * } * } * - * @param name Required. Example format: accounts/1234/userLinks/5678 + * @param parent Required. Format: properties/{property_id} Example: properties/1234 + * @param firebaseLink Required. The Firebase link to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UserLink getUserLink(UserLinkName name) { - GetUserLinkRequest request = - GetUserLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getUserLink(request); + public final FirebaseLink createFirebaseLink(PropertyName parent, FirebaseLink firebaseLink) { + CreateFirebaseLinkRequest request = + CreateFirebaseLinkRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFirebaseLink(firebaseLink) + .build(); + return createFirebaseLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a user's link to an account or property. + * Creates a FirebaseLink. + * + *

Properties can have at most one FirebaseLink. * *

Sample code: * @@ -1423,22 +1432,30 @@ public final UserLink getUserLink(UserLinkName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString(); - * UserLink response = analyticsAdminServiceClient.getUserLink(name); + * String parent = PropertyName.of("[PROPERTY]").toString(); + * FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); + * FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(parent, firebaseLink); * } * } * - * @param name Required. Example format: accounts/1234/userLinks/5678 + * @param parent Required. Format: properties/{property_id} Example: properties/1234 + * @param firebaseLink Required. The Firebase link to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UserLink getUserLink(String name) { - GetUserLinkRequest request = GetUserLinkRequest.newBuilder().setName(name).build(); - return getUserLink(request); + public final FirebaseLink createFirebaseLink(String parent, FirebaseLink firebaseLink) { + CreateFirebaseLinkRequest request = + CreateFirebaseLinkRequest.newBuilder() + .setParent(parent) + .setFirebaseLink(firebaseLink) + .build(); + return createFirebaseLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a user's link to an account or property. + * Creates a FirebaseLink. + * + *

Properties can have at most one FirebaseLink. * *

Sample code: * @@ -1450,24 +1467,27 @@ public final UserLink getUserLink(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetUserLinkRequest request = - * GetUserLinkRequest.newBuilder() - * .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) + * CreateFirebaseLinkRequest request = + * CreateFirebaseLinkRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setFirebaseLink(FirebaseLink.newBuilder().build()) * .build(); - * UserLink response = analyticsAdminServiceClient.getUserLink(request); + * FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(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 UserLink getUserLink(GetUserLinkRequest request) { - return getUserLinkCallable().call(request); + public final FirebaseLink createFirebaseLink(CreateFirebaseLinkRequest request) { + return createFirebaseLinkCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a user's link to an account or property. + * Creates a FirebaseLink. + * + *

Properties can have at most one FirebaseLink. * *

Sample code: * @@ -1479,24 +1499,25 @@ public final UserLink getUserLink(GetUserLinkRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetUserLinkRequest request = - * GetUserLinkRequest.newBuilder() - * .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) + * CreateFirebaseLinkRequest request = + * CreateFirebaseLinkRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setFirebaseLink(FirebaseLink.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.getUserLinkCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.createFirebaseLinkCallable().futureCall(request); * // Do something. - * UserLink response = future.get(); + * FirebaseLink response = future.get(); * } * } */ - public final UnaryCallable getUserLinkCallable() { - return stub.getUserLinkCallable(); + public final UnaryCallable createFirebaseLinkCallable() { + return stub.createFirebaseLinkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about multiple users' links to an account or property. + * Deletes a FirebaseLink on a property * *

Sample code: * @@ -1508,25 +1529,26 @@ public final UnaryCallable getUserLinkCallable() { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * BatchGetUserLinksRequest request = - * BatchGetUserLinksRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) - * .addAllNames(new ArrayList()) - * .build(); - * BatchGetUserLinksResponse response = analyticsAdminServiceClient.batchGetUserLinks(request); + * FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]"); + * analyticsAdminServiceClient.deleteFirebaseLink(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} + * Example: properties/1234/firebaseLinks/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BatchGetUserLinksResponse batchGetUserLinks(BatchGetUserLinksRequest request) { - return batchGetUserLinksCallable().call(request); + public final void deleteFirebaseLink(FirebaseLinkName name) { + DeleteFirebaseLinkRequest request = + DeleteFirebaseLinkRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteFirebaseLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about multiple users' links to an account or property. + * Deletes a FirebaseLink on a property * *

Sample code: * @@ -1538,26 +1560,24 @@ public final BatchGetUserLinksResponse batchGetUserLinks(BatchGetUserLinksReques * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * BatchGetUserLinksRequest request = - * BatchGetUserLinksRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) - * .addAllNames(new ArrayList()) - * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.batchGetUserLinksCallable().futureCall(request); - * // Do something. - * BatchGetUserLinksResponse response = future.get(); + * String name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString(); + * analyticsAdminServiceClient.deleteFirebaseLink(name); * } * } + * + * @param name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} + * Example: properties/1234/firebaseLinks/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - batchGetUserLinksCallable() { - return stub.batchGetUserLinksCallable(); + public final void deleteFirebaseLink(String name) { + DeleteFirebaseLinkRequest request = + DeleteFirebaseLinkRequest.newBuilder().setName(name).build(); + deleteFirebaseLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all user links on an account or property. + * Deletes a FirebaseLink on a property * *

Sample code: * @@ -1569,27 +1589,53 @@ public final BatchGetUserLinksResponse batchGetUserLinks(BatchGetUserLinksReques * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * AccountName parent = AccountName.of("[ACCOUNT]"); - * for (UserLink element : analyticsAdminServiceClient.listUserLinks(parent).iterateAll()) { - * // doThingsWith(element); - * } + * DeleteFirebaseLinkRequest request = + * DeleteFirebaseLinkRequest.newBuilder() + * .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString()) + * .build(); + * analyticsAdminServiceClient.deleteFirebaseLink(request); * } * } * - * @param parent Required. Example format: accounts/1234 + * @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 ListUserLinksPagedResponse listUserLinks(AccountName parent) { - ListUserLinksRequest request = - ListUserLinksRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listUserLinks(request); + public final void deleteFirebaseLink(DeleteFirebaseLinkRequest request) { + deleteFirebaseLinkCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all user links on an account or property. + * Deletes a FirebaseLink on a property + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DeleteFirebaseLinkRequest request =
+   *       DeleteFirebaseLinkRequest.newBuilder()
+   *           .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.deleteFirebaseLinkCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteFirebaseLinkCallable() { + return stub.deleteFirebaseLinkCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. * *

Sample code: * @@ -1602,26 +1648,27 @@ public final ListUserLinksPagedResponse listUserLinks(AccountName parent) { * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { * PropertyName parent = PropertyName.of("[PROPERTY]"); - * for (UserLink element : analyticsAdminServiceClient.listUserLinks(parent).iterateAll()) { + * for (FirebaseLink element : + * analyticsAdminServiceClient.listFirebaseLinks(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. Example format: accounts/1234 + * @param parent Required. Format: properties/{property_id} Example: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUserLinksPagedResponse listUserLinks(PropertyName parent) { - ListUserLinksRequest request = - ListUserLinksRequest.newBuilder() + public final ListFirebaseLinksPagedResponse listFirebaseLinks(PropertyName parent) { + ListFirebaseLinksRequest request = + ListFirebaseLinksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listUserLinks(request); + return listFirebaseLinks(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all user links on an account or property. + * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. * *

Sample code: * @@ -1633,24 +1680,26 @@ public final ListUserLinksPagedResponse listUserLinks(PropertyName parent) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = AccountName.of("[ACCOUNT]").toString(); - * for (UserLink element : analyticsAdminServiceClient.listUserLinks(parent).iterateAll()) { + * String parent = PropertyName.of("[PROPERTY]").toString(); + * for (FirebaseLink element : + * analyticsAdminServiceClient.listFirebaseLinks(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. Example format: accounts/1234 + * @param parent Required. Format: properties/{property_id} Example: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListUserLinksPagedResponse listUserLinks(String parent) { - ListUserLinksRequest request = ListUserLinksRequest.newBuilder().setParent(parent).build(); - return listUserLinks(request); + public final ListFirebaseLinksPagedResponse listFirebaseLinks(String parent) { + ListFirebaseLinksRequest request = + ListFirebaseLinksRequest.newBuilder().setParent(parent).build(); + return listFirebaseLinks(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all user links on an account or property. + * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. * *

Sample code: * @@ -1662,13 +1711,14 @@ public final ListUserLinksPagedResponse listUserLinks(String parent) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListUserLinksRequest request = - * ListUserLinksRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) + * ListFirebaseLinksRequest request = + * ListFirebaseLinksRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * for (UserLink element : analyticsAdminServiceClient.listUserLinks(request).iterateAll()) { + * for (FirebaseLink element : + * analyticsAdminServiceClient.listFirebaseLinks(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -1677,13 +1727,13 @@ public final ListUserLinksPagedResponse listUserLinks(String parent) { * @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 ListUserLinksPagedResponse listUserLinks(ListUserLinksRequest request) { - return listUserLinksPagedCallable().call(request); + public final ListFirebaseLinksPagedResponse listFirebaseLinks(ListFirebaseLinksRequest request) { + return listFirebaseLinksPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all user links on an account or property. + * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. * *

Sample code: * @@ -1695,29 +1745,29 @@ public final ListUserLinksPagedResponse listUserLinks(ListUserLinksRequest reque * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListUserLinksRequest request = - * ListUserLinksRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) + * ListFirebaseLinksRequest request = + * ListFirebaseLinksRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.listUserLinksPagedCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.listFirebaseLinksPagedCallable().futureCall(request); * // Do something. - * for (UserLink element : future.get().iterateAll()) { + * for (FirebaseLink element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listUserLinksPagedCallable() { - return stub.listUserLinksPagedCallable(); + public final UnaryCallable + listFirebaseLinksPagedCallable() { + return stub.listFirebaseLinksPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all user links on an account or property. + * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. * *

Sample code: * @@ -1729,16 +1779,16 @@ public final ListUserLinksPagedResponse listUserLinks(ListUserLinksRequest reque * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListUserLinksRequest request = - * ListUserLinksRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) + * ListFirebaseLinksRequest request = + * ListFirebaseLinksRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); * while (true) { - * ListUserLinksResponse response = - * analyticsAdminServiceClient.listUserLinksCallable().call(request); - * for (UserLink element : response.getUserLinksList()) { + * ListFirebaseLinksResponse response = + * analyticsAdminServiceClient.listFirebaseLinksCallable().call(request); + * for (FirebaseLink element : response.getFirebaseLinksList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1751,19 +1801,14 @@ public final ListUserLinksPagedResponse listUserLinks(ListUserLinksRequest reque * } * } */ - public final UnaryCallable listUserLinksCallable() { - return stub.listUserLinksCallable(); + public final UnaryCallable + listFirebaseLinksCallable() { + return stub.listFirebaseLinksCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * 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. + * Returns the Site Tag for the specified web stream. Site Tags are immutable singletons. * *

Sample code: * @@ -1775,35 +1820,26 @@ public final UnaryCallable listUser * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * AuditUserLinksRequest request = - * AuditUserLinksRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * for (AuditUserLink element : - * analyticsAdminServiceClient.auditUserLinks(request).iterateAll()) { - * // doThingsWith(element); - * } + * GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]"); + * GlobalSiteTag response = analyticsAdminServiceClient.getGlobalSiteTag(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The name of the site tag to lookup. Note that site tags are singletons + * and do not have unique IDs. Format: + * properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Example: + * "properties/123/dataStreams/456/globalSiteTag" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AuditUserLinksPagedResponse auditUserLinks(AuditUserLinksRequest request) { - return auditUserLinksPagedCallable().call(request); + public final GlobalSiteTag getGlobalSiteTag(GlobalSiteTagName name) { + GetGlobalSiteTagRequest request = + GetGlobalSiteTagRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getGlobalSiteTag(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * 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. + * Returns the Site Tag for the specified web stream. Site Tags are immutable singletons. * *

Sample code: * @@ -1815,35 +1851,25 @@ public final AuditUserLinksPagedResponse auditUserLinks(AuditUserLinksRequest re * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * AuditUserLinksRequest request = - * AuditUserLinksRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.auditUserLinksPagedCallable().futureCall(request); - * // Do something. - * for (AuditUserLink element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * String name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString(); + * GlobalSiteTag response = analyticsAdminServiceClient.getGlobalSiteTag(name); * } * } + * + * @param name Required. The name of the site tag to lookup. Note that site tags are singletons + * and do not have unique IDs. Format: + * properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Example: + * "properties/123/dataStreams/456/globalSiteTag" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - auditUserLinksPagedCallable() { - return stub.auditUserLinksPagedCallable(); + public final GlobalSiteTag getGlobalSiteTag(String name) { + GetGlobalSiteTagRequest request = GetGlobalSiteTagRequest.newBuilder().setName(name).build(); + return getGlobalSiteTag(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * 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. + * Returns the Site Tag for the specified web stream. Site Tags are immutable singletons. * *

Sample code: * @@ -1855,40 +1881,24 @@ public final AuditUserLinksPagedResponse auditUserLinks(AuditUserLinksRequest re * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * AuditUserLinksRequest request = - * AuditUserLinksRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * GetGlobalSiteTagRequest request = + * GetGlobalSiteTagRequest.newBuilder() + * .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString()) * .build(); - * while (true) { - * AuditUserLinksResponse response = - * analyticsAdminServiceClient.auditUserLinksCallable().call(request); - * for (AuditUserLink element : response.getUserLinksList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * GlobalSiteTag response = analyticsAdminServiceClient.getGlobalSiteTag(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 - auditUserLinksCallable() { - return stub.auditUserLinksCallable(); + public final GlobalSiteTag getGlobalSiteTag(GetGlobalSiteTagRequest request) { + return getGlobalSiteTagCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * 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 the Site Tag for the specified web stream. Site Tags are immutable singletons. * *

Sample code: * @@ -1900,32 +1910,24 @@ public final AuditUserLinksPagedResponse auditUserLinks(AuditUserLinksRequest re * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * AccountName parent = AccountName.of("[ACCOUNT]"); - * UserLink userLink = UserLink.newBuilder().build(); - * UserLink response = analyticsAdminServiceClient.createUserLink(parent, userLink); + * GetGlobalSiteTagRequest request = + * GetGlobalSiteTagRequest.newBuilder() + * .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient.getGlobalSiteTagCallable().futureCall(request); + * // Do something. + * GlobalSiteTag response = future.get(); * } * } - * - * @param parent Required. Example format: accounts/1234 - * @param userLink Required. The user link to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UserLink createUserLink(AccountName parent, UserLink userLink) { - CreateUserLinkRequest request = - CreateUserLinkRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setUserLink(userLink) - .build(); - return createUserLink(request); + public final UnaryCallable getGlobalSiteTagCallable() { + return stub.getGlobalSiteTagCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * 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 GoogleAdsLink. * *

Sample code: * @@ -1938,31 +1940,28 @@ public final UserLink createUserLink(AccountName parent, UserLink userLink) { * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { * PropertyName parent = PropertyName.of("[PROPERTY]"); - * UserLink userLink = UserLink.newBuilder().build(); - * UserLink response = analyticsAdminServiceClient.createUserLink(parent, userLink); + * GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); + * GoogleAdsLink response = + * analyticsAdminServiceClient.createGoogleAdsLink(parent, googleAdsLink); * } * } * - * @param parent Required. Example format: accounts/1234 - * @param userLink Required. The user link to create. + * @param parent Required. Example format: properties/1234 + * @param googleAdsLink Required. The GoogleAdsLink to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UserLink createUserLink(PropertyName parent, UserLink userLink) { - CreateUserLinkRequest request = - CreateUserLinkRequest.newBuilder() + public final GoogleAdsLink createGoogleAdsLink(PropertyName parent, GoogleAdsLink googleAdsLink) { + CreateGoogleAdsLinkRequest request = + CreateGoogleAdsLinkRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) - .setUserLink(userLink) + .setGoogleAdsLink(googleAdsLink) .build(); - return createUserLink(request); + return createGoogleAdsLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * 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 GoogleAdsLink. * *

Sample code: * @@ -1974,29 +1973,29 @@ public final UserLink createUserLink(PropertyName parent, UserLink userLink) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = AccountName.of("[ACCOUNT]").toString(); - * UserLink userLink = UserLink.newBuilder().build(); - * UserLink response = analyticsAdminServiceClient.createUserLink(parent, userLink); + * String parent = PropertyName.of("[PROPERTY]").toString(); + * GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); + * GoogleAdsLink response = + * analyticsAdminServiceClient.createGoogleAdsLink(parent, googleAdsLink); * } * } * - * @param parent Required. Example format: accounts/1234 - * @param userLink Required. The user link to create. + * @param parent Required. Example format: properties/1234 + * @param googleAdsLink Required. The GoogleAdsLink to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UserLink createUserLink(String parent, UserLink userLink) { - CreateUserLinkRequest request = - CreateUserLinkRequest.newBuilder().setParent(parent).setUserLink(userLink).build(); - return createUserLink(request); + public final GoogleAdsLink createGoogleAdsLink(String parent, GoogleAdsLink googleAdsLink) { + CreateGoogleAdsLinkRequest request = + CreateGoogleAdsLinkRequest.newBuilder() + .setParent(parent) + .setGoogleAdsLink(googleAdsLink) + .build(); + return createGoogleAdsLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * 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 GoogleAdsLink. * *

Sample code: * @@ -2008,30 +2007,25 @@ public final UserLink createUserLink(String parent, UserLink userLink) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateUserLinkRequest request = - * CreateUserLinkRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) - * .setNotifyNewUser(true) - * .setUserLink(UserLink.newBuilder().build()) + * CreateGoogleAdsLinkRequest request = + * CreateGoogleAdsLinkRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setGoogleAdsLink(GoogleAdsLink.newBuilder().build()) * .build(); - * UserLink response = analyticsAdminServiceClient.createUserLink(request); + * GoogleAdsLink response = analyticsAdminServiceClient.createGoogleAdsLink(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 UserLink createUserLink(CreateUserLinkRequest request) { - return createUserLinkCallable().call(request); + public final GoogleAdsLink createGoogleAdsLink(CreateGoogleAdsLinkRequest request) { + return createGoogleAdsLinkCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * 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 GoogleAdsLink. * *

Sample code: * @@ -2043,29 +2037,26 @@ public final UserLink createUserLink(CreateUserLinkRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateUserLinkRequest request = - * CreateUserLinkRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) - * .setNotifyNewUser(true) - * .setUserLink(UserLink.newBuilder().build()) + * CreateGoogleAdsLinkRequest request = + * CreateGoogleAdsLinkRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setGoogleAdsLink(GoogleAdsLink.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.createUserLinkCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.createGoogleAdsLinkCallable().futureCall(request); * // Do something. - * UserLink response = future.get(); + * GoogleAdsLink response = future.get(); * } * } */ - public final UnaryCallable createUserLinkCallable() { - return stub.createUserLinkCallable(); + public final UnaryCallable + createGoogleAdsLinkCallable() { + return stub.createGoogleAdsLinkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * 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 GoogleAdsLink on a property * *

Sample code: * @@ -2077,31 +2068,32 @@ public final UnaryCallable createUserLinkCallab * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * BatchCreateUserLinksRequest request = - * BatchCreateUserLinksRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) - * .setNotifyNewUsers(true) - * .addAllRequests(new ArrayList()) - * .build(); - * BatchCreateUserLinksResponse response = - * analyticsAdminServiceClient.batchCreateUserLinks(request); + * GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * GoogleAdsLink response = + * analyticsAdminServiceClient.updateGoogleAdsLink(googleAdsLink, updateMask); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param googleAdsLink The GoogleAdsLink to update + * @param updateMask Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire + * entity, use one path with the string "*" to match all fields. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BatchCreateUserLinksResponse batchCreateUserLinks( - BatchCreateUserLinksRequest request) { - return batchCreateUserLinksCallable().call(request); + public final GoogleAdsLink updateGoogleAdsLink( + GoogleAdsLink googleAdsLink, FieldMask updateMask) { + UpdateGoogleAdsLinkRequest request = + UpdateGoogleAdsLinkRequest.newBuilder() + .setGoogleAdsLink(googleAdsLink) + .setUpdateMask(updateMask) + .build(); + return updateGoogleAdsLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * 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 GoogleAdsLink on a property * *

Sample code: * @@ -2113,27 +2105,25 @@ public final BatchCreateUserLinksResponse batchCreateUserLinks( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * BatchCreateUserLinksRequest request = - * BatchCreateUserLinksRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) - * .setNotifyNewUsers(true) - * .addAllRequests(new ArrayList()) + * UpdateGoogleAdsLinkRequest request = + * UpdateGoogleAdsLinkRequest.newBuilder() + * .setGoogleAdsLink(GoogleAdsLink.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.batchCreateUserLinksCallable().futureCall(request); - * // Do something. - * BatchCreateUserLinksResponse response = future.get(); + * GoogleAdsLink response = analyticsAdminServiceClient.updateGoogleAdsLink(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 - batchCreateUserLinksCallable() { - return stub.batchCreateUserLinksCallable(); + public final GoogleAdsLink updateGoogleAdsLink(UpdateGoogleAdsLinkRequest request) { + return updateGoogleAdsLinkCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a user link on an account or property. + * Updates a GoogleAdsLink on a property * *

Sample code: * @@ -2145,23 +2135,26 @@ public final BatchCreateUserLinksResponse batchCreateUserLinks( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UserLink userLink = UserLink.newBuilder().build(); - * UserLink response = analyticsAdminServiceClient.updateUserLink(userLink); + * UpdateGoogleAdsLinkRequest request = + * UpdateGoogleAdsLinkRequest.newBuilder() + * .setGoogleAdsLink(GoogleAdsLink.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient.updateGoogleAdsLinkCallable().futureCall(request); + * // Do something. + * GoogleAdsLink response = future.get(); * } * } - * - * @param userLink Required. The user link to update. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UserLink updateUserLink(UserLink userLink) { - UpdateUserLinkRequest request = - UpdateUserLinkRequest.newBuilder().setUserLink(userLink).build(); - return updateUserLink(request); + public final UnaryCallable + updateGoogleAdsLinkCallable() { + return stub.updateGoogleAdsLinkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a user link on an account or property. + * Deletes a GoogleAdsLink on a property * *

Sample code: * @@ -2173,22 +2166,25 @@ public final UserLink updateUserLink(UserLink userLink) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateUserLinkRequest request = - * UpdateUserLinkRequest.newBuilder().setUserLink(UserLink.newBuilder().build()).build(); - * UserLink response = analyticsAdminServiceClient.updateUserLink(request); + * GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]"); + * analyticsAdminServiceClient.deleteGoogleAdsLink(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. Example format: properties/1234/googleAdsLinks/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UserLink updateUserLink(UpdateUserLinkRequest request) { - return updateUserLinkCallable().call(request); + public final void deleteGoogleAdsLink(GoogleAdsLinkName name) { + DeleteGoogleAdsLinkRequest request = + DeleteGoogleAdsLinkRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteGoogleAdsLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a user link on an account or property. + * Deletes a GoogleAdsLink on a property * *

Sample code: * @@ -2200,22 +2196,23 @@ public final UserLink updateUserLink(UpdateUserLinkRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateUserLinkRequest request = - * UpdateUserLinkRequest.newBuilder().setUserLink(UserLink.newBuilder().build()).build(); - * ApiFuture future = - * analyticsAdminServiceClient.updateUserLinkCallable().futureCall(request); - * // Do something. - * UserLink response = future.get(); + * String name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString(); + * analyticsAdminServiceClient.deleteGoogleAdsLink(name); * } * } + * + * @param name Required. Example format: properties/1234/googleAdsLinks/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable updateUserLinkCallable() { - return stub.updateUserLinkCallable(); + public final void deleteGoogleAdsLink(String name) { + DeleteGoogleAdsLinkRequest request = + DeleteGoogleAdsLinkRequest.newBuilder().setName(name).build(); + deleteGoogleAdsLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates information about multiple users' links to an account or property. + * Deletes a GoogleAdsLink on a property * *

Sample code: * @@ -2227,27 +2224,24 @@ public final UnaryCallable updateUserLinkCallab * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * BatchUpdateUserLinksRequest request = - * BatchUpdateUserLinksRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) - * .addAllRequests(new ArrayList()) + * DeleteGoogleAdsLinkRequest request = + * DeleteGoogleAdsLinkRequest.newBuilder() + * .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) * .build(); - * BatchUpdateUserLinksResponse response = - * analyticsAdminServiceClient.batchUpdateUserLinks(request); + * analyticsAdminServiceClient.deleteGoogleAdsLink(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 BatchUpdateUserLinksResponse batchUpdateUserLinks( - BatchUpdateUserLinksRequest request) { - return batchUpdateUserLinksCallable().call(request); + public final void deleteGoogleAdsLink(DeleteGoogleAdsLinkRequest request) { + deleteGoogleAdsLinkCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates information about multiple users' links to an account or property. + * Deletes a GoogleAdsLink on a property * *

Sample code: * @@ -2259,26 +2253,24 @@ public final BatchUpdateUserLinksResponse batchUpdateUserLinks( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * BatchUpdateUserLinksRequest request = - * BatchUpdateUserLinksRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) - * .addAllRequests(new ArrayList()) + * DeleteGoogleAdsLinkRequest request = + * DeleteGoogleAdsLinkRequest.newBuilder() + * .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.batchUpdateUserLinksCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.deleteGoogleAdsLinkCallable().futureCall(request); * // Do something. - * BatchUpdateUserLinksResponse response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable - batchUpdateUserLinksCallable() { - return stub.batchUpdateUserLinksCallable(); + public final UnaryCallable deleteGoogleAdsLinkCallable() { + return stub.deleteGoogleAdsLinkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a user link on an account or property. + * Lists GoogleAdsLinks on a property. * *

Sample code: * @@ -2290,23 +2282,28 @@ public final BatchUpdateUserLinksResponse batchUpdateUserLinks( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]"); - * analyticsAdminServiceClient.deleteUserLink(name); + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * for (GoogleAdsLink element : + * analyticsAdminServiceClient.listGoogleAdsLinks(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. Example format: accounts/1234/userLinks/5678 + * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteUserLink(UserLinkName name) { - DeleteUserLinkRequest request = - DeleteUserLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteUserLink(request); + public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(PropertyName parent) { + ListGoogleAdsLinksRequest request = + ListGoogleAdsLinksRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listGoogleAdsLinks(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a user link on an account or property. + * Lists GoogleAdsLinks on a property. * *

Sample code: * @@ -2318,22 +2315,26 @@ public final void deleteUserLink(UserLinkName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString(); - * analyticsAdminServiceClient.deleteUserLink(name); + * String parent = PropertyName.of("[PROPERTY]").toString(); + * for (GoogleAdsLink element : + * analyticsAdminServiceClient.listGoogleAdsLinks(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. Example format: accounts/1234/userLinks/5678 + * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteUserLink(String name) { - DeleteUserLinkRequest request = DeleteUserLinkRequest.newBuilder().setName(name).build(); - deleteUserLink(request); + public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(String parent) { + ListGoogleAdsLinksRequest request = + ListGoogleAdsLinksRequest.newBuilder().setParent(parent).build(); + return listGoogleAdsLinks(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a user link on an account or property. + * Lists GoogleAdsLinks on a property. * *

Sample code: * @@ -2345,24 +2346,30 @@ public final void deleteUserLink(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteUserLinkRequest request = - * DeleteUserLinkRequest.newBuilder() - * .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) + * ListGoogleAdsLinksRequest request = + * ListGoogleAdsLinksRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * analyticsAdminServiceClient.deleteUserLink(request); + * for (GoogleAdsLink element : + * analyticsAdminServiceClient.listGoogleAdsLinks(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 void deleteUserLink(DeleteUserLinkRequest request) { - deleteUserLinkCallable().call(request); + public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks( + ListGoogleAdsLinksRequest request) { + return listGoogleAdsLinksPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a user link on an account or property. + * Lists GoogleAdsLinks on a property. * *

Sample code: * @@ -2374,24 +2381,29 @@ public final void deleteUserLink(DeleteUserLinkRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteUserLinkRequest request = - * DeleteUserLinkRequest.newBuilder() - * .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) + * ListGoogleAdsLinksRequest request = + * ListGoogleAdsLinksRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.deleteUserLinkCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.listGoogleAdsLinksPagedCallable().futureCall(request); * // Do something. - * future.get(); + * for (GoogleAdsLink element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final UnaryCallable deleteUserLinkCallable() { - return stub.deleteUserLinkCallable(); + public final UnaryCallable + listGoogleAdsLinksPagedCallable() { + return stub.listGoogleAdsLinksPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes information about multiple users' links to an account or property. + * Lists GoogleAdsLinks on a property. * *

Sample code: * @@ -2403,25 +2415,36 @@ public final UnaryCallable deleteUserLinkCallable( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * BatchDeleteUserLinksRequest request = - * BatchDeleteUserLinksRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) - * .addAllRequests(new ArrayList()) + * ListGoogleAdsLinksRequest request = + * ListGoogleAdsLinksRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * analyticsAdminServiceClient.batchDeleteUserLinks(request); + * while (true) { + * ListGoogleAdsLinksResponse response = + * analyticsAdminServiceClient.listGoogleAdsLinksCallable().call(request); + * for (GoogleAdsLink element : response.getGoogleAdsLinksList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @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 batchDeleteUserLinks(BatchDeleteUserLinksRequest request) { - batchDeleteUserLinksCallable().call(request); + public final UnaryCallable + listGoogleAdsLinksCallable() { + return stub.listGoogleAdsLinksCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes information about multiple users' links to an account or property. + * Get data sharing settings on an account. Data sharing settings are singletons. * *

Sample code: * @@ -2433,27 +2456,26 @@ public final void batchDeleteUserLinks(BatchDeleteUserLinksRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * BatchDeleteUserLinksRequest request = - * BatchDeleteUserLinksRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) - * .addAllRequests(new ArrayList()) - * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.batchDeleteUserLinksCallable().futureCall(request); - * // Do something. - * future.get(); + * DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]"); + * DataSharingSettings response = analyticsAdminServiceClient.getDataSharingSettings(name); * } * } + * + * @param name Required. The name of the settings to lookup. Format: + * accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable batchDeleteUserLinksCallable() { - return stub.batchDeleteUserLinksCallable(); + public final DataSharingSettings getDataSharingSettings(DataSharingSettingsName name) { + GetDataSharingSettingsRequest request = + GetDataSharingSettingsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getDataSharingSettings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a FirebaseLink. - * - *

Properties can have at most one FirebaseLink. + * Get data sharing settings on an account. Data sharing settings are singletons. * *

Sample code: * @@ -2465,65 +2487,24 @@ public final UnaryCallable batchDeleteUserLi * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - * FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(parent, firebaseLink); + * String name = DataSharingSettingsName.of("[ACCOUNT]").toString(); + * DataSharingSettings response = analyticsAdminServiceClient.getDataSharingSettings(name); * } * } * - * @param parent Required. Format: properties/{property_id} Example: properties/1234 - * @param firebaseLink Required. The Firebase link to create. + * @param name Required. The name of the settings to lookup. Format: + * accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FirebaseLink createFirebaseLink(PropertyName parent, FirebaseLink firebaseLink) { - CreateFirebaseLinkRequest request = - CreateFirebaseLinkRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setFirebaseLink(firebaseLink) - .build(); - return createFirebaseLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a FirebaseLink. - * - *

Properties can have at most one FirebaseLink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   FirebaseLink firebaseLink = FirebaseLink.newBuilder().build();
-   *   FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(parent, firebaseLink);
-   * }
-   * }
- * - * @param parent Required. Format: properties/{property_id} Example: properties/1234 - * @param firebaseLink Required. The Firebase link to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final FirebaseLink createFirebaseLink(String parent, FirebaseLink firebaseLink) { - CreateFirebaseLinkRequest request = - CreateFirebaseLinkRequest.newBuilder() - .setParent(parent) - .setFirebaseLink(firebaseLink) - .build(); - return createFirebaseLink(request); + public final DataSharingSettings getDataSharingSettings(String name) { + GetDataSharingSettingsRequest request = + GetDataSharingSettingsRequest.newBuilder().setName(name).build(); + return getDataSharingSettings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a FirebaseLink. - * - *

Properties can have at most one FirebaseLink. + * Get data sharing settings on an account. Data sharing settings are singletons. * *

Sample code: * @@ -2535,27 +2516,24 @@ public final FirebaseLink createFirebaseLink(String parent, FirebaseLink firebas * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateFirebaseLinkRequest request = - * CreateFirebaseLinkRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setFirebaseLink(FirebaseLink.newBuilder().build()) + * GetDataSharingSettingsRequest request = + * GetDataSharingSettingsRequest.newBuilder() + * .setName(DataSharingSettingsName.of("[ACCOUNT]").toString()) * .build(); - * FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(request); + * DataSharingSettings response = analyticsAdminServiceClient.getDataSharingSettings(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final FirebaseLink createFirebaseLink(CreateFirebaseLinkRequest request) { - return createFirebaseLinkCallable().call(request); + public final DataSharingSettings getDataSharingSettings(GetDataSharingSettingsRequest request) { + return getDataSharingSettingsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a FirebaseLink. - * - *

Properties can have at most one FirebaseLink. + * Get data sharing settings on an account. Data sharing settings are singletons. * *

Sample code: * @@ -2567,25 +2545,25 @@ public final FirebaseLink createFirebaseLink(CreateFirebaseLinkRequest request) * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateFirebaseLinkRequest request = - * CreateFirebaseLinkRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setFirebaseLink(FirebaseLink.newBuilder().build()) + * GetDataSharingSettingsRequest request = + * GetDataSharingSettingsRequest.newBuilder() + * .setName(DataSharingSettingsName.of("[ACCOUNT]").toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.createFirebaseLinkCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.getDataSharingSettingsCallable().futureCall(request); * // Do something. - * FirebaseLink response = future.get(); + * DataSharingSettings response = future.get(); * } * } */ - public final UnaryCallable createFirebaseLinkCallable() { - return stub.createFirebaseLinkCallable(); + public final UnaryCallable + getDataSharingSettingsCallable() { + return stub.getDataSharingSettingsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a FirebaseLink on a property + * Lookup for a single "GA4" MeasurementProtocolSecret. * *

Sample code: * @@ -2597,26 +2575,30 @@ public final UnaryCallable createFireba * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]"); - * analyticsAdminServiceClient.deleteFirebaseLink(name); + * MeasurementProtocolSecretName name = + * MeasurementProtocolSecretName.of( + * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + * MeasurementProtocolSecret response = + * analyticsAdminServiceClient.getMeasurementProtocolSecret(name); * } * } * - * @param name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: properties/1234/firebaseLinks/5678 + * @param name Required. The name of the measurement protocol secret to lookup. Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteFirebaseLink(FirebaseLinkName name) { - DeleteFirebaseLinkRequest request = - DeleteFirebaseLinkRequest.newBuilder() + public final MeasurementProtocolSecret getMeasurementProtocolSecret( + MeasurementProtocolSecretName name) { + GetMeasurementProtocolSecretRequest request = + GetMeasurementProtocolSecretRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); - deleteFirebaseLink(request); + return getMeasurementProtocolSecret(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a FirebaseLink on a property + * Lookup for a single "GA4" MeasurementProtocolSecret. * *

Sample code: * @@ -2628,24 +2610,28 @@ public final void deleteFirebaseLink(FirebaseLinkName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString(); - * analyticsAdminServiceClient.deleteFirebaseLink(name); + * String name = + * MeasurementProtocolSecretName.of( + * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + * .toString(); + * MeasurementProtocolSecret response = + * analyticsAdminServiceClient.getMeasurementProtocolSecret(name); * } * } * - * @param name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - * Example: properties/1234/firebaseLinks/5678 + * @param name Required. The name of the measurement protocol secret to lookup. Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteFirebaseLink(String name) { - DeleteFirebaseLinkRequest request = - DeleteFirebaseLinkRequest.newBuilder().setName(name).build(); - deleteFirebaseLink(request); + public final MeasurementProtocolSecret getMeasurementProtocolSecret(String name) { + GetMeasurementProtocolSecretRequest request = + GetMeasurementProtocolSecretRequest.newBuilder().setName(name).build(); + return getMeasurementProtocolSecret(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a FirebaseLink on a property + * Lookup for a single "GA4" MeasurementProtocolSecret. * *

Sample code: * @@ -2657,24 +2643,29 @@ public final void deleteFirebaseLink(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteFirebaseLinkRequest request = - * DeleteFirebaseLinkRequest.newBuilder() - * .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString()) + * GetMeasurementProtocolSecretRequest request = + * GetMeasurementProtocolSecretRequest.newBuilder() + * .setName( + * MeasurementProtocolSecretName.of( + * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + * .toString()) * .build(); - * analyticsAdminServiceClient.deleteFirebaseLink(request); + * 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 void deleteFirebaseLink(DeleteFirebaseLinkRequest request) { - deleteFirebaseLinkCallable().call(request); + public final MeasurementProtocolSecret getMeasurementProtocolSecret( + GetMeasurementProtocolSecretRequest request) { + return getMeasurementProtocolSecretCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a FirebaseLink on a property + * Lookup for a single "GA4" MeasurementProtocolSecret. * *

Sample code: * @@ -2686,24 +2677,28 @@ public final void deleteFirebaseLink(DeleteFirebaseLinkRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteFirebaseLinkRequest request = - * DeleteFirebaseLinkRequest.newBuilder() - * .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString()) + * GetMeasurementProtocolSecretRequest request = + * GetMeasurementProtocolSecretRequest.newBuilder() + * .setName( + * MeasurementProtocolSecretName.of( + * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + * .toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.deleteFirebaseLinkCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.getMeasurementProtocolSecretCallable().futureCall(request); * // Do something. - * future.get(); + * MeasurementProtocolSecret response = future.get(); * } * } */ - public final UnaryCallable deleteFirebaseLinkCallable() { - return stub.deleteFirebaseLinkCallable(); + public final UnaryCallable + getMeasurementProtocolSecretCallable() { + return stub.getMeasurementProtocolSecretCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. + * Returns child MeasurementProtocolSecrets under the specified parent Property. * *

Sample code: * @@ -2715,28 +2710,30 @@ public final UnaryCallable deleteFirebaseLinkC * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * for (FirebaseLink element : - * analyticsAdminServiceClient.listFirebaseLinks(parent).iterateAll()) { + * DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + * for (MeasurementProtocolSecret element : + * analyticsAdminServiceClient.listMeasurementProtocolSecrets(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. Format: properties/{property_id} Example: properties/1234 + * @param parent Required. The resource name of the parent stream. Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFirebaseLinksPagedResponse listFirebaseLinks(PropertyName parent) { - ListFirebaseLinksRequest request = - ListFirebaseLinksRequest.newBuilder() + public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets( + DataStreamName parent) { + ListMeasurementProtocolSecretsRequest request = + ListMeasurementProtocolSecretsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listFirebaseLinks(request); + return listMeasurementProtocolSecrets(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. + * Returns child MeasurementProtocolSecrets under the specified parent Property. * *

Sample code: * @@ -2748,26 +2745,28 @@ public final ListFirebaseLinksPagedResponse listFirebaseLinks(PropertyName paren * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * for (FirebaseLink element : - * analyticsAdminServiceClient.listFirebaseLinks(parent).iterateAll()) { + * String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString(); + * for (MeasurementProtocolSecret element : + * analyticsAdminServiceClient.listMeasurementProtocolSecrets(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. Format: properties/{property_id} Example: properties/1234 + * @param parent Required. The resource name of the parent stream. Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListFirebaseLinksPagedResponse listFirebaseLinks(String parent) { - ListFirebaseLinksRequest request = - ListFirebaseLinksRequest.newBuilder().setParent(parent).build(); - return listFirebaseLinks(request); + public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets( + String parent) { + ListMeasurementProtocolSecretsRequest request = + ListMeasurementProtocolSecretsRequest.newBuilder().setParent(parent).build(); + return listMeasurementProtocolSecrets(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. + * Returns child MeasurementProtocolSecrets under the specified parent Property. * *

Sample code: * @@ -2779,14 +2778,14 @@ public final ListFirebaseLinksPagedResponse listFirebaseLinks(String parent) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListFirebaseLinksRequest request = - * ListFirebaseLinksRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) + * ListMeasurementProtocolSecretsRequest request = + * ListMeasurementProtocolSecretsRequest.newBuilder() + * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * for (FirebaseLink element : - * analyticsAdminServiceClient.listFirebaseLinks(request).iterateAll()) { + * for (MeasurementProtocolSecret element : + * analyticsAdminServiceClient.listMeasurementProtocolSecrets(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -2795,13 +2794,14 @@ public final ListFirebaseLinksPagedResponse listFirebaseLinks(String parent) { * @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 ListFirebaseLinksPagedResponse listFirebaseLinks(ListFirebaseLinksRequest request) { - return listFirebaseLinksPagedCallable().call(request); + public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets( + ListMeasurementProtocolSecretsRequest request) { + return listMeasurementProtocolSecretsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. + * Returns child MeasurementProtocolSecrets under the specified parent Property. * *

Sample code: * @@ -2813,29 +2813,32 @@ public final ListFirebaseLinksPagedResponse listFirebaseLinks(ListFirebaseLinksR * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListFirebaseLinksRequest request = - * ListFirebaseLinksRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) + * ListMeasurementProtocolSecretsRequest request = + * ListMeasurementProtocolSecretsRequest.newBuilder() + * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.listFirebaseLinksPagedCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient + * .listMeasurementProtocolSecretsPagedCallable() + * .futureCall(request); * // Do something. - * for (FirebaseLink element : future.get().iterateAll()) { + * for (MeasurementProtocolSecret element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listFirebaseLinksPagedCallable() { - return stub.listFirebaseLinksPagedCallable(); + public final UnaryCallable< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsPagedResponse> + listMeasurementProtocolSecretsPagedCallable() { + return stub.listMeasurementProtocolSecretsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink. + * Returns child MeasurementProtocolSecrets under the specified parent Property. * *

Sample code: * @@ -2847,16 +2850,16 @@ public final ListFirebaseLinksPagedResponse listFirebaseLinks(ListFirebaseLinksR * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListFirebaseLinksRequest request = - * ListFirebaseLinksRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) + * ListMeasurementProtocolSecretsRequest request = + * ListMeasurementProtocolSecretsRequest.newBuilder() + * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); * while (true) { - * ListFirebaseLinksResponse response = - * analyticsAdminServiceClient.listFirebaseLinksCallable().call(request); - * for (FirebaseLink element : response.getFirebaseLinksList()) { + * ListMeasurementProtocolSecretsResponse response = + * analyticsAdminServiceClient.listMeasurementProtocolSecretsCallable().call(request); + * for (MeasurementProtocolSecret element : response.getMeasurementProtocolSecretsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -2869,14 +2872,15 @@ public final ListFirebaseLinksPagedResponse listFirebaseLinks(ListFirebaseLinksR * } * } */ - public final UnaryCallable - listFirebaseLinksCallable() { - return stub.listFirebaseLinksCallable(); + public final UnaryCallable< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> + listMeasurementProtocolSecretsCallable() { + return stub.listMeasurementProtocolSecretsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the Site Tag for the specified web stream. Site Tags are immutable singletons. + * Creates a measurement protocol secret. * *

Sample code: * @@ -2888,26 +2892,33 @@ public final ListFirebaseLinksPagedResponse listFirebaseLinks(ListFirebaseLinksR * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]"); - * GlobalSiteTag response = analyticsAdminServiceClient.getGlobalSiteTag(name); + * DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + * MeasurementProtocolSecret measurementProtocolSecret = + * MeasurementProtocolSecret.newBuilder().build(); + * MeasurementProtocolSecret response = + * analyticsAdminServiceClient.createMeasurementProtocolSecret( + * parent, measurementProtocolSecret); * } * } * - * @param name Required. The name of the site tag to lookup. Note that site tags are singletons - * and do not have unique IDs. Format: - * properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Example: - * "properties/123/dataStreams/456/globalSiteTag" + * @param parent Required. The parent resource where this secret will be created. Format: + * properties/{property}/dataStreams/{dataStream} + * @param measurementProtocolSecret Required. The measurement protocol secret to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GlobalSiteTag getGlobalSiteTag(GlobalSiteTagName name) { - GetGlobalSiteTagRequest request = - GetGlobalSiteTagRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getGlobalSiteTag(request); + public final MeasurementProtocolSecret createMeasurementProtocolSecret( + DataStreamName parent, MeasurementProtocolSecret measurementProtocolSecret) { + CreateMeasurementProtocolSecretRequest request = + CreateMeasurementProtocolSecretRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setMeasurementProtocolSecret(measurementProtocolSecret) + .build(); + return createMeasurementProtocolSecret(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the Site Tag for the specified web stream. Site Tags are immutable singletons. + * Creates a measurement protocol secret. * *

Sample code: * @@ -2919,25 +2930,33 @@ public final GlobalSiteTag getGlobalSiteTag(GlobalSiteTagName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString(); - * GlobalSiteTag response = analyticsAdminServiceClient.getGlobalSiteTag(name); + * String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString(); + * MeasurementProtocolSecret measurementProtocolSecret = + * MeasurementProtocolSecret.newBuilder().build(); + * MeasurementProtocolSecret response = + * analyticsAdminServiceClient.createMeasurementProtocolSecret( + * parent, measurementProtocolSecret); * } * } * - * @param name Required. The name of the site tag to lookup. Note that site tags are singletons - * and do not have unique IDs. Format: - * properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Example: - * "properties/123/dataStreams/456/globalSiteTag" + * @param parent Required. The parent resource where this secret will be created. Format: + * properties/{property}/dataStreams/{dataStream} + * @param measurementProtocolSecret Required. The measurement protocol secret to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GlobalSiteTag getGlobalSiteTag(String name) { - GetGlobalSiteTagRequest request = GetGlobalSiteTagRequest.newBuilder().setName(name).build(); - return getGlobalSiteTag(request); + 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. /** - * Returns the Site Tag for the specified web stream. Site Tags are immutable singletons. + * Creates a measurement protocol secret. * *

Sample code: * @@ -2949,24 +2968,27 @@ public final GlobalSiteTag getGlobalSiteTag(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetGlobalSiteTagRequest request = - * GetGlobalSiteTagRequest.newBuilder() - * .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * CreateMeasurementProtocolSecretRequest request = + * CreateMeasurementProtocolSecretRequest.newBuilder() + * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build()) * .build(); - * GlobalSiteTag response = analyticsAdminServiceClient.getGlobalSiteTag(request); + * 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 GlobalSiteTag getGlobalSiteTag(GetGlobalSiteTagRequest request) { - return getGlobalSiteTagCallable().call(request); + public final MeasurementProtocolSecret createMeasurementProtocolSecret( + CreateMeasurementProtocolSecretRequest request) { + return createMeasurementProtocolSecretCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the Site Tag for the specified web stream. Site Tags are immutable singletons. + * Creates a measurement protocol secret. * *

Sample code: * @@ -2978,24 +3000,26 @@ public final GlobalSiteTag getGlobalSiteTag(GetGlobalSiteTagRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetGlobalSiteTagRequest request = - * GetGlobalSiteTagRequest.newBuilder() - * .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * CreateMeasurementProtocolSecretRequest request = + * CreateMeasurementProtocolSecretRequest.newBuilder() + * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.getGlobalSiteTagCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.createMeasurementProtocolSecretCallable().futureCall(request); * // Do something. - * GlobalSiteTag response = future.get(); + * MeasurementProtocolSecret response = future.get(); * } * } */ - public final UnaryCallable getGlobalSiteTagCallable() { - return stub.getGlobalSiteTagCallable(); + public final UnaryCallable + createMeasurementProtocolSecretCallable() { + return stub.createMeasurementProtocolSecretCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a GoogleAdsLink. + * Deletes target MeasurementProtocolSecret. * *

Sample code: * @@ -3007,29 +3031,28 @@ public final UnaryCallable getGlobalSite * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - * GoogleAdsLink response = - * analyticsAdminServiceClient.createGoogleAdsLink(parent, googleAdsLink); + * MeasurementProtocolSecretName name = + * MeasurementProtocolSecretName.of( + * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + * analyticsAdminServiceClient.deleteMeasurementProtocolSecret(name); * } * } * - * @param parent Required. Example format: properties/1234 - * @param googleAdsLink Required. The GoogleAdsLink to create. + * @param name Required. The name of the MeasurementProtocolSecret to delete. Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GoogleAdsLink createGoogleAdsLink(PropertyName parent, GoogleAdsLink googleAdsLink) { - CreateGoogleAdsLinkRequest request = - CreateGoogleAdsLinkRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setGoogleAdsLink(googleAdsLink) + public final void deleteMeasurementProtocolSecret(MeasurementProtocolSecretName name) { + DeleteMeasurementProtocolSecretRequest request = + DeleteMeasurementProtocolSecretRequest.newBuilder() + .setName(name == null ? null : name.toString()) .build(); - return createGoogleAdsLink(request); + deleteMeasurementProtocolSecret(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a GoogleAdsLink. + * Deletes target MeasurementProtocolSecret. * *

Sample code: * @@ -3041,29 +3064,27 @@ public final GoogleAdsLink createGoogleAdsLink(PropertyName parent, GoogleAdsLin * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - * GoogleAdsLink response = - * analyticsAdminServiceClient.createGoogleAdsLink(parent, googleAdsLink); + * String name = + * MeasurementProtocolSecretName.of( + * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + * .toString(); + * analyticsAdminServiceClient.deleteMeasurementProtocolSecret(name); * } * } * - * @param parent Required. Example format: properties/1234 - * @param googleAdsLink Required. The GoogleAdsLink to create. + * @param name Required. The name of the MeasurementProtocolSecret to delete. Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GoogleAdsLink createGoogleAdsLink(String parent, GoogleAdsLink googleAdsLink) { - CreateGoogleAdsLinkRequest request = - CreateGoogleAdsLinkRequest.newBuilder() - .setParent(parent) - .setGoogleAdsLink(googleAdsLink) - .build(); - return createGoogleAdsLink(request); + public final void deleteMeasurementProtocolSecret(String name) { + DeleteMeasurementProtocolSecretRequest request = + DeleteMeasurementProtocolSecretRequest.newBuilder().setName(name).build(); + deleteMeasurementProtocolSecret(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a GoogleAdsLink. + * Deletes target MeasurementProtocolSecret. * *

Sample code: * @@ -3075,25 +3096,28 @@ public final GoogleAdsLink createGoogleAdsLink(String parent, GoogleAdsLink goog * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateGoogleAdsLinkRequest request = - * CreateGoogleAdsLinkRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setGoogleAdsLink(GoogleAdsLink.newBuilder().build()) + * DeleteMeasurementProtocolSecretRequest request = + * DeleteMeasurementProtocolSecretRequest.newBuilder() + * .setName( + * MeasurementProtocolSecretName.of( + * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + * .toString()) * .build(); - * GoogleAdsLink response = analyticsAdminServiceClient.createGoogleAdsLink(request); + * 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 GoogleAdsLink createGoogleAdsLink(CreateGoogleAdsLinkRequest request) { - return createGoogleAdsLinkCallable().call(request); + public final void deleteMeasurementProtocolSecret( + DeleteMeasurementProtocolSecretRequest request) { + deleteMeasurementProtocolSecretCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a GoogleAdsLink. + * Deletes target MeasurementProtocolSecret. * *

Sample code: * @@ -3105,26 +3129,28 @@ public final GoogleAdsLink createGoogleAdsLink(CreateGoogleAdsLinkRequest reques * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateGoogleAdsLinkRequest request = - * CreateGoogleAdsLinkRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setGoogleAdsLink(GoogleAdsLink.newBuilder().build()) + * DeleteMeasurementProtocolSecretRequest request = + * DeleteMeasurementProtocolSecretRequest.newBuilder() + * .setName( + * MeasurementProtocolSecretName.of( + * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + * .toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.createGoogleAdsLinkCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.deleteMeasurementProtocolSecretCallable().futureCall(request); * // Do something. - * GoogleAdsLink response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable - createGoogleAdsLinkCallable() { - return stub.createGoogleAdsLinkCallable(); + public final UnaryCallable + deleteMeasurementProtocolSecretCallable() { + return stub.deleteMeasurementProtocolSecretCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a GoogleAdsLink on a property + * Updates a measurement protocol secret. * *

Sample code: * @@ -3136,32 +3162,33 @@ public final GoogleAdsLink createGoogleAdsLink(CreateGoogleAdsLinkRequest reques * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); + * MeasurementProtocolSecret measurementProtocolSecret = + * MeasurementProtocolSecret.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); - * GoogleAdsLink response = - * analyticsAdminServiceClient.updateGoogleAdsLink(googleAdsLink, updateMask); + * MeasurementProtocolSecret response = + * analyticsAdminServiceClient.updateMeasurementProtocolSecret( + * measurementProtocolSecret, updateMask); * } * } * - * @param googleAdsLink The GoogleAdsLink to update - * @param updateMask Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire - * entity, use one path with the string "*" to match all fields. + * @param measurementProtocolSecret Required. The measurement protocol secret to update. + * @param updateMask Required. 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 GoogleAdsLink updateGoogleAdsLink( - GoogleAdsLink googleAdsLink, FieldMask updateMask) { - UpdateGoogleAdsLinkRequest request = - UpdateGoogleAdsLinkRequest.newBuilder() - .setGoogleAdsLink(googleAdsLink) + public final MeasurementProtocolSecret updateMeasurementProtocolSecret( + MeasurementProtocolSecret measurementProtocolSecret, FieldMask updateMask) { + UpdateMeasurementProtocolSecretRequest request = + UpdateMeasurementProtocolSecretRequest.newBuilder() + .setMeasurementProtocolSecret(measurementProtocolSecret) .setUpdateMask(updateMask) .build(); - return updateGoogleAdsLink(request); + return updateMeasurementProtocolSecret(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a GoogleAdsLink on a property + * Updates a measurement protocol secret. * *

Sample code: * @@ -3173,25 +3200,27 @@ public final GoogleAdsLink updateGoogleAdsLink( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateGoogleAdsLinkRequest request = - * UpdateGoogleAdsLinkRequest.newBuilder() - * .setGoogleAdsLink(GoogleAdsLink.newBuilder().build()) + * UpdateMeasurementProtocolSecretRequest request = + * UpdateMeasurementProtocolSecretRequest.newBuilder() + * .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * GoogleAdsLink response = analyticsAdminServiceClient.updateGoogleAdsLink(request); + * 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 GoogleAdsLink updateGoogleAdsLink(UpdateGoogleAdsLinkRequest request) { - return updateGoogleAdsLinkCallable().call(request); + public final MeasurementProtocolSecret updateMeasurementProtocolSecret( + UpdateMeasurementProtocolSecretRequest request) { + return updateMeasurementProtocolSecretCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a GoogleAdsLink on a property + * Updates a measurement protocol secret. * *

Sample code: * @@ -3203,26 +3232,29 @@ public final GoogleAdsLink updateGoogleAdsLink(UpdateGoogleAdsLinkRequest reques * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateGoogleAdsLinkRequest request = - * UpdateGoogleAdsLinkRequest.newBuilder() - * .setGoogleAdsLink(GoogleAdsLink.newBuilder().build()) + * UpdateMeasurementProtocolSecretRequest request = + * UpdateMeasurementProtocolSecretRequest.newBuilder() + * .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.updateGoogleAdsLinkCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.updateMeasurementProtocolSecretCallable().futureCall(request); * // Do something. - * GoogleAdsLink response = future.get(); + * MeasurementProtocolSecret response = future.get(); * } * } */ - public final UnaryCallable - updateGoogleAdsLinkCallable() { - return stub.updateGoogleAdsLinkCallable(); + public final UnaryCallable + updateMeasurementProtocolSecretCallable() { + return stub.updateMeasurementProtocolSecretCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a GoogleAdsLink on a property + * Acknowledges the terms of user data collection for the specified property. + * + *

This acknowledgement must be completed (either in the Google Analytics UI or through this + * API) before MeasurementProtocolSecret resources may be created. * *

Sample code: * @@ -3234,25 +3266,30 @@ public final GoogleAdsLink updateGoogleAdsLink(UpdateGoogleAdsLinkRequest reques * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]"); - * analyticsAdminServiceClient.deleteGoogleAdsLink(name); + * AcknowledgeUserDataCollectionRequest request = + * AcknowledgeUserDataCollectionRequest.newBuilder() + * .setProperty(PropertyName.of("[PROPERTY]").toString()) + * .setAcknowledgement("acknowledgement1769490938") + * .build(); + * AcknowledgeUserDataCollectionResponse response = + * analyticsAdminServiceClient.acknowledgeUserDataCollection(request); * } * } * - * @param name Required. Example format: properties/1234/googleAdsLinks/5678 + * @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 deleteGoogleAdsLink(GoogleAdsLinkName name) { - DeleteGoogleAdsLinkRequest request = - DeleteGoogleAdsLinkRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteGoogleAdsLink(request); + public final AcknowledgeUserDataCollectionResponse acknowledgeUserDataCollection( + AcknowledgeUserDataCollectionRequest request) { + return acknowledgeUserDataCollectionCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a GoogleAdsLink on a property + * Acknowledges the terms of user data collection for the specified property. + * + *

This acknowledgement must be completed (either in the Google Analytics UI or through this + * API) before MeasurementProtocolSecret resources may be created. * *

Sample code: * @@ -3264,23 +3301,27 @@ public final void deleteGoogleAdsLink(GoogleAdsLinkName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString(); - * analyticsAdminServiceClient.deleteGoogleAdsLink(name); + * AcknowledgeUserDataCollectionRequest request = + * AcknowledgeUserDataCollectionRequest.newBuilder() + * .setProperty(PropertyName.of("[PROPERTY]").toString()) + * .setAcknowledgement("acknowledgement1769490938") + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient.acknowledgeUserDataCollectionCallable().futureCall(request); + * // Do something. + * AcknowledgeUserDataCollectionResponse response = future.get(); * } * } - * - * @param name Required. Example format: properties/1234/googleAdsLinks/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteGoogleAdsLink(String name) { - DeleteGoogleAdsLinkRequest request = - DeleteGoogleAdsLinkRequest.newBuilder().setName(name).build(); - deleteGoogleAdsLink(request); + public final UnaryCallable< + AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> + acknowledgeUserDataCollectionCallable() { + return stub.acknowledgeUserDataCollectionCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a GoogleAdsLink on a property + * Looks up a single SKAdNetworkConversionValueSchema. * *

Sample code: * @@ -3292,24 +3333,31 @@ public final void deleteGoogleAdsLink(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteGoogleAdsLinkRequest request = - * DeleteGoogleAdsLinkRequest.newBuilder() - * .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - * .build(); - * analyticsAdminServiceClient.deleteGoogleAdsLink(request); + * SKAdNetworkConversionValueSchemaName name = + * SKAdNetworkConversionValueSchemaName.of( + * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]"); + * SKAdNetworkConversionValueSchema response = + * analyticsAdminServiceClient.getSKAdNetworkConversionValueSchema(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The resource name of SKAdNetwork conversion value schema to look up. + * Format: + * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteGoogleAdsLink(DeleteGoogleAdsLinkRequest request) { - deleteGoogleAdsLinkCallable().call(request); + public final SKAdNetworkConversionValueSchema getSKAdNetworkConversionValueSchema( + SKAdNetworkConversionValueSchemaName name) { + GetSKAdNetworkConversionValueSchemaRequest request = + GetSKAdNetworkConversionValueSchemaRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getSKAdNetworkConversionValueSchema(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a GoogleAdsLink on a property + * Looks up a single SKAdNetworkConversionValueSchema. * *

Sample code: * @@ -3321,24 +3369,29 @@ public final void deleteGoogleAdsLink(DeleteGoogleAdsLinkRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteGoogleAdsLinkRequest request = - * DeleteGoogleAdsLinkRequest.newBuilder() - * .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.deleteGoogleAdsLinkCallable().futureCall(request); - * // Do something. - * future.get(); + * String name = + * SKAdNetworkConversionValueSchemaName.of( + * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") + * .toString(); + * SKAdNetworkConversionValueSchema response = + * analyticsAdminServiceClient.getSKAdNetworkConversionValueSchema(name); * } * } + * + * @param name Required. The resource name of SKAdNetwork conversion value schema to look up. + * Format: + * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable deleteGoogleAdsLinkCallable() { - return stub.deleteGoogleAdsLinkCallable(); + public final SKAdNetworkConversionValueSchema getSKAdNetworkConversionValueSchema(String name) { + GetSKAdNetworkConversionValueSchemaRequest request = + GetSKAdNetworkConversionValueSchemaRequest.newBuilder().setName(name).build(); + return getSKAdNetworkConversionValueSchema(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists GoogleAdsLinks on a property. + * Looks up a single SKAdNetworkConversionValueSchema. * *

Sample code: * @@ -3350,28 +3403,29 @@ public final UnaryCallable deleteGoogleAdsLin * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * for (GoogleAdsLink element : - * analyticsAdminServiceClient.listGoogleAdsLinks(parent).iterateAll()) { - * // doThingsWith(element); - * } + * GetSKAdNetworkConversionValueSchemaRequest request = + * GetSKAdNetworkConversionValueSchemaRequest.newBuilder() + * .setName( + * SKAdNetworkConversionValueSchemaName.of( + * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") + * .toString()) + * .build(); + * SKAdNetworkConversionValueSchema response = + * analyticsAdminServiceClient.getSKAdNetworkConversionValueSchema(request); * } * } * - * @param parent Required. Example format: properties/1234 + * @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 ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(PropertyName parent) { - ListGoogleAdsLinksRequest request = - ListGoogleAdsLinksRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listGoogleAdsLinks(request); + public final SKAdNetworkConversionValueSchema getSKAdNetworkConversionValueSchema( + GetSKAdNetworkConversionValueSchemaRequest request) { + return getSKAdNetworkConversionValueSchemaCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists GoogleAdsLinks on a property. + * Looks up a single SKAdNetworkConversionValueSchema. * *

Sample code: * @@ -3383,26 +3437,31 @@ public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(PropertyName par * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * for (GoogleAdsLink element : - * analyticsAdminServiceClient.listGoogleAdsLinks(parent).iterateAll()) { - * // doThingsWith(element); - * } + * GetSKAdNetworkConversionValueSchemaRequest request = + * GetSKAdNetworkConversionValueSchemaRequest.newBuilder() + * .setName( + * SKAdNetworkConversionValueSchemaName.of( + * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") + * .toString()) + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient + * .getSKAdNetworkConversionValueSchemaCallable() + * .futureCall(request); + * // Do something. + * SKAdNetworkConversionValueSchema response = future.get(); * } * } - * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(String parent) { - ListGoogleAdsLinksRequest request = - ListGoogleAdsLinksRequest.newBuilder().setParent(parent).build(); - return listGoogleAdsLinks(request); + public final UnaryCallable< + GetSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> + getSKAdNetworkConversionValueSchemaCallable() { + return stub.getSKAdNetworkConversionValueSchemaCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists GoogleAdsLinks on a property. + * Creates a SKAdNetworkConversionValueSchema. * *

Sample code: * @@ -3414,30 +3473,34 @@ public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(String parent) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListGoogleAdsLinksRequest request = - * ListGoogleAdsLinksRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * for (GoogleAdsLink element : - * analyticsAdminServiceClient.listGoogleAdsLinks(request).iterateAll()) { - * // doThingsWith(element); - * } + * DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + * SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = + * SKAdNetworkConversionValueSchema.newBuilder().build(); + * SKAdNetworkConversionValueSchema response = + * analyticsAdminServiceClient.createSKAdNetworkConversionValueSchema( + * parent, skadnetworkConversionValueSchema); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent resource where this schema will be created. Format: + * properties/{property}/dataStreams/{dataStream} + * @param skadnetworkConversionValueSchema Required. SKAdNetwork conversion value schema to + * create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks( - ListGoogleAdsLinksRequest request) { - return listGoogleAdsLinksPagedCallable().call(request); + public final SKAdNetworkConversionValueSchema createSKAdNetworkConversionValueSchema( + DataStreamName parent, SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema) { + CreateSKAdNetworkConversionValueSchemaRequest request = + CreateSKAdNetworkConversionValueSchemaRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSkadnetworkConversionValueSchema(skadnetworkConversionValueSchema) + .build(); + return createSKAdNetworkConversionValueSchema(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists GoogleAdsLinks on a property. + * Creates a SKAdNetworkConversionValueSchema. * *

Sample code: * @@ -3449,29 +3512,34 @@ public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListGoogleAdsLinksRequest request = - * ListGoogleAdsLinksRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.listGoogleAdsLinksPagedCallable().futureCall(request); - * // Do something. - * for (GoogleAdsLink element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString(); + * SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = + * SKAdNetworkConversionValueSchema.newBuilder().build(); + * SKAdNetworkConversionValueSchema response = + * analyticsAdminServiceClient.createSKAdNetworkConversionValueSchema( + * parent, skadnetworkConversionValueSchema); * } * } + * + * @param parent Required. The parent resource where this schema will be created. Format: + * properties/{property}/dataStreams/{dataStream} + * @param skadnetworkConversionValueSchema Required. SKAdNetwork conversion value schema to + * create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listGoogleAdsLinksPagedCallable() { - return stub.listGoogleAdsLinksPagedCallable(); + public final SKAdNetworkConversionValueSchema createSKAdNetworkConversionValueSchema( + String parent, SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema) { + CreateSKAdNetworkConversionValueSchemaRequest request = + CreateSKAdNetworkConversionValueSchemaRequest.newBuilder() + .setParent(parent) + .setSkadnetworkConversionValueSchema(skadnetworkConversionValueSchema) + .build(); + return createSKAdNetworkConversionValueSchema(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists GoogleAdsLinks on a property. + * Creates a SKAdNetworkConversionValueSchema. * *

Sample code: * @@ -3483,36 +3551,28 @@ public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListGoogleAdsLinksRequest request = - * ListGoogleAdsLinksRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * CreateSKAdNetworkConversionValueSchemaRequest request = + * CreateSKAdNetworkConversionValueSchemaRequest.newBuilder() + * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * .setSkadnetworkConversionValueSchema( + * SKAdNetworkConversionValueSchema.newBuilder().build()) * .build(); - * while (true) { - * ListGoogleAdsLinksResponse response = - * analyticsAdminServiceClient.listGoogleAdsLinksCallable().call(request); - * for (GoogleAdsLink element : response.getGoogleAdsLinksList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * SKAdNetworkConversionValueSchema response = + * analyticsAdminServiceClient.createSKAdNetworkConversionValueSchema(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 - listGoogleAdsLinksCallable() { - return stub.listGoogleAdsLinksCallable(); + public final SKAdNetworkConversionValueSchema createSKAdNetworkConversionValueSchema( + CreateSKAdNetworkConversionValueSchemaRequest request) { + return createSKAdNetworkConversionValueSchemaCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get data sharing settings on an account. Data sharing settings are singletons. + * Creates a SKAdNetworkConversionValueSchema. * *

Sample code: * @@ -3524,26 +3584,30 @@ public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]"); - * DataSharingSettings response = analyticsAdminServiceClient.getDataSharingSettings(name); + * CreateSKAdNetworkConversionValueSchemaRequest request = + * CreateSKAdNetworkConversionValueSchemaRequest.newBuilder() + * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * .setSkadnetworkConversionValueSchema( + * SKAdNetworkConversionValueSchema.newBuilder().build()) + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient + * .createSKAdNetworkConversionValueSchemaCallable() + * .futureCall(request); + * // Do something. + * SKAdNetworkConversionValueSchema response = future.get(); * } * } - * - * @param name Required. The name of the settings to lookup. Format: - * accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataSharingSettings getDataSharingSettings(DataSharingSettingsName name) { - GetDataSharingSettingsRequest request = - GetDataSharingSettingsRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getDataSharingSettings(request); + public final UnaryCallable< + CreateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> + createSKAdNetworkConversionValueSchemaCallable() { + return stub.createSKAdNetworkConversionValueSchemaCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get data sharing settings on an account. Data sharing settings are singletons. + * Deletes target SKAdNetworkConversionValueSchema. * *

Sample code: * @@ -3555,24 +3619,29 @@ public final DataSharingSettings getDataSharingSettings(DataSharingSettingsName * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = DataSharingSettingsName.of("[ACCOUNT]").toString(); - * DataSharingSettings response = analyticsAdminServiceClient.getDataSharingSettings(name); + * SKAdNetworkConversionValueSchemaName name = + * SKAdNetworkConversionValueSchemaName.of( + * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]"); + * analyticsAdminServiceClient.deleteSKAdNetworkConversionValueSchema(name); * } * } * - * @param name Required. The name of the settings to lookup. Format: - * accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings" + * @param name Required. The name of the SKAdNetworkConversionValueSchema to delete. Format: + * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataSharingSettings getDataSharingSettings(String name) { - GetDataSharingSettingsRequest request = - GetDataSharingSettingsRequest.newBuilder().setName(name).build(); - return getDataSharingSettings(request); + public final void deleteSKAdNetworkConversionValueSchema( + SKAdNetworkConversionValueSchemaName name) { + DeleteSKAdNetworkConversionValueSchemaRequest request = + DeleteSKAdNetworkConversionValueSchemaRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteSKAdNetworkConversionValueSchema(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get data sharing settings on an account. Data sharing settings are singletons. + * Deletes target SKAdNetworkConversionValueSchema. * *

Sample code: * @@ -3584,24 +3653,27 @@ public final DataSharingSettings getDataSharingSettings(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetDataSharingSettingsRequest request = - * GetDataSharingSettingsRequest.newBuilder() - * .setName(DataSharingSettingsName.of("[ACCOUNT]").toString()) - * .build(); - * DataSharingSettings response = analyticsAdminServiceClient.getDataSharingSettings(request); + * String name = + * SKAdNetworkConversionValueSchemaName.of( + * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") + * .toString(); + * analyticsAdminServiceClient.deleteSKAdNetworkConversionValueSchema(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The name of the SKAdNetworkConversionValueSchema to delete. Format: + * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataSharingSettings getDataSharingSettings(GetDataSharingSettingsRequest request) { - return getDataSharingSettingsCallable().call(request); + public final void deleteSKAdNetworkConversionValueSchema(String name) { + DeleteSKAdNetworkConversionValueSchemaRequest request = + DeleteSKAdNetworkConversionValueSchemaRequest.newBuilder().setName(name).build(); + deleteSKAdNetworkConversionValueSchema(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Get data sharing settings on an account. Data sharing settings are singletons. + * Deletes target SKAdNetworkConversionValueSchema. * *

Sample code: * @@ -3613,25 +3685,28 @@ public final DataSharingSettings getDataSharingSettings(GetDataSharingSettingsRe * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetDataSharingSettingsRequest request = - * GetDataSharingSettingsRequest.newBuilder() - * .setName(DataSharingSettingsName.of("[ACCOUNT]").toString()) + * DeleteSKAdNetworkConversionValueSchemaRequest request = + * DeleteSKAdNetworkConversionValueSchemaRequest.newBuilder() + * .setName( + * SKAdNetworkConversionValueSchemaName.of( + * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") + * .toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.getDataSharingSettingsCallable().futureCall(request); - * // Do something. - * DataSharingSettings response = future.get(); + * analyticsAdminServiceClient.deleteSKAdNetworkConversionValueSchema(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 - getDataSharingSettingsCallable() { - return stub.getDataSharingSettingsCallable(); + public final void deleteSKAdNetworkConversionValueSchema( + DeleteSKAdNetworkConversionValueSchemaRequest request) { + deleteSKAdNetworkConversionValueSchemaCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single "GA4" MeasurementProtocolSecret. + * Deletes target SKAdNetworkConversionValueSchema. * *

Sample code: * @@ -3643,30 +3718,30 @@ public final DataSharingSettings getDataSharingSettings(GetDataSharingSettingsRe * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * MeasurementProtocolSecretName name = - * MeasurementProtocolSecretName.of( - * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - * MeasurementProtocolSecret response = - * analyticsAdminServiceClient.getMeasurementProtocolSecret(name); + * DeleteSKAdNetworkConversionValueSchemaRequest request = + * DeleteSKAdNetworkConversionValueSchemaRequest.newBuilder() + * .setName( + * SKAdNetworkConversionValueSchemaName.of( + * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") + * .toString()) + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient + * .deleteSKAdNetworkConversionValueSchemaCallable() + * .futureCall(request); + * // Do something. + * future.get(); * } * } - * - * @param name Required. The name of the measurement protocol secret to lookup. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - * @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); + public final UnaryCallable + deleteSKAdNetworkConversionValueSchemaCallable() { + return stub.deleteSKAdNetworkConversionValueSchemaCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single "GA4" MeasurementProtocolSecret. + * Updates a SKAdNetworkConversionValueSchema. * *

Sample code: * @@ -3678,28 +3753,34 @@ public final MeasurementProtocolSecret getMeasurementProtocolSecret( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = - * MeasurementProtocolSecretName.of( - * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - * .toString(); - * MeasurementProtocolSecret response = - * analyticsAdminServiceClient.getMeasurementProtocolSecret(name); + * SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = + * SKAdNetworkConversionValueSchema.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * SKAdNetworkConversionValueSchema response = + * analyticsAdminServiceClient.updateSKAdNetworkConversionValueSchema( + * skadnetworkConversionValueSchema, updateMask); * } * } * - * @param name Required. The name of the measurement protocol secret to lookup. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * @param skadnetworkConversionValueSchema Required. SKAdNetwork conversion value schema to + * update. + * @param updateMask Required. 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 getMeasurementProtocolSecret(String name) { - GetMeasurementProtocolSecretRequest request = - GetMeasurementProtocolSecretRequest.newBuilder().setName(name).build(); - return getMeasurementProtocolSecret(request); + public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSchema( + SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema, FieldMask updateMask) { + UpdateSKAdNetworkConversionValueSchemaRequest request = + UpdateSKAdNetworkConversionValueSchemaRequest.newBuilder() + .setSkadnetworkConversionValueSchema(skadnetworkConversionValueSchema) + .setUpdateMask(updateMask) + .build(); + return updateSKAdNetworkConversionValueSchema(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single "GA4" MeasurementProtocolSecret. + * Updates a SKAdNetworkConversionValueSchema. * *

Sample code: * @@ -3711,29 +3792,28 @@ public final MeasurementProtocolSecret getMeasurementProtocolSecret(String name) * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetMeasurementProtocolSecretRequest request = - * GetMeasurementProtocolSecretRequest.newBuilder() - * .setName( - * MeasurementProtocolSecretName.of( - * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - * .toString()) + * UpdateSKAdNetworkConversionValueSchemaRequest request = + * UpdateSKAdNetworkConversionValueSchemaRequest.newBuilder() + * .setSkadnetworkConversionValueSchema( + * SKAdNetworkConversionValueSchema.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * MeasurementProtocolSecret response = - * analyticsAdminServiceClient.getMeasurementProtocolSecret(request); + * SKAdNetworkConversionValueSchema response = + * analyticsAdminServiceClient.updateSKAdNetworkConversionValueSchema(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); + public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSchema( + UpdateSKAdNetworkConversionValueSchemaRequest request) { + return updateSKAdNetworkConversionValueSchemaCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single "GA4" MeasurementProtocolSecret. + * Updates a SKAdNetworkConversionValueSchema. * *

Sample code: * @@ -3745,28 +3825,31 @@ public final MeasurementProtocolSecret getMeasurementProtocolSecret( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetMeasurementProtocolSecretRequest request = - * GetMeasurementProtocolSecretRequest.newBuilder() - * .setName( - * MeasurementProtocolSecretName.of( - * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - * .toString()) + * UpdateSKAdNetworkConversionValueSchemaRequest request = + * UpdateSKAdNetworkConversionValueSchemaRequest.newBuilder() + * .setSkadnetworkConversionValueSchema( + * SKAdNetworkConversionValueSchema.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.getMeasurementProtocolSecretCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient + * .updateSKAdNetworkConversionValueSchemaCallable() + * .futureCall(request); * // Do something. - * MeasurementProtocolSecret response = future.get(); + * SKAdNetworkConversionValueSchema response = future.get(); * } * } */ - public final UnaryCallable - getMeasurementProtocolSecretCallable() { - return stub.getMeasurementProtocolSecretCallable(); + public final UnaryCallable< + UpdateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> + updateSKAdNetworkConversionValueSchemaCallable() { + return stub.updateSKAdNetworkConversionValueSchemaCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns child MeasurementProtocolSecrets under the specified parent Property. + * Lists SKAdNetworkConversionValueSchema on a stream. Properties can have at most one + * SKAdNetworkConversionValueSchema. * *

Sample code: * @@ -3779,29 +3862,30 @@ public final MeasurementProtocolSecret getMeasurementProtocolSecret( * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { * DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - * for (MeasurementProtocolSecret element : - * analyticsAdminServiceClient.listMeasurementProtocolSecrets(parent).iterateAll()) { + * for (SKAdNetworkConversionValueSchema element : + * analyticsAdminServiceClient.listSKAdNetworkConversionValueSchemas(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The resource name of the parent stream. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + * @param parent Required. The DataStream resource to list schemas for. Format: + * properties/{property_id}/dataStreams/{dataStream} Example: properties/1234/dataStreams/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets( - DataStreamName parent) { - ListMeasurementProtocolSecretsRequest request = - ListMeasurementProtocolSecretsRequest.newBuilder() + public final ListSKAdNetworkConversionValueSchemasPagedResponse + listSKAdNetworkConversionValueSchemas(DataStreamName parent) { + ListSKAdNetworkConversionValueSchemasRequest request = + ListSKAdNetworkConversionValueSchemasRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listMeasurementProtocolSecrets(request); + return listSKAdNetworkConversionValueSchemas(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns child MeasurementProtocolSecrets under the specified parent Property. + * Lists SKAdNetworkConversionValueSchema on a stream. Properties can have at most one + * SKAdNetworkConversionValueSchema. * *

Sample code: * @@ -3814,27 +3898,28 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { * String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString(); - * for (MeasurementProtocolSecret element : - * analyticsAdminServiceClient.listMeasurementProtocolSecrets(parent).iterateAll()) { + * for (SKAdNetworkConversionValueSchema element : + * analyticsAdminServiceClient.listSKAdNetworkConversionValueSchemas(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. The resource name of the parent stream. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + * @param parent Required. The DataStream resource to list schemas for. Format: + * properties/{property_id}/dataStreams/{dataStream} Example: properties/1234/dataStreams/5678 * @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); + public final ListSKAdNetworkConversionValueSchemasPagedResponse + listSKAdNetworkConversionValueSchemas(String parent) { + ListSKAdNetworkConversionValueSchemasRequest request = + ListSKAdNetworkConversionValueSchemasRequest.newBuilder().setParent(parent).build(); + return listSKAdNetworkConversionValueSchemas(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns child MeasurementProtocolSecrets under the specified parent Property. + * Lists SKAdNetworkConversionValueSchema on a stream. Properties can have at most one + * SKAdNetworkConversionValueSchema. * *

Sample code: * @@ -3846,14 +3931,14 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListMeasurementProtocolSecretsRequest request = - * ListMeasurementProtocolSecretsRequest.newBuilder() + * ListSKAdNetworkConversionValueSchemasRequest request = + * ListSKAdNetworkConversionValueSchemasRequest.newBuilder() * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * for (MeasurementProtocolSecret element : - * analyticsAdminServiceClient.listMeasurementProtocolSecrets(request).iterateAll()) { + * for (SKAdNetworkConversionValueSchema element : + * analyticsAdminServiceClient.listSKAdNetworkConversionValueSchemas(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -3862,14 +3947,15 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol * @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); + public final ListSKAdNetworkConversionValueSchemasPagedResponse + listSKAdNetworkConversionValueSchemas(ListSKAdNetworkConversionValueSchemasRequest request) { + return listSKAdNetworkConversionValueSchemasPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns child MeasurementProtocolSecrets under the specified parent Property. + * Lists SKAdNetworkConversionValueSchema on a stream. Properties can have at most one + * SKAdNetworkConversionValueSchema. * *

Sample code: * @@ -3881,32 +3967,34 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListMeasurementProtocolSecretsRequest request = - * ListMeasurementProtocolSecretsRequest.newBuilder() + * ListSKAdNetworkConversionValueSchemasRequest request = + * ListSKAdNetworkConversionValueSchemasRequest.newBuilder() * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = + * ApiFuture future = * analyticsAdminServiceClient - * .listMeasurementProtocolSecretsPagedCallable() + * .listSKAdNetworkConversionValueSchemasPagedCallable() * .futureCall(request); * // Do something. - * for (MeasurementProtocolSecret element : future.get().iterateAll()) { + * for (SKAdNetworkConversionValueSchema element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ public final UnaryCallable< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsPagedResponse> - listMeasurementProtocolSecretsPagedCallable() { - return stub.listMeasurementProtocolSecretsPagedCallable(); + ListSKAdNetworkConversionValueSchemasRequest, + ListSKAdNetworkConversionValueSchemasPagedResponse> + listSKAdNetworkConversionValueSchemasPagedCallable() { + return stub.listSKAdNetworkConversionValueSchemasPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns child MeasurementProtocolSecrets under the specified parent Property. + * Lists SKAdNetworkConversionValueSchema on a stream. Properties can have at most one + * SKAdNetworkConversionValueSchema. * *

Sample code: * @@ -3918,16 +4006,19 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListMeasurementProtocolSecretsRequest request = - * ListMeasurementProtocolSecretsRequest.newBuilder() + * ListSKAdNetworkConversionValueSchemasRequest request = + * ListSKAdNetworkConversionValueSchemasRequest.newBuilder() * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); * while (true) { - * ListMeasurementProtocolSecretsResponse response = - * analyticsAdminServiceClient.listMeasurementProtocolSecretsCallable().call(request); - * for (MeasurementProtocolSecret element : response.getMeasurementProtocolSecretsList()) { + * ListSKAdNetworkConversionValueSchemasResponse response = + * analyticsAdminServiceClient + * .listSKAdNetworkConversionValueSchemasCallable() + * .call(request); + * for (SKAdNetworkConversionValueSchema element : + * response.getSkadnetworkConversionValueSchemasList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -3941,14 +4032,15 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol * } */ public final UnaryCallable< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> - listMeasurementProtocolSecretsCallable() { - return stub.listMeasurementProtocolSecretsCallable(); + ListSKAdNetworkConversionValueSchemasRequest, + ListSKAdNetworkConversionValueSchemasResponse> + listSKAdNetworkConversionValueSchemasCallable() { + return stub.listSKAdNetworkConversionValueSchemasCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a measurement protocol secret. + * Searches through all changes to an account or its children given the specified set of filters. * *

Sample code: * @@ -3960,33 +4052,36 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - * MeasurementProtocolSecret measurementProtocolSecret = - * MeasurementProtocolSecret.newBuilder().build(); - * MeasurementProtocolSecret response = - * analyticsAdminServiceClient.createMeasurementProtocolSecret( - * parent, measurementProtocolSecret); + * 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 parent Required. The parent resource where this secret will be created. Format: - * properties/{property}/dataStreams/{dataStream} - * @param measurementProtocolSecret Required. The measurement protocol secret to create. + * @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( - DataStreamName parent, MeasurementProtocolSecret measurementProtocolSecret) { - CreateMeasurementProtocolSecretRequest request = - CreateMeasurementProtocolSecretRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setMeasurementProtocolSecret(measurementProtocolSecret) - .build(); - return createMeasurementProtocolSecret(request); + public final SearchChangeHistoryEventsPagedResponse searchChangeHistoryEvents( + SearchChangeHistoryEventsRequest request) { + return searchChangeHistoryEventsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a measurement protocol secret. + * Searches through all changes to an account or its children given the specified set of filters. * *

Sample code: * @@ -3998,33 +4093,36 @@ public final MeasurementProtocolSecret createMeasurementProtocolSecret( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString(); - * MeasurementProtocolSecret measurementProtocolSecret = - * MeasurementProtocolSecret.newBuilder().build(); - * MeasurementProtocolSecret response = - * analyticsAdminServiceClient.createMeasurementProtocolSecret( - * parent, measurementProtocolSecret); + * 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); + * } * } * } - * - * @param parent Required. The parent resource where this secret will be created. Format: - * properties/{property}/dataStreams/{dataStream} - * @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); + public final UnaryCallable< + SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsPagedCallable() { + return stub.searchChangeHistoryEventsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a measurement protocol secret. + * Searches through all changes to an account or its children given the specified set of filters. * *

Sample code: * @@ -4036,27 +4134,42 @@ public final MeasurementProtocolSecret createMeasurementProtocolSecret( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateMeasurementProtocolSecretRequest request = - * CreateMeasurementProtocolSecretRequest.newBuilder() - * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - * .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build()) + * 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(); - * MeasurementProtocolSecret response = - * analyticsAdminServiceClient.createMeasurementProtocolSecret(request); + * while (true) { + * SearchChangeHistoryEventsResponse response = + * analyticsAdminServiceClient.searchChangeHistoryEventsCallable().call(request); + * for (ChangeHistoryEvent element : response.getChangeHistoryEventsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @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); + public final UnaryCallable + searchChangeHistoryEventsCallable() { + return stub.searchChangeHistoryEventsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a measurement protocol secret. + * Lookup for Google Signals settings for a property. * *

Sample code: * @@ -4068,26 +4181,26 @@ public final MeasurementProtocolSecret createMeasurementProtocolSecret( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateMeasurementProtocolSecretRequest request = - * CreateMeasurementProtocolSecretRequest.newBuilder() - * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - * .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build()) - * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.createMeasurementProtocolSecretCallable().futureCall(request); - * // Do something. - * MeasurementProtocolSecret response = future.get(); + * 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 UnaryCallable - createMeasurementProtocolSecretCallable() { - return stub.createMeasurementProtocolSecretCallable(); + 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. /** - * Deletes target MeasurementProtocolSecret. + * Lookup for Google Signals settings for a property. * *

Sample code: * @@ -4099,28 +4212,24 @@ public final MeasurementProtocolSecret createMeasurementProtocolSecret( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * MeasurementProtocolSecretName name = - * MeasurementProtocolSecretName.of( - * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - * analyticsAdminServiceClient.deleteMeasurementProtocolSecret(name); + * String name = GoogleSignalsSettingsName.of("[PROPERTY]").toString(); + * GoogleSignalsSettings response = analyticsAdminServiceClient.getGoogleSignalsSettings(name); * } * } * - * @param name Required. The name of the MeasurementProtocolSecret to delete. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * @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 void deleteMeasurementProtocolSecret(MeasurementProtocolSecretName name) { - DeleteMeasurementProtocolSecretRequest request = - DeleteMeasurementProtocolSecretRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteMeasurementProtocolSecret(request); + public final GoogleSignalsSettings getGoogleSignalsSettings(String name) { + GetGoogleSignalsSettingsRequest request = + GetGoogleSignalsSettingsRequest.newBuilder().setName(name).build(); + return getGoogleSignalsSettings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes target MeasurementProtocolSecret. + * Lookup for Google Signals settings for a property. * *

Sample code: * @@ -4132,27 +4241,26 @@ public final void deleteMeasurementProtocolSecret(MeasurementProtocolSecretName * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = - * MeasurementProtocolSecretName.of( - * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - * .toString(); - * analyticsAdminServiceClient.deleteMeasurementProtocolSecret(name); + * GetGoogleSignalsSettingsRequest request = + * GetGoogleSignalsSettingsRequest.newBuilder() + * .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) + * .build(); + * GoogleSignalsSettings response = + * analyticsAdminServiceClient.getGoogleSignalsSettings(request); * } * } * - * @param name Required. The name of the MeasurementProtocolSecret to delete. Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * @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(String name) { - DeleteMeasurementProtocolSecretRequest request = - DeleteMeasurementProtocolSecretRequest.newBuilder().setName(name).build(); - deleteMeasurementProtocolSecret(request); + public final GoogleSignalsSettings getGoogleSignalsSettings( + GetGoogleSignalsSettingsRequest request) { + return getGoogleSignalsSettingsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes target MeasurementProtocolSecret. + * Lookup for Google Signals settings for a property. * *

Sample code: * @@ -4164,28 +4272,25 @@ public final void deleteMeasurementProtocolSecret(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteMeasurementProtocolSecretRequest request = - * DeleteMeasurementProtocolSecretRequest.newBuilder() - * .setName( - * MeasurementProtocolSecretName.of( - * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - * .toString()) + * GetGoogleSignalsSettingsRequest request = + * GetGoogleSignalsSettingsRequest.newBuilder() + * .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) * .build(); - * analyticsAdminServiceClient.deleteMeasurementProtocolSecret(request); + * ApiFuture future = + * analyticsAdminServiceClient.getGoogleSignalsSettingsCallable().futureCall(request); + * // Do something. + * GoogleSignalsSettings response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteMeasurementProtocolSecret( - DeleteMeasurementProtocolSecretRequest request) { - deleteMeasurementProtocolSecretCallable().call(request); + public final UnaryCallable + getGoogleSignalsSettingsCallable() { + return stub.getGoogleSignalsSettingsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes target MeasurementProtocolSecret. + * Updates Google Signals settings for a property. * *

Sample code: * @@ -4197,28 +4302,34 @@ public final void deleteMeasurementProtocolSecret( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteMeasurementProtocolSecretRequest request = - * DeleteMeasurementProtocolSecretRequest.newBuilder() - * .setName( - * MeasurementProtocolSecretName.of( - * "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - * .toString()) - * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.deleteMeasurementProtocolSecretCallable().futureCall(request); - * // Do something. - * future.get(); + * 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 UnaryCallable - deleteMeasurementProtocolSecretCallable() { - return stub.deleteMeasurementProtocolSecretCallable(); + 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 a measurement protocol secret. + * Updates Google Signals settings for a property. * *

Sample code: * @@ -4230,33 +4341,27 @@ public final void deleteMeasurementProtocolSecret( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * MeasurementProtocolSecret measurementProtocolSecret = - * MeasurementProtocolSecret.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * MeasurementProtocolSecret response = - * analyticsAdminServiceClient.updateMeasurementProtocolSecret( - * measurementProtocolSecret, updateMask); + * UpdateGoogleSignalsSettingsRequest request = + * UpdateGoogleSignalsSettingsRequest.newBuilder() + * .setGoogleSignalsSettings(GoogleSignalsSettings.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * GoogleSignalsSettings response = + * analyticsAdminServiceClient.updateGoogleSignalsSettings(request); * } * } * - * @param measurementProtocolSecret Required. The measurement protocol secret to update. - * @param updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. + * @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( - MeasurementProtocolSecret measurementProtocolSecret, FieldMask updateMask) { - UpdateMeasurementProtocolSecretRequest request = - UpdateMeasurementProtocolSecretRequest.newBuilder() - .setMeasurementProtocolSecret(measurementProtocolSecret) - .setUpdateMask(updateMask) - .build(); - return updateMeasurementProtocolSecret(request); + public final GoogleSignalsSettings updateGoogleSignalsSettings( + UpdateGoogleSignalsSettingsRequest request) { + return updateGoogleSignalsSettingsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a measurement protocol secret. + * Updates Google Signals settings for a property. * *

Sample code: * @@ -4268,27 +4373,26 @@ public final MeasurementProtocolSecret updateMeasurementProtocolSecret( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateMeasurementProtocolSecretRequest request = - * UpdateMeasurementProtocolSecretRequest.newBuilder() - * .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build()) + * UpdateGoogleSignalsSettingsRequest request = + * UpdateGoogleSignalsSettingsRequest.newBuilder() + * .setGoogleSignalsSettings(GoogleSignalsSettings.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * MeasurementProtocolSecret response = - * analyticsAdminServiceClient.updateMeasurementProtocolSecret(request); + * ApiFuture future = + * analyticsAdminServiceClient.updateGoogleSignalsSettingsCallable().futureCall(request); + * // Do something. + * GoogleSignalsSettings response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final MeasurementProtocolSecret updateMeasurementProtocolSecret( - UpdateMeasurementProtocolSecretRequest request) { - return updateMeasurementProtocolSecretCallable().call(request); + public final UnaryCallable + updateGoogleSignalsSettingsCallable() { + return stub.updateGoogleSignalsSettingsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a measurement protocol secret. + * Creates a conversion event with the specified attributes. * *

Sample code: * @@ -4300,29 +4404,31 @@ public final MeasurementProtocolSecret updateMeasurementProtocolSecret( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * 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(); + * 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 UnaryCallable - updateMeasurementProtocolSecretCallable() { - return stub.updateMeasurementProtocolSecretCallable(); + 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. /** - * Acknowledges the terms of user data collection for the specified property. - * - *

This acknowledgement must be completed (either in the Google Analytics UI or through this - * API) before MeasurementProtocolSecret resources may be created. + * Creates a conversion event with the specified attributes. * *

Sample code: * @@ -4334,30 +4440,31 @@ public final MeasurementProtocolSecret updateMeasurementProtocolSecret( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * AcknowledgeUserDataCollectionRequest request = - * AcknowledgeUserDataCollectionRequest.newBuilder() - * .setProperty(PropertyName.of("[PROPERTY]").toString()) - * .setAcknowledgement("acknowledgement1769490938") - * .build(); - * AcknowledgeUserDataCollectionResponse response = - * analyticsAdminServiceClient.acknowledgeUserDataCollection(request); + * String parent = PropertyName.of("[PROPERTY]").toString(); + * ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); + * ConversionEvent response = + * analyticsAdminServiceClient.createConversionEvent(parent, conversionEvent); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @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 AcknowledgeUserDataCollectionResponse acknowledgeUserDataCollection( - AcknowledgeUserDataCollectionRequest request) { - return acknowledgeUserDataCollectionCallable().call(request); + 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. /** - * Acknowledges the terms of user data collection for the specified property. - * - *

This acknowledgement must be completed (either in the Google Analytics UI or through this - * API) before MeasurementProtocolSecret resources may be created. + * Creates a conversion event with the specified attributes. * *

Sample code: * @@ -4369,27 +4476,25 @@ public final AcknowledgeUserDataCollectionResponse acknowledgeUserDataCollection * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * AcknowledgeUserDataCollectionRequest request = - * AcknowledgeUserDataCollectionRequest.newBuilder() - * .setProperty(PropertyName.of("[PROPERTY]").toString()) - * .setAcknowledgement("acknowledgement1769490938") + * CreateConversionEventRequest request = + * CreateConversionEventRequest.newBuilder() + * .setConversionEvent(ConversionEvent.newBuilder().build()) + * .setParent(PropertyName.of("[PROPERTY]").toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.acknowledgeUserDataCollectionCallable().futureCall(request); - * // Do something. - * AcknowledgeUserDataCollectionResponse response = future.get(); + * 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 UnaryCallable< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionCallable() { - return stub.acknowledgeUserDataCollectionCallable(); + public final ConversionEvent createConversionEvent(CreateConversionEventRequest request) { + return createConversionEventCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Looks up a single SKAdNetworkConversionValueSchema. + * Creates a conversion event with the specified attributes. * *

Sample code: * @@ -4401,31 +4506,26 @@ public final AcknowledgeUserDataCollectionResponse acknowledgeUserDataCollection * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * SKAdNetworkConversionValueSchemaName name = - * SKAdNetworkConversionValueSchemaName.of( - * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]"); - * SKAdNetworkConversionValueSchema response = - * analyticsAdminServiceClient.getSKAdNetworkConversionValueSchema(name); + * CreateConversionEventRequest request = + * CreateConversionEventRequest.newBuilder() + * .setConversionEvent(ConversionEvent.newBuilder().build()) + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient.createConversionEventCallable().futureCall(request); + * // Do something. + * ConversionEvent response = future.get(); * } * } - * - * @param name Required. The resource name of SKAdNetwork conversion value schema to look up. - * Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SKAdNetworkConversionValueSchema getSKAdNetworkConversionValueSchema( - SKAdNetworkConversionValueSchemaName name) { - GetSKAdNetworkConversionValueSchemaRequest request = - GetSKAdNetworkConversionValueSchemaRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getSKAdNetworkConversionValueSchema(request); + public final UnaryCallable + createConversionEventCallable() { + return stub.createConversionEventCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Looks up a single SKAdNetworkConversionValueSchema. + * Updates a conversion event with the specified attributes. * *

Sample code: * @@ -4437,29 +4537,33 @@ public final SKAdNetworkConversionValueSchema getSKAdNetworkConversionValueSchem * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = - * SKAdNetworkConversionValueSchemaName.of( - * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") - * .toString(); - * SKAdNetworkConversionValueSchema response = - * analyticsAdminServiceClient.getSKAdNetworkConversionValueSchema(name); + * ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * ConversionEvent response = + * analyticsAdminServiceClient.updateConversionEvent(conversionEvent, updateMask); * } * } * - * @param name Required. The resource name of SKAdNetwork conversion value schema to look up. - * Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} + * @param conversionEvent Required. The conversion event 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 SKAdNetworkConversionValueSchema getSKAdNetworkConversionValueSchema(String name) { - GetSKAdNetworkConversionValueSchemaRequest request = - GetSKAdNetworkConversionValueSchemaRequest.newBuilder().setName(name).build(); - return getSKAdNetworkConversionValueSchema(request); + public final ConversionEvent updateConversionEvent( + ConversionEvent conversionEvent, FieldMask updateMask) { + UpdateConversionEventRequest request = + UpdateConversionEventRequest.newBuilder() + .setConversionEvent(conversionEvent) + .setUpdateMask(updateMask) + .build(); + return updateConversionEvent(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Looks up a single SKAdNetworkConversionValueSchema. + * Updates a conversion event with the specified attributes. * *

Sample code: * @@ -4471,29 +4575,25 @@ public final SKAdNetworkConversionValueSchema getSKAdNetworkConversionValueSchem * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetSKAdNetworkConversionValueSchemaRequest request = - * GetSKAdNetworkConversionValueSchemaRequest.newBuilder() - * .setName( - * SKAdNetworkConversionValueSchemaName.of( - * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") - * .toString()) + * UpdateConversionEventRequest request = + * UpdateConversionEventRequest.newBuilder() + * .setConversionEvent(ConversionEvent.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * SKAdNetworkConversionValueSchema response = - * analyticsAdminServiceClient.getSKAdNetworkConversionValueSchema(request); + * ConversionEvent response = analyticsAdminServiceClient.updateConversionEvent(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 SKAdNetworkConversionValueSchema getSKAdNetworkConversionValueSchema( - GetSKAdNetworkConversionValueSchemaRequest request) { - return getSKAdNetworkConversionValueSchemaCallable().call(request); + public final ConversionEvent updateConversionEvent(UpdateConversionEventRequest request) { + return updateConversionEventCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Looks up a single SKAdNetworkConversionValueSchema. + * Updates a conversion event with the specified attributes. * *

Sample code: * @@ -4505,31 +4605,26 @@ public final SKAdNetworkConversionValueSchema getSKAdNetworkConversionValueSchem * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetSKAdNetworkConversionValueSchemaRequest request = - * GetSKAdNetworkConversionValueSchemaRequest.newBuilder() - * .setName( - * SKAdNetworkConversionValueSchemaName.of( - * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") - * .toString()) + * UpdateConversionEventRequest request = + * UpdateConversionEventRequest.newBuilder() + * .setConversionEvent(ConversionEvent.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient - * .getSKAdNetworkConversionValueSchemaCallable() - * .futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.updateConversionEventCallable().futureCall(request); * // Do something. - * SKAdNetworkConversionValueSchema response = future.get(); + * ConversionEvent response = future.get(); * } * } */ - public final UnaryCallable< - GetSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> - getSKAdNetworkConversionValueSchemaCallable() { - return stub.getSKAdNetworkConversionValueSchemaCallable(); + public final UnaryCallable + updateConversionEventCallable() { + return stub.updateConversionEventCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a SKAdNetworkConversionValueSchema. + * Retrieve a single conversion event. * *

Sample code: * @@ -4541,34 +4636,27 @@ public final SKAdNetworkConversionValueSchema getSKAdNetworkConversionValueSchem * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - * SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = - * SKAdNetworkConversionValueSchema.newBuilder().build(); - * SKAdNetworkConversionValueSchema response = - * analyticsAdminServiceClient.createSKAdNetworkConversionValueSchema( - * parent, skadnetworkConversionValueSchema); + * ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); + * ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(name); * } * } * - * @param parent Required. The parent resource where this schema will be created. Format: - * properties/{property}/dataStreams/{dataStream} - * @param skadnetworkConversionValueSchema Required. SKAdNetwork conversion value schema to - * create. + * @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 SKAdNetworkConversionValueSchema createSKAdNetworkConversionValueSchema( - DataStreamName parent, SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema) { - CreateSKAdNetworkConversionValueSchemaRequest request = - CreateSKAdNetworkConversionValueSchemaRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setSkadnetworkConversionValueSchema(skadnetworkConversionValueSchema) + public final ConversionEvent getConversionEvent(ConversionEventName name) { + GetConversionEventRequest request = + GetConversionEventRequest.newBuilder() + .setName(name == null ? null : name.toString()) .build(); - return createSKAdNetworkConversionValueSchema(request); + return getConversionEvent(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a SKAdNetworkConversionValueSchema. + * Retrieve a single conversion event. * *

Sample code: * @@ -4580,34 +4668,25 @@ public final SKAdNetworkConversionValueSchema createSKAdNetworkConversionValueSc * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString(); - * SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = - * SKAdNetworkConversionValueSchema.newBuilder().build(); - * SKAdNetworkConversionValueSchema response = - * analyticsAdminServiceClient.createSKAdNetworkConversionValueSchema( - * parent, skadnetworkConversionValueSchema); + * String name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString(); + * ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(name); * } * } * - * @param parent Required. The parent resource where this schema will be created. Format: - * properties/{property}/dataStreams/{dataStream} - * @param skadnetworkConversionValueSchema Required. SKAdNetwork conversion value schema to - * create. + * @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 SKAdNetworkConversionValueSchema createSKAdNetworkConversionValueSchema( - String parent, SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema) { - CreateSKAdNetworkConversionValueSchemaRequest request = - CreateSKAdNetworkConversionValueSchemaRequest.newBuilder() - .setParent(parent) - .setSkadnetworkConversionValueSchema(skadnetworkConversionValueSchema) - .build(); - return createSKAdNetworkConversionValueSchema(request); + public final ConversionEvent getConversionEvent(String name) { + GetConversionEventRequest request = + GetConversionEventRequest.newBuilder().setName(name).build(); + return getConversionEvent(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a SKAdNetworkConversionValueSchema. + * Retrieve a single conversion event. * *

Sample code: * @@ -4619,28 +4698,24 @@ public final SKAdNetworkConversionValueSchema createSKAdNetworkConversionValueSc * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateSKAdNetworkConversionValueSchemaRequest request = - * CreateSKAdNetworkConversionValueSchemaRequest.newBuilder() - * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - * .setSkadnetworkConversionValueSchema( - * SKAdNetworkConversionValueSchema.newBuilder().build()) + * GetConversionEventRequest request = + * GetConversionEventRequest.newBuilder() + * .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) * .build(); - * SKAdNetworkConversionValueSchema response = - * analyticsAdminServiceClient.createSKAdNetworkConversionValueSchema(request); + * 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 SKAdNetworkConversionValueSchema createSKAdNetworkConversionValueSchema( - CreateSKAdNetworkConversionValueSchemaRequest request) { - return createSKAdNetworkConversionValueSchemaCallable().call(request); + public final ConversionEvent getConversionEvent(GetConversionEventRequest request) { + return getConversionEventCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a SKAdNetworkConversionValueSchema. + * Retrieve a single conversion event. * *

Sample code: * @@ -4652,30 +4727,25 @@ public final SKAdNetworkConversionValueSchema createSKAdNetworkConversionValueSc * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateSKAdNetworkConversionValueSchemaRequest request = - * CreateSKAdNetworkConversionValueSchemaRequest.newBuilder() - * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - * .setSkadnetworkConversionValueSchema( - * SKAdNetworkConversionValueSchema.newBuilder().build()) + * GetConversionEventRequest request = + * GetConversionEventRequest.newBuilder() + * .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient - * .createSKAdNetworkConversionValueSchemaCallable() - * .futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.getConversionEventCallable().futureCall(request); * // Do something. - * SKAdNetworkConversionValueSchema response = future.get(); + * ConversionEvent response = future.get(); * } * } */ - public final UnaryCallable< - CreateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> - createSKAdNetworkConversionValueSchemaCallable() { - return stub.createSKAdNetworkConversionValueSchemaCallable(); + public final UnaryCallable + getConversionEventCallable() { + return stub.getConversionEventCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes target SKAdNetworkConversionValueSchema. + * Deletes a conversion event in a property. * *

Sample code: * @@ -4687,29 +4757,27 @@ public final SKAdNetworkConversionValueSchema createSKAdNetworkConversionValueSc * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * SKAdNetworkConversionValueSchemaName name = - * SKAdNetworkConversionValueSchemaName.of( - * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]"); - * analyticsAdminServiceClient.deleteSKAdNetworkConversionValueSchema(name); + * ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); + * analyticsAdminServiceClient.deleteConversionEvent(name); * } * } * - * @param name Required. The name of the SKAdNetworkConversionValueSchema to delete. Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} + * @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 deleteSKAdNetworkConversionValueSchema( - SKAdNetworkConversionValueSchemaName name) { - DeleteSKAdNetworkConversionValueSchemaRequest request = - DeleteSKAdNetworkConversionValueSchemaRequest.newBuilder() + public final void deleteConversionEvent(ConversionEventName name) { + DeleteConversionEventRequest request = + DeleteConversionEventRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); - deleteSKAdNetworkConversionValueSchema(request); + deleteConversionEvent(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes target SKAdNetworkConversionValueSchema. + * Deletes a conversion event in a property. * *

Sample code: * @@ -4721,27 +4789,25 @@ public final void deleteSKAdNetworkConversionValueSchema( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = - * SKAdNetworkConversionValueSchemaName.of( - * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") - * .toString(); - * analyticsAdminServiceClient.deleteSKAdNetworkConversionValueSchema(name); + * String name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString(); + * analyticsAdminServiceClient.deleteConversionEvent(name); * } * } * - * @param name Required. The name of the SKAdNetworkConversionValueSchema to delete. Format: - * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema} + * @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 deleteSKAdNetworkConversionValueSchema(String name) { - DeleteSKAdNetworkConversionValueSchemaRequest request = - DeleteSKAdNetworkConversionValueSchemaRequest.newBuilder().setName(name).build(); - deleteSKAdNetworkConversionValueSchema(request); + public final void deleteConversionEvent(String name) { + DeleteConversionEventRequest request = + DeleteConversionEventRequest.newBuilder().setName(name).build(); + deleteConversionEvent(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes target SKAdNetworkConversionValueSchema. + * Deletes a conversion event in a property. * *

Sample code: * @@ -4753,28 +4819,24 @@ public final void deleteSKAdNetworkConversionValueSchema(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteSKAdNetworkConversionValueSchemaRequest request = - * DeleteSKAdNetworkConversionValueSchemaRequest.newBuilder() - * .setName( - * SKAdNetworkConversionValueSchemaName.of( - * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") - * .toString()) + * DeleteConversionEventRequest request = + * DeleteConversionEventRequest.newBuilder() + * .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) * .build(); - * analyticsAdminServiceClient.deleteSKAdNetworkConversionValueSchema(request); + * 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 deleteSKAdNetworkConversionValueSchema( - DeleteSKAdNetworkConversionValueSchemaRequest request) { - deleteSKAdNetworkConversionValueSchemaCallable().call(request); + public final void deleteConversionEvent(DeleteConversionEventRequest request) { + deleteConversionEventCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes target SKAdNetworkConversionValueSchema. + * Deletes a conversion event in a property. * *

Sample code: * @@ -4786,30 +4848,26 @@ public final void deleteSKAdNetworkConversionValueSchema( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteSKAdNetworkConversionValueSchemaRequest request = - * DeleteSKAdNetworkConversionValueSchemaRequest.newBuilder() - * .setName( - * SKAdNetworkConversionValueSchemaName.of( - * "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") - * .toString()) + * DeleteConversionEventRequest request = + * DeleteConversionEventRequest.newBuilder() + * .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) * .build(); * ApiFuture future = - * analyticsAdminServiceClient - * .deleteSKAdNetworkConversionValueSchemaCallable() - * .futureCall(request); + * analyticsAdminServiceClient.deleteConversionEventCallable().futureCall(request); * // Do something. * future.get(); * } * } */ - public final UnaryCallable - deleteSKAdNetworkConversionValueSchemaCallable() { - return stub.deleteSKAdNetworkConversionValueSchemaCallable(); + public final UnaryCallable deleteConversionEventCallable() { + return stub.deleteConversionEventCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a SKAdNetworkConversionValueSchema. + * Returns a list of conversion events in the specified parent property. + * + *

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

Sample code: * @@ -4821,34 +4879,30 @@ public final void deleteSKAdNetworkConversionValueSchema( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = - * SKAdNetworkConversionValueSchema.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * SKAdNetworkConversionValueSchema response = - * analyticsAdminServiceClient.updateSKAdNetworkConversionValueSchema( - * skadnetworkConversionValueSchema, updateMask); + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * for (ConversionEvent element : + * analyticsAdminServiceClient.listConversionEvents(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param skadnetworkConversionValueSchema Required. SKAdNetwork conversion value schema to - * update. - * @param updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. + * @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 SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSchema( - SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema, FieldMask updateMask) { - UpdateSKAdNetworkConversionValueSchemaRequest request = - UpdateSKAdNetworkConversionValueSchemaRequest.newBuilder() - .setSkadnetworkConversionValueSchema(skadnetworkConversionValueSchema) - .setUpdateMask(updateMask) + public final ListConversionEventsPagedResponse listConversionEvents(PropertyName parent) { + ListConversionEventsRequest request = + ListConversionEventsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) .build(); - return updateSKAdNetworkConversionValueSchema(request); + return listConversionEvents(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a SKAdNetworkConversionValueSchema. + * Returns a list of conversion events in the specified parent property. + * + *

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

Sample code: * @@ -4860,28 +4914,65 @@ public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSc * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateSKAdNetworkConversionValueSchemaRequest request = - * UpdateSKAdNetworkConversionValueSchemaRequest.newBuilder() - * .setSkadnetworkConversionValueSchema( - * SKAdNetworkConversionValueSchema.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * String parent = PropertyName.of("[PROPERTY]").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
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListConversionEventsRequest request =
+   *       ListConversionEventsRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
    *           .build();
-   *   SKAdNetworkConversionValueSchema response =
-   *       analyticsAdminServiceClient.updateSKAdNetworkConversionValueSchema(request);
+   *   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 SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSchema( - UpdateSKAdNetworkConversionValueSchemaRequest request) { - return updateSKAdNetworkConversionValueSchemaCallable().call(request); + public final ListConversionEventsPagedResponse listConversionEvents( + ListConversionEventsRequest request) { + return listConversionEventsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a SKAdNetworkConversionValueSchema. + * Returns a list of conversion events in the specified parent property. + * + *

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

Sample code: * @@ -4893,31 +4984,207 @@ public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSc * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateSKAdNetworkConversionValueSchemaRequest request = - * UpdateSKAdNetworkConversionValueSchemaRequest.newBuilder() - * .setSkadnetworkConversionValueSchema( - * SKAdNetworkConversionValueSchema.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * ListConversionEventsRequest request = + * ListConversionEventsRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = + * 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
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListConversionEventsRequest request =
+   *       ListConversionEventsRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListConversionEventsResponse response =
+   *         analyticsAdminServiceClient.listConversionEventsCallable().call(request);
+   *     for (ConversionEvent element : response.getConversionEventsList()) {
+   *       // 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. + /** + * Look up a single DisplayVideo360AdvertiserLink + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DisplayVideo360AdvertiserLinkName name =
+   *       DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]");
+   *   DisplayVideo360AdvertiserLink response =
+   *       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLink(name);
+   * }
+   * }
+ * + * @param name Required. The name of the DisplayVideo360AdvertiserLink to get. Example format: + * properties/1234/displayVideo360AdvertiserLink/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink( + DisplayVideo360AdvertiserLinkName name) { + GetDisplayVideo360AdvertiserLinkRequest request = + GetDisplayVideo360AdvertiserLinkRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getDisplayVideo360AdvertiserLink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Look up a single DisplayVideo360AdvertiserLink + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String name =
+   *       DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+   *           .toString();
+   *   DisplayVideo360AdvertiserLink response =
+   *       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLink(name);
+   * }
+   * }
+ * + * @param name Required. The name of the DisplayVideo360AdvertiserLink to get. Example format: + * properties/1234/displayVideo360AdvertiserLink/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink(String name) { + GetDisplayVideo360AdvertiserLinkRequest request = + GetDisplayVideo360AdvertiserLinkRequest.newBuilder().setName(name).build(); + return getDisplayVideo360AdvertiserLink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Look up a single DisplayVideo360AdvertiserLink + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetDisplayVideo360AdvertiserLinkRequest request =
+   *       GetDisplayVideo360AdvertiserLinkRequest.newBuilder()
+   *           .setName(
+   *               DisplayVideo360AdvertiserLinkName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+   *                   .toString())
+   *           .build();
+   *   DisplayVideo360AdvertiserLink response =
+   *       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLink(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink( + GetDisplayVideo360AdvertiserLinkRequest request) { + return getDisplayVideo360AdvertiserLinkCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Look up a single DisplayVideo360AdvertiserLink + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetDisplayVideo360AdvertiserLinkRequest request =
+   *       GetDisplayVideo360AdvertiserLinkRequest.newBuilder()
+   *           .setName(
+   *               DisplayVideo360AdvertiserLinkName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
    *       analyticsAdminServiceClient
-   *           .updateSKAdNetworkConversionValueSchemaCallable()
+   *           .getDisplayVideo360AdvertiserLinkCallable()
    *           .futureCall(request);
    *   // Do something.
-   *   SKAdNetworkConversionValueSchema response = future.get();
+   *   DisplayVideo360AdvertiserLink response = future.get();
    * }
    * }
*/ - public final UnaryCallable< - UpdateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> - updateSKAdNetworkConversionValueSchemaCallable() { - return stub.updateSKAdNetworkConversionValueSchemaCallable(); + public final UnaryCallable + getDisplayVideo360AdvertiserLinkCallable() { + return stub.getDisplayVideo360AdvertiserLinkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists SKAdNetworkConversionValueSchema on a stream. Properties can have at most one - * SKAdNetworkConversionValueSchema. + * Lists all DisplayVideo360AdvertiserLinks on a property. * *

Sample code: * @@ -4929,32 +5196,29 @@ public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSc * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - * for (SKAdNetworkConversionValueSchema element : - * analyticsAdminServiceClient.listSKAdNetworkConversionValueSchemas(parent).iterateAll()) { + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * for (DisplayVideo360AdvertiserLink element : + * analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. Format: - * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema Example: - * properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema + * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSKAdNetworkConversionValueSchemasPagedResponse - listSKAdNetworkConversionValueSchemas(DataStreamName parent) { - ListSKAdNetworkConversionValueSchemasRequest request = - ListSKAdNetworkConversionValueSchemasRequest.newBuilder() + public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks( + PropertyName parent) { + ListDisplayVideo360AdvertiserLinksRequest request = + ListDisplayVideo360AdvertiserLinksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listSKAdNetworkConversionValueSchemas(request); + return listDisplayVideo360AdvertiserLinks(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists SKAdNetworkConversionValueSchema on a stream. Properties can have at most one - * SKAdNetworkConversionValueSchema. + * Lists all DisplayVideo360AdvertiserLinks on a property. * *

Sample code: * @@ -4966,30 +5230,27 @@ public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSc * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString(); - * for (SKAdNetworkConversionValueSchema element : - * analyticsAdminServiceClient.listSKAdNetworkConversionValueSchemas(parent).iterateAll()) { + * String parent = PropertyName.of("[PROPERTY]").toString(); + * for (DisplayVideo360AdvertiserLink element : + * analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. Format: - * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema Example: - * properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema + * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSKAdNetworkConversionValueSchemasPagedResponse - listSKAdNetworkConversionValueSchemas(String parent) { - ListSKAdNetworkConversionValueSchemasRequest request = - ListSKAdNetworkConversionValueSchemasRequest.newBuilder().setParent(parent).build(); - return listSKAdNetworkConversionValueSchemas(request); + public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks( + String parent) { + ListDisplayVideo360AdvertiserLinksRequest request = + ListDisplayVideo360AdvertiserLinksRequest.newBuilder().setParent(parent).build(); + return listDisplayVideo360AdvertiserLinks(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists SKAdNetworkConversionValueSchema on a stream. Properties can have at most one - * SKAdNetworkConversionValueSchema. + * Lists all DisplayVideo360AdvertiserLinks on a property. * *

Sample code: * @@ -5001,14 +5262,14 @@ public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSc * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListSKAdNetworkConversionValueSchemasRequest request = - * ListSKAdNetworkConversionValueSchemasRequest.newBuilder() - * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * ListDisplayVideo360AdvertiserLinksRequest request = + * ListDisplayVideo360AdvertiserLinksRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * for (SKAdNetworkConversionValueSchema element : - * analyticsAdminServiceClient.listSKAdNetworkConversionValueSchemas(request).iterateAll()) { + * for (DisplayVideo360AdvertiserLink element : + * analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -5017,15 +5278,14 @@ public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSc * @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 ListSKAdNetworkConversionValueSchemasPagedResponse - listSKAdNetworkConversionValueSchemas(ListSKAdNetworkConversionValueSchemasRequest request) { - return listSKAdNetworkConversionValueSchemasPagedCallable().call(request); + public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks( + ListDisplayVideo360AdvertiserLinksRequest request) { + return listDisplayVideo360AdvertiserLinksPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists SKAdNetworkConversionValueSchema on a stream. Properties can have at most one - * SKAdNetworkConversionValueSchema. + * Lists all DisplayVideo360AdvertiserLinks on a property. * *

Sample code: * @@ -5037,34 +5297,79 @@ public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSc * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListSKAdNetworkConversionValueSchemasRequest request = - * ListSKAdNetworkConversionValueSchemasRequest.newBuilder() - * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * ListDisplayVideo360AdvertiserLinksRequest request = + * ListDisplayVideo360AdvertiserLinksRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = + * ApiFuture future = * analyticsAdminServiceClient - * .listSKAdNetworkConversionValueSchemasPagedCallable() + * .listDisplayVideo360AdvertiserLinksPagedCallable() * .futureCall(request); * // Do something. - * for (SKAdNetworkConversionValueSchema element : future.get().iterateAll()) { + * for (DisplayVideo360AdvertiserLink element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ public final UnaryCallable< - ListSKAdNetworkConversionValueSchemasRequest, - ListSKAdNetworkConversionValueSchemasPagedResponse> - listSKAdNetworkConversionValueSchemasPagedCallable() { - return stub.listSKAdNetworkConversionValueSchemasPagedCallable(); + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksPagedResponse> + listDisplayVideo360AdvertiserLinksPagedCallable() { + return stub.listDisplayVideo360AdvertiserLinksPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all DisplayVideo360AdvertiserLinks on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListDisplayVideo360AdvertiserLinksRequest request =
+   *       ListDisplayVideo360AdvertiserLinksRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListDisplayVideo360AdvertiserLinksResponse response =
+   *         analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinksCallable().call(request);
+   *     for (DisplayVideo360AdvertiserLink element :
+   *         response.getDisplayVideo360AdvertiserLinksList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse> + listDisplayVideo360AdvertiserLinksCallable() { + return stub.listDisplayVideo360AdvertiserLinksCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists SKAdNetworkConversionValueSchema on a stream. Properties can have at most one - * SKAdNetworkConversionValueSchema. + * Creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper + * authorization both on the Google Analytics property and on the Display & Video 360 + * advertiser. Users who do not have access to the Display & Video 360 advertiser should + * instead seek to create a DisplayVideo360LinkProposal. * *

Sample code: * @@ -5076,41 +5381,35 @@ public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSc * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListSKAdNetworkConversionValueSchemasRequest request = - * ListSKAdNetworkConversionValueSchemasRequest.newBuilder() - * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * while (true) { - * ListSKAdNetworkConversionValueSchemasResponse response = - * analyticsAdminServiceClient - * .listSKAdNetworkConversionValueSchemasCallable() - * .call(request); - * for (SKAdNetworkConversionValueSchema element : - * response.getSkadnetworkConversionValueSchemasList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = + * DisplayVideo360AdvertiserLink.newBuilder().build(); + * DisplayVideo360AdvertiserLink response = + * analyticsAdminServiceClient.createDisplayVideo360AdvertiserLink( + * parent, displayVideo360AdvertiserLink); * } * } + * + * @param parent Required. Example format: properties/1234 + * @param displayVideo360AdvertiserLink Required. The DisplayVideo360AdvertiserLink to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable< - ListSKAdNetworkConversionValueSchemasRequest, - ListSKAdNetworkConversionValueSchemasResponse> - listSKAdNetworkConversionValueSchemasCallable() { - return stub.listSKAdNetworkConversionValueSchemasCallable(); + public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink( + PropertyName parent, DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink) { + CreateDisplayVideo360AdvertiserLinkRequest request = + CreateDisplayVideo360AdvertiserLinkRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink) + .build(); + return createDisplayVideo360AdvertiserLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches through all changes to an account or its children given the specified set of filters. + * Creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper + * authorization both on the Google Analytics property and on the Display & Video 360 + * advertiser. Users who do not have access to the Display & Video 360 advertiser should + * instead seek to create a DisplayVideo360LinkProposal. * *

Sample code: * @@ -5122,36 +5421,35 @@ public final SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSc * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * 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); - * } + * String parent = PropertyName.of("[PROPERTY]").toString(); + * DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = + * DisplayVideo360AdvertiserLink.newBuilder().build(); + * DisplayVideo360AdvertiserLink response = + * analyticsAdminServiceClient.createDisplayVideo360AdvertiserLink( + * parent, displayVideo360AdvertiserLink); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. Example format: properties/1234 + * @param displayVideo360AdvertiserLink Required. The DisplayVideo360AdvertiserLink to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchChangeHistoryEventsPagedResponse searchChangeHistoryEvents( - SearchChangeHistoryEventsRequest request) { - return searchChangeHistoryEventsPagedCallable().call(request); + public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink( + String parent, DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink) { + CreateDisplayVideo360AdvertiserLinkRequest request = + CreateDisplayVideo360AdvertiserLinkRequest.newBuilder() + .setParent(parent) + .setDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink) + .build(); + return createDisplayVideo360AdvertiserLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches through all changes to an account or its children given the specified set of filters. + * Creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper + * authorization both on the Google Analytics property and on the Display & Video 360 + * advertiser. Users who do not have access to the Display & Video 360 advertiser should + * instead seek to create a DisplayVideo360LinkProposal. * *

Sample code: * @@ -5163,36 +5461,30 @@ public final SearchChangeHistoryEventsPagedResponse searchChangeHistoryEvents( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * 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") + * CreateDisplayVideo360AdvertiserLinkRequest request = + * CreateDisplayVideo360AdvertiserLinkRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.searchChangeHistoryEventsPagedCallable().futureCall(request); - * // Do something. - * for (ChangeHistoryEvent element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * DisplayVideo360AdvertiserLink response = + * analyticsAdminServiceClient.createDisplayVideo360AdvertiserLink(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable< - SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsPagedResponse> - searchChangeHistoryEventsPagedCallable() { - return stub.searchChangeHistoryEventsPagedCallable(); + public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink( + CreateDisplayVideo360AdvertiserLinkRequest request) { + return createDisplayVideo360AdvertiserLinkCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches through all changes to an account or its children given the specified set of filters. + * Creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper + * authorization both on the Google Analytics property and on the Display & Video 360 + * advertiser. Users who do not have access to the Display & Video 360 advertiser should + * instead seek to create a DisplayVideo360LinkProposal. * *

Sample code: * @@ -5204,42 +5496,29 @@ public final SearchChangeHistoryEventsPagedResponse searchChangeHistoryEvents( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * 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") + * CreateDisplayVideo360AdvertiserLinkRequest request = + * CreateDisplayVideo360AdvertiserLinkRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build()) * .build(); - * while (true) { - * SearchChangeHistoryEventsResponse response = - * analyticsAdminServiceClient.searchChangeHistoryEventsCallable().call(request); - * for (ChangeHistoryEvent element : response.getChangeHistoryEventsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * ApiFuture future = + * analyticsAdminServiceClient + * .createDisplayVideo360AdvertiserLinkCallable() + * .futureCall(request); + * // Do something. + * DisplayVideo360AdvertiserLink response = future.get(); * } * } */ - public final UnaryCallable - searchChangeHistoryEventsCallable() { - return stub.searchChangeHistoryEventsCallable(); + public final UnaryCallable< + CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + createDisplayVideo360AdvertiserLinkCallable() { + return stub.createDisplayVideo360AdvertiserLinkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for Google Signals settings for a property. + * Deletes a DisplayVideo360AdvertiserLink on a property. * *

Sample code: * @@ -5251,26 +5530,27 @@ public final SearchChangeHistoryEventsPagedResponse searchChangeHistoryEvents( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GoogleSignalsSettingsName name = GoogleSignalsSettingsName.of("[PROPERTY]"); - * GoogleSignalsSettings response = analyticsAdminServiceClient.getGoogleSignalsSettings(name); + * DisplayVideo360AdvertiserLinkName name = + * DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); + * analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLink(name); * } * } * - * @param name Required. The name of the google signals settings to retrieve. Format: - * properties/{property}/googleSignalsSettings + * @param name Required. The name of the DisplayVideo360AdvertiserLink to delete. Example format: + * properties/1234/displayVideo360AdvertiserLinks/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GoogleSignalsSettings getGoogleSignalsSettings(GoogleSignalsSettingsName name) { - GetGoogleSignalsSettingsRequest request = - GetGoogleSignalsSettingsRequest.newBuilder() + public final void deleteDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLinkName name) { + DeleteDisplayVideo360AdvertiserLinkRequest request = + DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); - return getGoogleSignalsSettings(request); + deleteDisplayVideo360AdvertiserLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for Google Signals settings for a property. + * Deletes a DisplayVideo360AdvertiserLink on a property. * *

Sample code: * @@ -5282,24 +5562,26 @@ public final GoogleSignalsSettings getGoogleSignalsSettings(GoogleSignalsSetting * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = GoogleSignalsSettingsName.of("[PROPERTY]").toString(); - * GoogleSignalsSettings response = analyticsAdminServiceClient.getGoogleSignalsSettings(name); + * String name = + * DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") + * .toString(); + * analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLink(name); * } * } * - * @param name Required. The name of the google signals settings to retrieve. Format: - * properties/{property}/googleSignalsSettings + * @param name Required. The name of the DisplayVideo360AdvertiserLink to delete. Example format: + * properties/1234/displayVideo360AdvertiserLinks/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GoogleSignalsSettings getGoogleSignalsSettings(String name) { - GetGoogleSignalsSettingsRequest request = - GetGoogleSignalsSettingsRequest.newBuilder().setName(name).build(); - return getGoogleSignalsSettings(request); + public final void deleteDisplayVideo360AdvertiserLink(String name) { + DeleteDisplayVideo360AdvertiserLinkRequest request = + DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder().setName(name).build(); + deleteDisplayVideo360AdvertiserLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for Google Signals settings for a property. + * Deletes a DisplayVideo360AdvertiserLink on a property. * *

Sample code: * @@ -5311,26 +5593,28 @@ public final GoogleSignalsSettings getGoogleSignalsSettings(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetGoogleSignalsSettingsRequest request = - * GetGoogleSignalsSettingsRequest.newBuilder() - * .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) + * DeleteDisplayVideo360AdvertiserLinkRequest request = + * DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder() + * .setName( + * DisplayVideo360AdvertiserLinkName.of( + * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") + * .toString()) * .build(); - * GoogleSignalsSettings response = - * analyticsAdminServiceClient.getGoogleSignalsSettings(request); + * analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLink(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GoogleSignalsSettings getGoogleSignalsSettings( - GetGoogleSignalsSettingsRequest request) { - return getGoogleSignalsSettingsCallable().call(request); + public final void deleteDisplayVideo360AdvertiserLink( + DeleteDisplayVideo360AdvertiserLinkRequest request) { + deleteDisplayVideo360AdvertiserLinkCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for Google Signals settings for a property. + * Deletes a DisplayVideo360AdvertiserLink on a property. * *

Sample code: * @@ -5342,25 +5626,30 @@ public final GoogleSignalsSettings getGoogleSignalsSettings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetGoogleSignalsSettingsRequest request = - * GetGoogleSignalsSettingsRequest.newBuilder() - * .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) + * DeleteDisplayVideo360AdvertiserLinkRequest request = + * DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder() + * .setName( + * DisplayVideo360AdvertiserLinkName.of( + * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") + * .toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.getGoogleSignalsSettingsCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient + * .deleteDisplayVideo360AdvertiserLinkCallable() + * .futureCall(request); * // Do something. - * GoogleSignalsSettings response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable - getGoogleSignalsSettingsCallable() { - return stub.getGoogleSignalsSettingsCallable(); + public final UnaryCallable + deleteDisplayVideo360AdvertiserLinkCallable() { + return stub.deleteDisplayVideo360AdvertiserLinkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates Google Signals settings for a property. + * Updates a DisplayVideo360AdvertiserLink on a property. * *

Sample code: * @@ -5372,34 +5661,34 @@ public final GoogleSignalsSettings getGoogleSignalsSettings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GoogleSignalsSettings googleSignalsSettings = GoogleSignalsSettings.newBuilder().build(); + * DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = + * DisplayVideo360AdvertiserLink.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); - * GoogleSignalsSettings response = - * analyticsAdminServiceClient.updateGoogleSignalsSettings( - * googleSignalsSettings, updateMask); + * DisplayVideo360AdvertiserLink response = + * analyticsAdminServiceClient.updateDisplayVideo360AdvertiserLink( + * displayVideo360AdvertiserLink, 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. + * @param displayVideo360AdvertiserLink The DisplayVideo360AdvertiserLink to update + * @param updateMask Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to match all + * fields. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GoogleSignalsSettings updateGoogleSignalsSettings( - GoogleSignalsSettings googleSignalsSettings, FieldMask updateMask) { - UpdateGoogleSignalsSettingsRequest request = - UpdateGoogleSignalsSettingsRequest.newBuilder() - .setGoogleSignalsSettings(googleSignalsSettings) + public final DisplayVideo360AdvertiserLink updateDisplayVideo360AdvertiserLink( + DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink, FieldMask updateMask) { + UpdateDisplayVideo360AdvertiserLinkRequest request = + UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder() + .setDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink) .setUpdateMask(updateMask) .build(); - return updateGoogleSignalsSettings(request); + return updateDisplayVideo360AdvertiserLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates Google Signals settings for a property. + * Updates a DisplayVideo360AdvertiserLink on a property. * *

Sample code: * @@ -5411,27 +5700,27 @@ public final GoogleSignalsSettings updateGoogleSignalsSettings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateGoogleSignalsSettingsRequest request = - * UpdateGoogleSignalsSettingsRequest.newBuilder() - * .setGoogleSignalsSettings(GoogleSignalsSettings.newBuilder().build()) + * UpdateDisplayVideo360AdvertiserLinkRequest request = + * UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder() + * .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * GoogleSignalsSettings response = - * analyticsAdminServiceClient.updateGoogleSignalsSettings(request); + * DisplayVideo360AdvertiserLink response = + * analyticsAdminServiceClient.updateDisplayVideo360AdvertiserLink(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final GoogleSignalsSettings updateGoogleSignalsSettings( - UpdateGoogleSignalsSettingsRequest request) { - return updateGoogleSignalsSettingsCallable().call(request); + public final DisplayVideo360AdvertiserLink updateDisplayVideo360AdvertiserLink( + UpdateDisplayVideo360AdvertiserLinkRequest request) { + return updateDisplayVideo360AdvertiserLinkCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates Google Signals settings for a property. + * Updates a DisplayVideo360AdvertiserLink on a property. * *

Sample code: * @@ -5443,26 +5732,29 @@ public final GoogleSignalsSettings updateGoogleSignalsSettings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateGoogleSignalsSettingsRequest request = - * UpdateGoogleSignalsSettingsRequest.newBuilder() - * .setGoogleSignalsSettings(GoogleSignalsSettings.newBuilder().build()) + * UpdateDisplayVideo360AdvertiserLinkRequest request = + * UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder() + * .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.updateGoogleSignalsSettingsCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient + * .updateDisplayVideo360AdvertiserLinkCallable() + * .futureCall(request); * // Do something. - * GoogleSignalsSettings response = future.get(); + * DisplayVideo360AdvertiserLink response = future.get(); * } * } */ - public final UnaryCallable - updateGoogleSignalsSettingsCallable() { - return stub.updateGoogleSignalsSettingsCallable(); + public final UnaryCallable< + UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + updateDisplayVideo360AdvertiserLinkCallable() { + return stub.updateDisplayVideo360AdvertiserLinkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a conversion event with the specified attributes. + * Lookup for a single DisplayVideo360AdvertiserLinkProposal. * *

Sample code: * @@ -5474,31 +5766,30 @@ public final GoogleSignalsSettings updateGoogleSignalsSettings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - * ConversionEvent response = - * analyticsAdminServiceClient.createConversionEvent(parent, conversionEvent); + * DisplayVideo360AdvertiserLinkProposalName name = + * DisplayVideo360AdvertiserLinkProposalName.of( + * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); + * DisplayVideo360AdvertiserLinkProposal response = + * analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(name); * } * } * - * @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. + * @param name Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. Example + * format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConversionEvent createConversionEvent( - PropertyName parent, ConversionEvent conversionEvent) { - CreateConversionEventRequest request = - CreateConversionEventRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setConversionEvent(conversionEvent) + public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal( + DisplayVideo360AdvertiserLinkProposalName name) { + GetDisplayVideo360AdvertiserLinkProposalRequest request = + GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + .setName(name == null ? null : name.toString()) .build(); - return createConversionEvent(request); + return getDisplayVideo360AdvertiserLinkProposal(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a conversion event with the specified attributes. + * Lookup for a single DisplayVideo360AdvertiserLinkProposal. * *

Sample code: * @@ -5510,31 +5801,29 @@ public final ConversionEvent createConversionEvent( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - * ConversionEvent response = - * analyticsAdminServiceClient.createConversionEvent(parent, conversionEvent); + * String name = + * DisplayVideo360AdvertiserLinkProposalName.of( + * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + * .toString(); + * DisplayVideo360AdvertiserLinkProposal response = + * analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(name); * } * } * - * @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. + * @param name Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. Example + * format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConversionEvent createConversionEvent( - String parent, ConversionEvent conversionEvent) { - CreateConversionEventRequest request = - CreateConversionEventRequest.newBuilder() - .setParent(parent) - .setConversionEvent(conversionEvent) - .build(); - return createConversionEvent(request); + public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal( + String name) { + GetDisplayVideo360AdvertiserLinkProposalRequest request = + GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder().setName(name).build(); + return getDisplayVideo360AdvertiserLinkProposal(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a conversion event with the specified attributes. + * Lookup for a single DisplayVideo360AdvertiserLinkProposal. * *

Sample code: * @@ -5546,25 +5835,29 @@ public final ConversionEvent createConversionEvent( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateConversionEventRequest request = - * CreateConversionEventRequest.newBuilder() - * .setConversionEvent(ConversionEvent.newBuilder().build()) - * .setParent(PropertyName.of("[PROPERTY]").toString()) + * GetDisplayVideo360AdvertiserLinkProposalRequest request = + * GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + * .setName( + * DisplayVideo360AdvertiserLinkProposalName.of( + * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + * .toString()) * .build(); - * ConversionEvent response = analyticsAdminServiceClient.createConversionEvent(request); + * DisplayVideo360AdvertiserLinkProposal response = + * analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConversionEvent createConversionEvent(CreateConversionEventRequest request) { - return createConversionEventCallable().call(request); + public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal( + GetDisplayVideo360AdvertiserLinkProposalRequest request) { + return getDisplayVideo360AdvertiserLinkProposalCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a conversion event with the specified attributes. + * Lookup for a single DisplayVideo360AdvertiserLinkProposal. * *

Sample code: * @@ -5576,26 +5869,31 @@ public final ConversionEvent createConversionEvent(CreateConversionEventRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateConversionEventRequest request = - * CreateConversionEventRequest.newBuilder() - * .setConversionEvent(ConversionEvent.newBuilder().build()) - * .setParent(PropertyName.of("[PROPERTY]").toString()) + * GetDisplayVideo360AdvertiserLinkProposalRequest request = + * GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + * .setName( + * DisplayVideo360AdvertiserLinkProposalName.of( + * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + * .toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.createConversionEventCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient + * .getDisplayVideo360AdvertiserLinkProposalCallable() + * .futureCall(request); * // Do something. - * ConversionEvent response = future.get(); + * DisplayVideo360AdvertiserLinkProposal response = future.get(); * } * } */ - public final UnaryCallable - createConversionEventCallable() { - return stub.createConversionEventCallable(); + public final UnaryCallable< + GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + getDisplayVideo360AdvertiserLinkProposalCallable() { + return stub.getDisplayVideo360AdvertiserLinkProposalCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a conversion event with the specified attributes. + * Lists DisplayVideo360AdvertiserLinkProposals on a property. * *

Sample code: * @@ -5607,33 +5905,65 @@ public final ConversionEvent createConversionEvent(CreateConversionEventRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * ConversionEvent response = - * analyticsAdminServiceClient.updateConversionEvent(conversionEvent, updateMask); + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * for (DisplayVideo360AdvertiserLinkProposal element : + * analyticsAdminServiceClient + * .listDisplayVideo360AdvertiserLinkProposals(parent) + * .iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param conversionEvent Required. The conversion event 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. + * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConversionEvent updateConversionEvent( - ConversionEvent conversionEvent, FieldMask updateMask) { - UpdateConversionEventRequest request = - UpdateConversionEventRequest.newBuilder() - .setConversionEvent(conversionEvent) - .setUpdateMask(updateMask) + public final ListDisplayVideo360AdvertiserLinkProposalsPagedResponse + listDisplayVideo360AdvertiserLinkProposals(PropertyName parent) { + ListDisplayVideo360AdvertiserLinkProposalsRequest request = + ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) .build(); - return updateConversionEvent(request); + return listDisplayVideo360AdvertiserLinkProposals(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DisplayVideo360AdvertiserLinkProposals on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
+   *   for (DisplayVideo360AdvertiserLinkProposal element :
+   *       analyticsAdminServiceClient
+   *           .listDisplayVideo360AdvertiserLinkProposals(parent)
+   *           .iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Example format: properties/1234 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDisplayVideo360AdvertiserLinkProposalsPagedResponse + listDisplayVideo360AdvertiserLinkProposals(String parent) { + ListDisplayVideo360AdvertiserLinkProposalsRequest request = + ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder().setParent(parent).build(); + return listDisplayVideo360AdvertiserLinkProposals(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a conversion event with the specified attributes. + * Lists DisplayVideo360AdvertiserLinkProposals on a property. * *

Sample code: * @@ -5645,25 +5975,33 @@ public final ConversionEvent updateConversionEvent( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateConversionEventRequest request = - * UpdateConversionEventRequest.newBuilder() - * .setConversionEvent(ConversionEvent.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * ListDisplayVideo360AdvertiserLinkProposalsRequest request = + * ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ConversionEvent response = analyticsAdminServiceClient.updateConversionEvent(request); + * for (DisplayVideo360AdvertiserLinkProposal element : + * analyticsAdminServiceClient + * .listDisplayVideo360AdvertiserLinkProposals(request) + * .iterateAll()) { + * // doThingsWith(element); + * } * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConversionEvent updateConversionEvent(UpdateConversionEventRequest request) { - return updateConversionEventCallable().call(request); + public final ListDisplayVideo360AdvertiserLinkProposalsPagedResponse + listDisplayVideo360AdvertiserLinkProposals( + ListDisplayVideo360AdvertiserLinkProposalsRequest request) { + return listDisplayVideo360AdvertiserLinkProposalsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a conversion event with the specified attributes. + * Lists DisplayVideo360AdvertiserLinkProposals on a property. * *

Sample code: * @@ -5675,26 +6013,33 @@ public final ConversionEvent updateConversionEvent(UpdateConversionEventRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateConversionEventRequest request = - * UpdateConversionEventRequest.newBuilder() - * .setConversionEvent(ConversionEvent.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * ListDisplayVideo360AdvertiserLinkProposalsRequest request = + * ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.updateConversionEventCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient + * .listDisplayVideo360AdvertiserLinkProposalsPagedCallable() + * .futureCall(request); * // Do something. - * ConversionEvent response = future.get(); + * for (DisplayVideo360AdvertiserLinkProposal element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final UnaryCallable - updateConversionEventCallable() { - return stub.updateConversionEventCallable(); + public final UnaryCallable< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> + listDisplayVideo360AdvertiserLinkProposalsPagedCallable() { + return stub.listDisplayVideo360AdvertiserLinkProposalsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieve a single conversion event. + * Lists DisplayVideo360AdvertiserLinkProposals on a property. * *

Sample code: * @@ -5706,27 +6051,41 @@ public final ConversionEvent updateConversionEvent(UpdateConversionEventRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); - * ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(name); + * ListDisplayVideo360AdvertiserLinkProposalsRequest request = + * ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListDisplayVideo360AdvertiserLinkProposalsResponse response = + * analyticsAdminServiceClient + * .listDisplayVideo360AdvertiserLinkProposalsCallable() + * .call(request); + * for (DisplayVideo360AdvertiserLinkProposal element : + * response.getDisplayVideo360AdvertiserLinkProposalsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @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); + public final UnaryCallable< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse> + listDisplayVideo360AdvertiserLinkProposalsCallable() { + return stub.listDisplayVideo360AdvertiserLinkProposalsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieve a single conversion event. + * Creates a DisplayVideo360AdvertiserLinkProposal. * *

Sample code: * @@ -5738,25 +6097,34 @@ public final ConversionEvent getConversionEvent(ConversionEventName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString(); - * ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(name); + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = + * DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); + * DisplayVideo360AdvertiserLinkProposal response = + * analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal( + * parent, displayVideo360AdvertiserLinkProposal); * } * } * - * @param name Required. The resource name of the conversion event to retrieve. Format: - * properties/{property}/conversionEvents/{conversion_event} Example: - * "properties/123/conversionEvents/456" + * @param parent Required. Example format: properties/1234 + * @param displayVideo360AdvertiserLinkProposal Required. The + * DisplayVideo360AdvertiserLinkProposal to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConversionEvent getConversionEvent(String name) { - GetConversionEventRequest request = - GetConversionEventRequest.newBuilder().setName(name).build(); - return getConversionEvent(request); + public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal( + PropertyName parent, + DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal) { + CreateDisplayVideo360AdvertiserLinkProposalRequest request = + CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDisplayVideo360AdvertiserLinkProposal(displayVideo360AdvertiserLinkProposal) + .build(); + return createDisplayVideo360AdvertiserLinkProposal(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieve a single conversion event. + * Creates a DisplayVideo360AdvertiserLinkProposal. * *

Sample code: * @@ -5768,24 +6136,33 @@ public final ConversionEvent getConversionEvent(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetConversionEventRequest request = - * GetConversionEventRequest.newBuilder() - * .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - * .build(); - * ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(request); + * String parent = PropertyName.of("[PROPERTY]").toString(); + * DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = + * DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); + * DisplayVideo360AdvertiserLinkProposal response = + * analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal( + * parent, displayVideo360AdvertiserLinkProposal); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. Example format: properties/1234 + * @param displayVideo360AdvertiserLinkProposal Required. The + * DisplayVideo360AdvertiserLinkProposal to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ConversionEvent getConversionEvent(GetConversionEventRequest request) { - return getConversionEventCallable().call(request); + public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal( + String parent, DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal) { + CreateDisplayVideo360AdvertiserLinkProposalRequest request = + CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + .setParent(parent) + .setDisplayVideo360AdvertiserLinkProposal(displayVideo360AdvertiserLinkProposal) + .build(); + return createDisplayVideo360AdvertiserLinkProposal(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Retrieve a single conversion event. + * Creates a DisplayVideo360AdvertiserLinkProposal. * *

Sample code: * @@ -5797,57 +6174,28 @@ public final ConversionEvent getConversionEvent(GetConversionEventRequest reques * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetConversionEventRequest request = - * GetConversionEventRequest.newBuilder() - * .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) + * CreateDisplayVideo360AdvertiserLinkProposalRequest request = + * CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setDisplayVideo360AdvertiserLinkProposal( + * DisplayVideo360AdvertiserLinkProposal.newBuilder().build()) * .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
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]");
-   *   analyticsAdminServiceClient.deleteConversionEvent(name);
+   *   DisplayVideo360AdvertiserLinkProposal response =
+   *       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal(request);
    * }
    * }
* - * @param name Required. The resource name of the conversion event to delete. Format: - * properties/{property}/conversionEvents/{conversion_event} Example: - * "properties/123/conversionEvents/456" + * @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(ConversionEventName name) { - DeleteConversionEventRequest request = - DeleteConversionEventRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteConversionEvent(request); + public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal( + CreateDisplayVideo360AdvertiserLinkProposalRequest request) { + return createDisplayVideo360AdvertiserLinkProposalCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a conversion event in a property. + * Creates a DisplayVideo360AdvertiserLinkProposal. * *

Sample code: * @@ -5859,25 +6207,31 @@ public final void deleteConversionEvent(ConversionEventName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString(); - * analyticsAdminServiceClient.deleteConversionEvent(name); + * CreateDisplayVideo360AdvertiserLinkProposalRequest request = + * CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setDisplayVideo360AdvertiserLinkProposal( + * DisplayVideo360AdvertiserLinkProposal.newBuilder().build()) + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient + * .createDisplayVideo360AdvertiserLinkProposalCallable() + * .futureCall(request); + * // Do something. + * DisplayVideo360AdvertiserLinkProposal response = future.get(); * } * } - * - * @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); + public final UnaryCallable< + CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + createDisplayVideo360AdvertiserLinkProposalCallable() { + return stub.createDisplayVideo360AdvertiserLinkProposalCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a conversion event in a property. + * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on + * cancelled proposals. * *

Sample code: * @@ -5889,24 +6243,30 @@ public final void deleteConversionEvent(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteConversionEventRequest request = - * DeleteConversionEventRequest.newBuilder() - * .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - * .build(); - * analyticsAdminServiceClient.deleteConversionEvent(request); + * DisplayVideo360AdvertiserLinkProposalName name = + * DisplayVideo360AdvertiserLinkProposalName.of( + * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); + * analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLinkProposal(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. Example + * format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteConversionEvent(DeleteConversionEventRequest request) { - deleteConversionEventCallable().call(request); + public final void deleteDisplayVideo360AdvertiserLinkProposal( + DisplayVideo360AdvertiserLinkProposalName name) { + DeleteDisplayVideo360AdvertiserLinkProposalRequest request = + DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteDisplayVideo360AdvertiserLinkProposal(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a conversion event in a property. + * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on + * cancelled proposals. * *

Sample code: * @@ -5918,26 +6278,28 @@ public final void deleteConversionEvent(DeleteConversionEventRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * 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(); + * String name = + * DisplayVideo360AdvertiserLinkProposalName.of( + * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + * .toString(); + * analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLinkProposal(name); * } * } + * + * @param name Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. Example + * format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable deleteConversionEventCallable() { - return stub.deleteConversionEventCallable(); + public final void deleteDisplayVideo360AdvertiserLinkProposal(String name) { + DeleteDisplayVideo360AdvertiserLinkProposalRequest request = + DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder().setName(name).build(); + deleteDisplayVideo360AdvertiserLinkProposal(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. + * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on + * cancelled proposals. * *

Sample code: * @@ -5949,30 +6311,29 @@ public final UnaryCallable deleteConversion * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * for (ConversionEvent element : - * analyticsAdminServiceClient.listConversionEvents(parent).iterateAll()) { - * // doThingsWith(element); - * } + * DeleteDisplayVideo360AdvertiserLinkProposalRequest request = + * DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + * .setName( + * DisplayVideo360AdvertiserLinkProposalName.of( + * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + * .toString()) + * .build(); + * analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLinkProposal(request); * } * } * - * @param parent Required. The resource name of the parent property. Example: 'properties/123' + * @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(PropertyName parent) { - ListConversionEventsRequest request = - ListConversionEventsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listConversionEvents(request); + public final void deleteDisplayVideo360AdvertiserLinkProposal( + DeleteDisplayVideo360AdvertiserLinkProposalRequest request) { + deleteDisplayVideo360AdvertiserLinkProposalCallable().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. + * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on + * cancelled proposals. * *

Sample code: * @@ -5984,28 +6345,31 @@ public final ListConversionEventsPagedResponse listConversionEvents(PropertyName * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * for (ConversionEvent element : - * analyticsAdminServiceClient.listConversionEvents(parent).iterateAll()) { - * // doThingsWith(element); - * } + * DeleteDisplayVideo360AdvertiserLinkProposalRequest request = + * DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + * .setName( + * DisplayVideo360AdvertiserLinkProposalName.of( + * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + * .toString()) + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient + * .deleteDisplayVideo360AdvertiserLinkProposalCallable() + * .futureCall(request); + * // Do something. + * future.get(); * } * } - * - * @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); + public final UnaryCallable + deleteDisplayVideo360AdvertiserLinkProposalCallable() { + return stub.deleteDisplayVideo360AdvertiserLinkProposalCallable(); } // 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. + * Approves a DisplayVideo360AdvertiserLinkProposal. The DisplayVideo360AdvertiserLinkProposal + * will be deleted and a new DisplayVideo360AdvertiserLink will be created. * *

Sample code: * @@ -6017,32 +6381,31 @@ public final ListConversionEventsPagedResponse listConversionEvents(String paren * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListConversionEventsRequest request = - * ListConversionEventsRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * ApproveDisplayVideo360AdvertiserLinkProposalRequest request = + * ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + * .setName( + * DisplayVideo360AdvertiserLinkProposalName.of( + * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + * .toString()) * .build(); - * for (ConversionEvent element : - * analyticsAdminServiceClient.listConversionEvents(request).iterateAll()) { - * // doThingsWith(element); - * } + * ApproveDisplayVideo360AdvertiserLinkProposalResponse response = + * analyticsAdminServiceClient.approveDisplayVideo360AdvertiserLinkProposal(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConversionEventsPagedResponse listConversionEvents( - ListConversionEventsRequest request) { - return listConversionEventsPagedCallable().call(request); + public final ApproveDisplayVideo360AdvertiserLinkProposalResponse + approveDisplayVideo360AdvertiserLinkProposal( + ApproveDisplayVideo360AdvertiserLinkProposalRequest request) { + return approveDisplayVideo360AdvertiserLinkProposalCallable().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. + * Approves a DisplayVideo360AdvertiserLinkProposal. The DisplayVideo360AdvertiserLinkProposal + * will be deleted and a new DisplayVideo360AdvertiserLink will be created. * *

Sample code: * @@ -6054,31 +6417,34 @@ public final ListConversionEventsPagedResponse listConversionEvents( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListConversionEventsRequest request = - * ListConversionEventsRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * ApproveDisplayVideo360AdvertiserLinkProposalRequest request = + * ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + * .setName( + * DisplayVideo360AdvertiserLinkProposalName.of( + * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + * .toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.listConversionEventsPagedCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient + * .approveDisplayVideo360AdvertiserLinkProposalCallable() + * .futureCall(request); * // Do something. - * for (ConversionEvent element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * ApproveDisplayVideo360AdvertiserLinkProposalResponse response = future.get(); * } * } */ - public final UnaryCallable - listConversionEventsPagedCallable() { - return stub.listConversionEventsPagedCallable(); + public final UnaryCallable< + ApproveDisplayVideo360AdvertiserLinkProposalRequest, + ApproveDisplayVideo360AdvertiserLinkProposalResponse> + approveDisplayVideo360AdvertiserLinkProposalCallable() { + return stub.approveDisplayVideo360AdvertiserLinkProposalCallable(); } // 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. + * Cancels a DisplayVideo360AdvertiserLinkProposal. Cancelling can mean either: - Declining a + * proposal initiated from Display & Video 360 - Withdrawing a proposal initiated from Google + * Analytics After being cancelled, a proposal will eventually be deleted automatically. * *

Sample code: * @@ -6090,36 +6456,31 @@ public final ListConversionEventsPagedResponse listConversionEvents( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListConversionEventsRequest request = - * ListConversionEventsRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * CancelDisplayVideo360AdvertiserLinkProposalRequest request = + * CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + * .setName( + * DisplayVideo360AdvertiserLinkProposalName.of( + * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + * .toString()) * .build(); - * while (true) { - * ListConversionEventsResponse response = - * analyticsAdminServiceClient.listConversionEventsCallable().call(request); - * for (ConversionEvent element : response.getConversionEventsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * DisplayVideo360AdvertiserLinkProposal response = + * analyticsAdminServiceClient.cancelDisplayVideo360AdvertiserLinkProposal(request); * } * } + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listConversionEventsCallable() { - return stub.listConversionEventsCallable(); + public final DisplayVideo360AdvertiserLinkProposal cancelDisplayVideo360AdvertiserLinkProposal( + CancelDisplayVideo360AdvertiserLinkProposalRequest request) { + return cancelDisplayVideo360AdvertiserLinkProposalCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Look up a single DisplayVideo360AdvertiserLink + * Cancels a DisplayVideo360AdvertiserLinkProposal. Cancelling can mean either: - Declining a + * proposal initiated from Display & Video 360 - Withdrawing a proposal initiated from Google + * Analytics After being cancelled, a proposal will eventually be deleted automatically. * *

Sample code: * @@ -6131,29 +6492,31 @@ public final ListConversionEventsPagedResponse listConversionEvents( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DisplayVideo360AdvertiserLinkName name = - * DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); - * DisplayVideo360AdvertiserLink response = - * analyticsAdminServiceClient.getDisplayVideo360AdvertiserLink(name); + * CancelDisplayVideo360AdvertiserLinkProposalRequest request = + * CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + * .setName( + * DisplayVideo360AdvertiserLinkProposalName.of( + * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + * .toString()) + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient + * .cancelDisplayVideo360AdvertiserLinkProposalCallable() + * .futureCall(request); + * // Do something. + * DisplayVideo360AdvertiserLinkProposal response = future.get(); * } * } - * - * @param name Required. The name of the DisplayVideo360AdvertiserLink to get. Example format: - * properties/1234/displayVideo360AdvertiserLink/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink( - DisplayVideo360AdvertiserLinkName name) { - GetDisplayVideo360AdvertiserLinkRequest request = - GetDisplayVideo360AdvertiserLinkRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getDisplayVideo360AdvertiserLink(request); + public final UnaryCallable< + CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + cancelDisplayVideo360AdvertiserLinkProposalCallable() { + return stub.cancelDisplayVideo360AdvertiserLinkProposalCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Look up a single DisplayVideo360AdvertiserLink + * Creates a CustomDimension. * *

Sample code: * @@ -6165,27 +6528,30 @@ public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = - * DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - * .toString(); - * DisplayVideo360AdvertiserLink response = - * analyticsAdminServiceClient.getDisplayVideo360AdvertiserLink(name); + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * CustomDimension customDimension = CustomDimension.newBuilder().build(); + * CustomDimension response = + * analyticsAdminServiceClient.createCustomDimension(parent, customDimension); * } * } * - * @param name Required. The name of the DisplayVideo360AdvertiserLink to get. Example format: - * properties/1234/displayVideo360AdvertiserLink/5678 + * @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 DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink(String name) { - GetDisplayVideo360AdvertiserLinkRequest request = - GetDisplayVideo360AdvertiserLinkRequest.newBuilder().setName(name).build(); - return getDisplayVideo360AdvertiserLink(request); + 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. /** - * Look up a single DisplayVideo360AdvertiserLink + * Creates a CustomDimension. * *

Sample code: * @@ -6197,29 +6563,30 @@ public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink(Stri * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetDisplayVideo360AdvertiserLinkRequest request = - * GetDisplayVideo360AdvertiserLinkRequest.newBuilder() - * .setName( - * DisplayVideo360AdvertiserLinkName.of( - * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - * .toString()) - * .build(); - * DisplayVideo360AdvertiserLink response = - * analyticsAdminServiceClient.getDisplayVideo360AdvertiserLink(request); + * String parent = PropertyName.of("[PROPERTY]").toString(); + * CustomDimension customDimension = CustomDimension.newBuilder().build(); + * CustomDimension response = + * analyticsAdminServiceClient.createCustomDimension(parent, customDimension); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @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 DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink( - GetDisplayVideo360AdvertiserLinkRequest request) { - return getDisplayVideo360AdvertiserLinkCallable().call(request); + 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. /** - * Look up a single DisplayVideo360AdvertiserLink + * Creates a CustomDimension. * *

Sample code: * @@ -6231,30 +6598,25 @@ public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetDisplayVideo360AdvertiserLinkRequest request = - * GetDisplayVideo360AdvertiserLinkRequest.newBuilder() - * .setName( - * DisplayVideo360AdvertiserLinkName.of( - * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - * .toString()) + * CreateCustomDimensionRequest request = + * CreateCustomDimensionRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setCustomDimension(CustomDimension.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient - * .getDisplayVideo360AdvertiserLinkCallable() - * .futureCall(request); - * // Do something. - * DisplayVideo360AdvertiserLink response = future.get(); + * 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 UnaryCallable - getDisplayVideo360AdvertiserLinkCallable() { - return stub.getDisplayVideo360AdvertiserLinkCallable(); + public final CustomDimension createCustomDimension(CreateCustomDimensionRequest request) { + return createCustomDimensionCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all DisplayVideo360AdvertiserLinks on a property. + * Creates a CustomDimension. * *

Sample code: * @@ -6266,29 +6628,26 @@ public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * for (DisplayVideo360AdvertiserLink element : - * analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(parent).iterateAll()) { - * // doThingsWith(element); - * } + * CreateCustomDimensionRequest request = + * CreateCustomDimensionRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setCustomDimension(CustomDimension.newBuilder().build()) + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient.createCustomDimensionCallable().futureCall(request); + * // Do something. + * CustomDimension response = future.get(); * } * } - * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks( - PropertyName parent) { - ListDisplayVideo360AdvertiserLinksRequest request = - ListDisplayVideo360AdvertiserLinksRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listDisplayVideo360AdvertiserLinks(request); + public final UnaryCallable + createCustomDimensionCallable() { + return stub.createCustomDimensionCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all DisplayVideo360AdvertiserLinks on a property. + * Updates a CustomDimension on a property. * *

Sample code: * @@ -6300,27 +6659,32 @@ public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * for (DisplayVideo360AdvertiserLink element : - * analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(parent).iterateAll()) { - * // doThingsWith(element); - * } + * CustomDimension customDimension = CustomDimension.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * CustomDimension response = + * analyticsAdminServiceClient.updateCustomDimension(customDimension, updateMask); * } * } * - * @param parent Required. Example format: properties/1234 + * @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 ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks( - String parent) { - ListDisplayVideo360AdvertiserLinksRequest request = - ListDisplayVideo360AdvertiserLinksRequest.newBuilder().setParent(parent).build(); - return listDisplayVideo360AdvertiserLinks(request); + 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. /** - * Lists all DisplayVideo360AdvertiserLinks on a property. + * Updates a CustomDimension on a property. * *

Sample code: * @@ -6332,30 +6696,25 @@ public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListDisplayVideo360AdvertiserLinksRequest request = - * ListDisplayVideo360AdvertiserLinksRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * UpdateCustomDimensionRequest request = + * UpdateCustomDimensionRequest.newBuilder() + * .setCustomDimension(CustomDimension.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * for (DisplayVideo360AdvertiserLink element : - * analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(request).iterateAll()) { - * // doThingsWith(element); - * } + * 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 ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks( - ListDisplayVideo360AdvertiserLinksRequest request) { - return listDisplayVideo360AdvertiserLinksPagedCallable().call(request); + public final CustomDimension updateCustomDimension(UpdateCustomDimensionRequest request) { + return updateCustomDimensionCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all DisplayVideo360AdvertiserLinks on a property. + * Updates a CustomDimension on a property. * *

Sample code: * @@ -6367,33 +6726,26 @@ public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListDisplayVideo360AdvertiserLinksRequest request = - * ListDisplayVideo360AdvertiserLinksRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * UpdateCustomDimensionRequest request = + * UpdateCustomDimensionRequest.newBuilder() + * .setCustomDimension(CustomDimension.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient - * .listDisplayVideo360AdvertiserLinksPagedCallable() - * .futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.updateCustomDimensionCallable().futureCall(request); * // Do something. - * for (DisplayVideo360AdvertiserLink element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * CustomDimension response = future.get(); * } * } */ - public final UnaryCallable< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksPagedResponse> - listDisplayVideo360AdvertiserLinksPagedCallable() { - return stub.listDisplayVideo360AdvertiserLinksPagedCallable(); + public final UnaryCallable + updateCustomDimensionCallable() { + return stub.updateCustomDimensionCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all DisplayVideo360AdvertiserLinks on a property. + * Lists CustomDimensions on a property. * *

Sample code: * @@ -6405,41 +6757,28 @@ public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListDisplayVideo360AdvertiserLinksRequest request = - * ListDisplayVideo360AdvertiserLinksRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * while (true) { - * ListDisplayVideo360AdvertiserLinksResponse response = - * analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinksCallable().call(request); - * for (DisplayVideo360AdvertiserLink element : - * response.getDisplayVideo360AdvertiserLinksList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } + * 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 UnaryCallable< - ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse> - listDisplayVideo360AdvertiserLinksCallable() { - return stub.listDisplayVideo360AdvertiserLinksCallable(); + 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. /** - * Creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper - * authorization both on the Google Analytics property and on the Display & Video 360 - * advertiser. Users who do not have access to the Display & Video 360 advertiser should - * instead seek to create a DisplayVideo360LinkProposal. + * Lists CustomDimensions on a property. * *

Sample code: * @@ -6451,35 +6790,26 @@ public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - * DisplayVideo360AdvertiserLink.newBuilder().build(); - * DisplayVideo360AdvertiserLink response = - * analyticsAdminServiceClient.createDisplayVideo360AdvertiserLink( - * parent, displayVideo360AdvertiserLink); + * String parent = PropertyName.of("[PROPERTY]").toString(); + * for (CustomDimension element : + * analyticsAdminServiceClient.listCustomDimensions(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * * @param parent Required. Example format: properties/1234 - * @param displayVideo360AdvertiserLink Required. The DisplayVideo360AdvertiserLink to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink( - PropertyName parent, DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink) { - CreateDisplayVideo360AdvertiserLinkRequest request = - CreateDisplayVideo360AdvertiserLinkRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink) - .build(); - return createDisplayVideo360AdvertiserLink(request); + public final ListCustomDimensionsPagedResponse listCustomDimensions(String parent) { + ListCustomDimensionsRequest request = + ListCustomDimensionsRequest.newBuilder().setParent(parent).build(); + return listCustomDimensions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper - * authorization both on the Google Analytics property and on the Display & Video 360 - * advertiser. Users who do not have access to the Display & Video 360 advertiser should - * instead seek to create a DisplayVideo360LinkProposal. + * Lists CustomDimensions on a property. * *

Sample code: * @@ -6491,35 +6821,30 @@ public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - * DisplayVideo360AdvertiserLink.newBuilder().build(); - * DisplayVideo360AdvertiserLink response = - * analyticsAdminServiceClient.createDisplayVideo360AdvertiserLink( - * parent, displayVideo360AdvertiserLink); + * ListCustomDimensionsRequest request = + * ListCustomDimensionsRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (CustomDimension element : + * analyticsAdminServiceClient.listCustomDimensions(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param parent Required. Example format: properties/1234 - * @param displayVideo360AdvertiserLink Required. The DisplayVideo360AdvertiserLink to create. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink( - String parent, DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink) { - CreateDisplayVideo360AdvertiserLinkRequest request = - CreateDisplayVideo360AdvertiserLinkRequest.newBuilder() - .setParent(parent) - .setDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink) - .build(); - return createDisplayVideo360AdvertiserLink(request); + public final ListCustomDimensionsPagedResponse listCustomDimensions( + ListCustomDimensionsRequest request) { + return listCustomDimensionsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper - * authorization both on the Google Analytics property and on the Display & Video 360 - * advertiser. Users who do not have access to the Display & Video 360 advertiser should - * instead seek to create a DisplayVideo360LinkProposal. + * Lists CustomDimensions on a property. * *

Sample code: * @@ -6531,30 +6856,29 @@ public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateDisplayVideo360AdvertiserLinkRequest request = - * CreateDisplayVideo360AdvertiserLinkRequest.newBuilder() + * ListCustomDimensionsRequest request = + * ListCustomDimensionsRequest.newBuilder() * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * DisplayVideo360AdvertiserLink response = - * analyticsAdminServiceClient.createDisplayVideo360AdvertiserLink(request); + * ApiFuture future = + * analyticsAdminServiceClient.listCustomDimensionsPagedCallable().futureCall(request); + * // Do something. + * for (CustomDimension element : future.get().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 DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink( - CreateDisplayVideo360AdvertiserLinkRequest request) { - return createDisplayVideo360AdvertiserLinkCallable().call(request); + public final UnaryCallable + listCustomDimensionsPagedCallable() { + return stub.listCustomDimensionsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper - * authorization both on the Google Analytics property and on the Display & Video 360 - * advertiser. Users who do not have access to the Display & Video 360 advertiser should - * instead seek to create a DisplayVideo360LinkProposal. + * Lists CustomDimensions on a property. * *

Sample code: * @@ -6566,29 +6890,36 @@ public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateDisplayVideo360AdvertiserLinkRequest request = - * CreateDisplayVideo360AdvertiserLinkRequest.newBuilder() + * ListCustomDimensionsRequest request = + * ListCustomDimensionsRequest.newBuilder() * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * analyticsAdminServiceClient - * .createDisplayVideo360AdvertiserLinkCallable() - * .futureCall(request); - * // Do something. - * DisplayVideo360AdvertiserLink response = future.get(); + * while (true) { + * ListCustomDimensionsResponse response = + * analyticsAdminServiceClient.listCustomDimensionsCallable().call(request); + * for (CustomDimension element : response.getCustomDimensionsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } */ - public final UnaryCallable< - CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - createDisplayVideo360AdvertiserLinkCallable() { - return stub.createDisplayVideo360AdvertiserLinkCallable(); + public final UnaryCallable + listCustomDimensionsCallable() { + return stub.listCustomDimensionsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a DisplayVideo360AdvertiserLink on a property. + * Archives a CustomDimension on a property. * *

Sample code: * @@ -6600,27 +6931,26 @@ public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DisplayVideo360AdvertiserLinkName name = - * DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); - * analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLink(name); + * CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); + * analyticsAdminServiceClient.archiveCustomDimension(name); * } * } * - * @param name Required. The name of the DisplayVideo360AdvertiserLink to delete. Example format: - * properties/1234/displayVideo360AdvertiserLinks/5678 + * @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 deleteDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLinkName name) { - DeleteDisplayVideo360AdvertiserLinkRequest request = - DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder() + public final void archiveCustomDimension(CustomDimensionName name) { + ArchiveCustomDimensionRequest request = + ArchiveCustomDimensionRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); - deleteDisplayVideo360AdvertiserLink(request); + archiveCustomDimension(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a DisplayVideo360AdvertiserLink on a property. + * Archives a CustomDimension on a property. * *

Sample code: * @@ -6632,26 +6962,24 @@ public final void deleteDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserL * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = - * DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - * .toString(); - * analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLink(name); + * String name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString(); + * analyticsAdminServiceClient.archiveCustomDimension(name); * } * } * - * @param name Required. The name of the DisplayVideo360AdvertiserLink to delete. Example format: - * properties/1234/displayVideo360AdvertiserLinks/5678 + * @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 deleteDisplayVideo360AdvertiserLink(String name) { - DeleteDisplayVideo360AdvertiserLinkRequest request = - DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder().setName(name).build(); - deleteDisplayVideo360AdvertiserLink(request); + public final void archiveCustomDimension(String name) { + ArchiveCustomDimensionRequest request = + ArchiveCustomDimensionRequest.newBuilder().setName(name).build(); + archiveCustomDimension(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a DisplayVideo360AdvertiserLink on a property. + * Archives a CustomDimension on a property. * *

Sample code: * @@ -6663,28 +6991,24 @@ public final void deleteDisplayVideo360AdvertiserLink(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteDisplayVideo360AdvertiserLinkRequest request = - * DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder() - * .setName( - * DisplayVideo360AdvertiserLinkName.of( - * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - * .toString()) + * ArchiveCustomDimensionRequest request = + * ArchiveCustomDimensionRequest.newBuilder() + * .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) * .build(); - * analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLink(request); + * 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 deleteDisplayVideo360AdvertiserLink( - DeleteDisplayVideo360AdvertiserLinkRequest request) { - deleteDisplayVideo360AdvertiserLinkCallable().call(request); + public final void archiveCustomDimension(ArchiveCustomDimensionRequest request) { + archiveCustomDimensionCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a DisplayVideo360AdvertiserLink on a property. + * Archives a CustomDimension on a property. * *

Sample code: * @@ -6696,30 +7020,25 @@ public final void deleteDisplayVideo360AdvertiserLink( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteDisplayVideo360AdvertiserLinkRequest request = - * DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder() - * .setName( - * DisplayVideo360AdvertiserLinkName.of( - * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - * .toString()) + * ArchiveCustomDimensionRequest request = + * ArchiveCustomDimensionRequest.newBuilder() + * .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) * .build(); * ApiFuture future = - * analyticsAdminServiceClient - * .deleteDisplayVideo360AdvertiserLinkCallable() - * .futureCall(request); + * analyticsAdminServiceClient.archiveCustomDimensionCallable().futureCall(request); * // Do something. * future.get(); * } * } */ - public final UnaryCallable - deleteDisplayVideo360AdvertiserLinkCallable() { - return stub.deleteDisplayVideo360AdvertiserLinkCallable(); + public final UnaryCallable + archiveCustomDimensionCallable() { + return stub.archiveCustomDimensionCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a DisplayVideo360AdvertiserLink on a property. + * Lookup for a single CustomDimension. * *

Sample code: * @@ -6731,34 +7050,26 @@ public final void deleteDisplayVideo360AdvertiserLink( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - * DisplayVideo360AdvertiserLink.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * DisplayVideo360AdvertiserLink response = - * analyticsAdminServiceClient.updateDisplayVideo360AdvertiserLink( - * displayVideo360AdvertiserLink, updateMask); + * CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); + * CustomDimension response = analyticsAdminServiceClient.getCustomDimension(name); * } * } * - * @param displayVideo360AdvertiserLink The DisplayVideo360AdvertiserLink to update - * @param updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to match all - * fields. + * @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 DisplayVideo360AdvertiserLink updateDisplayVideo360AdvertiserLink( - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink, FieldMask updateMask) { - UpdateDisplayVideo360AdvertiserLinkRequest request = - UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder() - .setDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink) - .setUpdateMask(updateMask) + public final CustomDimension getCustomDimension(CustomDimensionName name) { + GetCustomDimensionRequest request = + GetCustomDimensionRequest.newBuilder() + .setName(name == null ? null : name.toString()) .build(); - return updateDisplayVideo360AdvertiserLink(request); + return getCustomDimension(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a DisplayVideo360AdvertiserLink on a property. + * Lookup for a single CustomDimension. * *

Sample code: * @@ -6770,27 +7081,53 @@ public final DisplayVideo360AdvertiserLink updateDisplayVideo360AdvertiserLink( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateDisplayVideo360AdvertiserLinkRequest request = - * UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder() - * .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * String name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").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
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetCustomDimensionRequest request =
+   *       GetCustomDimensionRequest.newBuilder()
+   *           .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString())
    *           .build();
-   *   DisplayVideo360AdvertiserLink response =
-   *       analyticsAdminServiceClient.updateDisplayVideo360AdvertiserLink(request);
+   *   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 DisplayVideo360AdvertiserLink updateDisplayVideo360AdvertiserLink( - UpdateDisplayVideo360AdvertiserLinkRequest request) { - return updateDisplayVideo360AdvertiserLinkCallable().call(request); + public final CustomDimension getCustomDimension(GetCustomDimensionRequest request) { + return getCustomDimensionCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a DisplayVideo360AdvertiserLink on a property. + * Lookup for a single CustomDimension. * *

Sample code: * @@ -6802,29 +7139,25 @@ public final DisplayVideo360AdvertiserLink updateDisplayVideo360AdvertiserLink( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateDisplayVideo360AdvertiserLinkRequest request = - * UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder() - * .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * GetCustomDimensionRequest request = + * GetCustomDimensionRequest.newBuilder() + * .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient - * .updateDisplayVideo360AdvertiserLinkCallable() - * .futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.getCustomDimensionCallable().futureCall(request); * // Do something. - * DisplayVideo360AdvertiserLink response = future.get(); + * CustomDimension response = future.get(); * } * } */ - public final UnaryCallable< - UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - updateDisplayVideo360AdvertiserLinkCallable() { - return stub.updateDisplayVideo360AdvertiserLinkCallable(); + public final UnaryCallable + getCustomDimensionCallable() { + return stub.getCustomDimensionCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single DisplayVideo360AdvertiserLinkProposal. + * Creates a CustomMetric. * *

Sample code: * @@ -6836,30 +7169,28 @@ public final DisplayVideo360AdvertiserLink updateDisplayVideo360AdvertiserLink( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DisplayVideo360AdvertiserLinkProposalName name = - * DisplayVideo360AdvertiserLinkProposalName.of( - * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); - * DisplayVideo360AdvertiserLinkProposal response = - * analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(name); + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * CustomMetric customMetric = CustomMetric.newBuilder().build(); + * CustomMetric response = analyticsAdminServiceClient.createCustomMetric(parent, customMetric); * } * } * - * @param name Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. Example - * format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * @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 DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal( - DisplayVideo360AdvertiserLinkProposalName name) { - GetDisplayVideo360AdvertiserLinkProposalRequest request = - GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - .setName(name == null ? null : name.toString()) + public final CustomMetric createCustomMetric(PropertyName parent, CustomMetric customMetric) { + CreateCustomMetricRequest request = + CreateCustomMetricRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCustomMetric(customMetric) .build(); - return getDisplayVideo360AdvertiserLinkProposal(request); + return createCustomMetric(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single DisplayVideo360AdvertiserLinkProposal. + * Creates a CustomMetric. * *

Sample code: * @@ -6871,29 +7202,28 @@ public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserL * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = - * DisplayVideo360AdvertiserLinkProposalName.of( - * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - * .toString(); - * DisplayVideo360AdvertiserLinkProposal response = - * analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(name); + * String parent = PropertyName.of("[PROPERTY]").toString(); + * CustomMetric customMetric = CustomMetric.newBuilder().build(); + * CustomMetric response = analyticsAdminServiceClient.createCustomMetric(parent, customMetric); * } * } * - * @param name Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. Example - * format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * @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 DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal( - String name) { - GetDisplayVideo360AdvertiserLinkProposalRequest request = - GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder().setName(name).build(); - return getDisplayVideo360AdvertiserLinkProposal(request); + 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. /** - * Lookup for a single DisplayVideo360AdvertiserLinkProposal. + * Creates a CustomMetric. * *

Sample code: * @@ -6905,29 +7235,25 @@ public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserL * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetDisplayVideo360AdvertiserLinkProposalRequest request = - * GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - * .setName( - * DisplayVideo360AdvertiserLinkProposalName.of( - * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - * .toString()) + * CreateCustomMetricRequest request = + * CreateCustomMetricRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setCustomMetric(CustomMetric.newBuilder().build()) * .build(); - * DisplayVideo360AdvertiserLinkProposal response = - * analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(request); + * 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 DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal( - GetDisplayVideo360AdvertiserLinkProposalRequest request) { - return getDisplayVideo360AdvertiserLinkProposalCallable().call(request); + public final CustomMetric createCustomMetric(CreateCustomMetricRequest request) { + return createCustomMetricCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single DisplayVideo360AdvertiserLinkProposal. + * Creates a CustomMetric. * *

Sample code: * @@ -6939,31 +7265,25 @@ public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserL * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetDisplayVideo360AdvertiserLinkProposalRequest request = - * GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - * .setName( - * DisplayVideo360AdvertiserLinkProposalName.of( - * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - * .toString()) + * CreateCustomMetricRequest request = + * CreateCustomMetricRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setCustomMetric(CustomMetric.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient - * .getDisplayVideo360AdvertiserLinkProposalCallable() - * .futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.createCustomMetricCallable().futureCall(request); * // Do something. - * DisplayVideo360AdvertiserLinkProposal response = future.get(); + * CustomMetric response = future.get(); * } * } */ - public final UnaryCallable< - GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - getDisplayVideo360AdvertiserLinkProposalCallable() { - return stub.getDisplayVideo360AdvertiserLinkProposalCallable(); + public final UnaryCallable createCustomMetricCallable() { + return stub.createCustomMetricCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DisplayVideo360AdvertiserLinkProposals on a property. + * Updates a CustomMetric on a property. * *

Sample code: * @@ -6975,65 +7295,31 @@ public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserL * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * for (DisplayVideo360AdvertiserLinkProposal element : - * analyticsAdminServiceClient - * .listDisplayVideo360AdvertiserLinkProposals(parent) - * .iterateAll()) { - * // doThingsWith(element); - * } + * CustomMetric customMetric = CustomMetric.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * CustomMetric response = + * analyticsAdminServiceClient.updateCustomMetric(customMetric, updateMask); * } * } * - * @param parent Required. Example format: properties/1234 + * @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 ListDisplayVideo360AdvertiserLinkProposalsPagedResponse - listDisplayVideo360AdvertiserLinkProposals(PropertyName parent) { - ListDisplayVideo360AdvertiserLinkProposalsRequest request = - ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) + public final CustomMetric updateCustomMetric(CustomMetric customMetric, FieldMask updateMask) { + UpdateCustomMetricRequest request = + UpdateCustomMetricRequest.newBuilder() + .setCustomMetric(customMetric) + .setUpdateMask(updateMask) .build(); - return listDisplayVideo360AdvertiserLinkProposals(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DisplayVideo360AdvertiserLinkProposals on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = PropertyName.of("[PROPERTY]").toString();
-   *   for (DisplayVideo360AdvertiserLinkProposal element :
-   *       analyticsAdminServiceClient
-   *           .listDisplayVideo360AdvertiserLinkProposals(parent)
-   *           .iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListDisplayVideo360AdvertiserLinkProposalsPagedResponse - listDisplayVideo360AdvertiserLinkProposals(String parent) { - ListDisplayVideo360AdvertiserLinkProposalsRequest request = - ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder().setParent(parent).build(); - return listDisplayVideo360AdvertiserLinkProposals(request); + return updateCustomMetric(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DisplayVideo360AdvertiserLinkProposals on a property. + * Updates a CustomMetric on a property. * *

Sample code: * @@ -7045,33 +7331,25 @@ public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserL * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListDisplayVideo360AdvertiserLinkProposalsRequest request = - * ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * UpdateCustomMetricRequest request = + * UpdateCustomMetricRequest.newBuilder() + * .setCustomMetric(CustomMetric.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * for (DisplayVideo360AdvertiserLinkProposal element : - * analyticsAdminServiceClient - * .listDisplayVideo360AdvertiserLinkProposals(request) - * .iterateAll()) { - * // doThingsWith(element); - * } + * 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 ListDisplayVideo360AdvertiserLinkProposalsPagedResponse - listDisplayVideo360AdvertiserLinkProposals( - ListDisplayVideo360AdvertiserLinkProposalsRequest request) { - return listDisplayVideo360AdvertiserLinkProposalsPagedCallable().call(request); + public final CustomMetric updateCustomMetric(UpdateCustomMetricRequest request) { + return updateCustomMetricCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DisplayVideo360AdvertiserLinkProposals on a property. + * Updates a CustomMetric on a property. * *

Sample code: * @@ -7083,33 +7361,25 @@ public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserL * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListDisplayVideo360AdvertiserLinkProposalsRequest request = - * ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * UpdateCustomMetricRequest request = + * UpdateCustomMetricRequest.newBuilder() + * .setCustomMetric(CustomMetric.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient - * .listDisplayVideo360AdvertiserLinkProposalsPagedCallable() - * .futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.updateCustomMetricCallable().futureCall(request); * // Do something. - * for (DisplayVideo360AdvertiserLinkProposal element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * CustomMetric response = future.get(); * } * } */ - public final UnaryCallable< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> - listDisplayVideo360AdvertiserLinkProposalsPagedCallable() { - return stub.listDisplayVideo360AdvertiserLinkProposalsPagedCallable(); + public final UnaryCallable updateCustomMetricCallable() { + return stub.updateCustomMetricCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DisplayVideo360AdvertiserLinkProposals on a property. + * Lists CustomMetrics on a property. * *

Sample code: * @@ -7121,41 +7391,28 @@ public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserL * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListDisplayVideo360AdvertiserLinkProposalsRequest request = - * ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * while (true) { - * ListDisplayVideo360AdvertiserLinkProposalsResponse response = - * analyticsAdminServiceClient - * .listDisplayVideo360AdvertiserLinkProposalsCallable() - * .call(request); - * for (DisplayVideo360AdvertiserLinkProposal element : - * response.getDisplayVideo360AdvertiserLinkProposalsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } + * 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 UnaryCallable< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse> - listDisplayVideo360AdvertiserLinkProposalsCallable() { - return stub.listDisplayVideo360AdvertiserLinkProposalsCallable(); + 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. /** - * Creates a DisplayVideo360AdvertiserLinkProposal. + * Lists CustomMetrics on a property. * *

Sample code: * @@ -7167,34 +7424,26 @@ public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserL * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = - * DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - * DisplayVideo360AdvertiserLinkProposal response = - * analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal( - * parent, displayVideo360AdvertiserLinkProposal); + * String parent = PropertyName.of("[PROPERTY]").toString(); + * for (CustomMetric element : + * analyticsAdminServiceClient.listCustomMetrics(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * * @param parent Required. Example format: properties/1234 - * @param displayVideo360AdvertiserLinkProposal Required. The - * DisplayVideo360AdvertiserLinkProposal to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal( - PropertyName parent, - DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal) { - CreateDisplayVideo360AdvertiserLinkProposalRequest request = - CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setDisplayVideo360AdvertiserLinkProposal(displayVideo360AdvertiserLinkProposal) - .build(); - return createDisplayVideo360AdvertiserLinkProposal(request); + public final ListCustomMetricsPagedResponse listCustomMetrics(String parent) { + ListCustomMetricsRequest request = + ListCustomMetricsRequest.newBuilder().setParent(parent).build(); + return listCustomMetrics(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a DisplayVideo360AdvertiserLinkProposal. + * Lists CustomMetrics on a property. * *

Sample code: * @@ -7206,33 +7455,29 @@ public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360Advertis * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = - * DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - * DisplayVideo360AdvertiserLinkProposal response = - * analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal( - * parent, displayVideo360AdvertiserLinkProposal); + * ListCustomMetricsRequest request = + * ListCustomMetricsRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (CustomMetric element : + * analyticsAdminServiceClient.listCustomMetrics(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param parent Required. Example format: properties/1234 - * @param displayVideo360AdvertiserLinkProposal Required. The - * DisplayVideo360AdvertiserLinkProposal to create. + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal( - String parent, DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal) { - CreateDisplayVideo360AdvertiserLinkProposalRequest request = - CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - .setParent(parent) - .setDisplayVideo360AdvertiserLinkProposal(displayVideo360AdvertiserLinkProposal) - .build(); - return createDisplayVideo360AdvertiserLinkProposal(request); + public final ListCustomMetricsPagedResponse listCustomMetrics(ListCustomMetricsRequest request) { + return listCustomMetricsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a DisplayVideo360AdvertiserLinkProposal. + * Lists CustomMetrics on a property. * *

Sample code: * @@ -7244,28 +7489,29 @@ public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360Advertis * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateDisplayVideo360AdvertiserLinkProposalRequest request = - * CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + * ListCustomMetricsRequest request = + * ListCustomMetricsRequest.newBuilder() * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setDisplayVideo360AdvertiserLinkProposal( - * DisplayVideo360AdvertiserLinkProposal.newBuilder().build()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * DisplayVideo360AdvertiserLinkProposal response = - * analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal(request); + * ApiFuture future = + * analyticsAdminServiceClient.listCustomMetricsPagedCallable().futureCall(request); + * // Do something. + * for (CustomMetric element : future.get().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 DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal( - CreateDisplayVideo360AdvertiserLinkProposalRequest request) { - return createDisplayVideo360AdvertiserLinkProposalCallable().call(request); + public final UnaryCallable + listCustomMetricsPagedCallable() { + return stub.listCustomMetricsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a DisplayVideo360AdvertiserLinkProposal. + * Lists CustomMetrics on a property. * *

Sample code: * @@ -7277,31 +7523,36 @@ public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360Advertis * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateDisplayVideo360AdvertiserLinkProposalRequest request = - * CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + * ListCustomMetricsRequest request = + * ListCustomMetricsRequest.newBuilder() * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setDisplayVideo360AdvertiserLinkProposal( - * DisplayVideo360AdvertiserLinkProposal.newBuilder().build()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * analyticsAdminServiceClient - * .createDisplayVideo360AdvertiserLinkProposalCallable() - * .futureCall(request); - * // Do something. - * DisplayVideo360AdvertiserLinkProposal response = future.get(); + * while (true) { + * ListCustomMetricsResponse response = + * analyticsAdminServiceClient.listCustomMetricsCallable().call(request); + * for (CustomMetric element : response.getCustomMetricsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } */ - public final UnaryCallable< - CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - createDisplayVideo360AdvertiserLinkProposalCallable() { - return stub.createDisplayVideo360AdvertiserLinkProposalCallable(); + public final UnaryCallable + listCustomMetricsCallable() { + return stub.listCustomMetricsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on - * cancelled proposals. + * Archives a CustomMetric on a property. * *

Sample code: * @@ -7313,30 +7564,26 @@ public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360Advertis * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DisplayVideo360AdvertiserLinkProposalName name = - * DisplayVideo360AdvertiserLinkProposalName.of( - * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); - * analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLinkProposal(name); + * CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); + * analyticsAdminServiceClient.archiveCustomMetric(name); * } * } * - * @param name Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. Example - * format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * @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 deleteDisplayVideo360AdvertiserLinkProposal( - DisplayVideo360AdvertiserLinkProposalName name) { - DeleteDisplayVideo360AdvertiserLinkProposalRequest request = - DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + public final void archiveCustomMetric(CustomMetricName name) { + ArchiveCustomMetricRequest request = + ArchiveCustomMetricRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); - deleteDisplayVideo360AdvertiserLinkProposal(request); + archiveCustomMetric(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on - * cancelled proposals. + * Archives a CustomMetric on a property. * *

Sample code: * @@ -7348,28 +7595,24 @@ public final void deleteDisplayVideo360AdvertiserLinkProposal( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = - * DisplayVideo360AdvertiserLinkProposalName.of( - * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - * .toString(); - * analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLinkProposal(name); + * String name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString(); + * analyticsAdminServiceClient.archiveCustomMetric(name); * } * } * - * @param name Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. Example - * format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * @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 deleteDisplayVideo360AdvertiserLinkProposal(String name) { - DeleteDisplayVideo360AdvertiserLinkProposalRequest request = - DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder().setName(name).build(); - deleteDisplayVideo360AdvertiserLinkProposal(request); + public final void archiveCustomMetric(String name) { + ArchiveCustomMetricRequest request = + ArchiveCustomMetricRequest.newBuilder().setName(name).build(); + archiveCustomMetric(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on - * cancelled proposals. + * Archives a CustomMetric on a property. * *

Sample code: * @@ -7381,29 +7624,24 @@ public final void deleteDisplayVideo360AdvertiserLinkProposal(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteDisplayVideo360AdvertiserLinkProposalRequest request = - * DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - * .setName( - * DisplayVideo360AdvertiserLinkProposalName.of( - * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - * .toString()) + * ArchiveCustomMetricRequest request = + * ArchiveCustomMetricRequest.newBuilder() + * .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) * .build(); - * analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLinkProposal(request); + * 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 deleteDisplayVideo360AdvertiserLinkProposal( - DeleteDisplayVideo360AdvertiserLinkProposalRequest request) { - deleteDisplayVideo360AdvertiserLinkProposalCallable().call(request); + public final void archiveCustomMetric(ArchiveCustomMetricRequest request) { + archiveCustomMetricCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on - * cancelled proposals. + * Archives a CustomMetric on a property. * *

Sample code: * @@ -7415,31 +7653,24 @@ public final void deleteDisplayVideo360AdvertiserLinkProposal( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteDisplayVideo360AdvertiserLinkProposalRequest request = - * DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - * .setName( - * DisplayVideo360AdvertiserLinkProposalName.of( - * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - * .toString()) + * ArchiveCustomMetricRequest request = + * ArchiveCustomMetricRequest.newBuilder() + * .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) * .build(); * ApiFuture future = - * analyticsAdminServiceClient - * .deleteDisplayVideo360AdvertiserLinkProposalCallable() - * .futureCall(request); + * analyticsAdminServiceClient.archiveCustomMetricCallable().futureCall(request); * // Do something. * future.get(); * } * } */ - public final UnaryCallable - deleteDisplayVideo360AdvertiserLinkProposalCallable() { - return stub.deleteDisplayVideo360AdvertiserLinkProposalCallable(); + public final UnaryCallable archiveCustomMetricCallable() { + return stub.archiveCustomMetricCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Approves a DisplayVideo360AdvertiserLinkProposal. The DisplayVideo360AdvertiserLinkProposal - * will be deleted and a new DisplayVideo360AdvertiserLink will be created. + * Lookup for a single CustomMetric. * *

Sample code: * @@ -7451,70 +7682,52 @@ public final void deleteDisplayVideo360AdvertiserLinkProposal( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ApproveDisplayVideo360AdvertiserLinkProposalRequest request = - * ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - * .setName( - * DisplayVideo360AdvertiserLinkProposalName.of( - * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - * .toString()) - * .build(); - * ApproveDisplayVideo360AdvertiserLinkProposalResponse response = - * analyticsAdminServiceClient.approveDisplayVideo360AdvertiserLinkProposal(request); + * CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); + * 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 ApproveDisplayVideo360AdvertiserLinkProposalResponse - approveDisplayVideo360AdvertiserLinkProposal( - ApproveDisplayVideo360AdvertiserLinkProposalRequest request) { - return approveDisplayVideo360AdvertiserLinkProposalCallable().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. /** - * Approves a DisplayVideo360AdvertiserLinkProposal. The DisplayVideo360AdvertiserLinkProposal - * will be deleted and a new DisplayVideo360AdvertiserLink will be created. + * Lookup for a single CustomMetric. * *

Sample code: * *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ApproveDisplayVideo360AdvertiserLinkProposalRequest request =
-   *       ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
-   *           .setName(
-   *               DisplayVideo360AdvertiserLinkProposalName.of(
-   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient
-   *           .approveDisplayVideo360AdvertiserLinkProposalCallable()
-   *           .futureCall(request);
-   *   // Do something.
-   *   ApproveDisplayVideo360AdvertiserLinkProposalResponse response = future.get();
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").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 UnaryCallable< - ApproveDisplayVideo360AdvertiserLinkProposalRequest, - ApproveDisplayVideo360AdvertiserLinkProposalResponse> - approveDisplayVideo360AdvertiserLinkProposalCallable() { - return stub.approveDisplayVideo360AdvertiserLinkProposalCallable(); + public final CustomMetric getCustomMetric(String name) { + GetCustomMetricRequest request = GetCustomMetricRequest.newBuilder().setName(name).build(); + return getCustomMetric(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Cancels a DisplayVideo360AdvertiserLinkProposal. Cancelling can mean either: - Declining a - * proposal initiated from Display & Video 360 - Withdrawing a proposal initiated from Google - * Analytics After being cancelled, a proposal will eventually be deleted automatically. + * Lookup for a single CustomMetric. * *

Sample code: * @@ -7526,31 +7739,24 @@ public final void deleteDisplayVideo360AdvertiserLinkProposal( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CancelDisplayVideo360AdvertiserLinkProposalRequest request = - * CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - * .setName( - * DisplayVideo360AdvertiserLinkProposalName.of( - * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - * .toString()) + * GetCustomMetricRequest request = + * GetCustomMetricRequest.newBuilder() + * .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) * .build(); - * DisplayVideo360AdvertiserLinkProposal response = - * analyticsAdminServiceClient.cancelDisplayVideo360AdvertiserLinkProposal(request); + * 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 DisplayVideo360AdvertiserLinkProposal cancelDisplayVideo360AdvertiserLinkProposal( - CancelDisplayVideo360AdvertiserLinkProposalRequest request) { - return cancelDisplayVideo360AdvertiserLinkProposalCallable().call(request); + public final CustomMetric getCustomMetric(GetCustomMetricRequest request) { + return getCustomMetricCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Cancels a DisplayVideo360AdvertiserLinkProposal. Cancelling can mean either: - Declining a - * proposal initiated from Display & Video 360 - Withdrawing a proposal initiated from Google - * Analytics After being cancelled, a proposal will eventually be deleted automatically. + * Lookup for a single CustomMetric. * *

Sample code: * @@ -7562,31 +7768,24 @@ public final DisplayVideo360AdvertiserLinkProposal cancelDisplayVideo360Advertis * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CancelDisplayVideo360AdvertiserLinkProposalRequest request = - * CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - * .setName( - * DisplayVideo360AdvertiserLinkProposalName.of( - * "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - * .toString()) + * GetCustomMetricRequest request = + * GetCustomMetricRequest.newBuilder() + * .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient - * .cancelDisplayVideo360AdvertiserLinkProposalCallable() - * .futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.getCustomMetricCallable().futureCall(request); * // Do something. - * DisplayVideo360AdvertiserLinkProposal response = future.get(); + * CustomMetric response = future.get(); * } * } */ - public final UnaryCallable< - CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - cancelDisplayVideo360AdvertiserLinkProposalCallable() { - return stub.cancelDisplayVideo360AdvertiserLinkProposalCallable(); + public final UnaryCallable getCustomMetricCallable() { + return stub.getCustomMetricCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a CustomDimension. + * Returns the singleton data retention settings for this property. * *

Sample code: * @@ -7598,30 +7797,27 @@ public final DisplayVideo360AdvertiserLinkProposal cancelDisplayVideo360Advertis * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * CustomDimension customDimension = CustomDimension.newBuilder().build(); - * CustomDimension response = - * analyticsAdminServiceClient.createCustomDimension(parent, customDimension); + * DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]"); + * DataRetentionSettings response = analyticsAdminServiceClient.getDataRetentionSettings(name); * } * } * - * @param parent Required. Example format: properties/1234 - * @param customDimension Required. The CustomDimension to create. + * @param name Required. The name of the settings to lookup. Format: + * properties/{property}/dataRetentionSettings Example: + * "properties/1000/dataRetentionSettings" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomDimension createCustomDimension( - PropertyName parent, CustomDimension customDimension) { - CreateCustomDimensionRequest request = - CreateCustomDimensionRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setCustomDimension(customDimension) + public final DataRetentionSettings getDataRetentionSettings(DataRetentionSettingsName name) { + GetDataRetentionSettingsRequest request = + GetDataRetentionSettingsRequest.newBuilder() + .setName(name == null ? null : name.toString()) .build(); - return createCustomDimension(request); + return getDataRetentionSettings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a CustomDimension. + * Returns the singleton data retention settings for this property. * *

Sample code: * @@ -7633,30 +7829,25 @@ public final CustomDimension createCustomDimension( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * CustomDimension customDimension = CustomDimension.newBuilder().build(); - * CustomDimension response = - * analyticsAdminServiceClient.createCustomDimension(parent, customDimension); + * String name = DataRetentionSettingsName.of("[PROPERTY]").toString(); + * DataRetentionSettings response = analyticsAdminServiceClient.getDataRetentionSettings(name); * } * } * - * @param parent Required. Example format: properties/1234 - * @param customDimension Required. The CustomDimension to create. + * @param name Required. The name of the settings to lookup. Format: + * properties/{property}/dataRetentionSettings Example: + * "properties/1000/dataRetentionSettings" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomDimension createCustomDimension( - String parent, CustomDimension customDimension) { - CreateCustomDimensionRequest request = - CreateCustomDimensionRequest.newBuilder() - .setParent(parent) - .setCustomDimension(customDimension) - .build(); - return createCustomDimension(request); + public final DataRetentionSettings getDataRetentionSettings(String name) { + GetDataRetentionSettingsRequest request = + GetDataRetentionSettingsRequest.newBuilder().setName(name).build(); + return getDataRetentionSettings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a CustomDimension. + * Returns the singleton data retention settings for this property. * *

Sample code: * @@ -7668,25 +7859,26 @@ public final CustomDimension createCustomDimension( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateCustomDimensionRequest request = - * CreateCustomDimensionRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setCustomDimension(CustomDimension.newBuilder().build()) + * GetDataRetentionSettingsRequest request = + * GetDataRetentionSettingsRequest.newBuilder() + * .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) * .build(); - * CustomDimension response = analyticsAdminServiceClient.createCustomDimension(request); + * DataRetentionSettings response = + * analyticsAdminServiceClient.getDataRetentionSettings(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomDimension createCustomDimension(CreateCustomDimensionRequest request) { - return createCustomDimensionCallable().call(request); + public final DataRetentionSettings getDataRetentionSettings( + GetDataRetentionSettingsRequest request) { + return getDataRetentionSettingsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a CustomDimension. + * Returns the singleton data retention settings for this property. * *

Sample code: * @@ -7698,26 +7890,25 @@ public final CustomDimension createCustomDimension(CreateCustomDimensionRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateCustomDimensionRequest request = - * CreateCustomDimensionRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setCustomDimension(CustomDimension.newBuilder().build()) + * GetDataRetentionSettingsRequest request = + * GetDataRetentionSettingsRequest.newBuilder() + * .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.createCustomDimensionCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.getDataRetentionSettingsCallable().futureCall(request); * // Do something. - * CustomDimension response = future.get(); + * DataRetentionSettings response = future.get(); * } * } */ - public final UnaryCallable - createCustomDimensionCallable() { - return stub.createCustomDimensionCallable(); + public final UnaryCallable + getDataRetentionSettingsCallable() { + return stub.getDataRetentionSettingsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a CustomDimension on a property. + * Updates the singleton data retention settings for this property. * *

Sample code: * @@ -7729,32 +7920,34 @@ public final CustomDimension createCustomDimension(CreateCustomDimensionRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CustomDimension customDimension = CustomDimension.newBuilder().build(); + * DataRetentionSettings dataRetentionSettings = DataRetentionSettings.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); - * CustomDimension response = - * analyticsAdminServiceClient.updateCustomDimension(customDimension, updateMask); + * DataRetentionSettings response = + * analyticsAdminServiceClient.updateDataRetentionSettings( + * dataRetentionSettings, 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. + * @param dataRetentionSettings Required. The settings to update. The `name` field is used to + * identify the settings to be updated. + * @param updateMask Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire + * entity, use one path with the string "*" to match all fields. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomDimension updateCustomDimension( - CustomDimension customDimension, FieldMask updateMask) { - UpdateCustomDimensionRequest request = - UpdateCustomDimensionRequest.newBuilder() - .setCustomDimension(customDimension) + public final DataRetentionSettings updateDataRetentionSettings( + DataRetentionSettings dataRetentionSettings, FieldMask updateMask) { + UpdateDataRetentionSettingsRequest request = + UpdateDataRetentionSettingsRequest.newBuilder() + .setDataRetentionSettings(dataRetentionSettings) .setUpdateMask(updateMask) .build(); - return updateCustomDimension(request); + return updateDataRetentionSettings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a CustomDimension on a property. + * Updates the singleton data retention settings for this property. * *

Sample code: * @@ -7766,25 +7959,27 @@ public final CustomDimension updateCustomDimension( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateCustomDimensionRequest request = - * UpdateCustomDimensionRequest.newBuilder() - * .setCustomDimension(CustomDimension.newBuilder().build()) + * UpdateDataRetentionSettingsRequest request = + * UpdateDataRetentionSettingsRequest.newBuilder() + * .setDataRetentionSettings(DataRetentionSettings.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * CustomDimension response = analyticsAdminServiceClient.updateCustomDimension(request); + * DataRetentionSettings response = + * analyticsAdminServiceClient.updateDataRetentionSettings(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomDimension updateCustomDimension(UpdateCustomDimensionRequest request) { - return updateCustomDimensionCallable().call(request); + public final DataRetentionSettings updateDataRetentionSettings( + UpdateDataRetentionSettingsRequest request) { + return updateDataRetentionSettingsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a CustomDimension on a property. + * Updates the singleton data retention settings for this property. * *

Sample code: * @@ -7796,59 +7991,26 @@ public final CustomDimension updateCustomDimension(UpdateCustomDimensionRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateCustomDimensionRequest request = - * UpdateCustomDimensionRequest.newBuilder() - * .setCustomDimension(CustomDimension.newBuilder().build()) + * UpdateDataRetentionSettingsRequest request = + * UpdateDataRetentionSettingsRequest.newBuilder() + * .setDataRetentionSettings(DataRetentionSettings.newBuilder().build()) * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.updateCustomDimensionCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.updateDataRetentionSettingsCallable().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
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * 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); + * DataRetentionSettings response = future.get(); + * } + * } + */ + public final UnaryCallable + updateDataRetentionSettingsCallable() { + return stub.updateDataRetentionSettingsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CustomDimensions on a property. + * Creates a DataStream. * *

Sample code: * @@ -7860,26 +8022,28 @@ public final ListCustomDimensionsPagedResponse listCustomDimensions(PropertyName * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * for (CustomDimension element : - * analyticsAdminServiceClient.listCustomDimensions(parent).iterateAll()) { - * // doThingsWith(element); - * } + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * DataStream dataStream = DataStream.newBuilder().build(); + * DataStream response = analyticsAdminServiceClient.createDataStream(parent, dataStream); * } * } * * @param parent Required. Example format: properties/1234 + * @param dataStream Required. The DataStream to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCustomDimensionsPagedResponse listCustomDimensions(String parent) { - ListCustomDimensionsRequest request = - ListCustomDimensionsRequest.newBuilder().setParent(parent).build(); - return listCustomDimensions(request); + public final DataStream createDataStream(PropertyName parent, DataStream dataStream) { + CreateDataStreamRequest request = + CreateDataStreamRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDataStream(dataStream) + .build(); + return createDataStream(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CustomDimensions on a property. + * Creates a DataStream. * *

Sample code: * @@ -7891,30 +8055,25 @@ public final ListCustomDimensionsPagedResponse listCustomDimensions(String paren * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListCustomDimensionsRequest request = - * ListCustomDimensionsRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * for (CustomDimension element : - * analyticsAdminServiceClient.listCustomDimensions(request).iterateAll()) { - * // doThingsWith(element); - * } + * String parent = PropertyName.of("[PROPERTY]").toString(); + * DataStream dataStream = DataStream.newBuilder().build(); + * DataStream response = analyticsAdminServiceClient.createDataStream(parent, dataStream); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. Example format: properties/1234 + * @param dataStream Required. The DataStream to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCustomDimensionsPagedResponse listCustomDimensions( - ListCustomDimensionsRequest request) { - return listCustomDimensionsPagedCallable().call(request); + public final DataStream createDataStream(String parent, DataStream dataStream) { + CreateDataStreamRequest request = + CreateDataStreamRequest.newBuilder().setParent(parent).setDataStream(dataStream).build(); + return createDataStream(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CustomDimensions on a property. + * Creates a DataStream. * *

Sample code: * @@ -7926,29 +8085,25 @@ public final ListCustomDimensionsPagedResponse listCustomDimensions( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListCustomDimensionsRequest request = - * ListCustomDimensionsRequest.newBuilder() + * CreateDataStreamRequest request = + * CreateDataStreamRequest.newBuilder() * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * .setDataStream(DataStream.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.listCustomDimensionsPagedCallable().futureCall(request); - * // Do something. - * for (CustomDimension element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * DataStream response = analyticsAdminServiceClient.createDataStream(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 - listCustomDimensionsPagedCallable() { - return stub.listCustomDimensionsPagedCallable(); + public final DataStream createDataStream(CreateDataStreamRequest request) { + return createDataStreamCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CustomDimensions on a property. + * Creates a DataStream. * *

Sample code: * @@ -7960,36 +8115,25 @@ public final ListCustomDimensionsPagedResponse listCustomDimensions( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListCustomDimensionsRequest request = - * ListCustomDimensionsRequest.newBuilder() + * CreateDataStreamRequest request = + * CreateDataStreamRequest.newBuilder() * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * .setDataStream(DataStream.newBuilder().build()) * .build(); - * while (true) { - * ListCustomDimensionsResponse response = - * analyticsAdminServiceClient.listCustomDimensionsCallable().call(request); - * for (CustomDimension element : response.getCustomDimensionsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * ApiFuture future = + * analyticsAdminServiceClient.createDataStreamCallable().futureCall(request); + * // Do something. + * DataStream response = future.get(); * } * } */ - public final UnaryCallable - listCustomDimensionsCallable() { - return stub.listCustomDimensionsCallable(); + public final UnaryCallable createDataStreamCallable() { + return stub.createDataStreamCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Archives a CustomDimension on a property. + * Deletes a DataStream on a property. * *

Sample code: * @@ -8001,26 +8145,24 @@ public final ListCustomDimensionsPagedResponse listCustomDimensions( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - * analyticsAdminServiceClient.archiveCustomDimension(name); + * DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + * analyticsAdminServiceClient.deleteDataStream(name); * } * } * - * @param name Required. The name of the CustomDimension to archive. Example format: - * properties/1234/customDimensions/5678 + * @param name Required. The name of the DataStream to delete. Example format: + * properties/1234/dataStreams/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); + public final void deleteDataStream(DataStreamName name) { + DeleteDataStreamRequest request = + DeleteDataStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteDataStream(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Archives a CustomDimension on a property. + * Deletes a DataStream on a property. * *

Sample code: * @@ -8032,24 +8174,23 @@ public final void archiveCustomDimension(CustomDimensionName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString(); - * analyticsAdminServiceClient.archiveCustomDimension(name); + * String name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString(); + * analyticsAdminServiceClient.deleteDataStream(name); * } * } * - * @param name Required. The name of the CustomDimension to archive. Example format: - * properties/1234/customDimensions/5678 + * @param name Required. The name of the DataStream to delete. Example format: + * properties/1234/dataStreams/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); + public final void deleteDataStream(String name) { + DeleteDataStreamRequest request = DeleteDataStreamRequest.newBuilder().setName(name).build(); + deleteDataStream(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Archives a CustomDimension on a property. + * Deletes a DataStream on a property. * *

Sample code: * @@ -8061,24 +8202,24 @@ public final void archiveCustomDimension(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ArchiveCustomDimensionRequest request = - * ArchiveCustomDimensionRequest.newBuilder() - * .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) + * DeleteDataStreamRequest request = + * DeleteDataStreamRequest.newBuilder() + * .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) * .build(); - * analyticsAdminServiceClient.archiveCustomDimension(request); + * analyticsAdminServiceClient.deleteDataStream(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); + public final void deleteDataStream(DeleteDataStreamRequest request) { + deleteDataStreamCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Archives a CustomDimension on a property. + * Deletes a DataStream on a property. * *

Sample code: * @@ -8090,25 +8231,24 @@ public final void archiveCustomDimension(ArchiveCustomDimensionRequest request) * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ArchiveCustomDimensionRequest request = - * ArchiveCustomDimensionRequest.newBuilder() - * .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) + * DeleteDataStreamRequest request = + * DeleteDataStreamRequest.newBuilder() + * .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) * .build(); * ApiFuture future = - * analyticsAdminServiceClient.archiveCustomDimensionCallable().futureCall(request); + * analyticsAdminServiceClient.deleteDataStreamCallable().futureCall(request); * // Do something. * future.get(); * } * } */ - public final UnaryCallable - archiveCustomDimensionCallable() { - return stub.archiveCustomDimensionCallable(); + public final UnaryCallable deleteDataStreamCallable() { + return stub.deleteDataStreamCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single CustomDimension. + * Updates a DataStream on a property. * *

Sample code: * @@ -8120,55 +8260,30 @@ public final void archiveCustomDimension(ArchiveCustomDimensionRequest request) * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - * CustomDimension response = analyticsAdminServiceClient.getCustomDimension(name); + * DataStream dataStream = DataStream.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * DataStream response = analyticsAdminServiceClient.updateDataStream(dataStream, updateMask); * } * } * - * @param name Required. The name of the CustomDimension to get. Example format: - * properties/1234/customDimensions/5678 + * @param dataStream The DataStream 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 getCustomDimension(CustomDimensionName name) { - GetCustomDimensionRequest request = - GetCustomDimensionRequest.newBuilder() - .setName(name == null ? null : name.toString()) + public final DataStream updateDataStream(DataStream dataStream, FieldMask updateMask) { + UpdateDataStreamRequest request = + UpdateDataStreamRequest.newBuilder() + .setDataStream(dataStream) + .setUpdateMask(updateMask) .build(); - return getCustomDimension(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lookup for a single CustomDimension. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").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); + return updateDataStream(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single CustomDimension. + * Updates a DataStream on a property. * *

Sample code: * @@ -8180,24 +8295,25 @@ public final CustomDimension getCustomDimension(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetCustomDimensionRequest request = - * GetCustomDimensionRequest.newBuilder() - * .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) + * UpdateDataStreamRequest request = + * UpdateDataStreamRequest.newBuilder() + * .setDataStream(DataStream.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * CustomDimension response = analyticsAdminServiceClient.getCustomDimension(request); + * DataStream response = analyticsAdminServiceClient.updateDataStream(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); + public final DataStream updateDataStream(UpdateDataStreamRequest request) { + return updateDataStreamCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single CustomDimension. + * Updates a DataStream on a property. * *

Sample code: * @@ -8209,25 +8325,25 @@ public final CustomDimension getCustomDimension(GetCustomDimensionRequest reques * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetCustomDimensionRequest request = - * GetCustomDimensionRequest.newBuilder() - * .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) + * UpdateDataStreamRequest request = + * UpdateDataStreamRequest.newBuilder() + * .setDataStream(DataStream.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.getCustomDimensionCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.updateDataStreamCallable().futureCall(request); * // Do something. - * CustomDimension response = future.get(); + * DataStream response = future.get(); * } * } */ - public final UnaryCallable - getCustomDimensionCallable() { - return stub.getCustomDimensionCallable(); + public final UnaryCallable updateDataStreamCallable() { + return stub.updateDataStreamCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a CustomMetric. + * Lists DataStreams on a property. * *

Sample code: * @@ -8240,27 +8356,26 @@ public final CustomDimension getCustomDimension(GetCustomDimensionRequest reques * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { * PropertyName parent = PropertyName.of("[PROPERTY]"); - * CustomMetric customMetric = CustomMetric.newBuilder().build(); - * CustomMetric response = analyticsAdminServiceClient.createCustomMetric(parent, customMetric); + * for (DataStream element : analyticsAdminServiceClient.listDataStreams(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * * @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() + public final ListDataStreamsPagedResponse listDataStreams(PropertyName parent) { + ListDataStreamsRequest request = + ListDataStreamsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) - .setCustomMetric(customMetric) .build(); - return createCustomMetric(request); + return listDataStreams(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a CustomMetric. + * Lists DataStreams on a property. * *

Sample code: * @@ -8273,27 +8388,23 @@ public final CustomMetric createCustomMetric(PropertyName parent, CustomMetric c * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { * String parent = PropertyName.of("[PROPERTY]").toString(); - * CustomMetric customMetric = CustomMetric.newBuilder().build(); - * CustomMetric response = analyticsAdminServiceClient.createCustomMetric(parent, customMetric); + * for (DataStream element : analyticsAdminServiceClient.listDataStreams(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * * @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); + public final ListDataStreamsPagedResponse listDataStreams(String parent) { + ListDataStreamsRequest request = ListDataStreamsRequest.newBuilder().setParent(parent).build(); + return listDataStreams(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a CustomMetric. + * Lists DataStreams on a property. * *

Sample code: * @@ -8305,25 +8416,28 @@ public final CustomMetric createCustomMetric(String parent, CustomMetric customM * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateCustomMetricRequest request = - * CreateCustomMetricRequest.newBuilder() + * ListDataStreamsRequest request = + * ListDataStreamsRequest.newBuilder() * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setCustomMetric(CustomMetric.newBuilder().build()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * CustomMetric response = analyticsAdminServiceClient.createCustomMetric(request); + * for (DataStream element : analyticsAdminServiceClient.listDataStreams(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 CustomMetric createCustomMetric(CreateCustomMetricRequest request) { - return createCustomMetricCallable().call(request); + public final ListDataStreamsPagedResponse listDataStreams(ListDataStreamsRequest request) { + return listDataStreamsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a CustomMetric. + * Lists DataStreams on a property. * *

Sample code: * @@ -8335,25 +8449,29 @@ public final CustomMetric createCustomMetric(CreateCustomMetricRequest request) * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateCustomMetricRequest request = - * CreateCustomMetricRequest.newBuilder() + * ListDataStreamsRequest request = + * ListDataStreamsRequest.newBuilder() * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setCustomMetric(CustomMetric.newBuilder().build()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.createCustomMetricCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.listDataStreamsPagedCallable().futureCall(request); * // Do something. - * CustomMetric response = future.get(); + * for (DataStream element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final UnaryCallable createCustomMetricCallable() { - return stub.createCustomMetricCallable(); + public final UnaryCallable + listDataStreamsPagedCallable() { + return stub.listDataStreamsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a CustomMetric on a property. + * Lists DataStreams on a property. * *

Sample code: * @@ -8365,31 +8483,36 @@ public final UnaryCallable createCustom * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CustomMetric customMetric = CustomMetric.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * CustomMetric response = - * analyticsAdminServiceClient.updateCustomMetric(customMetric, updateMask); + * ListDataStreamsRequest request = + * ListDataStreamsRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListDataStreamsResponse response = + * analyticsAdminServiceClient.listDataStreamsCallable().call(request); + * for (DataStream element : response.getDataStreamsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @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); + public final UnaryCallable + listDataStreamsCallable() { + return stub.listDataStreamsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a CustomMetric on a property. + * Lookup for a single DataStream. * *

Sample code: * @@ -8401,25 +8524,24 @@ public final CustomMetric updateCustomMetric(CustomMetric customMetric, FieldMas * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateCustomMetricRequest request = - * UpdateCustomMetricRequest.newBuilder() - * .setCustomMetric(CustomMetric.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .build(); - * CustomMetric response = analyticsAdminServiceClient.updateCustomMetric(request); + * DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + * DataStream response = analyticsAdminServiceClient.getDataStream(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The name of the DataStream to get. Example format: + * properties/1234/dataStreams/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomMetric updateCustomMetric(UpdateCustomMetricRequest request) { - return updateCustomMetricCallable().call(request); + public final DataStream getDataStream(DataStreamName name) { + GetDataStreamRequest request = + GetDataStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getDataStream(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a CustomMetric on a property. + * Lookup for a single DataStream. * *

Sample code: * @@ -8431,25 +8553,23 @@ public final CustomMetric updateCustomMetric(UpdateCustomMetricRequest request) * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * 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(); + * String name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString(); + * DataStream response = analyticsAdminServiceClient.getDataStream(name); * } * } + * + * @param name Required. The name of the DataStream to get. Example format: + * properties/1234/dataStreams/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable updateCustomMetricCallable() { - return stub.updateCustomMetricCallable(); + public final DataStream getDataStream(String name) { + GetDataStreamRequest request = GetDataStreamRequest.newBuilder().setName(name).build(); + return getDataStream(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CustomMetrics on a property. + * Lookup for a single DataStream. * *

Sample code: * @@ -8461,28 +8581,24 @@ public final UnaryCallable updateCustom * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * for (CustomMetric element : - * analyticsAdminServiceClient.listCustomMetrics(parent).iterateAll()) { - * // doThingsWith(element); - * } + * GetDataStreamRequest request = + * GetDataStreamRequest.newBuilder() + * .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * .build(); + * DataStream response = analyticsAdminServiceClient.getDataStream(request); * } * } * - * @param parent Required. Example format: properties/1234 + * @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(PropertyName parent) { - ListCustomMetricsRequest request = - ListCustomMetricsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listCustomMetrics(request); + public final DataStream getDataStream(GetDataStreamRequest request) { + return getDataStreamCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CustomMetrics on a property. + * Lookup for a single DataStream. * *

Sample code: * @@ -8494,26 +8610,25 @@ public final ListCustomMetricsPagedResponse listCustomMetrics(PropertyName paren * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * for (CustomMetric element : - * analyticsAdminServiceClient.listCustomMetrics(parent).iterateAll()) { - * // doThingsWith(element); - * } + * GetDataStreamRequest request = + * GetDataStreamRequest.newBuilder() + * .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient.getDataStreamCallable().futureCall(request); + * // Do something. + * DataStream response = future.get(); * } * } - * - * @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); + public final UnaryCallable getDataStreamCallable() { + return stub.getDataStreamCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CustomMetrics on a property. + * Lookup for a single Audience. Audiences created before 2020 may not be supported. Default + * audiences will not show filter definitions. * *

Sample code: * @@ -8525,29 +8640,25 @@ public final ListCustomMetricsPagedResponse listCustomMetrics(String parent) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListCustomMetricsRequest request = - * ListCustomMetricsRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * for (CustomMetric element : - * analyticsAdminServiceClient.listCustomMetrics(request).iterateAll()) { - * // doThingsWith(element); - * } + * AudienceName name = AudienceName.of("[PROPERTY]", "[AUDIENCE]"); + * Audience response = analyticsAdminServiceClient.getAudience(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The name of the Audience to get. Example format: + * properties/1234/audiences/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCustomMetricsPagedResponse listCustomMetrics(ListCustomMetricsRequest request) { - return listCustomMetricsPagedCallable().call(request); + public final Audience getAudience(AudienceName name) { + GetAudienceRequest request = + GetAudienceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAudience(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CustomMetrics on a property. + * Lookup for a single Audience. Audiences created before 2020 may not be supported. Default + * audiences will not show filter definitions. * *

Sample code: * @@ -8559,29 +8670,24 @@ public final ListCustomMetricsPagedResponse listCustomMetrics(ListCustomMetricsR * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListCustomMetricsRequest request = - * ListCustomMetricsRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.listCustomMetricsPagedCallable().futureCall(request); - * // Do something. - * for (CustomMetric element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * String name = AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString(); + * Audience response = analyticsAdminServiceClient.getAudience(name); * } * } + * + * @param name Required. The name of the Audience to get. Example format: + * properties/1234/audiences/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listCustomMetricsPagedCallable() { - return stub.listCustomMetricsPagedCallable(); + public final Audience getAudience(String name) { + GetAudienceRequest request = GetAudienceRequest.newBuilder().setName(name).build(); + return getAudience(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CustomMetrics on a property. + * Lookup for a single Audience. Audiences created before 2020 may not be supported. Default + * audiences will not show filter definitions. * *

Sample code: * @@ -8593,36 +8699,25 @@ public final ListCustomMetricsPagedResponse listCustomMetrics(ListCustomMetricsR * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListCustomMetricsRequest request = - * ListCustomMetricsRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * GetAudienceRequest request = + * GetAudienceRequest.newBuilder() + * .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) * .build(); - * while (true) { - * ListCustomMetricsResponse response = - * analyticsAdminServiceClient.listCustomMetricsCallable().call(request); - * for (CustomMetric element : response.getCustomMetricsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * Audience response = analyticsAdminServiceClient.getAudience(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 - listCustomMetricsCallable() { - return stub.listCustomMetricsCallable(); + public final Audience getAudience(GetAudienceRequest request) { + return getAudienceCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Archives a CustomMetric on a property. + * Lookup for a single Audience. Audiences created before 2020 may not be supported. Default + * audiences will not show filter definitions. * *

Sample code: * @@ -8634,26 +8729,25 @@ public final ListCustomMetricsPagedResponse listCustomMetrics(ListCustomMetricsR * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - * analyticsAdminServiceClient.archiveCustomMetric(name); + * GetAudienceRequest request = + * GetAudienceRequest.newBuilder() + * .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient.getAudienceCallable().futureCall(request); + * // Do something. + * Audience response = future.get(); * } * } - * - * @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); + public final UnaryCallable getAudienceCallable() { + return stub.getAudienceCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Archives a CustomMetric on a property. + * Lists Audiences on a property. Audiences created before 2020 may not be supported. Default + * audiences will not show filter definitions. * *

Sample code: * @@ -8665,24 +8759,28 @@ public final void archiveCustomMetric(CustomMetricName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString(); - * analyticsAdminServiceClient.archiveCustomMetric(name); + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * for (Audience element : analyticsAdminServiceClient.listAudiences(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The name of the CustomMetric to archive. Example format: - * properties/1234/customMetrics/5678 + * @param parent Required. Example format: properties/1234 * @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); + public final ListAudiencesPagedResponse listAudiences(PropertyName parent) { + ListAudiencesRequest request = + ListAudiencesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAudiences(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Archives a CustomMetric on a property. + * Lists Audiences on a property. Audiences created before 2020 may not be supported. Default + * audiences will not show filter definitions. * *

Sample code: * @@ -8694,24 +8792,25 @@ public final void archiveCustomMetric(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ArchiveCustomMetricRequest request = - * ArchiveCustomMetricRequest.newBuilder() - * .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - * .build(); - * analyticsAdminServiceClient.archiveCustomMetric(request); + * String parent = PropertyName.of("[PROPERTY]").toString(); + * for (Audience element : analyticsAdminServiceClient.listAudiences(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void archiveCustomMetric(ArchiveCustomMetricRequest request) { - archiveCustomMetricCallable().call(request); + public final ListAudiencesPagedResponse listAudiences(String parent) { + ListAudiencesRequest request = ListAudiencesRequest.newBuilder().setParent(parent).build(); + return listAudiences(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Archives a CustomMetric on a property. + * Lists Audiences on a property. Audiences created before 2020 may not be supported. Default + * audiences will not show filter definitions. * *

Sample code: * @@ -8723,24 +8822,29 @@ public final void archiveCustomMetric(ArchiveCustomMetricRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ArchiveCustomMetricRequest request = - * ArchiveCustomMetricRequest.newBuilder() - * .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) + * ListAudiencesRequest request = + * ListAudiencesRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.archiveCustomMetricCallable().futureCall(request); - * // Do something. - * future.get(); + * for (Audience element : analyticsAdminServiceClient.listAudiences(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 UnaryCallable archiveCustomMetricCallable() { - return stub.archiveCustomMetricCallable(); + public final ListAudiencesPagedResponse listAudiences(ListAudiencesRequest request) { + return listAudiencesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single CustomMetric. + * Lists Audiences on a property. Audiences created before 2020 may not be supported. Default + * audiences will not show filter definitions. * *

Sample code: * @@ -8752,24 +8856,30 @@ public final UnaryCallable archiveCustomMetri * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - * CustomMetric response = analyticsAdminServiceClient.getCustomMetric(name); + * ListAudiencesRequest request = + * ListAudiencesRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient.listAudiencesPagedCallable().futureCall(request); + * // Do something. + * for (Audience element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } - * - * @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(CustomMetricName name) { - GetCustomMetricRequest request = - GetCustomMetricRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getCustomMetric(request); + public final UnaryCallable + listAudiencesPagedCallable() { + return stub.listAudiencesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single CustomMetric. + * Lists Audiences on a property. Audiences created before 2020 may not be supported. Default + * audiences will not show filter definitions. * *

Sample code: * @@ -8781,23 +8891,35 @@ public final CustomMetric getCustomMetric(CustomMetricName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString(); - * CustomMetric response = analyticsAdminServiceClient.getCustomMetric(name); + * ListAudiencesRequest request = + * ListAudiencesRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListAudiencesResponse response = + * analyticsAdminServiceClient.listAudiencesCallable().call(request); + * for (Audience element : response.getAudiencesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @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); + public final UnaryCallable listAudiencesCallable() { + return stub.listAudiencesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single CustomMetric. + * Creates an Audience. * *

Sample code: * @@ -8809,24 +8931,28 @@ public final CustomMetric getCustomMetric(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetCustomMetricRequest request = - * GetCustomMetricRequest.newBuilder() - * .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - * .build(); - * CustomMetric response = analyticsAdminServiceClient.getCustomMetric(request); + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * Audience audience = Audience.newBuilder().build(); + * Audience response = analyticsAdminServiceClient.createAudience(parent, audience); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. Example format: properties/1234 + * @param audience Required. The audience to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomMetric getCustomMetric(GetCustomMetricRequest request) { - return getCustomMetricCallable().call(request); + public final Audience createAudience(PropertyName parent, Audience audience) { + CreateAudienceRequest request = + CreateAudienceRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAudience(audience) + .build(); + return createAudience(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single CustomMetric. + * Creates an Audience. * *

Sample code: * @@ -8838,24 +8964,25 @@ public final CustomMetric getCustomMetric(GetCustomMetricRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetCustomMetricRequest request = - * GetCustomMetricRequest.newBuilder() - * .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.getCustomMetricCallable().futureCall(request); - * // Do something. - * CustomMetric response = future.get(); + * String parent = PropertyName.of("[PROPERTY]").toString(); + * Audience audience = Audience.newBuilder().build(); + * Audience response = analyticsAdminServiceClient.createAudience(parent, audience); * } * } + * + * @param parent Required. Example format: properties/1234 + * @param audience Required. The audience to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable getCustomMetricCallable() { - return stub.getCustomMetricCallable(); + public final Audience createAudience(String parent, Audience audience) { + CreateAudienceRequest request = + CreateAudienceRequest.newBuilder().setParent(parent).setAudience(audience).build(); + return createAudience(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the singleton data retention settings for this property. + * Creates an Audience. * *

Sample code: * @@ -8867,27 +8994,25 @@ public final UnaryCallable getCustomMetric * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]"); - * DataRetentionSettings response = analyticsAdminServiceClient.getDataRetentionSettings(name); + * CreateAudienceRequest request = + * CreateAudienceRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setAudience(Audience.newBuilder().build()) + * .build(); + * Audience response = analyticsAdminServiceClient.createAudience(request); * } * } * - * @param name Required. The name of the settings to lookup. Format: - * properties/{property}/dataRetentionSettings Example: - * "properties/1000/dataRetentionSettings" + * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataRetentionSettings getDataRetentionSettings(DataRetentionSettingsName name) { - GetDataRetentionSettingsRequest request = - GetDataRetentionSettingsRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getDataRetentionSettings(request); + public final Audience createAudience(CreateAudienceRequest request) { + return createAudienceCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the singleton data retention settings for this property. + * Creates an Audience. * *

Sample code: * @@ -8899,25 +9024,25 @@ public final DataRetentionSettings getDataRetentionSettings(DataRetentionSetting * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = DataRetentionSettingsName.of("[PROPERTY]").toString(); - * DataRetentionSettings response = analyticsAdminServiceClient.getDataRetentionSettings(name); + * CreateAudienceRequest request = + * CreateAudienceRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setAudience(Audience.newBuilder().build()) + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient.createAudienceCallable().futureCall(request); + * // Do something. + * Audience response = future.get(); * } * } - * - * @param name Required. The name of the settings to lookup. Format: - * properties/{property}/dataRetentionSettings Example: - * "properties/1000/dataRetentionSettings" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataRetentionSettings getDataRetentionSettings(String name) { - GetDataRetentionSettingsRequest request = - GetDataRetentionSettingsRequest.newBuilder().setName(name).build(); - return getDataRetentionSettings(request); + public final UnaryCallable createAudienceCallable() { + return stub.createAudienceCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the singleton data retention settings for this property. + * Updates an Audience on a property. * *

Sample code: * @@ -8929,26 +9054,28 @@ public final DataRetentionSettings getDataRetentionSettings(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetDataRetentionSettingsRequest request = - * GetDataRetentionSettingsRequest.newBuilder() - * .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - * .build(); - * DataRetentionSettings response = - * analyticsAdminServiceClient.getDataRetentionSettings(request); + * Audience audience = Audience.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * Audience response = analyticsAdminServiceClient.updateAudience(audience, updateMask); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param audience Required. The audience to update. The audience's `name` field is used to + * identify the audience to be updated. + * @param updateMask Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire + * entity, use one path with the string "*" to match all fields. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataRetentionSettings getDataRetentionSettings( - GetDataRetentionSettingsRequest request) { - return getDataRetentionSettingsCallable().call(request); + public final Audience updateAudience(Audience audience, FieldMask updateMask) { + UpdateAudienceRequest request = + UpdateAudienceRequest.newBuilder().setAudience(audience).setUpdateMask(updateMask).build(); + return updateAudience(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the singleton data retention settings for this property. + * Updates an Audience on a property. * *

Sample code: * @@ -8960,25 +9087,25 @@ public final DataRetentionSettings getDataRetentionSettings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetDataRetentionSettingsRequest request = - * GetDataRetentionSettingsRequest.newBuilder() - * .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) + * UpdateAudienceRequest request = + * UpdateAudienceRequest.newBuilder() + * .setAudience(Audience.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.getDataRetentionSettingsCallable().futureCall(request); - * // Do something. - * DataRetentionSettings response = future.get(); + * Audience response = analyticsAdminServiceClient.updateAudience(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 - getDataRetentionSettingsCallable() { - return stub.getDataRetentionSettingsCallable(); + public final Audience updateAudience(UpdateAudienceRequest request) { + return updateAudienceCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the singleton data retention settings for this property. + * Updates an Audience on a property. * *

Sample code: * @@ -8990,34 +9117,25 @@ public final DataRetentionSettings getDataRetentionSettings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DataRetentionSettings dataRetentionSettings = DataRetentionSettings.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * DataRetentionSettings response = - * analyticsAdminServiceClient.updateDataRetentionSettings( - * dataRetentionSettings, updateMask); + * UpdateAudienceRequest request = + * UpdateAudienceRequest.newBuilder() + * .setAudience(Audience.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient.updateAudienceCallable().futureCall(request); + * // Do something. + * Audience response = future.get(); * } * } - * - * @param dataRetentionSettings Required. The settings to update. The `name` field is used to - * identify the settings to be updated. - * @param updateMask Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire - * entity, use one path with the string "*" to match all fields. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataRetentionSettings updateDataRetentionSettings( - DataRetentionSettings dataRetentionSettings, FieldMask updateMask) { - UpdateDataRetentionSettingsRequest request = - UpdateDataRetentionSettingsRequest.newBuilder() - .setDataRetentionSettings(dataRetentionSettings) - .setUpdateMask(updateMask) - .build(); - return updateDataRetentionSettings(request); + public final UnaryCallable updateAudienceCallable() { + return stub.updateAudienceCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the singleton data retention settings for this property. + * Archives an Audience on a property. * *

Sample code: * @@ -9029,27 +9147,24 @@ public final DataRetentionSettings updateDataRetentionSettings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateDataRetentionSettingsRequest request = - * UpdateDataRetentionSettingsRequest.newBuilder() - * .setDataRetentionSettings(DataRetentionSettings.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * ArchiveAudienceRequest request = + * ArchiveAudienceRequest.newBuilder() + * .setName(PropertyName.of("[PROPERTY]").toString()) * .build(); - * DataRetentionSettings response = - * analyticsAdminServiceClient.updateDataRetentionSettings(request); + * analyticsAdminServiceClient.archiveAudience(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataRetentionSettings updateDataRetentionSettings( - UpdateDataRetentionSettingsRequest request) { - return updateDataRetentionSettingsCallable().call(request); + public final void archiveAudience(ArchiveAudienceRequest request) { + archiveAudienceCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the singleton data retention settings for this property. + * Archives an Audience on a property. * *

Sample code: * @@ -9061,26 +9176,24 @@ public final DataRetentionSettings updateDataRetentionSettings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateDataRetentionSettingsRequest request = - * UpdateDataRetentionSettingsRequest.newBuilder() - * .setDataRetentionSettings(DataRetentionSettings.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * ArchiveAudienceRequest request = + * ArchiveAudienceRequest.newBuilder() + * .setName(PropertyName.of("[PROPERTY]").toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.updateDataRetentionSettingsCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.archiveAudienceCallable().futureCall(request); * // Do something. - * DataRetentionSettings response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable - updateDataRetentionSettingsCallable() { - return stub.updateDataRetentionSettingsCallable(); + public final UnaryCallable archiveAudienceCallable() { + return stub.archiveAudienceCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a DataStream. + * Look up a single SearchAds360Link * *

Sample code: * @@ -9092,28 +9205,26 @@ public final DataRetentionSettings updateDataRetentionSettings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * DataStream dataStream = DataStream.newBuilder().build(); - * DataStream response = analyticsAdminServiceClient.createDataStream(parent, dataStream); + * SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]"); + * SearchAds360Link response = analyticsAdminServiceClient.getSearchAds360Link(name); * } * } * - * @param parent Required. Example format: properties/1234 - * @param dataStream Required. The DataStream to create. + * @param name Required. The name of the SearchAds360Link to get. Example format: + * properties/1234/SearchAds360Link/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataStream createDataStream(PropertyName parent, DataStream dataStream) { - CreateDataStreamRequest request = - CreateDataStreamRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setDataStream(dataStream) + public final SearchAds360Link getSearchAds360Link(SearchAds360LinkName name) { + GetSearchAds360LinkRequest request = + GetSearchAds360LinkRequest.newBuilder() + .setName(name == null ? null : name.toString()) .build(); - return createDataStream(request); + return getSearchAds360Link(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a DataStream. + * Look up a single SearchAds360Link * *

Sample code: * @@ -9125,25 +9236,24 @@ public final DataStream createDataStream(PropertyName parent, DataStream dataStr * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * DataStream dataStream = DataStream.newBuilder().build(); - * DataStream response = analyticsAdminServiceClient.createDataStream(parent, dataStream); + * String name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString(); + * SearchAds360Link response = analyticsAdminServiceClient.getSearchAds360Link(name); * } * } * - * @param parent Required. Example format: properties/1234 - * @param dataStream Required. The DataStream to create. + * @param name Required. The name of the SearchAds360Link to get. Example format: + * properties/1234/SearchAds360Link/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataStream createDataStream(String parent, DataStream dataStream) { - CreateDataStreamRequest request = - CreateDataStreamRequest.newBuilder().setParent(parent).setDataStream(dataStream).build(); - return createDataStream(request); + public final SearchAds360Link getSearchAds360Link(String name) { + GetSearchAds360LinkRequest request = + GetSearchAds360LinkRequest.newBuilder().setName(name).build(); + return getSearchAds360Link(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a DataStream. + * Look up a single SearchAds360Link * *

Sample code: * @@ -9155,25 +9265,24 @@ public final DataStream createDataStream(String parent, DataStream dataStream) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateDataStreamRequest request = - * CreateDataStreamRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setDataStream(DataStream.newBuilder().build()) + * GetSearchAds360LinkRequest request = + * GetSearchAds360LinkRequest.newBuilder() + * .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) * .build(); - * DataStream response = analyticsAdminServiceClient.createDataStream(request); + * SearchAds360Link response = analyticsAdminServiceClient.getSearchAds360Link(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 DataStream createDataStream(CreateDataStreamRequest request) { - return createDataStreamCallable().call(request); + public final SearchAds360Link getSearchAds360Link(GetSearchAds360LinkRequest request) { + return getSearchAds360LinkCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a DataStream. + * Look up a single SearchAds360Link * *

Sample code: * @@ -9185,25 +9294,25 @@ public final DataStream createDataStream(CreateDataStreamRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateDataStreamRequest request = - * CreateDataStreamRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setDataStream(DataStream.newBuilder().build()) + * GetSearchAds360LinkRequest request = + * GetSearchAds360LinkRequest.newBuilder() + * .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.createDataStreamCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.getSearchAds360LinkCallable().futureCall(request); * // Do something. - * DataStream response = future.get(); + * SearchAds360Link response = future.get(); * } * } */ - public final UnaryCallable createDataStreamCallable() { - return stub.createDataStreamCallable(); + public final UnaryCallable + getSearchAds360LinkCallable() { + return stub.getSearchAds360LinkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a DataStream on a property. + * Lists all SearchAds360Links on a property. * *

Sample code: * @@ -9215,24 +9324,28 @@ public final UnaryCallable createDataStream * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - * analyticsAdminServiceClient.deleteDataStream(name); + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * for (SearchAds360Link element : + * analyticsAdminServiceClient.listSearchAds360Links(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The name of the DataStream to delete. Example format: - * properties/1234/dataStreams/5678 + * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDataStream(DataStreamName name) { - DeleteDataStreamRequest request = - DeleteDataStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteDataStream(request); + public final ListSearchAds360LinksPagedResponse listSearchAds360Links(PropertyName parent) { + ListSearchAds360LinksRequest request = + ListSearchAds360LinksRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listSearchAds360Links(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a DataStream on a property. + * Lists all SearchAds360Links on a property. * *

Sample code: * @@ -9244,23 +9357,26 @@ public final void deleteDataStream(DataStreamName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString(); - * analyticsAdminServiceClient.deleteDataStream(name); + * String parent = PropertyName.of("[PROPERTY]").toString(); + * for (SearchAds360Link element : + * analyticsAdminServiceClient.listSearchAds360Links(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The name of the DataStream to delete. Example format: - * properties/1234/dataStreams/5678 + * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteDataStream(String name) { - DeleteDataStreamRequest request = DeleteDataStreamRequest.newBuilder().setName(name).build(); - deleteDataStream(request); + public final ListSearchAds360LinksPagedResponse listSearchAds360Links(String parent) { + ListSearchAds360LinksRequest request = + ListSearchAds360LinksRequest.newBuilder().setParent(parent).build(); + return listSearchAds360Links(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a DataStream on a property. + * Lists all SearchAds360Links on a property. * *

Sample code: * @@ -9272,24 +9388,30 @@ public final void deleteDataStream(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteDataStreamRequest request = - * DeleteDataStreamRequest.newBuilder() - * .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * ListSearchAds360LinksRequest request = + * ListSearchAds360LinksRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * analyticsAdminServiceClient.deleteDataStream(request); + * for (SearchAds360Link element : + * analyticsAdminServiceClient.listSearchAds360Links(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 void deleteDataStream(DeleteDataStreamRequest request) { - deleteDataStreamCallable().call(request); + public final ListSearchAds360LinksPagedResponse listSearchAds360Links( + ListSearchAds360LinksRequest request) { + return listSearchAds360LinksPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a DataStream on a property. + * Lists all SearchAds360Links on a property. * *

Sample code: * @@ -9301,24 +9423,29 @@ public final void deleteDataStream(DeleteDataStreamRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteDataStreamRequest request = - * DeleteDataStreamRequest.newBuilder() - * .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * ListSearchAds360LinksRequest request = + * ListSearchAds360LinksRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.deleteDataStreamCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.listSearchAds360LinksPagedCallable().futureCall(request); * // Do something. - * future.get(); + * for (SearchAds360Link element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final UnaryCallable deleteDataStreamCallable() { - return stub.deleteDataStreamCallable(); + public final UnaryCallable + listSearchAds360LinksPagedCallable() { + return stub.listSearchAds360LinksPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a DataStream on a property. + * Lists all SearchAds360Links on a property. * *

Sample code: * @@ -9330,30 +9457,36 @@ public final UnaryCallable deleteDataStreamCalla * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DataStream dataStream = DataStream.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * DataStream response = analyticsAdminServiceClient.updateDataStream(dataStream, updateMask); + * ListSearchAds360LinksRequest request = + * ListSearchAds360LinksRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListSearchAds360LinksResponse response = + * analyticsAdminServiceClient.listSearchAds360LinksCallable().call(request); + * for (SearchAds360Link element : response.getSearchAds360LinksList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @param dataStream The DataStream 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 DataStream updateDataStream(DataStream dataStream, FieldMask updateMask) { - UpdateDataStreamRequest request = - UpdateDataStreamRequest.newBuilder() - .setDataStream(dataStream) - .setUpdateMask(updateMask) - .build(); - return updateDataStream(request); + public final UnaryCallable + listSearchAds360LinksCallable() { + return stub.listSearchAds360LinksCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a DataStream on a property. + * Creates a SearchAds360Link. * *

Sample code: * @@ -9365,25 +9498,30 @@ public final DataStream updateDataStream(DataStream dataStream, FieldMask update * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateDataStreamRequest request = - * UpdateDataStreamRequest.newBuilder() - * .setDataStream(DataStream.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .build(); - * DataStream response = analyticsAdminServiceClient.updateDataStream(request); + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); + * SearchAds360Link response = + * analyticsAdminServiceClient.createSearchAds360Link(parent, searchAds360Link); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. Example format: properties/1234 + * @param searchAds360Link Required. The SearchAds360Link to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataStream updateDataStream(UpdateDataStreamRequest request) { - return updateDataStreamCallable().call(request); + public final SearchAds360Link createSearchAds360Link( + PropertyName parent, SearchAds360Link searchAds360Link) { + CreateSearchAds360LinkRequest request = + CreateSearchAds360LinkRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSearchAds360Link(searchAds360Link) + .build(); + return createSearchAds360Link(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a DataStream on a property. + * Creates a SearchAds360Link. * *

Sample code: * @@ -9395,25 +9533,30 @@ public final DataStream updateDataStream(UpdateDataStreamRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateDataStreamRequest request = - * UpdateDataStreamRequest.newBuilder() - * .setDataStream(DataStream.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.updateDataStreamCallable().futureCall(request); - * // Do something. - * DataStream response = future.get(); + * String parent = PropertyName.of("[PROPERTY]").toString(); + * SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); + * SearchAds360Link response = + * analyticsAdminServiceClient.createSearchAds360Link(parent, searchAds360Link); * } * } + * + * @param parent Required. Example format: properties/1234 + * @param searchAds360Link Required. The SearchAds360Link to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable updateDataStreamCallable() { - return stub.updateDataStreamCallable(); + public final SearchAds360Link createSearchAds360Link( + String parent, SearchAds360Link searchAds360Link) { + CreateSearchAds360LinkRequest request = + CreateSearchAds360LinkRequest.newBuilder() + .setParent(parent) + .setSearchAds360Link(searchAds360Link) + .build(); + return createSearchAds360Link(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DataStreams on a property. + * Creates a SearchAds360Link. * *

Sample code: * @@ -9425,27 +9568,25 @@ public final UnaryCallable updateDataStream * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * for (DataStream element : analyticsAdminServiceClient.listDataStreams(parent).iterateAll()) { - * // doThingsWith(element); - * } + * CreateSearchAds360LinkRequest request = + * CreateSearchAds360LinkRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setSearchAds360Link(SearchAds360Link.newBuilder().build()) + * .build(); + * SearchAds360Link response = analyticsAdminServiceClient.createSearchAds360Link(request); * } * } * - * @param parent Required. Example format: properties/1234 + * @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 ListDataStreamsPagedResponse listDataStreams(PropertyName parent) { - ListDataStreamsRequest request = - ListDataStreamsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listDataStreams(request); + public final SearchAds360Link createSearchAds360Link(CreateSearchAds360LinkRequest request) { + return createSearchAds360LinkCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DataStreams on a property. + * Creates a SearchAds360Link. * *

Sample code: * @@ -9457,24 +9598,26 @@ public final ListDataStreamsPagedResponse listDataStreams(PropertyName parent) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * for (DataStream element : analyticsAdminServiceClient.listDataStreams(parent).iterateAll()) { - * // doThingsWith(element); - * } + * CreateSearchAds360LinkRequest request = + * CreateSearchAds360LinkRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setSearchAds360Link(SearchAds360Link.newBuilder().build()) + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient.createSearchAds360LinkCallable().futureCall(request); + * // Do something. + * SearchAds360Link response = future.get(); * } * } - * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataStreamsPagedResponse listDataStreams(String parent) { - ListDataStreamsRequest request = ListDataStreamsRequest.newBuilder().setParent(parent).build(); - return listDataStreams(request); + public final UnaryCallable + createSearchAds360LinkCallable() { + return stub.createSearchAds360LinkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DataStreams on a property. + * Deletes a SearchAds360Link on a property. * *

Sample code: * @@ -9486,28 +9629,26 @@ public final ListDataStreamsPagedResponse listDataStreams(String parent) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListDataStreamsRequest request = - * ListDataStreamsRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * for (DataStream element : analyticsAdminServiceClient.listDataStreams(request).iterateAll()) { - * // doThingsWith(element); - * } + * SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]"); + * analyticsAdminServiceClient.deleteSearchAds360Link(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The name of the SearchAds360Link to delete. Example format: + * properties/1234/SearchAds360Links/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListDataStreamsPagedResponse listDataStreams(ListDataStreamsRequest request) { - return listDataStreamsPagedCallable().call(request); + public final void deleteSearchAds360Link(SearchAds360LinkName name) { + DeleteSearchAds360LinkRequest request = + DeleteSearchAds360LinkRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteSearchAds360Link(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DataStreams on a property. + * Deletes a SearchAds360Link on a property. * *

Sample code: * @@ -9519,29 +9660,24 @@ public final ListDataStreamsPagedResponse listDataStreams(ListDataStreamsRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListDataStreamsRequest request = - * ListDataStreamsRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.listDataStreamsPagedCallable().futureCall(request); - * // Do something. - * for (DataStream element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * String name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString(); + * analyticsAdminServiceClient.deleteSearchAds360Link(name); * } * } + * + * @param name Required. The name of the SearchAds360Link to delete. Example format: + * properties/1234/SearchAds360Links/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listDataStreamsPagedCallable() { - return stub.listDataStreamsPagedCallable(); + public final void deleteSearchAds360Link(String name) { + DeleteSearchAds360LinkRequest request = + DeleteSearchAds360LinkRequest.newBuilder().setName(name).build(); + deleteSearchAds360Link(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DataStreams on a property. + * Deletes a SearchAds360Link on a property. * *

Sample code: * @@ -9552,37 +9688,25 @@ public final ListDataStreamsPagedResponse listDataStreams(ListDataStreamsRequest * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = - * AnalyticsAdminServiceClient.create()) { - * ListDataStreamsRequest request = - * ListDataStreamsRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * while (true) { - * ListDataStreamsResponse response = - * analyticsAdminServiceClient.listDataStreamsCallable().call(request); - * for (DataStream element : response.getDataStreamsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * AnalyticsAdminServiceClient.create()) { + * DeleteSearchAds360LinkRequest request = + * DeleteSearchAds360LinkRequest.newBuilder() + * .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) + * .build(); + * analyticsAdminServiceClient.deleteSearchAds360Link(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 - listDataStreamsCallable() { - return stub.listDataStreamsCallable(); + public final void deleteSearchAds360Link(DeleteSearchAds360LinkRequest request) { + deleteSearchAds360LinkCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single DataStream. + * Deletes a SearchAds360Link on a property. * *

Sample code: * @@ -9594,24 +9718,25 @@ public final ListDataStreamsPagedResponse listDataStreams(ListDataStreamsRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - * DataStream response = analyticsAdminServiceClient.getDataStream(name); + * DeleteSearchAds360LinkRequest request = + * DeleteSearchAds360LinkRequest.newBuilder() + * .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient.deleteSearchAds360LinkCallable().futureCall(request); + * // Do something. + * future.get(); * } * } - * - * @param name Required. The name of the DataStream to get. Example format: - * properties/1234/dataStreams/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final DataStream getDataStream(DataStreamName name) { - GetDataStreamRequest request = - GetDataStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getDataStream(request); + public final UnaryCallable + deleteSearchAds360LinkCallable() { + return stub.deleteSearchAds360LinkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single DataStream. + * Updates a SearchAds360Link on a property. * *

Sample code: * @@ -9623,23 +9748,32 @@ public final DataStream getDataStream(DataStreamName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString(); - * DataStream response = analyticsAdminServiceClient.getDataStream(name); + * SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * SearchAds360Link response = + * analyticsAdminServiceClient.updateSearchAds360Link(searchAds360Link, updateMask); * } * } * - * @param name Required. The name of the DataStream to get. Example format: - * properties/1234/dataStreams/5678 + * @param searchAds360Link The SearchAds360Link 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 DataStream getDataStream(String name) { - GetDataStreamRequest request = GetDataStreamRequest.newBuilder().setName(name).build(); - return getDataStream(request); + public final SearchAds360Link updateSearchAds360Link( + SearchAds360Link searchAds360Link, FieldMask updateMask) { + UpdateSearchAds360LinkRequest request = + UpdateSearchAds360LinkRequest.newBuilder() + .setSearchAds360Link(searchAds360Link) + .setUpdateMask(updateMask) + .build(); + return updateSearchAds360Link(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single DataStream. + * Updates a SearchAds360Link on a property. * *

Sample code: * @@ -9651,24 +9785,25 @@ public final DataStream getDataStream(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetDataStreamRequest request = - * GetDataStreamRequest.newBuilder() - * .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * UpdateSearchAds360LinkRequest request = + * UpdateSearchAds360LinkRequest.newBuilder() + * .setSearchAds360Link(SearchAds360Link.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * DataStream response = analyticsAdminServiceClient.getDataStream(request); + * SearchAds360Link response = analyticsAdminServiceClient.updateSearchAds360Link(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 DataStream getDataStream(GetDataStreamRequest request) { - return getDataStreamCallable().call(request); + public final SearchAds360Link updateSearchAds360Link(UpdateSearchAds360LinkRequest request) { + return updateSearchAds360LinkCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single DataStream. + * Updates a SearchAds360Link on a property. * *

Sample code: * @@ -9680,25 +9815,26 @@ public final DataStream getDataStream(GetDataStreamRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetDataStreamRequest request = - * GetDataStreamRequest.newBuilder() - * .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * UpdateSearchAds360LinkRequest request = + * UpdateSearchAds360LinkRequest.newBuilder() + * .setSearchAds360Link(SearchAds360Link.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.getDataStreamCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.updateSearchAds360LinkCallable().futureCall(request); * // Do something. - * DataStream response = future.get(); + * SearchAds360Link response = future.get(); * } * } */ - public final UnaryCallable getDataStreamCallable() { - return stub.getDataStreamCallable(); + public final UnaryCallable + updateSearchAds360LinkCallable() { + return stub.updateSearchAds360LinkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single Audience. Audiences created before 2020 may not be supported. Default - * audiences will not show filter definitions. + * Lookup for a AttributionSettings singleton. * *

Sample code: * @@ -9710,25 +9846,26 @@ public final UnaryCallable getDataStreamCallab * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * AudienceName name = AudienceName.of("[PROPERTY]", "[AUDIENCE]"); - * Audience response = analyticsAdminServiceClient.getAudience(name); + * AttributionSettingsName name = AttributionSettingsName.of("[PROPERTY]"); + * AttributionSettings response = analyticsAdminServiceClient.getAttributionSettings(name); * } * } * - * @param name Required. The name of the Audience to get. Example format: - * properties/1234/audiences/5678 + * @param name Required. The name of the attribution settings to retrieve. Format: + * properties/{property}/attributionSettings * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Audience getAudience(AudienceName name) { - GetAudienceRequest request = - GetAudienceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getAudience(request); + public final AttributionSettings getAttributionSettings(AttributionSettingsName name) { + GetAttributionSettingsRequest request = + GetAttributionSettingsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getAttributionSettings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single Audience. Audiences created before 2020 may not be supported. Default - * audiences will not show filter definitions. + * Lookup for a AttributionSettings singleton. * *

Sample code: * @@ -9740,24 +9877,24 @@ public final Audience getAudience(AudienceName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString(); - * Audience response = analyticsAdminServiceClient.getAudience(name); + * String name = AttributionSettingsName.of("[PROPERTY]").toString(); + * AttributionSettings response = analyticsAdminServiceClient.getAttributionSettings(name); * } * } * - * @param name Required. The name of the Audience to get. Example format: - * properties/1234/audiences/5678 + * @param name Required. The name of the attribution settings to retrieve. Format: + * properties/{property}/attributionSettings * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Audience getAudience(String name) { - GetAudienceRequest request = GetAudienceRequest.newBuilder().setName(name).build(); - return getAudience(request); + public final AttributionSettings getAttributionSettings(String name) { + GetAttributionSettingsRequest request = + GetAttributionSettingsRequest.newBuilder().setName(name).build(); + return getAttributionSettings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single Audience. Audiences created before 2020 may not be supported. Default - * audiences will not show filter definitions. + * Lookup for a AttributionSettings singleton. * *

Sample code: * @@ -9769,25 +9906,24 @@ public final Audience getAudience(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetAudienceRequest request = - * GetAudienceRequest.newBuilder() - * .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + * GetAttributionSettingsRequest request = + * GetAttributionSettingsRequest.newBuilder() + * .setName(AttributionSettingsName.of("[PROPERTY]").toString()) * .build(); - * Audience response = analyticsAdminServiceClient.getAudience(request); + * AttributionSettings response = analyticsAdminServiceClient.getAttributionSettings(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 Audience getAudience(GetAudienceRequest request) { - return getAudienceCallable().call(request); + public final AttributionSettings getAttributionSettings(GetAttributionSettingsRequest request) { + return getAttributionSettingsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single Audience. Audiences created before 2020 may not be supported. Default - * audiences will not show filter definitions. + * Lookup for a AttributionSettings singleton. * *

Sample code: * @@ -9799,25 +9935,25 @@ public final Audience getAudience(GetAudienceRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetAudienceRequest request = - * GetAudienceRequest.newBuilder() - * .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + * GetAttributionSettingsRequest request = + * GetAttributionSettingsRequest.newBuilder() + * .setName(AttributionSettingsName.of("[PROPERTY]").toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.getAudienceCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.getAttributionSettingsCallable().futureCall(request); * // Do something. - * Audience response = future.get(); + * AttributionSettings response = future.get(); * } * } */ - public final UnaryCallable getAudienceCallable() { - return stub.getAudienceCallable(); + public final UnaryCallable + getAttributionSettingsCallable() { + return stub.getAttributionSettingsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Audiences on a property. Audiences created before 2020 may not be supported. Default - * audiences will not show filter definitions. + * Updates attribution settings on a property. * *

Sample code: * @@ -9829,28 +9965,33 @@ public final UnaryCallable getAudienceCallable() { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * for (Audience element : analyticsAdminServiceClient.listAudiences(parent).iterateAll()) { - * // doThingsWith(element); - * } + * AttributionSettings attributionSettings = AttributionSettings.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * AttributionSettings response = + * analyticsAdminServiceClient.updateAttributionSettings(attributionSettings, updateMask); * } * } * - * @param parent Required. Example format: properties/1234 + * @param attributionSettings Required. The attribution 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 ListAudiencesPagedResponse listAudiences(PropertyName parent) { - ListAudiencesRequest request = - ListAudiencesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) + public final AttributionSettings updateAttributionSettings( + AttributionSettings attributionSettings, FieldMask updateMask) { + UpdateAttributionSettingsRequest request = + UpdateAttributionSettingsRequest.newBuilder() + .setAttributionSettings(attributionSettings) + .setUpdateMask(updateMask) .build(); - return listAudiences(request); + return updateAttributionSettings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Audiences on a property. Audiences created before 2020 may not be supported. Default - * audiences will not show filter definitions. + * Updates attribution settings on a property. * *

Sample code: * @@ -9862,25 +10003,26 @@ public final ListAudiencesPagedResponse listAudiences(PropertyName parent) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * for (Audience element : analyticsAdminServiceClient.listAudiences(parent).iterateAll()) { - * // doThingsWith(element); - * } + * UpdateAttributionSettingsRequest request = + * UpdateAttributionSettingsRequest.newBuilder() + * .setAttributionSettings(AttributionSettings.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * AttributionSettings response = analyticsAdminServiceClient.updateAttributionSettings(request); * } * } * - * @param parent Required. Example format: properties/1234 + * @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 ListAudiencesPagedResponse listAudiences(String parent) { - ListAudiencesRequest request = ListAudiencesRequest.newBuilder().setParent(parent).build(); - return listAudiences(request); + public final AttributionSettings updateAttributionSettings( + UpdateAttributionSettingsRequest request) { + return updateAttributionSettingsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Audiences on a property. Audiences created before 2020 may not be supported. Default - * audiences will not show filter definitions. + * Updates attribution settings on a property. * *

Sample code: * @@ -9892,29 +10034,36 @@ public final ListAudiencesPagedResponse listAudiences(String parent) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListAudiencesRequest request = - * ListAudiencesRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * UpdateAttributionSettingsRequest request = + * UpdateAttributionSettingsRequest.newBuilder() + * .setAttributionSettings(AttributionSettings.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * for (Audience element : analyticsAdminServiceClient.listAudiences(request).iterateAll()) { - * // doThingsWith(element); - * } + * ApiFuture future = + * analyticsAdminServiceClient.updateAttributionSettingsCallable().futureCall(request); + * // Do something. + * AttributionSettings response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAudiencesPagedResponse listAudiences(ListAudiencesRequest request) { - return listAudiencesPagedCallable().call(request); + public final UnaryCallable + updateAttributionSettingsCallable() { + return stub.updateAttributionSettingsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Audiences on a property. Audiences created before 2020 may not be supported. Default - * audiences will not show filter definitions. + * Returns a customized report of data access records. The report provides records of each time a + * user reads Google Analytics reporting data. Access records are retained for up to 2 years. + * + *

Data Access Reports can be requested for a property. The property must be in Google + * Analytics 360. This method is only available to Administrators. + * + *

These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and + * other products like Firebase & Admob that can retrieve data from Google Analytics through a + * linkage. These records don't include property configuration changes like adding a stream or + * changing a property's time zone. For configuration change history, see + * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). * *

Sample code: * @@ -9926,30 +10075,46 @@ public final ListAudiencesPagedResponse listAudiences(ListAudiencesRequest reque * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListAudiencesRequest request = - * ListAudiencesRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * RunAccessReportRequest request = + * RunAccessReportRequest.newBuilder() + * .setEntity("entity-1298275357") + * .addAllDimensions(new ArrayList()) + * .addAllMetrics(new ArrayList()) + * .addAllDateRanges(new ArrayList()) + * .setDimensionFilter(AccessFilterExpression.newBuilder().build()) + * .setMetricFilter(AccessFilterExpression.newBuilder().build()) + * .setOffset(-1019779949) + * .setLimit(102976443) + * .setTimeZone("timeZone-2077180903") + * .addAllOrderBys(new ArrayList()) + * .setReturnEntityQuota(true) + * .setIncludeAllUsers(true) + * .setExpandGroups(true) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.listAudiencesPagedCallable().futureCall(request); - * // Do something. - * for (Audience element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * RunAccessReportResponse response = analyticsAdminServiceClient.runAccessReport(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 - listAudiencesPagedCallable() { - return stub.listAudiencesPagedCallable(); + public final RunAccessReportResponse runAccessReport(RunAccessReportRequest request) { + return runAccessReportCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists Audiences on a property. Audiences created before 2020 may not be supported. Default - * audiences will not show filter definitions. + * Returns a customized report of data access records. The report provides records of each time a + * user reads Google Analytics reporting data. Access records are retained for up to 2 years. + * + *

Data Access Reports can be requested for a property. The property must be in Google + * Analytics 360. This method is only available to Administrators. + * + *

These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and + * other products like Firebase & Admob that can retrieve data from Google Analytics through a + * linkage. These records don't include property configuration changes like adding a stream or + * changing a property's time zone. For configuration change history, see + * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). * *

Sample code: * @@ -9961,35 +10126,37 @@ public final ListAudiencesPagedResponse listAudiences(ListAudiencesRequest reque * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListAudiencesRequest request = - * ListAudiencesRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * RunAccessReportRequest request = + * RunAccessReportRequest.newBuilder() + * .setEntity("entity-1298275357") + * .addAllDimensions(new ArrayList()) + * .addAllMetrics(new ArrayList()) + * .addAllDateRanges(new ArrayList()) + * .setDimensionFilter(AccessFilterExpression.newBuilder().build()) + * .setMetricFilter(AccessFilterExpression.newBuilder().build()) + * .setOffset(-1019779949) + * .setLimit(102976443) + * .setTimeZone("timeZone-2077180903") + * .addAllOrderBys(new ArrayList()) + * .setReturnEntityQuota(true) + * .setIncludeAllUsers(true) + * .setExpandGroups(true) * .build(); - * while (true) { - * ListAudiencesResponse response = - * analyticsAdminServiceClient.listAudiencesCallable().call(request); - * for (Audience element : response.getAudiencesList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * ApiFuture future = + * analyticsAdminServiceClient.runAccessReportCallable().futureCall(request); + * // Do something. + * RunAccessReportResponse response = future.get(); * } * } */ - public final UnaryCallable listAudiencesCallable() { - return stub.listAudiencesCallable(); + public final UnaryCallable + runAccessReportCallable() { + return stub.runAccessReportCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an Audience. + * Creates an access binding on an account or property. * *

Sample code: * @@ -10001,28 +10168,29 @@ public final UnaryCallable listAudi * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * Audience audience = Audience.newBuilder().build(); - * Audience response = analyticsAdminServiceClient.createAudience(parent, audience); + * AccountName parent = AccountName.of("[ACCOUNT]"); + * AccessBinding accessBinding = AccessBinding.newBuilder().build(); + * AccessBinding response = + * analyticsAdminServiceClient.createAccessBinding(parent, accessBinding); * } * } * - * @param parent Required. Example format: properties/1234 - * @param audience Required. The audience to create. + * @param parent Required. Formats: - accounts/{account} - properties/{property} + * @param accessBinding Required. The access binding to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Audience createAudience(PropertyName parent, Audience audience) { - CreateAudienceRequest request = - CreateAudienceRequest.newBuilder() + public final AccessBinding createAccessBinding(AccountName parent, AccessBinding accessBinding) { + CreateAccessBindingRequest request = + CreateAccessBindingRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) - .setAudience(audience) + .setAccessBinding(accessBinding) .build(); - return createAudience(request); + return createAccessBinding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an Audience. + * Creates an access binding on an account or property. * *

Sample code: * @@ -10034,25 +10202,29 @@ public final Audience createAudience(PropertyName parent, Audience audience) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * Audience audience = Audience.newBuilder().build(); - * Audience response = analyticsAdminServiceClient.createAudience(parent, audience); + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * AccessBinding accessBinding = AccessBinding.newBuilder().build(); + * AccessBinding response = + * analyticsAdminServiceClient.createAccessBinding(parent, accessBinding); * } * } * - * @param parent Required. Example format: properties/1234 - * @param audience Required. The audience to create. + * @param parent Required. Formats: - accounts/{account} - properties/{property} + * @param accessBinding Required. The access binding to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Audience createAudience(String parent, Audience audience) { - CreateAudienceRequest request = - CreateAudienceRequest.newBuilder().setParent(parent).setAudience(audience).build(); - return createAudience(request); + public final AccessBinding createAccessBinding(PropertyName parent, AccessBinding accessBinding) { + CreateAccessBindingRequest request = + CreateAccessBindingRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAccessBinding(accessBinding) + .build(); + return createAccessBinding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an Audience. + * Creates an access binding on an account or property. * *

Sample code: * @@ -10064,25 +10236,29 @@ public final Audience createAudience(String parent, Audience audience) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateAudienceRequest request = - * CreateAudienceRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setAudience(Audience.newBuilder().build()) - * .build(); - * Audience response = analyticsAdminServiceClient.createAudience(request); + * String parent = AccountName.of("[ACCOUNT]").toString(); + * AccessBinding accessBinding = AccessBinding.newBuilder().build(); + * AccessBinding response = + * analyticsAdminServiceClient.createAccessBinding(parent, accessBinding); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. Formats: - accounts/{account} - properties/{property} + * @param accessBinding Required. The access binding to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Audience createAudience(CreateAudienceRequest request) { - return createAudienceCallable().call(request); + public final AccessBinding createAccessBinding(String parent, AccessBinding accessBinding) { + CreateAccessBindingRequest request = + CreateAccessBindingRequest.newBuilder() + .setParent(parent) + .setAccessBinding(accessBinding) + .build(); + return createAccessBinding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an Audience. + * Creates an access binding on an account or property. * *

Sample code: * @@ -10094,25 +10270,25 @@ public final Audience createAudience(CreateAudienceRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateAudienceRequest request = - * CreateAudienceRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setAudience(Audience.newBuilder().build()) + * CreateAccessBindingRequest request = + * CreateAccessBindingRequest.newBuilder() + * .setParent(AccountName.of("[ACCOUNT]").toString()) + * .setAccessBinding(AccessBinding.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.createAudienceCallable().futureCall(request); - * // Do something. - * Audience response = future.get(); + * AccessBinding response = analyticsAdminServiceClient.createAccessBinding(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 createAudienceCallable() { - return stub.createAudienceCallable(); + public final AccessBinding createAccessBinding(CreateAccessBindingRequest request) { + return createAccessBindingCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an Audience on a property. + * Creates an access binding on an account or property. * *

Sample code: * @@ -10124,28 +10300,26 @@ public final UnaryCallable createAudienceCallab * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * Audience audience = Audience.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * Audience response = analyticsAdminServiceClient.updateAudience(audience, updateMask); + * CreateAccessBindingRequest request = + * CreateAccessBindingRequest.newBuilder() + * .setParent(AccountName.of("[ACCOUNT]").toString()) + * .setAccessBinding(AccessBinding.newBuilder().build()) + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient.createAccessBindingCallable().futureCall(request); + * // Do something. + * AccessBinding response = future.get(); * } * } - * - * @param audience Required. The audience to update. The audience's `name` field is used to - * identify the audience 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 Audience updateAudience(Audience audience, FieldMask updateMask) { - UpdateAudienceRequest request = - UpdateAudienceRequest.newBuilder().setAudience(audience).setUpdateMask(updateMask).build(); - return updateAudience(request); + public final UnaryCallable + createAccessBindingCallable() { + return stub.createAccessBindingCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an Audience on a property. + * Gets information about an access binding. * *

Sample code: * @@ -10157,25 +10331,26 @@ public final Audience updateAudience(Audience audience, FieldMask updateMask) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateAudienceRequest request = - * UpdateAudienceRequest.newBuilder() - * .setAudience(Audience.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .build(); - * Audience response = analyticsAdminServiceClient.updateAudience(request); + * AccessBindingName name = + * AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); + * AccessBinding response = analyticsAdminServiceClient.getAccessBinding(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The name of the access binding to retrieve. Formats: - + * accounts/{account}/accessBindings/{accessBinding} - + * properties/{property}/accessBindings/{accessBinding} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Audience updateAudience(UpdateAudienceRequest request) { - return updateAudienceCallable().call(request); + public final AccessBinding getAccessBinding(AccessBindingName name) { + GetAccessBindingRequest request = + GetAccessBindingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAccessBinding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an Audience on a property. + * Gets information about an access binding. * *

Sample code: * @@ -10187,25 +10362,25 @@ public final Audience updateAudience(UpdateAudienceRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateAudienceRequest request = - * UpdateAudienceRequest.newBuilder() - * .setAudience(Audience.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.updateAudienceCallable().futureCall(request); - * // Do something. - * Audience response = future.get(); + * String name = + * AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]").toString(); + * AccessBinding response = analyticsAdminServiceClient.getAccessBinding(name); * } * } + * + * @param name Required. The name of the access binding to retrieve. Formats: - + * accounts/{account}/accessBindings/{accessBinding} - + * properties/{property}/accessBindings/{accessBinding} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable updateAudienceCallable() { - return stub.updateAudienceCallable(); + public final AccessBinding getAccessBinding(String name) { + GetAccessBindingRequest request = GetAccessBindingRequest.newBuilder().setName(name).build(); + return getAccessBinding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Archives an Audience on a property. + * Gets information about an access binding. * *

Sample code: * @@ -10217,24 +10392,26 @@ public final UnaryCallable updateAudienceCallab * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ArchiveAudienceRequest request = - * ArchiveAudienceRequest.newBuilder() - * .setName(PropertyName.of("[PROPERTY]").toString()) + * GetAccessBindingRequest request = + * GetAccessBindingRequest.newBuilder() + * .setName( + * AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + * .toString()) * .build(); - * analyticsAdminServiceClient.archiveAudience(request); + * AccessBinding response = analyticsAdminServiceClient.getAccessBinding(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 archiveAudience(ArchiveAudienceRequest request) { - archiveAudienceCallable().call(request); + public final AccessBinding getAccessBinding(GetAccessBindingRequest request) { + return getAccessBindingCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Archives an Audience on a property. + * Gets information about an access binding. * *

Sample code: * @@ -10246,24 +10423,26 @@ public final void archiveAudience(ArchiveAudienceRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ArchiveAudienceRequest request = - * ArchiveAudienceRequest.newBuilder() - * .setName(PropertyName.of("[PROPERTY]").toString()) + * GetAccessBindingRequest request = + * GetAccessBindingRequest.newBuilder() + * .setName( + * AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + * .toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.archiveAudienceCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.getAccessBindingCallable().futureCall(request); * // Do something. - * future.get(); + * AccessBinding response = future.get(); * } * } */ - public final UnaryCallable archiveAudienceCallable() { - return stub.archiveAudienceCallable(); + public final UnaryCallable getAccessBindingCallable() { + return stub.getAccessBindingCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Look up a single SearchAds360Link + * Updates an access binding on an account or property. * *

Sample code: * @@ -10275,26 +10454,23 @@ public final UnaryCallable archiveAudienceCallabl * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]"); - * SearchAds360Link response = analyticsAdminServiceClient.getSearchAds360Link(name); + * AccessBinding accessBinding = AccessBinding.newBuilder().build(); + * AccessBinding response = analyticsAdminServiceClient.updateAccessBinding(accessBinding); * } * } * - * @param name Required. The name of the SearchAds360Link to get. Example format: - * properties/1234/SearchAds360Link/5678 + * @param accessBinding Required. The access binding to update. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchAds360Link getSearchAds360Link(SearchAds360LinkName name) { - GetSearchAds360LinkRequest request = - GetSearchAds360LinkRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getSearchAds360Link(request); + public final AccessBinding updateAccessBinding(AccessBinding accessBinding) { + UpdateAccessBindingRequest request = + UpdateAccessBindingRequest.newBuilder().setAccessBinding(accessBinding).build(); + return updateAccessBinding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Look up a single SearchAds360Link + * Updates an access binding on an account or property. * *

Sample code: * @@ -10306,24 +10482,24 @@ public final SearchAds360Link getSearchAds360Link(SearchAds360LinkName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString(); - * SearchAds360Link response = analyticsAdminServiceClient.getSearchAds360Link(name); + * UpdateAccessBindingRequest request = + * UpdateAccessBindingRequest.newBuilder() + * .setAccessBinding(AccessBinding.newBuilder().build()) + * .build(); + * AccessBinding response = analyticsAdminServiceClient.updateAccessBinding(request); * } * } * - * @param name Required. The name of the SearchAds360Link to get. Example format: - * properties/1234/SearchAds360Link/5678 + * @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 SearchAds360Link getSearchAds360Link(String name) { - GetSearchAds360LinkRequest request = - GetSearchAds360LinkRequest.newBuilder().setName(name).build(); - return getSearchAds360Link(request); + public final AccessBinding updateAccessBinding(UpdateAccessBindingRequest request) { + return updateAccessBindingCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Look up a single SearchAds360Link + * Updates an access binding on an account or property. * *

Sample code: * @@ -10335,24 +10511,25 @@ public final SearchAds360Link getSearchAds360Link(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetSearchAds360LinkRequest request = - * GetSearchAds360LinkRequest.newBuilder() - * .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) + * UpdateAccessBindingRequest request = + * UpdateAccessBindingRequest.newBuilder() + * .setAccessBinding(AccessBinding.newBuilder().build()) * .build(); - * SearchAds360Link response = analyticsAdminServiceClient.getSearchAds360Link(request); + * ApiFuture future = + * analyticsAdminServiceClient.updateAccessBindingCallable().futureCall(request); + * // Do something. + * AccessBinding response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchAds360Link getSearchAds360Link(GetSearchAds360LinkRequest request) { - return getSearchAds360LinkCallable().call(request); + public final UnaryCallable + updateAccessBindingCallable() { + return stub.updateAccessBindingCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Look up a single SearchAds360Link + * Deletes an access binding on an account or property. * *

Sample code: * @@ -10364,25 +10541,27 @@ public final SearchAds360Link getSearchAds360Link(GetSearchAds360LinkRequest req * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetSearchAds360LinkRequest request = - * GetSearchAds360LinkRequest.newBuilder() - * .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) - * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.getSearchAds360LinkCallable().futureCall(request); - * // Do something. - * SearchAds360Link response = future.get(); + * AccessBindingName name = + * AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); + * analyticsAdminServiceClient.deleteAccessBinding(name); * } * } + * + * @param name Required. Formats: - accounts/{account}/accessBindings/{accessBinding} - + * properties/{property}/accessBindings/{accessBinding} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - getSearchAds360LinkCallable() { - return stub.getSearchAds360LinkCallable(); + public final void deleteAccessBinding(AccessBindingName name) { + DeleteAccessBindingRequest request = + DeleteAccessBindingRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteAccessBinding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all SearchAds360Links on a property. + * Deletes an access binding on an account or property. * *

Sample code: * @@ -10394,28 +10573,25 @@ public final SearchAds360Link getSearchAds360Link(GetSearchAds360LinkRequest req * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * for (SearchAds360Link element : - * analyticsAdminServiceClient.listSearchAds360Links(parent).iterateAll()) { - * // doThingsWith(element); - * } + * String name = + * AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]").toString(); + * analyticsAdminServiceClient.deleteAccessBinding(name); * } * } * - * @param parent Required. Example format: properties/1234 + * @param name Required. Formats: - accounts/{account}/accessBindings/{accessBinding} - + * properties/{property}/accessBindings/{accessBinding} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSearchAds360LinksPagedResponse listSearchAds360Links(PropertyName parent) { - ListSearchAds360LinksRequest request = - ListSearchAds360LinksRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listSearchAds360Links(request); + public final void deleteAccessBinding(String name) { + DeleteAccessBindingRequest request = + DeleteAccessBindingRequest.newBuilder().setName(name).build(); + deleteAccessBinding(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all SearchAds360Links on a property. + * Deletes an access binding on an account or property. * *

Sample code: * @@ -10427,26 +10603,26 @@ public final ListSearchAds360LinksPagedResponse listSearchAds360Links(PropertyNa * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * for (SearchAds360Link element : - * analyticsAdminServiceClient.listSearchAds360Links(parent).iterateAll()) { - * // doThingsWith(element); - * } + * DeleteAccessBindingRequest request = + * DeleteAccessBindingRequest.newBuilder() + * .setName( + * AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + * .toString()) + * .build(); + * analyticsAdminServiceClient.deleteAccessBinding(request); * } * } * - * @param parent Required. Example format: properties/1234 + * @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 ListSearchAds360LinksPagedResponse listSearchAds360Links(String parent) { - ListSearchAds360LinksRequest request = - ListSearchAds360LinksRequest.newBuilder().setParent(parent).build(); - return listSearchAds360Links(request); + public final void deleteAccessBinding(DeleteAccessBindingRequest request) { + deleteAccessBindingCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all SearchAds360Links on a property. + * Deletes an access binding on an account or property. * *

Sample code: * @@ -10458,30 +10634,26 @@ public final ListSearchAds360LinksPagedResponse listSearchAds360Links(String par * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListSearchAds360LinksRequest request = - * ListSearchAds360LinksRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * DeleteAccessBindingRequest request = + * DeleteAccessBindingRequest.newBuilder() + * .setName( + * AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + * .toString()) * .build(); - * for (SearchAds360Link element : - * analyticsAdminServiceClient.listSearchAds360Links(request).iterateAll()) { - * // doThingsWith(element); - * } + * ApiFuture future = + * analyticsAdminServiceClient.deleteAccessBindingCallable().futureCall(request); + * // Do something. + * future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSearchAds360LinksPagedResponse listSearchAds360Links( - ListSearchAds360LinksRequest request) { - return listSearchAds360LinksPagedCallable().call(request); + public final UnaryCallable deleteAccessBindingCallable() { + return stub.deleteAccessBindingCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all SearchAds360Links on a property. + * Lists all access bindings on an account or property. * *

Sample code: * @@ -10493,29 +10665,28 @@ public final ListSearchAds360LinksPagedResponse listSearchAds360Links( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListSearchAds360LinksRequest request = - * ListSearchAds360LinksRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.listSearchAds360LinksPagedCallable().futureCall(request); - * // Do something. - * for (SearchAds360Link element : future.get().iterateAll()) { + * AccountName parent = AccountName.of("[ACCOUNT]"); + * for (AccessBinding element : + * analyticsAdminServiceClient.listAccessBindings(parent).iterateAll()) { * // doThingsWith(element); * } * } * } + * + * @param parent Required. Formats: - accounts/{account} - properties/{property} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listSearchAds360LinksPagedCallable() { - return stub.listSearchAds360LinksPagedCallable(); + public final ListAccessBindingsPagedResponse listAccessBindings(AccountName parent) { + ListAccessBindingsRequest request = + ListAccessBindingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAccessBindings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all SearchAds360Links on a property. + * Lists all access bindings on an account or property. * *

Sample code: * @@ -10527,36 +10698,28 @@ public final ListSearchAds360LinksPagedResponse listSearchAds360Links( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListSearchAds360LinksRequest request = - * ListSearchAds360LinksRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * while (true) { - * ListSearchAds360LinksResponse response = - * analyticsAdminServiceClient.listSearchAds360LinksCallable().call(request); - * for (SearchAds360Link element : response.getSearchAds360LinksList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * for (AccessBinding element : + * analyticsAdminServiceClient.listAccessBindings(parent).iterateAll()) { + * // doThingsWith(element); * } * } * } + * + * @param parent Required. Formats: - accounts/{account} - properties/{property} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listSearchAds360LinksCallable() { - return stub.listSearchAds360LinksCallable(); + public final ListAccessBindingsPagedResponse listAccessBindings(PropertyName parent) { + ListAccessBindingsRequest request = + ListAccessBindingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAccessBindings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a SearchAds360Link. + * Lists all access bindings on an account or property. * *

Sample code: * @@ -10568,30 +10731,26 @@ public final ListSearchAds360LinksPagedResponse listSearchAds360Links( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); - * SearchAds360Link response = - * analyticsAdminServiceClient.createSearchAds360Link(parent, searchAds360Link); + * String parent = AccountName.of("[ACCOUNT]").toString(); + * for (AccessBinding element : + * analyticsAdminServiceClient.listAccessBindings(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param parent Required. Example format: properties/1234 - * @param searchAds360Link Required. The SearchAds360Link to create. + * @param parent Required. Formats: - accounts/{account} - properties/{property} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchAds360Link createSearchAds360Link( - PropertyName parent, SearchAds360Link searchAds360Link) { - CreateSearchAds360LinkRequest request = - CreateSearchAds360LinkRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setSearchAds360Link(searchAds360Link) - .build(); - return createSearchAds360Link(request); + public final ListAccessBindingsPagedResponse listAccessBindings(String parent) { + ListAccessBindingsRequest request = + ListAccessBindingsRequest.newBuilder().setParent(parent).build(); + return listAccessBindings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a SearchAds360Link. + * Lists all access bindings on an account or property. * *

Sample code: * @@ -10603,30 +10762,30 @@ public final SearchAds360Link createSearchAds360Link( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); - * SearchAds360Link response = - * analyticsAdminServiceClient.createSearchAds360Link(parent, searchAds360Link); + * ListAccessBindingsRequest request = + * ListAccessBindingsRequest.newBuilder() + * .setParent(AccountName.of("[ACCOUNT]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (AccessBinding element : + * analyticsAdminServiceClient.listAccessBindings(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param parent Required. Example format: properties/1234 - * @param searchAds360Link Required. The SearchAds360Link to create. + * @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 SearchAds360Link createSearchAds360Link( - String parent, SearchAds360Link searchAds360Link) { - CreateSearchAds360LinkRequest request = - CreateSearchAds360LinkRequest.newBuilder() - .setParent(parent) - .setSearchAds360Link(searchAds360Link) - .build(); - return createSearchAds360Link(request); + public final ListAccessBindingsPagedResponse listAccessBindings( + ListAccessBindingsRequest request) { + return listAccessBindingsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a SearchAds360Link. + * Lists all access bindings on an account or property. * *

Sample code: * @@ -10638,25 +10797,29 @@ public final SearchAds360Link createSearchAds360Link( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateSearchAds360LinkRequest request = - * CreateSearchAds360LinkRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setSearchAds360Link(SearchAds360Link.newBuilder().build()) + * ListAccessBindingsRequest request = + * ListAccessBindingsRequest.newBuilder() + * .setParent(AccountName.of("[ACCOUNT]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * SearchAds360Link response = analyticsAdminServiceClient.createSearchAds360Link(request); + * ApiFuture future = + * analyticsAdminServiceClient.listAccessBindingsPagedCallable().futureCall(request); + * // Do something. + * for (AccessBinding element : future.get().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 SearchAds360Link createSearchAds360Link(CreateSearchAds360LinkRequest request) { - return createSearchAds360LinkCallable().call(request); + public final UnaryCallable + listAccessBindingsPagedCallable() { + return stub.listAccessBindingsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a SearchAds360Link. + * Lists all access bindings on an account or property. * *

Sample code: * @@ -10668,26 +10831,39 @@ public final SearchAds360Link createSearchAds360Link(CreateSearchAds360LinkReque * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateSearchAds360LinkRequest request = - * CreateSearchAds360LinkRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setSearchAds360Link(SearchAds360Link.newBuilder().build()) + * ListAccessBindingsRequest request = + * ListAccessBindingsRequest.newBuilder() + * .setParent(AccountName.of("[ACCOUNT]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.createSearchAds360LinkCallable().futureCall(request); - * // Do something. - * SearchAds360Link response = future.get(); + * while (true) { + * ListAccessBindingsResponse response = + * analyticsAdminServiceClient.listAccessBindingsCallable().call(request); + * for (AccessBinding element : response.getAccessBindingsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } */ - public final UnaryCallable - createSearchAds360LinkCallable() { - return stub.createSearchAds360LinkCallable(); + public final UnaryCallable + listAccessBindingsCallable() { + return stub.listAccessBindingsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a SearchAds360Link on a property. + * Creates information about multiple access bindings to an account or property. + * + *

This method is transactional. If any AccessBinding cannot be created, none of the + * AccessBindings will be created. * *

Sample code: * @@ -10699,26 +10875,30 @@ public final SearchAds360Link createSearchAds360Link(CreateSearchAds360LinkReque * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]"); - * analyticsAdminServiceClient.deleteSearchAds360Link(name); + * BatchCreateAccessBindingsRequest request = + * BatchCreateAccessBindingsRequest.newBuilder() + * .setParent(AccountName.of("[ACCOUNT]").toString()) + * .addAllRequests(new ArrayList()) + * .build(); + * BatchCreateAccessBindingsResponse response = + * analyticsAdminServiceClient.batchCreateAccessBindings(request); * } * } * - * @param name Required. The name of the SearchAds360Link to delete. Example format: - * properties/1234/SearchAds360Links/5678 + * @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 deleteSearchAds360Link(SearchAds360LinkName name) { - DeleteSearchAds360LinkRequest request = - DeleteSearchAds360LinkRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteSearchAds360Link(request); + public final BatchCreateAccessBindingsResponse batchCreateAccessBindings( + BatchCreateAccessBindingsRequest request) { + return batchCreateAccessBindingsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a SearchAds360Link on a property. + * Creates information about multiple access bindings to an account or property. + * + *

This method is transactional. If any AccessBinding cannot be created, none of the + * AccessBindings will be created. * *

Sample code: * @@ -10730,24 +10910,26 @@ public final void deleteSearchAds360Link(SearchAds360LinkName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString(); - * analyticsAdminServiceClient.deleteSearchAds360Link(name); + * BatchCreateAccessBindingsRequest request = + * BatchCreateAccessBindingsRequest.newBuilder() + * .setParent(AccountName.of("[ACCOUNT]").toString()) + * .addAllRequests(new ArrayList()) + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient.batchCreateAccessBindingsCallable().futureCall(request); + * // Do something. + * BatchCreateAccessBindingsResponse response = future.get(); * } * } - * - * @param name Required. The name of the SearchAds360Link to delete. Example format: - * properties/1234/SearchAds360Links/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSearchAds360Link(String name) { - DeleteSearchAds360LinkRequest request = - DeleteSearchAds360LinkRequest.newBuilder().setName(name).build(); - deleteSearchAds360Link(request); + public final UnaryCallable + batchCreateAccessBindingsCallable() { + return stub.batchCreateAccessBindingsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a SearchAds360Link on a property. + * Gets information about multiple access bindings to an account or property. * *

Sample code: * @@ -10759,24 +10941,27 @@ public final void deleteSearchAds360Link(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteSearchAds360LinkRequest request = - * DeleteSearchAds360LinkRequest.newBuilder() - * .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) + * BatchGetAccessBindingsRequest request = + * BatchGetAccessBindingsRequest.newBuilder() + * .setParent(AccountName.of("[ACCOUNT]").toString()) + * .addAllNames(new ArrayList()) * .build(); - * analyticsAdminServiceClient.deleteSearchAds360Link(request); + * BatchGetAccessBindingsResponse response = + * analyticsAdminServiceClient.batchGetAccessBindings(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 deleteSearchAds360Link(DeleteSearchAds360LinkRequest request) { - deleteSearchAds360LinkCallable().call(request); + public final BatchGetAccessBindingsResponse batchGetAccessBindings( + BatchGetAccessBindingsRequest request) { + return batchGetAccessBindingsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a SearchAds360Link on a property. + * Gets information about multiple access bindings to an account or property. * *

Sample code: * @@ -10788,25 +10973,26 @@ public final void deleteSearchAds360Link(DeleteSearchAds360LinkRequest request) * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteSearchAds360LinkRequest request = - * DeleteSearchAds360LinkRequest.newBuilder() - * .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) + * BatchGetAccessBindingsRequest request = + * BatchGetAccessBindingsRequest.newBuilder() + * .setParent(AccountName.of("[ACCOUNT]").toString()) + * .addAllNames(new ArrayList()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.deleteSearchAds360LinkCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.batchGetAccessBindingsCallable().futureCall(request); * // Do something. - * future.get(); + * BatchGetAccessBindingsResponse response = future.get(); * } * } */ - public final UnaryCallable - deleteSearchAds360LinkCallable() { - return stub.deleteSearchAds360LinkCallable(); + public final UnaryCallable + batchGetAccessBindingsCallable() { + return stub.batchGetAccessBindingsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a SearchAds360Link on a property. + * Updates information about multiple access bindings to an account or property. * *

Sample code: * @@ -10818,32 +11004,58 @@ public final void deleteSearchAds360Link(DeleteSearchAds360LinkRequest request) * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * SearchAds360Link response = - * analyticsAdminServiceClient.updateSearchAds360Link(searchAds360Link, updateMask); + * BatchUpdateAccessBindingsRequest request = + * BatchUpdateAccessBindingsRequest.newBuilder() + * .setParent(AccountName.of("[ACCOUNT]").toString()) + * .addAllRequests(new ArrayList()) + * .build(); + * BatchUpdateAccessBindingsResponse response = + * analyticsAdminServiceClient.batchUpdateAccessBindings(request); * } * } * - * @param searchAds360Link The SearchAds360Link 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 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 SearchAds360Link updateSearchAds360Link( - SearchAds360Link searchAds360Link, FieldMask updateMask) { - UpdateSearchAds360LinkRequest request = - UpdateSearchAds360LinkRequest.newBuilder() - .setSearchAds360Link(searchAds360Link) - .setUpdateMask(updateMask) - .build(); - return updateSearchAds360Link(request); + public final BatchUpdateAccessBindingsResponse batchUpdateAccessBindings( + BatchUpdateAccessBindingsRequest request) { + return batchUpdateAccessBindingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates information about multiple access bindings to an account or property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   BatchUpdateAccessBindingsRequest request =
+   *       BatchUpdateAccessBindingsRequest.newBuilder()
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.batchUpdateAccessBindingsCallable().futureCall(request);
+   *   // Do something.
+   *   BatchUpdateAccessBindingsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchUpdateAccessBindingsCallable() { + return stub.batchUpdateAccessBindingsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a SearchAds360Link on a property. + * Deletes information about multiple users' links to an account or property. * *

Sample code: * @@ -10855,25 +11067,25 @@ public final SearchAds360Link updateSearchAds360Link( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateSearchAds360LinkRequest request = - * UpdateSearchAds360LinkRequest.newBuilder() - * .setSearchAds360Link(SearchAds360Link.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * BatchDeleteAccessBindingsRequest request = + * BatchDeleteAccessBindingsRequest.newBuilder() + * .setParent(AccountName.of("[ACCOUNT]").toString()) + * .addAllRequests(new ArrayList()) * .build(); - * SearchAds360Link response = analyticsAdminServiceClient.updateSearchAds360Link(request); + * analyticsAdminServiceClient.batchDeleteAccessBindings(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 SearchAds360Link updateSearchAds360Link(UpdateSearchAds360LinkRequest request) { - return updateSearchAds360LinkCallable().call(request); + public final void batchDeleteAccessBindings(BatchDeleteAccessBindingsRequest request) { + batchDeleteAccessBindingsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a SearchAds360Link on a property. + * Deletes information about multiple users' links to an account or property. * *

Sample code: * @@ -10885,26 +11097,26 @@ public final SearchAds360Link updateSearchAds360Link(UpdateSearchAds360LinkReque * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateSearchAds360LinkRequest request = - * UpdateSearchAds360LinkRequest.newBuilder() - * .setSearchAds360Link(SearchAds360Link.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * BatchDeleteAccessBindingsRequest request = + * BatchDeleteAccessBindingsRequest.newBuilder() + * .setParent(AccountName.of("[ACCOUNT]").toString()) + * .addAllRequests(new ArrayList()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.updateSearchAds360LinkCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.batchDeleteAccessBindingsCallable().futureCall(request); * // Do something. - * SearchAds360Link response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable - updateSearchAds360LinkCallable() { - return stub.updateSearchAds360LinkCallable(); + public final UnaryCallable + batchDeleteAccessBindingsCallable() { + return stub.batchDeleteAccessBindingsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a AttributionSettings singleton. + * Lookup for a single ExpandedDataSet. * *

Sample code: * @@ -10916,26 +11128,26 @@ public final SearchAds360Link updateSearchAds360Link(UpdateSearchAds360LinkReque * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * AttributionSettingsName name = AttributionSettingsName.of("[PROPERTY]"); - * AttributionSettings response = analyticsAdminServiceClient.getAttributionSettings(name); + * ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); + * ExpandedDataSet response = analyticsAdminServiceClient.getExpandedDataSet(name); * } * } * - * @param name Required. The name of the attribution settings to retrieve. Format: - * properties/{property}/attributionSettings + * @param name Required. The name of the ExpandedDataSet to get. Example format: + * properties/1234/expandedDataSets/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AttributionSettings getAttributionSettings(AttributionSettingsName name) { - GetAttributionSettingsRequest request = - GetAttributionSettingsRequest.newBuilder() + public final ExpandedDataSet getExpandedDataSet(ExpandedDataSetName name) { + GetExpandedDataSetRequest request = + GetExpandedDataSetRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); - return getAttributionSettings(request); + return getExpandedDataSet(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a AttributionSettings singleton. + * Lookup for a single ExpandedDataSet. * *

Sample code: * @@ -10947,24 +11159,24 @@ public final AttributionSettings getAttributionSettings(AttributionSettingsName * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = AttributionSettingsName.of("[PROPERTY]").toString(); - * AttributionSettings response = analyticsAdminServiceClient.getAttributionSettings(name); + * String name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString(); + * ExpandedDataSet response = analyticsAdminServiceClient.getExpandedDataSet(name); * } * } * - * @param name Required. The name of the attribution settings to retrieve. Format: - * properties/{property}/attributionSettings + * @param name Required. The name of the ExpandedDataSet to get. Example format: + * properties/1234/expandedDataSets/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AttributionSettings getAttributionSettings(String name) { - GetAttributionSettingsRequest request = - GetAttributionSettingsRequest.newBuilder().setName(name).build(); - return getAttributionSettings(request); + public final ExpandedDataSet getExpandedDataSet(String name) { + GetExpandedDataSetRequest request = + GetExpandedDataSetRequest.newBuilder().setName(name).build(); + return getExpandedDataSet(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a AttributionSettings singleton. + * Lookup for a single ExpandedDataSet. * *

Sample code: * @@ -10976,24 +11188,24 @@ public final AttributionSettings getAttributionSettings(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetAttributionSettingsRequest request = - * GetAttributionSettingsRequest.newBuilder() - * .setName(AttributionSettingsName.of("[PROPERTY]").toString()) + * GetExpandedDataSetRequest request = + * GetExpandedDataSetRequest.newBuilder() + * .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) * .build(); - * AttributionSettings response = analyticsAdminServiceClient.getAttributionSettings(request); + * ExpandedDataSet response = analyticsAdminServiceClient.getExpandedDataSet(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 AttributionSettings getAttributionSettings(GetAttributionSettingsRequest request) { - return getAttributionSettingsCallable().call(request); + public final ExpandedDataSet getExpandedDataSet(GetExpandedDataSetRequest request) { + return getExpandedDataSetCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a AttributionSettings singleton. + * Lookup for a single ExpandedDataSet. * *

Sample code: * @@ -11005,25 +11217,25 @@ public final AttributionSettings getAttributionSettings(GetAttributionSettingsRe * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetAttributionSettingsRequest request = - * GetAttributionSettingsRequest.newBuilder() - * .setName(AttributionSettingsName.of("[PROPERTY]").toString()) + * GetExpandedDataSetRequest request = + * GetExpandedDataSetRequest.newBuilder() + * .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.getAttributionSettingsCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.getExpandedDataSetCallable().futureCall(request); * // Do something. - * AttributionSettings response = future.get(); + * ExpandedDataSet response = future.get(); * } * } */ - public final UnaryCallable - getAttributionSettingsCallable() { - return stub.getAttributionSettingsCallable(); + public final UnaryCallable + getExpandedDataSetCallable() { + return stub.getExpandedDataSetCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates attribution settings on a property. + * Lists ExpandedDataSets on a property. * *

Sample code: * @@ -11035,33 +11247,28 @@ public final AttributionSettings getAttributionSettings(GetAttributionSettingsRe * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * AttributionSettings attributionSettings = AttributionSettings.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * AttributionSettings response = - * analyticsAdminServiceClient.updateAttributionSettings(attributionSettings, updateMask); + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * for (ExpandedDataSet element : + * analyticsAdminServiceClient.listExpandedDataSets(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param attributionSettings Required. The attribution 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. + * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AttributionSettings updateAttributionSettings( - AttributionSettings attributionSettings, FieldMask updateMask) { - UpdateAttributionSettingsRequest request = - UpdateAttributionSettingsRequest.newBuilder() - .setAttributionSettings(attributionSettings) - .setUpdateMask(updateMask) + public final ListExpandedDataSetsPagedResponse listExpandedDataSets(PropertyName parent) { + ListExpandedDataSetsRequest request = + ListExpandedDataSetsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) .build(); - return updateAttributionSettings(request); + return listExpandedDataSets(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates attribution settings on a property. + * Lists ExpandedDataSets on a property. * *

Sample code: * @@ -11073,67 +11280,26 @@ public final AttributionSettings updateAttributionSettings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateAttributionSettingsRequest request = - * UpdateAttributionSettingsRequest.newBuilder() - * .setAttributionSettings(AttributionSettings.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .build(); - * AttributionSettings response = analyticsAdminServiceClient.updateAttributionSettings(request); + * String parent = PropertyName.of("[PROPERTY]").toString(); + * for (ExpandedDataSet element : + * analyticsAdminServiceClient.listExpandedDataSets(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AttributionSettings updateAttributionSettings( - UpdateAttributionSettingsRequest request) { - return updateAttributionSettingsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates attribution settings on a property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateAttributionSettingsRequest request =
-   *       UpdateAttributionSettingsRequest.newBuilder()
-   *           .setAttributionSettings(AttributionSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateAttributionSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   AttributionSettings response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - updateAttributionSettingsCallable() { - return stub.updateAttributionSettingsCallable(); + public final ListExpandedDataSetsPagedResponse listExpandedDataSets(String parent) { + ListExpandedDataSetsRequest request = + ListExpandedDataSetsRequest.newBuilder().setParent(parent).build(); + return listExpandedDataSets(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns a customized report of data access records. The report provides records of each time a - * user reads Google Analytics reporting data. Access records are retained for up to 2 years. - * - *

Data Access Reports can be requested for a property. The property must be in Google - * Analytics 360. This method is only available to Administrators. - * - *

These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and - * other products like Firebase & Admob that can retrieve data from Google Analytics through a - * linkage. These records don't include property configuration changes like adding a stream or - * changing a property's time zone. For configuration change history, see - * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). + * Lists ExpandedDataSets on a property. * *

Sample code: * @@ -11145,44 +11311,30 @@ public final AttributionSettings updateAttributionSettings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * RunAccessReportRequest request = - * RunAccessReportRequest.newBuilder() - * .setEntity("entity-1298275357") - * .addAllDimensions(new ArrayList()) - * .addAllMetrics(new ArrayList()) - * .addAllDateRanges(new ArrayList()) - * .setDimensionFilter(AccessFilterExpression.newBuilder().build()) - * .setMetricFilter(AccessFilterExpression.newBuilder().build()) - * .setOffset(-1019779949) - * .setLimit(102976443) - * .setTimeZone("timeZone-2077180903") - * .addAllOrderBys(new ArrayList()) - * .setReturnEntityQuota(true) + * ListExpandedDataSetsRequest request = + * ListExpandedDataSetsRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * RunAccessReportResponse response = analyticsAdminServiceClient.runAccessReport(request); + * for (ExpandedDataSet element : + * analyticsAdminServiceClient.listExpandedDataSets(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 RunAccessReportResponse runAccessReport(RunAccessReportRequest request) { - return runAccessReportCallable().call(request); + public final ListExpandedDataSetsPagedResponse listExpandedDataSets( + ListExpandedDataSetsRequest request) { + return listExpandedDataSetsPagedCallable().call(request); } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a customized report of data access records. The report provides records of each time a - * user reads Google Analytics reporting data. Access records are retained for up to 2 years. - * - *

Data Access Reports can be requested for a property. The property must be in Google - * Analytics 360. This method is only available to Administrators. - * - *

These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and - * other products like Firebase & Admob that can retrieve data from Google Analytics through a - * linkage. These records don't include property configuration changes like adding a stream or - * changing a property's time zone. For configuration change history, see - * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists ExpandedDataSets on a property. * *

Sample code: * @@ -11194,35 +11346,29 @@ public final RunAccessReportResponse runAccessReport(RunAccessReportRequest requ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * RunAccessReportRequest request = - * RunAccessReportRequest.newBuilder() - * .setEntity("entity-1298275357") - * .addAllDimensions(new ArrayList()) - * .addAllMetrics(new ArrayList()) - * .addAllDateRanges(new ArrayList()) - * .setDimensionFilter(AccessFilterExpression.newBuilder().build()) - * .setMetricFilter(AccessFilterExpression.newBuilder().build()) - * .setOffset(-1019779949) - * .setLimit(102976443) - * .setTimeZone("timeZone-2077180903") - * .addAllOrderBys(new ArrayList()) - * .setReturnEntityQuota(true) + * ListExpandedDataSetsRequest request = + * ListExpandedDataSetsRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.runAccessReportCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.listExpandedDataSetsPagedCallable().futureCall(request); * // Do something. - * RunAccessReportResponse response = future.get(); + * for (ExpandedDataSet element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final UnaryCallable - runAccessReportCallable() { - return stub.runAccessReportCallable(); + public final UnaryCallable + listExpandedDataSetsPagedCallable() { + return stub.listExpandedDataSetsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an access binding on an account or property. + * Lists ExpandedDataSets on a property. * *

Sample code: * @@ -11234,29 +11380,36 @@ public final RunAccessReportResponse runAccessReport(RunAccessReportRequest requ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * AccountName parent = AccountName.of("[ACCOUNT]"); - * AccessBinding accessBinding = AccessBinding.newBuilder().build(); - * AccessBinding response = - * analyticsAdminServiceClient.createAccessBinding(parent, accessBinding); + * ListExpandedDataSetsRequest request = + * ListExpandedDataSetsRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListExpandedDataSetsResponse response = + * analyticsAdminServiceClient.listExpandedDataSetsCallable().call(request); + * for (ExpandedDataSet element : response.getExpandedDataSetsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @param parent Required. Formats: - accounts/{account} - properties/{property} - * @param accessBinding Required. The access binding to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AccessBinding createAccessBinding(AccountName parent, AccessBinding accessBinding) { - CreateAccessBindingRequest request = - CreateAccessBindingRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setAccessBinding(accessBinding) - .build(); - return createAccessBinding(request); + public final UnaryCallable + listExpandedDataSetsCallable() { + return stub.listExpandedDataSetsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an access binding on an account or property. + * Creates a ExpandedDataSet. * *

Sample code: * @@ -11269,28 +11422,29 @@ public final AccessBinding createAccessBinding(AccountName parent, AccessBinding * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { * PropertyName parent = PropertyName.of("[PROPERTY]"); - * AccessBinding accessBinding = AccessBinding.newBuilder().build(); - * AccessBinding response = - * analyticsAdminServiceClient.createAccessBinding(parent, accessBinding); + * ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + * ExpandedDataSet response = + * analyticsAdminServiceClient.createExpandedDataSet(parent, expandedDataSet); * } * } * - * @param parent Required. Formats: - accounts/{account} - properties/{property} - * @param accessBinding Required. The access binding to create. + * @param parent Required. Example format: properties/1234 + * @param expandedDataSet Required. The ExpandedDataSet to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AccessBinding createAccessBinding(PropertyName parent, AccessBinding accessBinding) { - CreateAccessBindingRequest request = - CreateAccessBindingRequest.newBuilder() + public final ExpandedDataSet createExpandedDataSet( + PropertyName parent, ExpandedDataSet expandedDataSet) { + CreateExpandedDataSetRequest request = + CreateExpandedDataSetRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) - .setAccessBinding(accessBinding) + .setExpandedDataSet(expandedDataSet) .build(); - return createAccessBinding(request); + return createExpandedDataSet(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an access binding on an account or property. + * Creates a ExpandedDataSet. * *

Sample code: * @@ -11302,29 +11456,30 @@ public final AccessBinding createAccessBinding(PropertyName parent, AccessBindin * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = AccountName.of("[ACCOUNT]").toString(); - * AccessBinding accessBinding = AccessBinding.newBuilder().build(); - * AccessBinding response = - * analyticsAdminServiceClient.createAccessBinding(parent, accessBinding); + * String parent = PropertyName.of("[PROPERTY]").toString(); + * ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + * ExpandedDataSet response = + * analyticsAdminServiceClient.createExpandedDataSet(parent, expandedDataSet); * } * } * - * @param parent Required. Formats: - accounts/{account} - properties/{property} - * @param accessBinding Required. The access binding to create. + * @param parent Required. Example format: properties/1234 + * @param expandedDataSet Required. The ExpandedDataSet to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AccessBinding createAccessBinding(String parent, AccessBinding accessBinding) { - CreateAccessBindingRequest request = - CreateAccessBindingRequest.newBuilder() + public final ExpandedDataSet createExpandedDataSet( + String parent, ExpandedDataSet expandedDataSet) { + CreateExpandedDataSetRequest request = + CreateExpandedDataSetRequest.newBuilder() .setParent(parent) - .setAccessBinding(accessBinding) + .setExpandedDataSet(expandedDataSet) .build(); - return createAccessBinding(request); + return createExpandedDataSet(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an access binding on an account or property. + * Creates a ExpandedDataSet. * *

Sample code: * @@ -11336,25 +11491,25 @@ public final AccessBinding createAccessBinding(String parent, AccessBinding acce * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateAccessBindingRequest request = - * CreateAccessBindingRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) - * .setAccessBinding(AccessBinding.newBuilder().build()) + * CreateExpandedDataSetRequest request = + * CreateExpandedDataSetRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setExpandedDataSet(ExpandedDataSet.newBuilder().build()) * .build(); - * AccessBinding response = analyticsAdminServiceClient.createAccessBinding(request); + * ExpandedDataSet response = analyticsAdminServiceClient.createExpandedDataSet(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 AccessBinding createAccessBinding(CreateAccessBindingRequest request) { - return createAccessBindingCallable().call(request); + public final ExpandedDataSet createExpandedDataSet(CreateExpandedDataSetRequest request) { + return createExpandedDataSetCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an access binding on an account or property. + * Creates a ExpandedDataSet. * *

Sample code: * @@ -11366,57 +11521,26 @@ public final AccessBinding createAccessBinding(CreateAccessBindingRequest reques * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateAccessBindingRequest request = - * CreateAccessBindingRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) - * .setAccessBinding(AccessBinding.newBuilder().build()) + * CreateExpandedDataSetRequest request = + * CreateExpandedDataSetRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setExpandedDataSet(ExpandedDataSet.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.createAccessBindingCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.createExpandedDataSetCallable().futureCall(request); * // Do something. - * AccessBinding response = future.get(); - * } - * } - */ - public final UnaryCallable - createAccessBindingCallable() { - return stub.createAccessBindingCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets information about an access binding. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   AccessBindingName name =
-   *       AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]");
-   *   AccessBinding response = analyticsAdminServiceClient.getAccessBinding(name);
+   *   ExpandedDataSet response = future.get();
    * }
    * }
- * - * @param name Required. The name of the access binding to retrieve. Formats: - - * accounts/{account}/accessBindings/{accessBinding} - - * properties/{property}/accessBindings/{accessBinding} - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AccessBinding getAccessBinding(AccessBindingName name) { - GetAccessBindingRequest request = - GetAccessBindingRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getAccessBinding(request); + public final UnaryCallable + createExpandedDataSetCallable() { + return stub.createExpandedDataSetCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about an access binding. + * Updates a ExpandedDataSet on a property. * *

Sample code: * @@ -11428,25 +11552,33 @@ public final AccessBinding getAccessBinding(AccessBindingName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = - * AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]").toString(); - * AccessBinding response = analyticsAdminServiceClient.getAccessBinding(name); + * ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * ExpandedDataSet response = + * analyticsAdminServiceClient.updateExpandedDataSet(expandedDataSet, updateMask); * } * } * - * @param name Required. The name of the access binding to retrieve. Formats: - - * accounts/{account}/accessBindings/{accessBinding} - - * properties/{property}/accessBindings/{accessBinding} + * @param expandedDataSet Required. The ExpandedDataSet to update. The resource's `name` field is + * used to identify the ExpandedDataSet 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 AccessBinding getAccessBinding(String name) { - GetAccessBindingRequest request = GetAccessBindingRequest.newBuilder().setName(name).build(); - return getAccessBinding(request); + public final ExpandedDataSet updateExpandedDataSet( + ExpandedDataSet expandedDataSet, FieldMask updateMask) { + UpdateExpandedDataSetRequest request = + UpdateExpandedDataSetRequest.newBuilder() + .setExpandedDataSet(expandedDataSet) + .setUpdateMask(updateMask) + .build(); + return updateExpandedDataSet(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about an access binding. + * Updates a ExpandedDataSet on a property. * *

Sample code: * @@ -11458,26 +11590,25 @@ public final AccessBinding getAccessBinding(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetAccessBindingRequest request = - * GetAccessBindingRequest.newBuilder() - * .setName( - * AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") - * .toString()) + * UpdateExpandedDataSetRequest request = + * UpdateExpandedDataSetRequest.newBuilder() + * .setExpandedDataSet(ExpandedDataSet.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * AccessBinding response = analyticsAdminServiceClient.getAccessBinding(request); + * ExpandedDataSet response = analyticsAdminServiceClient.updateExpandedDataSet(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 AccessBinding getAccessBinding(GetAccessBindingRequest request) { - return getAccessBindingCallable().call(request); + public final ExpandedDataSet updateExpandedDataSet(UpdateExpandedDataSetRequest request) { + return updateExpandedDataSetCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about an access binding. + * Updates a ExpandedDataSet on a property. * *

Sample code: * @@ -11489,26 +11620,26 @@ public final AccessBinding getAccessBinding(GetAccessBindingRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetAccessBindingRequest request = - * GetAccessBindingRequest.newBuilder() - * .setName( - * AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") - * .toString()) + * UpdateExpandedDataSetRequest request = + * UpdateExpandedDataSetRequest.newBuilder() + * .setExpandedDataSet(ExpandedDataSet.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.getAccessBindingCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.updateExpandedDataSetCallable().futureCall(request); * // Do something. - * AccessBinding response = future.get(); + * ExpandedDataSet response = future.get(); * } * } */ - public final UnaryCallable getAccessBindingCallable() { - return stub.getAccessBindingCallable(); + public final UnaryCallable + updateExpandedDataSetCallable() { + return stub.updateExpandedDataSetCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an access binding on an account or property. + * Deletes a ExpandedDataSet on a property. * *

Sample code: * @@ -11520,23 +11651,25 @@ public final UnaryCallable getAccessBind * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * AccessBinding accessBinding = AccessBinding.newBuilder().build(); - * AccessBinding response = analyticsAdminServiceClient.updateAccessBinding(accessBinding); + * ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); + * analyticsAdminServiceClient.deleteExpandedDataSet(name); * } * } * - * @param accessBinding Required. The access binding to update. + * @param name Required. Example format: properties/1234/expandedDataSets/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AccessBinding updateAccessBinding(AccessBinding accessBinding) { - UpdateAccessBindingRequest request = - UpdateAccessBindingRequest.newBuilder().setAccessBinding(accessBinding).build(); - return updateAccessBinding(request); + public final void deleteExpandedDataSet(ExpandedDataSetName name) { + DeleteExpandedDataSetRequest request = + DeleteExpandedDataSetRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteExpandedDataSet(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an access binding on an account or property. + * Deletes a ExpandedDataSet on a property. * *

Sample code: * @@ -11548,24 +11681,23 @@ public final AccessBinding updateAccessBinding(AccessBinding accessBinding) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateAccessBindingRequest request = - * UpdateAccessBindingRequest.newBuilder() - * .setAccessBinding(AccessBinding.newBuilder().build()) - * .build(); - * AccessBinding response = analyticsAdminServiceClient.updateAccessBinding(request); + * String name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString(); + * analyticsAdminServiceClient.deleteExpandedDataSet(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. Example format: properties/1234/expandedDataSets/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AccessBinding updateAccessBinding(UpdateAccessBindingRequest request) { - return updateAccessBindingCallable().call(request); + public final void deleteExpandedDataSet(String name) { + DeleteExpandedDataSetRequest request = + DeleteExpandedDataSetRequest.newBuilder().setName(name).build(); + deleteExpandedDataSet(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an access binding on an account or property. + * Deletes a ExpandedDataSet on a property. * *

Sample code: * @@ -11577,25 +11709,24 @@ public final AccessBinding updateAccessBinding(UpdateAccessBindingRequest reques * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateAccessBindingRequest request = - * UpdateAccessBindingRequest.newBuilder() - * .setAccessBinding(AccessBinding.newBuilder().build()) + * DeleteExpandedDataSetRequest request = + * DeleteExpandedDataSetRequest.newBuilder() + * .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.updateAccessBindingCallable().futureCall(request); - * // Do something. - * AccessBinding response = future.get(); + * analyticsAdminServiceClient.deleteExpandedDataSet(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 - updateAccessBindingCallable() { - return stub.updateAccessBindingCallable(); + public final void deleteExpandedDataSet(DeleteExpandedDataSetRequest request) { + deleteExpandedDataSetCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an access binding on an account or property. + * Deletes a ExpandedDataSet on a property. * *

Sample code: * @@ -11607,27 +11738,24 @@ public final AccessBinding updateAccessBinding(UpdateAccessBindingRequest reques * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * AccessBindingName name = - * AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); - * analyticsAdminServiceClient.deleteAccessBinding(name); + * DeleteExpandedDataSetRequest request = + * DeleteExpandedDataSetRequest.newBuilder() + * .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient.deleteExpandedDataSetCallable().futureCall(request); + * // Do something. + * future.get(); * } * } - * - * @param name Required. Formats: - accounts/{account}/accessBindings/{accessBinding} - - * properties/{property}/accessBindings/{accessBinding} - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAccessBinding(AccessBindingName name) { - DeleteAccessBindingRequest request = - DeleteAccessBindingRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteAccessBinding(request); + public final UnaryCallable deleteExpandedDataSetCallable() { + return stub.deleteExpandedDataSetCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an access binding on an account or property. + * Lookup for a single ChannelGroup. * *

Sample code: * @@ -11639,25 +11767,24 @@ public final void deleteAccessBinding(AccessBindingName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = - * AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]").toString(); - * analyticsAdminServiceClient.deleteAccessBinding(name); + * ChannelGroupName name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]"); + * ChannelGroup response = analyticsAdminServiceClient.getChannelGroup(name); * } * } * - * @param name Required. Formats: - accounts/{account}/accessBindings/{accessBinding} - - * properties/{property}/accessBindings/{accessBinding} + * @param name Required. The ChannelGroup to get. Example format: + * properties/1234/channelGroups/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAccessBinding(String name) { - DeleteAccessBindingRequest request = - DeleteAccessBindingRequest.newBuilder().setName(name).build(); - deleteAccessBinding(request); + public final ChannelGroup getChannelGroup(ChannelGroupName name) { + GetChannelGroupRequest request = + GetChannelGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getChannelGroup(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an access binding on an account or property. + * Lookup for a single ChannelGroup. * *

Sample code: * @@ -11669,26 +11796,23 @@ public final void deleteAccessBinding(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteAccessBindingRequest request = - * DeleteAccessBindingRequest.newBuilder() - * .setName( - * AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") - * .toString()) - * .build(); - * analyticsAdminServiceClient.deleteAccessBinding(request); + * String name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString(); + * ChannelGroup response = analyticsAdminServiceClient.getChannelGroup(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The ChannelGroup to get. Example format: + * properties/1234/channelGroups/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAccessBinding(DeleteAccessBindingRequest request) { - deleteAccessBindingCallable().call(request); + public final ChannelGroup getChannelGroup(String name) { + GetChannelGroupRequest request = GetChannelGroupRequest.newBuilder().setName(name).build(); + return getChannelGroup(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an access binding on an account or property. + * Lookup for a single ChannelGroup. * *

Sample code: * @@ -11700,26 +11824,24 @@ public final void deleteAccessBinding(DeleteAccessBindingRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteAccessBindingRequest request = - * DeleteAccessBindingRequest.newBuilder() - * .setName( - * AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") - * .toString()) + * GetChannelGroupRequest request = + * GetChannelGroupRequest.newBuilder() + * .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.deleteAccessBindingCallable().futureCall(request); - * // Do something. - * future.get(); + * ChannelGroup response = analyticsAdminServiceClient.getChannelGroup(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 deleteAccessBindingCallable() { - return stub.deleteAccessBindingCallable(); + public final ChannelGroup getChannelGroup(GetChannelGroupRequest request) { + return getChannelGroupCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all access bindings on an account or property. + * Lookup for a single ChannelGroup. * *

Sample code: * @@ -11731,28 +11853,24 @@ public final UnaryCallable deleteAccessBindin * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * AccountName parent = AccountName.of("[ACCOUNT]"); - * for (AccessBinding element : - * analyticsAdminServiceClient.listAccessBindings(parent).iterateAll()) { - * // doThingsWith(element); - * } + * GetChannelGroupRequest request = + * GetChannelGroupRequest.newBuilder() + * .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient.getChannelGroupCallable().futureCall(request); + * // Do something. + * ChannelGroup response = future.get(); * } * } - * - * @param parent Required. Formats: - accounts/{account} - properties/{property} - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAccessBindingsPagedResponse listAccessBindings(AccountName parent) { - ListAccessBindingsRequest request = - ListAccessBindingsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listAccessBindings(request); + public final UnaryCallable getChannelGroupCallable() { + return stub.getChannelGroupCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all access bindings on an account or property. + * Lists ChannelGroups on a property. * *

Sample code: * @@ -11765,27 +11883,28 @@ public final ListAccessBindingsPagedResponse listAccessBindings(AccountName pare * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { * PropertyName parent = PropertyName.of("[PROPERTY]"); - * for (AccessBinding element : - * analyticsAdminServiceClient.listAccessBindings(parent).iterateAll()) { + * for (ChannelGroup element : + * analyticsAdminServiceClient.listChannelGroups(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. Formats: - accounts/{account} - properties/{property} + * @param parent Required. The property for which to list ChannelGroups. Example format: + * properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAccessBindingsPagedResponse listAccessBindings(PropertyName parent) { - ListAccessBindingsRequest request = - ListAccessBindingsRequest.newBuilder() + public final ListChannelGroupsPagedResponse listChannelGroups(PropertyName parent) { + ListChannelGroupsRequest request = + ListChannelGroupsRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listAccessBindings(request); + return listChannelGroups(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all access bindings on an account or property. + * Lists ChannelGroups on a property. * *

Sample code: * @@ -11797,26 +11916,27 @@ public final ListAccessBindingsPagedResponse listAccessBindings(PropertyName par * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = AccountName.of("[ACCOUNT]").toString(); - * for (AccessBinding element : - * analyticsAdminServiceClient.listAccessBindings(parent).iterateAll()) { + * String parent = PropertyName.of("[PROPERTY]").toString(); + * for (ChannelGroup element : + * analyticsAdminServiceClient.listChannelGroups(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. Formats: - accounts/{account} - properties/{property} + * @param parent Required. The property for which to list ChannelGroups. Example format: + * properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAccessBindingsPagedResponse listAccessBindings(String parent) { - ListAccessBindingsRequest request = - ListAccessBindingsRequest.newBuilder().setParent(parent).build(); - return listAccessBindings(request); + public final ListChannelGroupsPagedResponse listChannelGroups(String parent) { + ListChannelGroupsRequest request = + ListChannelGroupsRequest.newBuilder().setParent(parent).build(); + return listChannelGroups(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all access bindings on an account or property. + * Lists ChannelGroups on a property. * *

Sample code: * @@ -11828,14 +11948,14 @@ public final ListAccessBindingsPagedResponse listAccessBindings(String parent) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListAccessBindingsRequest request = - * ListAccessBindingsRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) + * ListChannelGroupsRequest request = + * ListChannelGroupsRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * for (AccessBinding element : - * analyticsAdminServiceClient.listAccessBindings(request).iterateAll()) { + * for (ChannelGroup element : + * analyticsAdminServiceClient.listChannelGroups(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -11844,14 +11964,13 @@ public final ListAccessBindingsPagedResponse listAccessBindings(String parent) { * @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 ListAccessBindingsPagedResponse listAccessBindings( - ListAccessBindingsRequest request) { - return listAccessBindingsPagedCallable().call(request); + public final ListChannelGroupsPagedResponse listChannelGroups(ListChannelGroupsRequest request) { + return listChannelGroupsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all access bindings on an account or property. + * Lists ChannelGroups on a property. * *

Sample code: * @@ -11863,29 +11982,29 @@ public final ListAccessBindingsPagedResponse listAccessBindings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListAccessBindingsRequest request = - * ListAccessBindingsRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) + * ListChannelGroupsRequest request = + * ListChannelGroupsRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.listAccessBindingsPagedCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.listChannelGroupsPagedCallable().futureCall(request); * // Do something. - * for (AccessBinding element : future.get().iterateAll()) { + * for (ChannelGroup element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listAccessBindingsPagedCallable() { - return stub.listAccessBindingsPagedCallable(); + public final UnaryCallable + listChannelGroupsPagedCallable() { + return stub.listChannelGroupsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all access bindings on an account or property. + * Lists ChannelGroups on a property. * *

Sample code: * @@ -11897,16 +12016,16 @@ public final ListAccessBindingsPagedResponse listAccessBindings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListAccessBindingsRequest request = - * ListAccessBindingsRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) + * ListChannelGroupsRequest request = + * ListChannelGroupsRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .build(); - * while (true) { - * ListAccessBindingsResponse response = - * analyticsAdminServiceClient.listAccessBindingsCallable().call(request); - * for (AccessBinding element : response.getAccessBindingsList()) { + * .build(); + * while (true) { + * ListChannelGroupsResponse response = + * analyticsAdminServiceClient.listChannelGroupsCallable().call(request); + * for (ChannelGroup element : response.getChannelGroupsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -11919,17 +12038,14 @@ public final ListAccessBindingsPagedResponse listAccessBindings( * } * } */ - public final UnaryCallable - listAccessBindingsCallable() { - return stub.listAccessBindingsCallable(); + public final UnaryCallable + listChannelGroupsCallable() { + return stub.listChannelGroupsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates information about multiple access bindings to an account or property. - * - *

This method is transactional. If any AccessBinding cannot be created, none of the - * AccessBindings will be created. + * Creates a ChannelGroup. * *

Sample code: * @@ -11941,30 +12057,29 @@ public final ListAccessBindingsPagedResponse listAccessBindings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * BatchCreateAccessBindingsRequest request = - * BatchCreateAccessBindingsRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) - * .addAllRequests(new ArrayList()) - * .build(); - * BatchCreateAccessBindingsResponse response = - * analyticsAdminServiceClient.batchCreateAccessBindings(request); + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); + * ChannelGroup response = analyticsAdminServiceClient.createChannelGroup(parent, channelGroup); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The property for which to create a ChannelGroup. Example format: + * properties/1234 + * @param channelGroup Required. The ChannelGroup to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BatchCreateAccessBindingsResponse batchCreateAccessBindings( - BatchCreateAccessBindingsRequest request) { - return batchCreateAccessBindingsCallable().call(request); + public final ChannelGroup createChannelGroup(PropertyName parent, ChannelGroup channelGroup) { + CreateChannelGroupRequest request = + CreateChannelGroupRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setChannelGroup(channelGroup) + .build(); + return createChannelGroup(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates information about multiple access bindings to an account or property. - * - *

This method is transactional. If any AccessBinding cannot be created, none of the - * AccessBindings will be created. + * Creates a ChannelGroup. * *

Sample code: * @@ -11976,26 +12091,29 @@ public final BatchCreateAccessBindingsResponse batchCreateAccessBindings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * BatchCreateAccessBindingsRequest request = - * BatchCreateAccessBindingsRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) - * .addAllRequests(new ArrayList()) - * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.batchCreateAccessBindingsCallable().futureCall(request); - * // Do something. - * BatchCreateAccessBindingsResponse response = future.get(); + * String parent = PropertyName.of("[PROPERTY]").toString(); + * ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); + * ChannelGroup response = analyticsAdminServiceClient.createChannelGroup(parent, channelGroup); * } * } + * + * @param parent Required. The property for which to create a ChannelGroup. Example format: + * properties/1234 + * @param channelGroup Required. The ChannelGroup to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - batchCreateAccessBindingsCallable() { - return stub.batchCreateAccessBindingsCallable(); + public final ChannelGroup createChannelGroup(String parent, ChannelGroup channelGroup) { + CreateChannelGroupRequest request = + CreateChannelGroupRequest.newBuilder() + .setParent(parent) + .setChannelGroup(channelGroup) + .build(); + return createChannelGroup(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about multiple access bindings to an account or property. + * Creates a ChannelGroup. * *

Sample code: * @@ -12007,27 +12125,25 @@ public final BatchCreateAccessBindingsResponse batchCreateAccessBindings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * BatchGetAccessBindingsRequest request = - * BatchGetAccessBindingsRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) - * .addAllNames(new ArrayList()) + * CreateChannelGroupRequest request = + * CreateChannelGroupRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setChannelGroup(ChannelGroup.newBuilder().build()) * .build(); - * BatchGetAccessBindingsResponse response = - * analyticsAdminServiceClient.batchGetAccessBindings(request); + * ChannelGroup response = analyticsAdminServiceClient.createChannelGroup(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 BatchGetAccessBindingsResponse batchGetAccessBindings( - BatchGetAccessBindingsRequest request) { - return batchGetAccessBindingsCallable().call(request); + public final ChannelGroup createChannelGroup(CreateChannelGroupRequest request) { + return createChannelGroupCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about multiple access bindings to an account or property. + * Creates a ChannelGroup. * *

Sample code: * @@ -12039,26 +12155,25 @@ public final BatchGetAccessBindingsResponse batchGetAccessBindings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * BatchGetAccessBindingsRequest request = - * BatchGetAccessBindingsRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) - * .addAllNames(new ArrayList()) + * CreateChannelGroupRequest request = + * CreateChannelGroupRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setChannelGroup(ChannelGroup.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.batchGetAccessBindingsCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.createChannelGroupCallable().futureCall(request); * // Do something. - * BatchGetAccessBindingsResponse response = future.get(); + * ChannelGroup response = future.get(); * } * } */ - public final UnaryCallable - batchGetAccessBindingsCallable() { - return stub.batchGetAccessBindingsCallable(); + public final UnaryCallable createChannelGroupCallable() { + return stub.createChannelGroupCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates information about multiple access bindings to an account or property. + * Updates a ChannelGroup. * *

Sample code: * @@ -12070,58 +12185,32 @@ public final BatchGetAccessBindingsResponse batchGetAccessBindings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * BatchUpdateAccessBindingsRequest request = - * BatchUpdateAccessBindingsRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) - * .addAllRequests(new ArrayList()) - * .build(); - * BatchUpdateAccessBindingsResponse response = - * analyticsAdminServiceClient.batchUpdateAccessBindings(request); + * ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * ChannelGroup response = + * analyticsAdminServiceClient.updateChannelGroup(channelGroup, updateMask); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param channelGroup Required. The ChannelGroup to update. The resource's `name` field is used + * to identify the ChannelGroup 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 BatchUpdateAccessBindingsResponse batchUpdateAccessBindings( - BatchUpdateAccessBindingsRequest request) { - return batchUpdateAccessBindingsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates information about multiple access bindings to an account or property. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   BatchUpdateAccessBindingsRequest request =
-   *       BatchUpdateAccessBindingsRequest.newBuilder()
-   *           .setParent(AccountName.of("[ACCOUNT]").toString())
-   *           .addAllRequests(new ArrayList())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.batchUpdateAccessBindingsCallable().futureCall(request);
-   *   // Do something.
-   *   BatchUpdateAccessBindingsResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - batchUpdateAccessBindingsCallable() { - return stub.batchUpdateAccessBindingsCallable(); + public final ChannelGroup updateChannelGroup(ChannelGroup channelGroup, FieldMask updateMask) { + UpdateChannelGroupRequest request = + UpdateChannelGroupRequest.newBuilder() + .setChannelGroup(channelGroup) + .setUpdateMask(updateMask) + .build(); + return updateChannelGroup(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes information about multiple users' links to an account or property. + * Updates a ChannelGroup. * *

Sample code: * @@ -12133,25 +12222,25 @@ public final BatchUpdateAccessBindingsResponse batchUpdateAccessBindings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * BatchDeleteAccessBindingsRequest request = - * BatchDeleteAccessBindingsRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) - * .addAllRequests(new ArrayList()) + * UpdateChannelGroupRequest request = + * UpdateChannelGroupRequest.newBuilder() + * .setChannelGroup(ChannelGroup.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * analyticsAdminServiceClient.batchDeleteAccessBindings(request); + * ChannelGroup response = analyticsAdminServiceClient.updateChannelGroup(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 batchDeleteAccessBindings(BatchDeleteAccessBindingsRequest request) { - batchDeleteAccessBindingsCallable().call(request); + public final ChannelGroup updateChannelGroup(UpdateChannelGroupRequest request) { + return updateChannelGroupCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes information about multiple users' links to an account or property. + * Updates a ChannelGroup. * *

Sample code: * @@ -12163,26 +12252,25 @@ public final void batchDeleteAccessBindings(BatchDeleteAccessBindingsRequest req * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * BatchDeleteAccessBindingsRequest request = - * BatchDeleteAccessBindingsRequest.newBuilder() - * .setParent(AccountName.of("[ACCOUNT]").toString()) - * .addAllRequests(new ArrayList()) + * UpdateChannelGroupRequest request = + * UpdateChannelGroupRequest.newBuilder() + * .setChannelGroup(ChannelGroup.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.batchDeleteAccessBindingsCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.updateChannelGroupCallable().futureCall(request); * // Do something. - * future.get(); + * ChannelGroup response = future.get(); * } * } */ - public final UnaryCallable - batchDeleteAccessBindingsCallable() { - return stub.batchDeleteAccessBindingsCallable(); + public final UnaryCallable updateChannelGroupCallable() { + return stub.updateChannelGroupCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single ExpandedDataSet. + * Deletes a ChannelGroup on a property. * *

Sample code: * @@ -12194,26 +12282,26 @@ public final void batchDeleteAccessBindings(BatchDeleteAccessBindingsRequest req * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); - * ExpandedDataSet response = analyticsAdminServiceClient.getExpandedDataSet(name); + * ChannelGroupName name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]"); + * analyticsAdminServiceClient.deleteChannelGroup(name); * } * } * - * @param name Required. The name of the ExpandedDataSet to get. Example format: - * properties/1234/expandedDataSets/5678 + * @param name Required. The ChannelGroup to delete. Example format: + * properties/1234/channelGroups/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ExpandedDataSet getExpandedDataSet(ExpandedDataSetName name) { - GetExpandedDataSetRequest request = - GetExpandedDataSetRequest.newBuilder() + public final void deleteChannelGroup(ChannelGroupName name) { + DeleteChannelGroupRequest request = + DeleteChannelGroupRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); - return getExpandedDataSet(request); + deleteChannelGroup(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single ExpandedDataSet. + * Deletes a ChannelGroup on a property. * *

Sample code: * @@ -12225,24 +12313,24 @@ public final ExpandedDataSet getExpandedDataSet(ExpandedDataSetName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString(); - * ExpandedDataSet response = analyticsAdminServiceClient.getExpandedDataSet(name); + * String name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString(); + * analyticsAdminServiceClient.deleteChannelGroup(name); * } * } * - * @param name Required. The name of the ExpandedDataSet to get. Example format: - * properties/1234/expandedDataSets/5678 + * @param name Required. The ChannelGroup to delete. Example format: + * properties/1234/channelGroups/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ExpandedDataSet getExpandedDataSet(String name) { - GetExpandedDataSetRequest request = - GetExpandedDataSetRequest.newBuilder().setName(name).build(); - return getExpandedDataSet(request); + public final void deleteChannelGroup(String name) { + DeleteChannelGroupRequest request = + DeleteChannelGroupRequest.newBuilder().setName(name).build(); + deleteChannelGroup(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single ExpandedDataSet. + * Deletes a ChannelGroup on a property. * *

Sample code: * @@ -12254,24 +12342,24 @@ public final ExpandedDataSet getExpandedDataSet(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetExpandedDataSetRequest request = - * GetExpandedDataSetRequest.newBuilder() - * .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + * DeleteChannelGroupRequest request = + * DeleteChannelGroupRequest.newBuilder() + * .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) * .build(); - * ExpandedDataSet response = analyticsAdminServiceClient.getExpandedDataSet(request); + * analyticsAdminServiceClient.deleteChannelGroup(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 ExpandedDataSet getExpandedDataSet(GetExpandedDataSetRequest request) { - return getExpandedDataSetCallable().call(request); + public final void deleteChannelGroup(DeleteChannelGroupRequest request) { + deleteChannelGroupCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single ExpandedDataSet. + * Deletes a ChannelGroup on a property. * *

Sample code: * @@ -12283,25 +12371,25 @@ public final ExpandedDataSet getExpandedDataSet(GetExpandedDataSetRequest reques * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetExpandedDataSetRequest request = - * GetExpandedDataSetRequest.newBuilder() - * .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + * DeleteChannelGroupRequest request = + * DeleteChannelGroupRequest.newBuilder() + * .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.getExpandedDataSetCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.deleteChannelGroupCallable().futureCall(request); * // Do something. - * ExpandedDataSet response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable - getExpandedDataSetCallable() { - return stub.getExpandedDataSetCallable(); + public final UnaryCallable deleteChannelGroupCallable() { + return stub.deleteChannelGroupCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ExpandedDataSets on a property. + * Sets the opt out status for the automated GA4 setup process for a UA property. Note: this has + * no effect on GA4 property. * *

Sample code: * @@ -12313,28 +12401,28 @@ public final ExpandedDataSet getExpandedDataSet(GetExpandedDataSetRequest reques * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * for (ExpandedDataSet element : - * analyticsAdminServiceClient.listExpandedDataSets(parent).iterateAll()) { - * // doThingsWith(element); - * } + * SetAutomatedGa4ConfigurationOptOutRequest request = + * SetAutomatedGa4ConfigurationOptOutRequest.newBuilder() + * .setProperty("property-993141291") + * .setOptOut(true) + * .build(); + * SetAutomatedGa4ConfigurationOptOutResponse response = + * analyticsAdminServiceClient.setAutomatedGa4ConfigurationOptOut(request); * } * } * - * @param parent Required. Example format: properties/1234 + * @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 ListExpandedDataSetsPagedResponse listExpandedDataSets(PropertyName parent) { - ListExpandedDataSetsRequest request = - ListExpandedDataSetsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listExpandedDataSets(request); + public final SetAutomatedGa4ConfigurationOptOutResponse setAutomatedGa4ConfigurationOptOut( + SetAutomatedGa4ConfigurationOptOutRequest request) { + return setAutomatedGa4ConfigurationOptOutCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ExpandedDataSets on a property. + * Sets the opt out status for the automated GA4 setup process for a UA property. Note: this has + * no effect on GA4 property. * *

Sample code: * @@ -12346,26 +12434,30 @@ public final ListExpandedDataSetsPagedResponse listExpandedDataSets(PropertyName * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * for (ExpandedDataSet element : - * analyticsAdminServiceClient.listExpandedDataSets(parent).iterateAll()) { - * // doThingsWith(element); - * } + * SetAutomatedGa4ConfigurationOptOutRequest request = + * SetAutomatedGa4ConfigurationOptOutRequest.newBuilder() + * .setProperty("property-993141291") + * .setOptOut(true) + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient + * .setAutomatedGa4ConfigurationOptOutCallable() + * .futureCall(request); + * // Do something. + * SetAutomatedGa4ConfigurationOptOutResponse response = future.get(); * } * } - * - * @param parent Required. Example format: properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListExpandedDataSetsPagedResponse listExpandedDataSets(String parent) { - ListExpandedDataSetsRequest request = - ListExpandedDataSetsRequest.newBuilder().setParent(parent).build(); - return listExpandedDataSets(request); + public final UnaryCallable< + SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> + setAutomatedGa4ConfigurationOptOutCallable() { + return stub.setAutomatedGa4ConfigurationOptOutCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ExpandedDataSets on a property. + * Fetches the opt out status for the automated GA4 setup process for a UA property. Note: this + * has no effect on GA4 property. * *

Sample code: * @@ -12377,30 +12469,27 @@ public final ListExpandedDataSetsPagedResponse listExpandedDataSets(String paren * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListExpandedDataSetsRequest request = - * ListExpandedDataSetsRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * FetchAutomatedGa4ConfigurationOptOutRequest request = + * FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder() + * .setProperty("property-993141291") * .build(); - * for (ExpandedDataSet element : - * analyticsAdminServiceClient.listExpandedDataSets(request).iterateAll()) { - * // doThingsWith(element); - * } + * FetchAutomatedGa4ConfigurationOptOutResponse response = + * analyticsAdminServiceClient.fetchAutomatedGa4ConfigurationOptOut(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 ListExpandedDataSetsPagedResponse listExpandedDataSets( - ListExpandedDataSetsRequest request) { - return listExpandedDataSetsPagedCallable().call(request); + public final FetchAutomatedGa4ConfigurationOptOutResponse fetchAutomatedGa4ConfigurationOptOut( + FetchAutomatedGa4ConfigurationOptOutRequest request) { + return fetchAutomatedGa4ConfigurationOptOutCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ExpandedDataSets on a property. + * Fetches the opt out status for the automated GA4 setup process for a UA property. Note: this + * has no effect on GA4 property. * *

Sample code: * @@ -12412,29 +12501,28 @@ public final ListExpandedDataSetsPagedResponse listExpandedDataSets( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListExpandedDataSetsRequest request = - * ListExpandedDataSetsRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * FetchAutomatedGa4ConfigurationOptOutRequest request = + * FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder() + * .setProperty("property-993141291") * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.listExpandedDataSetsPagedCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient + * .fetchAutomatedGa4ConfigurationOptOutCallable() + * .futureCall(request); * // Do something. - * for (ExpandedDataSet element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * FetchAutomatedGa4ConfigurationOptOutResponse response = future.get(); * } * } */ - public final UnaryCallable - listExpandedDataSetsPagedCallable() { - return stub.listExpandedDataSetsPagedCallable(); + public final UnaryCallable< + FetchAutomatedGa4ConfigurationOptOutRequest, FetchAutomatedGa4ConfigurationOptOutResponse> + fetchAutomatedGa4ConfigurationOptOutCallable() { + return stub.fetchAutomatedGa4ConfigurationOptOutCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ExpandedDataSets on a property. + * Lookup for a single BigQuery Link. * *

Sample code: * @@ -12446,36 +12534,25 @@ public final ListExpandedDataSetsPagedResponse listExpandedDataSets( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListExpandedDataSetsRequest request = - * ListExpandedDataSetsRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * while (true) { - * ListExpandedDataSetsResponse response = - * analyticsAdminServiceClient.listExpandedDataSetsCallable().call(request); - * for (ExpandedDataSet element : response.getExpandedDataSetsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * BigQueryLinkName name = BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]"); + * BigQueryLink response = analyticsAdminServiceClient.getBigQueryLink(name); * } * } + * + * @param name Required. The name of the BigQuery link to lookup. Format: + * properties/{property_id}/bigQueryLinks/{bigquery_link_id} Example: + * properties/123/bigQueryLinks/456 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listExpandedDataSetsCallable() { - return stub.listExpandedDataSetsCallable(); + public final BigQueryLink getBigQueryLink(BigQueryLinkName name) { + GetBigQueryLinkRequest request = + GetBigQueryLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getBigQueryLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a ExpandedDataSet. + * Lookup for a single BigQuery Link. * *

Sample code: * @@ -12487,30 +12564,24 @@ public final ListExpandedDataSetsPagedResponse listExpandedDataSets( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); - * ExpandedDataSet response = - * analyticsAdminServiceClient.createExpandedDataSet(parent, expandedDataSet); + * String name = BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString(); + * BigQueryLink response = analyticsAdminServiceClient.getBigQueryLink(name); * } * } * - * @param parent Required. Example format: properties/1234 - * @param expandedDataSet Required. The ExpandedDataSet to create. + * @param name Required. The name of the BigQuery link to lookup. Format: + * properties/{property_id}/bigQueryLinks/{bigquery_link_id} Example: + * properties/123/bigQueryLinks/456 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ExpandedDataSet createExpandedDataSet( - PropertyName parent, ExpandedDataSet expandedDataSet) { - CreateExpandedDataSetRequest request = - CreateExpandedDataSetRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setExpandedDataSet(expandedDataSet) - .build(); - return createExpandedDataSet(request); + public final BigQueryLink getBigQueryLink(String name) { + GetBigQueryLinkRequest request = GetBigQueryLinkRequest.newBuilder().setName(name).build(); + return getBigQueryLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a ExpandedDataSet. + * Lookup for a single BigQuery Link. * *

Sample code: * @@ -12522,30 +12593,24 @@ public final ExpandedDataSet createExpandedDataSet( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); - * ExpandedDataSet response = - * analyticsAdminServiceClient.createExpandedDataSet(parent, expandedDataSet); + * GetBigQueryLinkRequest request = + * GetBigQueryLinkRequest.newBuilder() + * .setName(BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString()) + * .build(); + * BigQueryLink response = analyticsAdminServiceClient.getBigQueryLink(request); * } * } * - * @param parent Required. Example format: properties/1234 - * @param expandedDataSet Required. The ExpandedDataSet to create. + * @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 ExpandedDataSet createExpandedDataSet( - String parent, ExpandedDataSet expandedDataSet) { - CreateExpandedDataSetRequest request = - CreateExpandedDataSetRequest.newBuilder() - .setParent(parent) - .setExpandedDataSet(expandedDataSet) - .build(); - return createExpandedDataSet(request); + public final BigQueryLink getBigQueryLink(GetBigQueryLinkRequest request) { + return getBigQueryLinkCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a ExpandedDataSet. + * Lookup for a single BigQuery Link. * *

Sample code: * @@ -12557,25 +12622,24 @@ public final ExpandedDataSet createExpandedDataSet( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateExpandedDataSetRequest request = - * CreateExpandedDataSetRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setExpandedDataSet(ExpandedDataSet.newBuilder().build()) + * GetBigQueryLinkRequest request = + * GetBigQueryLinkRequest.newBuilder() + * .setName(BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString()) * .build(); - * ExpandedDataSet response = analyticsAdminServiceClient.createExpandedDataSet(request); + * ApiFuture future = + * analyticsAdminServiceClient.getBigQueryLinkCallable().futureCall(request); + * // Do something. + * BigQueryLink response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ExpandedDataSet createExpandedDataSet(CreateExpandedDataSetRequest request) { - return createExpandedDataSetCallable().call(request); + public final UnaryCallable getBigQueryLinkCallable() { + return stub.getBigQueryLinkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a ExpandedDataSet. + * Lists BigQuery Links on a property. * *

Sample code: * @@ -12587,26 +12651,29 @@ public final ExpandedDataSet createExpandedDataSet(CreateExpandedDataSetRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateExpandedDataSetRequest request = - * CreateExpandedDataSetRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setExpandedDataSet(ExpandedDataSet.newBuilder().build()) - * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.createExpandedDataSetCallable().futureCall(request); - * // Do something. - * ExpandedDataSet response = future.get(); + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * for (BigQueryLink element : + * analyticsAdminServiceClient.listBigQueryLinks(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } - */ - public final UnaryCallable - createExpandedDataSetCallable() { - return stub.createExpandedDataSetCallable(); + * + * @param parent Required. The name of the property to list BigQuery links under. Format: + * properties/{property_id} Example: properties/1234 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBigQueryLinksPagedResponse listBigQueryLinks(PropertyName parent) { + ListBigQueryLinksRequest request = + ListBigQueryLinksRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBigQueryLinks(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a ExpandedDataSet on a property. + * Lists BigQuery Links on a property. * *

Sample code: * @@ -12618,33 +12685,27 @@ public final ExpandedDataSet createExpandedDataSet(CreateExpandedDataSetRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * ExpandedDataSet response = - * analyticsAdminServiceClient.updateExpandedDataSet(expandedDataSet, updateMask); + * String parent = PropertyName.of("[PROPERTY]").toString(); + * for (BigQueryLink element : + * analyticsAdminServiceClient.listBigQueryLinks(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param expandedDataSet Required. The ExpandedDataSet to update. The resource's `name` field is - * used to identify the ExpandedDataSet 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. + * @param parent Required. The name of the property to list BigQuery links under. Format: + * properties/{property_id} Example: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ExpandedDataSet updateExpandedDataSet( - ExpandedDataSet expandedDataSet, FieldMask updateMask) { - UpdateExpandedDataSetRequest request = - UpdateExpandedDataSetRequest.newBuilder() - .setExpandedDataSet(expandedDataSet) - .setUpdateMask(updateMask) - .build(); - return updateExpandedDataSet(request); + public final ListBigQueryLinksPagedResponse listBigQueryLinks(String parent) { + ListBigQueryLinksRequest request = + ListBigQueryLinksRequest.newBuilder().setParent(parent).build(); + return listBigQueryLinks(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a ExpandedDataSet on a property. + * Lists BigQuery Links on a property. * *

Sample code: * @@ -12656,25 +12717,29 @@ public final ExpandedDataSet updateExpandedDataSet( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateExpandedDataSetRequest request = - * UpdateExpandedDataSetRequest.newBuilder() - * .setExpandedDataSet(ExpandedDataSet.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * ListBigQueryLinksRequest request = + * ListBigQueryLinksRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ExpandedDataSet response = analyticsAdminServiceClient.updateExpandedDataSet(request); + * for (BigQueryLink element : + * analyticsAdminServiceClient.listBigQueryLinks(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 ExpandedDataSet updateExpandedDataSet(UpdateExpandedDataSetRequest request) { - return updateExpandedDataSetCallable().call(request); + public final ListBigQueryLinksPagedResponse listBigQueryLinks(ListBigQueryLinksRequest request) { + return listBigQueryLinksPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a ExpandedDataSet on a property. + * Lists BigQuery Links on a property. * *

Sample code: * @@ -12686,26 +12751,29 @@ public final ExpandedDataSet updateExpandedDataSet(UpdateExpandedDataSetRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateExpandedDataSetRequest request = - * UpdateExpandedDataSetRequest.newBuilder() - * .setExpandedDataSet(ExpandedDataSet.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * ListBigQueryLinksRequest request = + * ListBigQueryLinksRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.updateExpandedDataSetCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.listBigQueryLinksPagedCallable().futureCall(request); * // Do something. - * ExpandedDataSet response = future.get(); + * for (BigQueryLink element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final UnaryCallable - updateExpandedDataSetCallable() { - return stub.updateExpandedDataSetCallable(); + public final UnaryCallable + listBigQueryLinksPagedCallable() { + return stub.listBigQueryLinksPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a ExpandedDataSet on a property. + * Lists BigQuery Links on a property. * *

Sample code: * @@ -12717,25 +12785,37 @@ public final ExpandedDataSet updateExpandedDataSet(UpdateExpandedDataSetRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); - * analyticsAdminServiceClient.deleteExpandedDataSet(name); + * ListBigQueryLinksRequest request = + * ListBigQueryLinksRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * ListBigQueryLinksResponse response = + * analyticsAdminServiceClient.listBigQueryLinksCallable().call(request); + * for (BigQueryLink element : response.getBigqueryLinksList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } - * - * @param name Required. Example format: properties/1234/expandedDataSets/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteExpandedDataSet(ExpandedDataSetName name) { - DeleteExpandedDataSetRequest request = - DeleteExpandedDataSetRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteExpandedDataSet(request); + public final UnaryCallable + listBigQueryLinksCallable() { + return stub.listBigQueryLinksCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a ExpandedDataSet on a property. + * Returns the enhanced measurement settings for this data stream. Note that the stream must + * enable enhanced measurement for these settings to take effect. * *

Sample code: * @@ -12747,23 +12827,31 @@ public final void deleteExpandedDataSet(ExpandedDataSetName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString(); - * analyticsAdminServiceClient.deleteExpandedDataSet(name); + * EnhancedMeasurementSettingsName name = + * EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]"); + * EnhancedMeasurementSettings response = + * analyticsAdminServiceClient.getEnhancedMeasurementSettings(name); * } * } * - * @param name Required. Example format: properties/1234/expandedDataSets/5678 + * @param name Required. The name of the settings to lookup. Format: + * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings Example: + * "properties/1000/dataStreams/2000/enhancedMeasurementSettings" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteExpandedDataSet(String name) { - DeleteExpandedDataSetRequest request = - DeleteExpandedDataSetRequest.newBuilder().setName(name).build(); - deleteExpandedDataSet(request); + public final EnhancedMeasurementSettings getEnhancedMeasurementSettings( + EnhancedMeasurementSettingsName name) { + GetEnhancedMeasurementSettingsRequest request = + GetEnhancedMeasurementSettingsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getEnhancedMeasurementSettings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a ExpandedDataSet on a property. + * Returns the enhanced measurement settings for this data stream. Note that the stream must + * enable enhanced measurement for these settings to take effect. * *

Sample code: * @@ -12775,24 +12863,27 @@ public final void deleteExpandedDataSet(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteExpandedDataSetRequest request = - * DeleteExpandedDataSetRequest.newBuilder() - * .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) - * .build(); - * analyticsAdminServiceClient.deleteExpandedDataSet(request); + * String name = EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString(); + * EnhancedMeasurementSettings response = + * analyticsAdminServiceClient.getEnhancedMeasurementSettings(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The name of the settings to lookup. Format: + * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings Example: + * "properties/1000/dataStreams/2000/enhancedMeasurementSettings" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteExpandedDataSet(DeleteExpandedDataSetRequest request) { - deleteExpandedDataSetCallable().call(request); + public final EnhancedMeasurementSettings getEnhancedMeasurementSettings(String name) { + GetEnhancedMeasurementSettingsRequest request = + GetEnhancedMeasurementSettingsRequest.newBuilder().setName(name).build(); + return getEnhancedMeasurementSettings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a ExpandedDataSet on a property. + * Returns the enhanced measurement settings for this data stream. Note that the stream must + * enable enhanced measurement for these settings to take effect. * *

Sample code: * @@ -12804,24 +12895,27 @@ public final void deleteExpandedDataSet(DeleteExpandedDataSetRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteExpandedDataSetRequest request = - * DeleteExpandedDataSetRequest.newBuilder() - * .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + * GetEnhancedMeasurementSettingsRequest request = + * GetEnhancedMeasurementSettingsRequest.newBuilder() + * .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.deleteExpandedDataSetCallable().futureCall(request); - * // Do something. - * future.get(); + * EnhancedMeasurementSettings response = + * analyticsAdminServiceClient.getEnhancedMeasurementSettings(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 deleteExpandedDataSetCallable() { - return stub.deleteExpandedDataSetCallable(); + public final EnhancedMeasurementSettings getEnhancedMeasurementSettings( + GetEnhancedMeasurementSettingsRequest request) { + return getEnhancedMeasurementSettingsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single ChannelGroup. + * Returns the enhanced measurement settings for this data stream. Note that the stream must + * enable enhanced measurement for these settings to take effect. * *

Sample code: * @@ -12833,24 +12927,26 @@ public final UnaryCallable deleteExpandedDa * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ChannelGroupName name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]"); - * ChannelGroup response = analyticsAdminServiceClient.getChannelGroup(name); + * GetEnhancedMeasurementSettingsRequest request = + * GetEnhancedMeasurementSettingsRequest.newBuilder() + * .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient.getEnhancedMeasurementSettingsCallable().futureCall(request); + * // Do something. + * EnhancedMeasurementSettings response = future.get(); * } * } - * - * @param name Required. The ChannelGroup to get. Example format: - * properties/1234/channelGroups/5678 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ChannelGroup getChannelGroup(ChannelGroupName name) { - GetChannelGroupRequest request = - GetChannelGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getChannelGroup(request); + public final UnaryCallable + getEnhancedMeasurementSettingsCallable() { + return stub.getEnhancedMeasurementSettingsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single ChannelGroup. + * Updates the enhanced measurement settings for this data stream. Note that the stream must + * enable enhanced measurement for these settings to take effect. * *

Sample code: * @@ -12862,23 +12958,36 @@ public final ChannelGroup getChannelGroup(ChannelGroupName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString(); - * ChannelGroup response = analyticsAdminServiceClient.getChannelGroup(name); + * EnhancedMeasurementSettings enhancedMeasurementSettings = + * EnhancedMeasurementSettings.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * EnhancedMeasurementSettings response = + * analyticsAdminServiceClient.updateEnhancedMeasurementSettings( + * enhancedMeasurementSettings, updateMask); * } * } * - * @param name Required. The ChannelGroup to get. Example format: - * properties/1234/channelGroups/5678 + * @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. 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 ChannelGroup getChannelGroup(String name) { - GetChannelGroupRequest request = GetChannelGroupRequest.newBuilder().setName(name).build(); - return getChannelGroup(request); + public final EnhancedMeasurementSettings updateEnhancedMeasurementSettings( + EnhancedMeasurementSettings enhancedMeasurementSettings, FieldMask updateMask) { + UpdateEnhancedMeasurementSettingsRequest request = + UpdateEnhancedMeasurementSettingsRequest.newBuilder() + .setEnhancedMeasurementSettings(enhancedMeasurementSettings) + .setUpdateMask(updateMask) + .build(); + return updateEnhancedMeasurementSettings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single ChannelGroup. + * Updates the enhanced measurement settings for this data stream. Note that the stream must + * enable enhanced measurement for these settings to take effect. * *

Sample code: * @@ -12890,24 +12999,28 @@ public final ChannelGroup getChannelGroup(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetChannelGroupRequest request = - * GetChannelGroupRequest.newBuilder() - * .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) + * UpdateEnhancedMeasurementSettingsRequest request = + * UpdateEnhancedMeasurementSettingsRequest.newBuilder() + * .setEnhancedMeasurementSettings(EnhancedMeasurementSettings.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * ChannelGroup response = analyticsAdminServiceClient.getChannelGroup(request); + * EnhancedMeasurementSettings response = + * analyticsAdminServiceClient.updateEnhancedMeasurementSettings(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 ChannelGroup getChannelGroup(GetChannelGroupRequest request) { - return getChannelGroupCallable().call(request); + public final EnhancedMeasurementSettings updateEnhancedMeasurementSettings( + UpdateEnhancedMeasurementSettingsRequest request) { + return updateEnhancedMeasurementSettingsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single ChannelGroup. + * Updates the enhanced measurement settings for this data stream. Note that the stream must + * enable enhanced measurement for these settings to take effect. * *

Sample code: * @@ -12919,24 +13032,29 @@ public final ChannelGroup getChannelGroup(GetChannelGroupRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetChannelGroupRequest request = - * GetChannelGroupRequest.newBuilder() - * .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) + * UpdateEnhancedMeasurementSettingsRequest request = + * UpdateEnhancedMeasurementSettingsRequest.newBuilder() + * .setEnhancedMeasurementSettings(EnhancedMeasurementSettings.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.getChannelGroupCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient + * .updateEnhancedMeasurementSettingsCallable() + * .futureCall(request); * // Do something. - * ChannelGroup response = future.get(); + * EnhancedMeasurementSettings response = future.get(); * } * } */ - public final UnaryCallable getChannelGroupCallable() { - return stub.getChannelGroupCallable(); + public final UnaryCallable + updateEnhancedMeasurementSettingsCallable() { + return stub.updateEnhancedMeasurementSettingsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ChannelGroups on a property. + * Creates a connected site tag for a Universal Analytics property. You can create a maximum of 20 + * connected site tags per property. Note: This API cannot be used on GA4 properties. * *

Sample code: * @@ -12948,29 +13066,28 @@ public final UnaryCallable getChannelGroup * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * for (ChannelGroup element : - * analyticsAdminServiceClient.listChannelGroups(parent).iterateAll()) { - * // doThingsWith(element); - * } + * CreateConnectedSiteTagRequest request = + * CreateConnectedSiteTagRequest.newBuilder() + * .setProperty("property-993141291") + * .setConnectedSiteTag(ConnectedSiteTag.newBuilder().build()) + * .build(); + * CreateConnectedSiteTagResponse response = + * analyticsAdminServiceClient.createConnectedSiteTag(request); * } * } * - * @param parent Required. The property for which to list ChannelGroups. Example format: - * properties/1234 + * @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 ListChannelGroupsPagedResponse listChannelGroups(PropertyName parent) { - ListChannelGroupsRequest request = - ListChannelGroupsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listChannelGroups(request); + public final CreateConnectedSiteTagResponse createConnectedSiteTag( + CreateConnectedSiteTagRequest request) { + return createConnectedSiteTagCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ChannelGroups on a property. + * Creates a connected site tag for a Universal Analytics property. You can create a maximum of 20 + * connected site tags per property. Note: This API cannot be used on GA4 properties. * *

Sample code: * @@ -12982,27 +13099,27 @@ public final ListChannelGroupsPagedResponse listChannelGroups(PropertyName paren * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * for (ChannelGroup element : - * analyticsAdminServiceClient.listChannelGroups(parent).iterateAll()) { - * // doThingsWith(element); - * } + * CreateConnectedSiteTagRequest request = + * CreateConnectedSiteTagRequest.newBuilder() + * .setProperty("property-993141291") + * .setConnectedSiteTag(ConnectedSiteTag.newBuilder().build()) + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient.createConnectedSiteTagCallable().futureCall(request); + * // Do something. + * CreateConnectedSiteTagResponse response = future.get(); * } * } - * - * @param parent Required. The property for which to list ChannelGroups. Example format: - * properties/1234 - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListChannelGroupsPagedResponse listChannelGroups(String parent) { - ListChannelGroupsRequest request = - ListChannelGroupsRequest.newBuilder().setParent(parent).build(); - return listChannelGroups(request); + public final UnaryCallable + createConnectedSiteTagCallable() { + return stub.createConnectedSiteTagCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ChannelGroups on a property. + * Deletes a connected site tag for a Universal Analytics property. Note: this has no effect on + * GA4 properties. * *

Sample code: * @@ -13014,29 +13131,26 @@ public final ListChannelGroupsPagedResponse listChannelGroups(String parent) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListChannelGroupsRequest request = - * ListChannelGroupsRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * DeleteConnectedSiteTagRequest request = + * DeleteConnectedSiteTagRequest.newBuilder() + * .setProperty("property-993141291") + * .setTagId("tagId110119509") * .build(); - * for (ChannelGroup element : - * analyticsAdminServiceClient.listChannelGroups(request).iterateAll()) { - * // doThingsWith(element); - * } + * analyticsAdminServiceClient.deleteConnectedSiteTag(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 ListChannelGroupsPagedResponse listChannelGroups(ListChannelGroupsRequest request) { - return listChannelGroupsPagedCallable().call(request); + public final void deleteConnectedSiteTag(DeleteConnectedSiteTagRequest request) { + deleteConnectedSiteTagCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ChannelGroups on a property. + * Deletes a connected site tag for a Universal Analytics property. Note: this has no effect on + * GA4 properties. * *

Sample code: * @@ -13048,29 +13162,27 @@ public final ListChannelGroupsPagedResponse listChannelGroups(ListChannelGroupsR * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListChannelGroupsRequest request = - * ListChannelGroupsRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * DeleteConnectedSiteTagRequest request = + * DeleteConnectedSiteTagRequest.newBuilder() + * .setProperty("property-993141291") + * .setTagId("tagId110119509") * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.listChannelGroupsPagedCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.deleteConnectedSiteTagCallable().futureCall(request); * // Do something. - * for (ChannelGroup element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * future.get(); * } * } */ - public final UnaryCallable - listChannelGroupsPagedCallable() { - return stub.listChannelGroupsPagedCallable(); + public final UnaryCallable + deleteConnectedSiteTagCallable() { + return stub.deleteConnectedSiteTagCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists ChannelGroups on a property. + * Lists the connected site tags for a Universal Analytics property. A maximum of 20 connected + * site tags will be returned. Note: this has no effect on GA4 property. * *

Sample code: * @@ -13082,36 +13194,25 @@ public final ListChannelGroupsPagedResponse listChannelGroups(ListChannelGroupsR * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListChannelGroupsRequest request = - * ListChannelGroupsRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * while (true) { - * ListChannelGroupsResponse response = - * analyticsAdminServiceClient.listChannelGroupsCallable().call(request); - * for (ChannelGroup element : response.getChannelGroupsList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } - * } + * ListConnectedSiteTagsRequest request = + * ListConnectedSiteTagsRequest.newBuilder().setProperty("property-993141291").build(); + * ListConnectedSiteTagsResponse response = + * analyticsAdminServiceClient.listConnectedSiteTags(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 - listChannelGroupsCallable() { - return stub.listChannelGroupsCallable(); + public final ListConnectedSiteTagsResponse listConnectedSiteTags( + ListConnectedSiteTagsRequest request) { + return listConnectedSiteTagsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a ChannelGroup. + * Lists the connected site tags for a Universal Analytics property. A maximum of 20 connected + * site tags will be returned. Note: this has no effect on GA4 property. * *

Sample code: * @@ -13123,29 +13224,24 @@ public final ListChannelGroupsPagedResponse listChannelGroups(ListChannelGroupsR * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); - * ChannelGroup response = analyticsAdminServiceClient.createChannelGroup(parent, channelGroup); + * ListConnectedSiteTagsRequest request = + * ListConnectedSiteTagsRequest.newBuilder().setProperty("property-993141291").build(); + * ApiFuture future = + * analyticsAdminServiceClient.listConnectedSiteTagsCallable().futureCall(request); + * // Do something. + * ListConnectedSiteTagsResponse response = future.get(); * } * } - * - * @param parent Required. The property for which to create a ChannelGroup. Example format: - * properties/1234 - * @param channelGroup Required. The ChannelGroup to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ChannelGroup createChannelGroup(PropertyName parent, ChannelGroup channelGroup) { - CreateChannelGroupRequest request = - CreateChannelGroupRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setChannelGroup(channelGroup) - .build(); - return createChannelGroup(request); + public final UnaryCallable + listConnectedSiteTagsCallable() { + return stub.listConnectedSiteTagsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a ChannelGroup. + * Given a specified UA property, looks up the GA4 property connected to it. Note: this cannot be + * used with GA4 properties. * *

Sample code: * @@ -13157,29 +13253,27 @@ public final ChannelGroup createChannelGroup(PropertyName parent, ChannelGroup c * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); - * ChannelGroup response = analyticsAdminServiceClient.createChannelGroup(parent, channelGroup); + * FetchConnectedGa4PropertyRequest request = + * FetchConnectedGa4PropertyRequest.newBuilder() + * .setProperty(PropertyName.of("[PROPERTY]").toString()) + * .build(); + * FetchConnectedGa4PropertyResponse response = + * analyticsAdminServiceClient.fetchConnectedGa4Property(request); * } * } * - * @param parent Required. The property for which to create a ChannelGroup. Example format: - * properties/1234 - * @param channelGroup Required. The ChannelGroup to create. + * @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 ChannelGroup createChannelGroup(String parent, ChannelGroup channelGroup) { - CreateChannelGroupRequest request = - CreateChannelGroupRequest.newBuilder() - .setParent(parent) - .setChannelGroup(channelGroup) - .build(); - return createChannelGroup(request); + public final FetchConnectedGa4PropertyResponse fetchConnectedGa4Property( + FetchConnectedGa4PropertyRequest request) { + return fetchConnectedGa4PropertyCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a ChannelGroup. + * Given a specified UA property, looks up the GA4 property connected to it. Note: this cannot be + * used with GA4 properties. * *

Sample code: * @@ -13191,25 +13285,25 @@ public final ChannelGroup createChannelGroup(String parent, ChannelGroup channel * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateChannelGroupRequest request = - * CreateChannelGroupRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setChannelGroup(ChannelGroup.newBuilder().build()) + * FetchConnectedGa4PropertyRequest request = + * FetchConnectedGa4PropertyRequest.newBuilder() + * .setProperty(PropertyName.of("[PROPERTY]").toString()) * .build(); - * ChannelGroup response = analyticsAdminServiceClient.createChannelGroup(request); + * ApiFuture future = + * analyticsAdminServiceClient.fetchConnectedGa4PropertyCallable().futureCall(request); + * // Do something. + * FetchConnectedGa4PropertyResponse response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ChannelGroup createChannelGroup(CreateChannelGroupRequest request) { - return createChannelGroupCallable().call(request); + public final UnaryCallable + fetchConnectedGa4PropertyCallable() { + return stub.fetchConnectedGa4PropertyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a ChannelGroup. + * Looks up a single AdSenseLink. * *

Sample code: * @@ -13221,25 +13315,24 @@ public final ChannelGroup createChannelGroup(CreateChannelGroupRequest request) * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateChannelGroupRequest request = - * CreateChannelGroupRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setChannelGroup(ChannelGroup.newBuilder().build()) - * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.createChannelGroupCallable().futureCall(request); - * // Do something. - * ChannelGroup response = future.get(); + * AdSenseLinkName name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]"); + * AdSenseLink response = analyticsAdminServiceClient.getAdSenseLink(name); * } * } - */ - public final UnaryCallable createChannelGroupCallable() { - return stub.createChannelGroupCallable(); + * + * @param name Required. Unique identifier for the AdSense Link requested. Format: + * properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AdSenseLink getAdSenseLink(AdSenseLinkName name) { + GetAdSenseLinkRequest request = + GetAdSenseLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAdSenseLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a ChannelGroup. + * Looks up a single AdSenseLink. * *

Sample code: * @@ -13251,32 +13344,23 @@ public final UnaryCallable createChanne * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * ChannelGroup response = - * analyticsAdminServiceClient.updateChannelGroup(channelGroup, updateMask); + * String name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString(); + * AdSenseLink response = analyticsAdminServiceClient.getAdSenseLink(name); * } * } * - * @param channelGroup Required. The ChannelGroup to update. The resource's `name` field is used - * to identify the ChannelGroup 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. + * @param name Required. Unique identifier for the AdSense Link requested. Format: + * properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ChannelGroup updateChannelGroup(ChannelGroup channelGroup, FieldMask updateMask) { - UpdateChannelGroupRequest request = - UpdateChannelGroupRequest.newBuilder() - .setChannelGroup(channelGroup) - .setUpdateMask(updateMask) - .build(); - return updateChannelGroup(request); + public final AdSenseLink getAdSenseLink(String name) { + GetAdSenseLinkRequest request = GetAdSenseLinkRequest.newBuilder().setName(name).build(); + return getAdSenseLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a ChannelGroup. + * Looks up a single AdSenseLink. * *

Sample code: * @@ -13288,25 +13372,24 @@ public final ChannelGroup updateChannelGroup(ChannelGroup channelGroup, FieldMas * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateChannelGroupRequest request = - * UpdateChannelGroupRequest.newBuilder() - * .setChannelGroup(ChannelGroup.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * GetAdSenseLinkRequest request = + * GetAdSenseLinkRequest.newBuilder() + * .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) * .build(); - * ChannelGroup response = analyticsAdminServiceClient.updateChannelGroup(request); + * AdSenseLink response = analyticsAdminServiceClient.getAdSenseLink(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 ChannelGroup updateChannelGroup(UpdateChannelGroupRequest request) { - return updateChannelGroupCallable().call(request); + public final AdSenseLink getAdSenseLink(GetAdSenseLinkRequest request) { + return getAdSenseLinkCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a ChannelGroup. + * Looks up a single AdSenseLink. * *

Sample code: * @@ -13318,25 +13401,24 @@ public final ChannelGroup updateChannelGroup(UpdateChannelGroupRequest request) * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateChannelGroupRequest request = - * UpdateChannelGroupRequest.newBuilder() - * .setChannelGroup(ChannelGroup.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * GetAdSenseLinkRequest request = + * GetAdSenseLinkRequest.newBuilder() + * .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.updateChannelGroupCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.getAdSenseLinkCallable().futureCall(request); * // Do something. - * ChannelGroup response = future.get(); + * AdSenseLink response = future.get(); * } * } */ - public final UnaryCallable updateChannelGroupCallable() { - return stub.updateChannelGroupCallable(); + public final UnaryCallable getAdSenseLinkCallable() { + return stub.getAdSenseLinkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a ChannelGroup on a property. + * Creates an AdSenseLink. * *

Sample code: * @@ -13348,26 +13430,29 @@ public final UnaryCallable updateChanne * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ChannelGroupName name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]"); - * analyticsAdminServiceClient.deleteChannelGroup(name); + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * AdSenseLink adsenseLink = AdSenseLink.newBuilder().build(); + * AdSenseLink response = analyticsAdminServiceClient.createAdSenseLink(parent, adsenseLink); * } * } * - * @param name Required. The ChannelGroup to delete. Example format: - * properties/1234/channelGroups/5678 + * @param parent Required. The property for which to create an AdSense Link. Format: + * properties/{propertyId} Example: properties/1234 + * @param adsenseLink Required. The AdSense Link to create * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteChannelGroup(ChannelGroupName name) { - DeleteChannelGroupRequest request = - DeleteChannelGroupRequest.newBuilder() - .setName(name == null ? null : name.toString()) + public final AdSenseLink createAdSenseLink(PropertyName parent, AdSenseLink adsenseLink) { + CreateAdSenseLinkRequest request = + CreateAdSenseLinkRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAdsenseLink(adsenseLink) .build(); - deleteChannelGroup(request); + return createAdSenseLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a ChannelGroup on a property. + * Creates an AdSenseLink. * *

Sample code: * @@ -13379,24 +13464,26 @@ public final void deleteChannelGroup(ChannelGroupName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString(); - * analyticsAdminServiceClient.deleteChannelGroup(name); + * String parent = PropertyName.of("[PROPERTY]").toString(); + * AdSenseLink adsenseLink = AdSenseLink.newBuilder().build(); + * AdSenseLink response = analyticsAdminServiceClient.createAdSenseLink(parent, adsenseLink); * } * } * - * @param name Required. The ChannelGroup to delete. Example format: - * properties/1234/channelGroups/5678 + * @param parent Required. The property for which to create an AdSense Link. Format: + * properties/{propertyId} Example: properties/1234 + * @param adsenseLink Required. The AdSense Link to create * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteChannelGroup(String name) { - DeleteChannelGroupRequest request = - DeleteChannelGroupRequest.newBuilder().setName(name).build(); - deleteChannelGroup(request); + public final AdSenseLink createAdSenseLink(String parent, AdSenseLink adsenseLink) { + CreateAdSenseLinkRequest request = + CreateAdSenseLinkRequest.newBuilder().setParent(parent).setAdsenseLink(adsenseLink).build(); + return createAdSenseLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a ChannelGroup on a property. + * Creates an AdSenseLink. * *

Sample code: * @@ -13408,24 +13495,25 @@ public final void deleteChannelGroup(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteChannelGroupRequest request = - * DeleteChannelGroupRequest.newBuilder() - * .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) + * CreateAdSenseLinkRequest request = + * CreateAdSenseLinkRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setAdsenseLink(AdSenseLink.newBuilder().build()) * .build(); - * analyticsAdminServiceClient.deleteChannelGroup(request); + * AdSenseLink response = analyticsAdminServiceClient.createAdSenseLink(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 deleteChannelGroup(DeleteChannelGroupRequest request) { - deleteChannelGroupCallable().call(request); + public final AdSenseLink createAdSenseLink(CreateAdSenseLinkRequest request) { + return createAdSenseLinkCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a ChannelGroup on a property. + * Creates an AdSenseLink. * *

Sample code: * @@ -13437,25 +13525,25 @@ public final void deleteChannelGroup(DeleteChannelGroupRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteChannelGroupRequest request = - * DeleteChannelGroupRequest.newBuilder() - * .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) + * CreateAdSenseLinkRequest request = + * CreateAdSenseLinkRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setAdsenseLink(AdSenseLink.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.deleteChannelGroupCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.createAdSenseLinkCallable().futureCall(request); * // Do something. - * future.get(); + * AdSenseLink response = future.get(); * } * } */ - public final UnaryCallable deleteChannelGroupCallable() { - return stub.deleteChannelGroupCallable(); + public final UnaryCallable createAdSenseLinkCallable() { + return stub.createAdSenseLinkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the opt out status for the automated GA4 setup process for a UA property. Note: this has - * no effect on GA4 property. + * Deletes an AdSenseLink. * *

Sample code: * @@ -13467,28 +13555,26 @@ public final UnaryCallable deleteChannelGroupC * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * SetAutomatedGa4ConfigurationOptOutRequest request = - * SetAutomatedGa4ConfigurationOptOutRequest.newBuilder() - * .setProperty("property-993141291") - * .setOptOut(true) - * .build(); - * SetAutomatedGa4ConfigurationOptOutResponse response = - * analyticsAdminServiceClient.setAutomatedGa4ConfigurationOptOut(request); + * AdSenseLinkName name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]"); + * analyticsAdminServiceClient.deleteAdSenseLink(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. Unique identifier for the AdSense Link to be deleted. Format: + * properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SetAutomatedGa4ConfigurationOptOutResponse setAutomatedGa4ConfigurationOptOut( - SetAutomatedGa4ConfigurationOptOutRequest request) { - return setAutomatedGa4ConfigurationOptOutCallable().call(request); + public final void deleteAdSenseLink(AdSenseLinkName name) { + DeleteAdSenseLinkRequest request = + DeleteAdSenseLinkRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteAdSenseLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Sets the opt out status for the automated GA4 setup process for a UA property. Note: this has - * no effect on GA4 property. + * Deletes an AdSenseLink. * *

Sample code: * @@ -13500,30 +13586,23 @@ public final SetAutomatedGa4ConfigurationOptOutResponse setAutomatedGa4Configura * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * SetAutomatedGa4ConfigurationOptOutRequest request = - * SetAutomatedGa4ConfigurationOptOutRequest.newBuilder() - * .setProperty("property-993141291") - * .setOptOut(true) - * .build(); - * ApiFuture future = - * analyticsAdminServiceClient - * .setAutomatedGa4ConfigurationOptOutCallable() - * .futureCall(request); - * // Do something. - * SetAutomatedGa4ConfigurationOptOutResponse response = future.get(); + * String name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString(); + * analyticsAdminServiceClient.deleteAdSenseLink(name); * } * } + * + * @param name Required. Unique identifier for the AdSense Link to be deleted. Format: + * properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable< - SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> - setAutomatedGa4ConfigurationOptOutCallable() { - return stub.setAutomatedGa4ConfigurationOptOutCallable(); + public final void deleteAdSenseLink(String name) { + DeleteAdSenseLinkRequest request = DeleteAdSenseLinkRequest.newBuilder().setName(name).build(); + deleteAdSenseLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches the opt out status for the automated GA4 setup process for a UA property. Note: this - * has no effect on GA4 property. + * Deletes an AdSenseLink. * *

Sample code: * @@ -13535,27 +13614,24 @@ public final SetAutomatedGa4ConfigurationOptOutResponse setAutomatedGa4Configura * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * FetchAutomatedGa4ConfigurationOptOutRequest request = - * FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder() - * .setProperty("property-993141291") + * DeleteAdSenseLinkRequest request = + * DeleteAdSenseLinkRequest.newBuilder() + * .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) * .build(); - * FetchAutomatedGa4ConfigurationOptOutResponse response = - * analyticsAdminServiceClient.fetchAutomatedGa4ConfigurationOptOut(request); + * analyticsAdminServiceClient.deleteAdSenseLink(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 FetchAutomatedGa4ConfigurationOptOutResponse fetchAutomatedGa4ConfigurationOptOut( - FetchAutomatedGa4ConfigurationOptOutRequest request) { - return fetchAutomatedGa4ConfigurationOptOutCallable().call(request); + public final void deleteAdSenseLink(DeleteAdSenseLinkRequest request) { + deleteAdSenseLinkCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Fetches the opt out status for the automated GA4 setup process for a UA property. Note: this - * has no effect on GA4 property. + * Deletes an AdSenseLink. * *

Sample code: * @@ -13567,28 +13643,58 @@ public final FetchAutomatedGa4ConfigurationOptOutResponse fetchAutomatedGa4Confi * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * FetchAutomatedGa4ConfigurationOptOutRequest request = - * FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder() - * .setProperty("property-993141291") + * DeleteAdSenseLinkRequest request = + * DeleteAdSenseLinkRequest.newBuilder() + * .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient - * .fetchAutomatedGa4ConfigurationOptOutCallable() - * .futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.deleteAdSenseLinkCallable().futureCall(request); * // Do something. - * FetchAutomatedGa4ConfigurationOptOutResponse response = future.get(); + * future.get(); + * } + * } + */ + public final UnaryCallable deleteAdSenseLinkCallable() { + return stub.deleteAdSenseLinkCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AdSenseLinks on a property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   for (AdSenseLink element :
+   *       analyticsAdminServiceClient.listAdSenseLinks(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
    * }
    * }
+ * + * @param parent Required. Resource name of the parent property. Format: properties/{propertyId} + * Example: properties/1234 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable< - FetchAutomatedGa4ConfigurationOptOutRequest, FetchAutomatedGa4ConfigurationOptOutResponse> - fetchAutomatedGa4ConfigurationOptOutCallable() { - return stub.fetchAutomatedGa4ConfigurationOptOutCallable(); + public final ListAdSenseLinksPagedResponse listAdSenseLinks(PropertyName parent) { + ListAdSenseLinksRequest request = + ListAdSenseLinksRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAdSenseLinks(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single BigQuery Link. + * Lists AdSenseLinks on a property. * *

Sample code: * @@ -13600,25 +13706,27 @@ public final FetchAutomatedGa4ConfigurationOptOutResponse fetchAutomatedGa4Confi * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * BigQueryLinkName name = BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]"); - * BigQueryLink response = analyticsAdminServiceClient.getBigQueryLink(name); + * String parent = PropertyName.of("[PROPERTY]").toString(); + * for (AdSenseLink element : + * analyticsAdminServiceClient.listAdSenseLinks(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The name of the BigQuery link to lookup. Format: - * properties/{property_id}/bigQueryLinks/{bigquery_link_id} Example: - * properties/123/bigQueryLinks/456 + * @param parent Required. Resource name of the parent property. Format: properties/{propertyId} + * Example: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final BigQueryLink getBigQueryLink(BigQueryLinkName name) { - GetBigQueryLinkRequest request = - GetBigQueryLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getBigQueryLink(request); + public final ListAdSenseLinksPagedResponse listAdSenseLinks(String parent) { + ListAdSenseLinksRequest request = + ListAdSenseLinksRequest.newBuilder().setParent(parent).build(); + return listAdSenseLinks(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single BigQuery Link. + * Lists AdSenseLinks on a property. * *

Sample code: * @@ -13630,24 +13738,29 @@ public final BigQueryLink getBigQueryLink(BigQueryLinkName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString(); - * BigQueryLink response = analyticsAdminServiceClient.getBigQueryLink(name); + * ListAdSenseLinksRequest request = + * ListAdSenseLinksRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (AdSenseLink element : + * analyticsAdminServiceClient.listAdSenseLinks(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The name of the BigQuery link to lookup. Format: - * properties/{property_id}/bigQueryLinks/{bigquery_link_id} Example: - * properties/123/bigQueryLinks/456 + * @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 BigQueryLink getBigQueryLink(String name) { - GetBigQueryLinkRequest request = GetBigQueryLinkRequest.newBuilder().setName(name).build(); - return getBigQueryLink(request); + public final ListAdSenseLinksPagedResponse listAdSenseLinks(ListAdSenseLinksRequest request) { + return listAdSenseLinksPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single BigQuery Link. + * Lists AdSenseLinks on a property. * *

Sample code: * @@ -13659,24 +13772,29 @@ public final BigQueryLink getBigQueryLink(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetBigQueryLinkRequest request = - * GetBigQueryLinkRequest.newBuilder() - * .setName(BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString()) + * ListAdSenseLinksRequest request = + * ListAdSenseLinksRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * BigQueryLink response = analyticsAdminServiceClient.getBigQueryLink(request); + * ApiFuture future = + * analyticsAdminServiceClient.listAdSenseLinksPagedCallable().futureCall(request); + * // Do something. + * for (AdSenseLink element : future.get().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 BigQueryLink getBigQueryLink(GetBigQueryLinkRequest request) { - return getBigQueryLinkCallable().call(request); + public final UnaryCallable + listAdSenseLinksPagedCallable() { + return stub.listAdSenseLinksPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single BigQuery Link. + * Lists AdSenseLinks on a property. * *

Sample code: * @@ -13688,24 +13806,36 @@ public final BigQueryLink getBigQueryLink(GetBigQueryLinkRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetBigQueryLinkRequest request = - * GetBigQueryLinkRequest.newBuilder() - * .setName(BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString()) + * ListAdSenseLinksRequest request = + * ListAdSenseLinksRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.getBigQueryLinkCallable().futureCall(request); - * // Do something. - * BigQueryLink response = future.get(); + * while (true) { + * ListAdSenseLinksResponse response = + * analyticsAdminServiceClient.listAdSenseLinksCallable().call(request); + * for (AdSenseLink element : response.getAdsenseLinksList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } */ - public final UnaryCallable getBigQueryLinkCallable() { - return stub.getBigQueryLinkCallable(); + public final UnaryCallable + listAdSenseLinksCallable() { + return stub.listAdSenseLinksCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists BigQuery Links on a property. + * Lookup for a single EventCreateRule. * *

Sample code: * @@ -13717,29 +13847,27 @@ public final UnaryCallable getBigQueryLink * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * for (BigQueryLink element : - * analyticsAdminServiceClient.listBigQueryLinks(parent).iterateAll()) { - * // doThingsWith(element); - * } + * EventCreateRuleName name = + * EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]"); + * EventCreateRule response = analyticsAdminServiceClient.getEventCreateRule(name); * } * } * - * @param parent Required. The name of the property to list BigQuery links under. Format: - * properties/{property_id} Example: properties/1234 + * @param name Required. The name of the EventCreateRule to get. Example format: + * properties/123/dataStreams/456/eventCreateRules/789 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBigQueryLinksPagedResponse listBigQueryLinks(PropertyName parent) { - ListBigQueryLinksRequest request = - ListBigQueryLinksRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) + public final EventCreateRule getEventCreateRule(EventCreateRuleName name) { + GetEventCreateRuleRequest request = + GetEventCreateRuleRequest.newBuilder() + .setName(name == null ? null : name.toString()) .build(); - return listBigQueryLinks(request); + return getEventCreateRule(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists BigQuery Links on a property. + * Lookup for a single EventCreateRule. * *

Sample code: * @@ -13751,27 +13879,25 @@ public final ListBigQueryLinksPagedResponse listBigQueryLinks(PropertyName paren * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * for (BigQueryLink element : - * analyticsAdminServiceClient.listBigQueryLinks(parent).iterateAll()) { - * // doThingsWith(element); - * } + * String name = + * EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]").toString(); + * EventCreateRule response = analyticsAdminServiceClient.getEventCreateRule(name); * } * } * - * @param parent Required. The name of the property to list BigQuery links under. Format: - * properties/{property_id} Example: properties/1234 + * @param name Required. The name of the EventCreateRule to get. Example format: + * properties/123/dataStreams/456/eventCreateRules/789 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListBigQueryLinksPagedResponse listBigQueryLinks(String parent) { - ListBigQueryLinksRequest request = - ListBigQueryLinksRequest.newBuilder().setParent(parent).build(); - return listBigQueryLinks(request); + public final EventCreateRule getEventCreateRule(String name) { + GetEventCreateRuleRequest request = + GetEventCreateRuleRequest.newBuilder().setName(name).build(); + return getEventCreateRule(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists BigQuery Links on a property. + * Lookup for a single EventCreateRule. * *

Sample code: * @@ -13783,29 +13909,26 @@ public final ListBigQueryLinksPagedResponse listBigQueryLinks(String parent) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListBigQueryLinksRequest request = - * ListBigQueryLinksRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * GetEventCreateRuleRequest request = + * GetEventCreateRuleRequest.newBuilder() + * .setName( + * EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") + * .toString()) * .build(); - * for (BigQueryLink element : - * analyticsAdminServiceClient.listBigQueryLinks(request).iterateAll()) { - * // doThingsWith(element); - * } + * EventCreateRule response = analyticsAdminServiceClient.getEventCreateRule(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 ListBigQueryLinksPagedResponse listBigQueryLinks(ListBigQueryLinksRequest request) { - return listBigQueryLinksPagedCallable().call(request); + public final EventCreateRule getEventCreateRule(GetEventCreateRuleRequest request) { + return getEventCreateRuleCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists BigQuery Links on a property. + * Lookup for a single EventCreateRule. * *

Sample code: * @@ -13817,29 +13940,27 @@ public final ListBigQueryLinksPagedResponse listBigQueryLinks(ListBigQueryLinksR * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListBigQueryLinksRequest request = - * ListBigQueryLinksRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * GetEventCreateRuleRequest request = + * GetEventCreateRuleRequest.newBuilder() + * .setName( + * EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") + * .toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.listBigQueryLinksPagedCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.getEventCreateRuleCallable().futureCall(request); * // Do something. - * for (BigQueryLink element : future.get().iterateAll()) { - * // doThingsWith(element); - * } + * EventCreateRule response = future.get(); * } * } */ - public final UnaryCallable - listBigQueryLinksPagedCallable() { - return stub.listBigQueryLinksPagedCallable(); + public final UnaryCallable + getEventCreateRuleCallable() { + return stub.getEventCreateRuleCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists BigQuery Links on a property. + * Lists EventCreateRules on a web data stream. * *

Sample code: * @@ -13851,37 +13972,28 @@ public final ListBigQueryLinksPagedResponse listBigQueryLinks(ListBigQueryLinksR * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListBigQueryLinksRequest request = - * ListBigQueryLinksRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") - * .build(); - * while (true) { - * ListBigQueryLinksResponse response = - * analyticsAdminServiceClient.listBigQueryLinksCallable().call(request); - * for (BigQueryLink element : response.getBigqueryLinksList()) { - * // doThingsWith(element); - * } - * String nextPageToken = response.getNextPageToken(); - * if (!Strings.isNullOrEmpty(nextPageToken)) { - * request = request.toBuilder().setPageToken(nextPageToken).build(); - * } else { - * break; - * } + * DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + * for (EventCreateRule element : + * analyticsAdminServiceClient.listEventCreateRules(parent).iterateAll()) { + * // doThingsWith(element); * } * } * } + * + * @param parent Required. Example format: properties/123/dataStreams/456 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listBigQueryLinksCallable() { - return stub.listBigQueryLinksCallable(); + public final ListEventCreateRulesPagedResponse listEventCreateRules(DataStreamName parent) { + ListEventCreateRulesRequest request = + ListEventCreateRulesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listEventCreateRules(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the enhanced measurement settings for this data stream. Note that the stream must - * enable enhanced measurement for these settings to take effect. + * Lists EventCreateRules on a web data stream. * *

Sample code: * @@ -13893,31 +14005,26 @@ public final ListBigQueryLinksPagedResponse listBigQueryLinks(ListBigQueryLinksR * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * EnhancedMeasurementSettingsName name = - * EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]"); - * EnhancedMeasurementSettings response = - * analyticsAdminServiceClient.getEnhancedMeasurementSettings(name); + * String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString(); + * for (EventCreateRule element : + * analyticsAdminServiceClient.listEventCreateRules(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The name of the settings to lookup. Format: - * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings Example: - * "properties/1000/dataStreams/2000/enhancedMeasurementSettings" + * @param parent Required. Example format: properties/123/dataStreams/456 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EnhancedMeasurementSettings getEnhancedMeasurementSettings( - EnhancedMeasurementSettingsName name) { - GetEnhancedMeasurementSettingsRequest request = - GetEnhancedMeasurementSettingsRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getEnhancedMeasurementSettings(request); + public final ListEventCreateRulesPagedResponse listEventCreateRules(String parent) { + ListEventCreateRulesRequest request = + ListEventCreateRulesRequest.newBuilder().setParent(parent).build(); + return listEventCreateRules(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the enhanced measurement settings for this data stream. Note that the stream must - * enable enhanced measurement for these settings to take effect. + * Lists EventCreateRules on a web data stream. * *

Sample code: * @@ -13929,27 +14036,30 @@ public final EnhancedMeasurementSettings getEnhancedMeasurementSettings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString(); - * EnhancedMeasurementSettings response = - * analyticsAdminServiceClient.getEnhancedMeasurementSettings(name); + * ListEventCreateRulesRequest request = + * ListEventCreateRulesRequest.newBuilder() + * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (EventCreateRule element : + * analyticsAdminServiceClient.listEventCreateRules(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. The name of the settings to lookup. Format: - * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings Example: - * "properties/1000/dataStreams/2000/enhancedMeasurementSettings" + * @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 EnhancedMeasurementSettings getEnhancedMeasurementSettings(String name) { - GetEnhancedMeasurementSettingsRequest request = - GetEnhancedMeasurementSettingsRequest.newBuilder().setName(name).build(); - return getEnhancedMeasurementSettings(request); + public final ListEventCreateRulesPagedResponse listEventCreateRules( + ListEventCreateRulesRequest request) { + return listEventCreateRulesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the enhanced measurement settings for this data stream. Note that the stream must - * enable enhanced measurement for these settings to take effect. + * Lists EventCreateRules on a web data stream. * *

Sample code: * @@ -13961,27 +14071,29 @@ public final EnhancedMeasurementSettings getEnhancedMeasurementSettings(String n * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetEnhancedMeasurementSettingsRequest request = - * GetEnhancedMeasurementSettingsRequest.newBuilder() - * .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * ListEventCreateRulesRequest request = + * ListEventCreateRulesRequest.newBuilder() + * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * EnhancedMeasurementSettings response = - * analyticsAdminServiceClient.getEnhancedMeasurementSettings(request); + * ApiFuture future = + * analyticsAdminServiceClient.listEventCreateRulesPagedCallable().futureCall(request); + * // Do something. + * for (EventCreateRule element : future.get().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 EnhancedMeasurementSettings getEnhancedMeasurementSettings( - GetEnhancedMeasurementSettingsRequest request) { - return getEnhancedMeasurementSettingsCallable().call(request); + public final UnaryCallable + listEventCreateRulesPagedCallable() { + return stub.listEventCreateRulesPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the enhanced measurement settings for this data stream. Note that the stream must - * enable enhanced measurement for these settings to take effect. + * Lists EventCreateRules on a web data stream. * *

Sample code: * @@ -13993,26 +14105,36 @@ public final EnhancedMeasurementSettings getEnhancedMeasurementSettings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetEnhancedMeasurementSettingsRequest request = - * GetEnhancedMeasurementSettingsRequest.newBuilder() - * .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * ListEventCreateRulesRequest request = + * ListEventCreateRulesRequest.newBuilder() + * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.getEnhancedMeasurementSettingsCallable().futureCall(request); - * // Do something. - * EnhancedMeasurementSettings response = future.get(); + * while (true) { + * ListEventCreateRulesResponse response = + * analyticsAdminServiceClient.listEventCreateRulesCallable().call(request); + * for (EventCreateRule element : response.getEventCreateRulesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } */ - public final UnaryCallable - getEnhancedMeasurementSettingsCallable() { - return stub.getEnhancedMeasurementSettingsCallable(); + public final UnaryCallable + listEventCreateRulesCallable() { + return stub.listEventCreateRulesCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the enhanced measurement settings for this data stream. Note that the stream must - * enable enhanced measurement for these settings to take effect. + * Creates an EventCreateRule. * *

Sample code: * @@ -14024,36 +14146,30 @@ public final EnhancedMeasurementSettings getEnhancedMeasurementSettings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * EnhancedMeasurementSettings enhancedMeasurementSettings = - * EnhancedMeasurementSettings.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * EnhancedMeasurementSettings response = - * analyticsAdminServiceClient.updateEnhancedMeasurementSettings( - * enhancedMeasurementSettings, updateMask); + * DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + * EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); + * EventCreateRule response = + * analyticsAdminServiceClient.createEventCreateRule(parent, eventCreateRule); * } * } * - * @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. 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. + * @param parent Required. Example format: properties/123/dataStreams/456 + * @param eventCreateRule Required. The EventCreateRule to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EnhancedMeasurementSettings updateEnhancedMeasurementSettings( - EnhancedMeasurementSettings enhancedMeasurementSettings, FieldMask updateMask) { - UpdateEnhancedMeasurementSettingsRequest request = - UpdateEnhancedMeasurementSettingsRequest.newBuilder() - .setEnhancedMeasurementSettings(enhancedMeasurementSettings) - .setUpdateMask(updateMask) + public final EventCreateRule createEventCreateRule( + DataStreamName parent, EventCreateRule eventCreateRule) { + CreateEventCreateRuleRequest request = + CreateEventCreateRuleRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setEventCreateRule(eventCreateRule) .build(); - return updateEnhancedMeasurementSettings(request); + return createEventCreateRule(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the enhanced measurement settings for this data stream. Note that the stream must - * enable enhanced measurement for these settings to take effect. + * Creates an EventCreateRule. * *

Sample code: * @@ -14065,28 +14181,30 @@ public final EnhancedMeasurementSettings updateEnhancedMeasurementSettings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateEnhancedMeasurementSettingsRequest request = - * UpdateEnhancedMeasurementSettingsRequest.newBuilder() - * .setEnhancedMeasurementSettings(EnhancedMeasurementSettings.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) - * .build(); - * EnhancedMeasurementSettings response = - * analyticsAdminServiceClient.updateEnhancedMeasurementSettings(request); + * String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString(); + * EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); + * EventCreateRule response = + * analyticsAdminServiceClient.createEventCreateRule(parent, eventCreateRule); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. Example format: properties/123/dataStreams/456 + * @param eventCreateRule Required. The EventCreateRule to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EnhancedMeasurementSettings updateEnhancedMeasurementSettings( - UpdateEnhancedMeasurementSettingsRequest request) { - return updateEnhancedMeasurementSettingsCallable().call(request); + public final EventCreateRule createEventCreateRule( + String parent, EventCreateRule eventCreateRule) { + CreateEventCreateRuleRequest request = + CreateEventCreateRuleRequest.newBuilder() + .setParent(parent) + .setEventCreateRule(eventCreateRule) + .build(); + return createEventCreateRule(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the enhanced measurement settings for this data stream. Note that the stream must - * enable enhanced measurement for these settings to take effect. + * Creates an EventCreateRule. * *

Sample code: * @@ -14098,29 +14216,25 @@ public final EnhancedMeasurementSettings updateEnhancedMeasurementSettings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateEnhancedMeasurementSettingsRequest request = - * UpdateEnhancedMeasurementSettingsRequest.newBuilder() - * .setEnhancedMeasurementSettings(EnhancedMeasurementSettings.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * CreateEventCreateRuleRequest request = + * CreateEventCreateRuleRequest.newBuilder() + * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * .setEventCreateRule(EventCreateRule.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient - * .updateEnhancedMeasurementSettingsCallable() - * .futureCall(request); - * // Do something. - * EnhancedMeasurementSettings response = future.get(); + * EventCreateRule response = analyticsAdminServiceClient.createEventCreateRule(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 - updateEnhancedMeasurementSettingsCallable() { - return stub.updateEnhancedMeasurementSettingsCallable(); + public final EventCreateRule createEventCreateRule(CreateEventCreateRuleRequest request) { + return createEventCreateRuleCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a connected site tag for a Universal Analytics property. You can create a maximum of 20 - * connected site tags per property. Note: This API cannot be used on GA4 properties. + * Creates an EventCreateRule. * *

Sample code: * @@ -14132,28 +14246,26 @@ public final EnhancedMeasurementSettings updateEnhancedMeasurementSettings( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateConnectedSiteTagRequest request = - * CreateConnectedSiteTagRequest.newBuilder() - * .setProperty("property-993141291") - * .setConnectedSiteTag(ConnectedSiteTag.newBuilder().build()) + * CreateEventCreateRuleRequest request = + * CreateEventCreateRuleRequest.newBuilder() + * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * .setEventCreateRule(EventCreateRule.newBuilder().build()) * .build(); - * CreateConnectedSiteTagResponse response = - * analyticsAdminServiceClient.createConnectedSiteTag(request); + * ApiFuture future = + * analyticsAdminServiceClient.createEventCreateRuleCallable().futureCall(request); + * // Do something. + * EventCreateRule response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CreateConnectedSiteTagResponse createConnectedSiteTag( - CreateConnectedSiteTagRequest request) { - return createConnectedSiteTagCallable().call(request); + public final UnaryCallable + createEventCreateRuleCallable() { + return stub.createEventCreateRuleCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a connected site tag for a Universal Analytics property. You can create a maximum of 20 - * connected site tags per property. Note: This API cannot be used on GA4 properties. + * Updates an EventCreateRule. * *

Sample code: * @@ -14165,27 +14277,33 @@ public final CreateConnectedSiteTagResponse createConnectedSiteTag( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateConnectedSiteTagRequest request = - * CreateConnectedSiteTagRequest.newBuilder() - * .setProperty("property-993141291") - * .setConnectedSiteTag(ConnectedSiteTag.newBuilder().build()) - * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.createConnectedSiteTagCallable().futureCall(request); - * // Do something. - * CreateConnectedSiteTagResponse response = future.get(); + * EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * EventCreateRule response = + * analyticsAdminServiceClient.updateEventCreateRule(eventCreateRule, updateMask); * } * } + * + * @param eventCreateRule Required. The EventCreateRule to update. The resource's `name` field is + * used to identify the EventCreateRule 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 UnaryCallable - createConnectedSiteTagCallable() { - return stub.createConnectedSiteTagCallable(); + public final EventCreateRule updateEventCreateRule( + EventCreateRule eventCreateRule, FieldMask updateMask) { + UpdateEventCreateRuleRequest request = + UpdateEventCreateRuleRequest.newBuilder() + .setEventCreateRule(eventCreateRule) + .setUpdateMask(updateMask) + .build(); + return updateEventCreateRule(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a connected site tag for a Universal Analytics property. Note: this has no effect on - * GA4 properties. + * Updates an EventCreateRule. * *

Sample code: * @@ -14197,26 +14315,25 @@ public final CreateConnectedSiteTagResponse createConnectedSiteTag( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteConnectedSiteTagRequest request = - * DeleteConnectedSiteTagRequest.newBuilder() - * .setProperty("property-993141291") - * .setTagId("tagId110119509") + * UpdateEventCreateRuleRequest request = + * UpdateEventCreateRuleRequest.newBuilder() + * .setEventCreateRule(EventCreateRule.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * analyticsAdminServiceClient.deleteConnectedSiteTag(request); + * EventCreateRule response = analyticsAdminServiceClient.updateEventCreateRule(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 deleteConnectedSiteTag(DeleteConnectedSiteTagRequest request) { - deleteConnectedSiteTagCallable().call(request); + public final EventCreateRule updateEventCreateRule(UpdateEventCreateRuleRequest request) { + return updateEventCreateRuleCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a connected site tag for a Universal Analytics property. Note: this has no effect on - * GA4 properties. + * Updates an EventCreateRule. * *

Sample code: * @@ -14228,27 +14345,26 @@ public final void deleteConnectedSiteTag(DeleteConnectedSiteTagRequest request) * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteConnectedSiteTagRequest request = - * DeleteConnectedSiteTagRequest.newBuilder() - * .setProperty("property-993141291") - * .setTagId("tagId110119509") + * UpdateEventCreateRuleRequest request = + * UpdateEventCreateRuleRequest.newBuilder() + * .setEventCreateRule(EventCreateRule.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.deleteConnectedSiteTagCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.updateEventCreateRuleCallable().futureCall(request); * // Do something. - * future.get(); + * EventCreateRule response = future.get(); * } * } */ - public final UnaryCallable - deleteConnectedSiteTagCallable() { - return stub.deleteConnectedSiteTagCallable(); + public final UnaryCallable + updateEventCreateRuleCallable() { + return stub.updateEventCreateRuleCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the connected site tags for a Universal Analytics property. A maximum of 20 connected - * site tags will be returned. Note: this has no effect on GA4 property. + * Deletes an EventCreateRule. * *

Sample code: * @@ -14260,25 +14376,26 @@ public final void deleteConnectedSiteTag(DeleteConnectedSiteTagRequest request) * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListConnectedSiteTagsRequest request = - * ListConnectedSiteTagsRequest.newBuilder().setProperty("property-993141291").build(); - * ListConnectedSiteTagsResponse response = - * analyticsAdminServiceClient.listConnectedSiteTags(request); + * EventCreateRuleName name = + * EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]"); + * analyticsAdminServiceClient.deleteEventCreateRule(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. Example format: properties/123/dataStreams/456/eventCreateRules/789 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListConnectedSiteTagsResponse listConnectedSiteTags( - ListConnectedSiteTagsRequest request) { - return listConnectedSiteTagsCallable().call(request); + public final void deleteEventCreateRule(EventCreateRuleName name) { + DeleteEventCreateRuleRequest request = + DeleteEventCreateRuleRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteEventCreateRule(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the connected site tags for a Universal Analytics property. A maximum of 20 connected - * site tags will be returned. Note: this has no effect on GA4 property. + * Deletes an EventCreateRule. * *

Sample code: * @@ -14290,24 +14407,24 @@ public final ListConnectedSiteTagsResponse listConnectedSiteTags( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListConnectedSiteTagsRequest request = - * ListConnectedSiteTagsRequest.newBuilder().setProperty("property-993141291").build(); - * ApiFuture future = - * analyticsAdminServiceClient.listConnectedSiteTagsCallable().futureCall(request); - * // Do something. - * ListConnectedSiteTagsResponse response = future.get(); + * String name = + * EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]").toString(); + * analyticsAdminServiceClient.deleteEventCreateRule(name); * } * } + * + * @param name Required. Example format: properties/123/dataStreams/456/eventCreateRules/789 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - listConnectedSiteTagsCallable() { - return stub.listConnectedSiteTagsCallable(); + public final void deleteEventCreateRule(String name) { + DeleteEventCreateRuleRequest request = + DeleteEventCreateRuleRequest.newBuilder().setName(name).build(); + deleteEventCreateRule(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Given a specified UA property, looks up the GA4 property connected to it. Note: this cannot be - * used with GA4 properties. + * Deletes an EventCreateRule. * *

Sample code: * @@ -14319,27 +14436,26 @@ public final ListConnectedSiteTagsResponse listConnectedSiteTags( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * FetchConnectedGa4PropertyRequest request = - * FetchConnectedGa4PropertyRequest.newBuilder() - * .setProperty(PropertyName.of("[PROPERTY]").toString()) + * DeleteEventCreateRuleRequest request = + * DeleteEventCreateRuleRequest.newBuilder() + * .setName( + * EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") + * .toString()) * .build(); - * FetchConnectedGa4PropertyResponse response = - * analyticsAdminServiceClient.fetchConnectedGa4Property(request); + * analyticsAdminServiceClient.deleteEventCreateRule(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 FetchConnectedGa4PropertyResponse fetchConnectedGa4Property( - FetchConnectedGa4PropertyRequest request) { - return fetchConnectedGa4PropertyCallable().call(request); + public final void deleteEventCreateRule(DeleteEventCreateRuleRequest request) { + deleteEventCreateRuleCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Given a specified UA property, looks up the GA4 property connected to it. Note: this cannot be - * used with GA4 properties. + * Deletes an EventCreateRule. * *

Sample code: * @@ -14351,25 +14467,26 @@ public final FetchConnectedGa4PropertyResponse fetchConnectedGa4Property( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * FetchConnectedGa4PropertyRequest request = - * FetchConnectedGa4PropertyRequest.newBuilder() - * .setProperty(PropertyName.of("[PROPERTY]").toString()) + * DeleteEventCreateRuleRequest request = + * DeleteEventCreateRuleRequest.newBuilder() + * .setName( + * EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") + * .toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.fetchConnectedGa4PropertyCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.deleteEventCreateRuleCallable().futureCall(request); * // Do something. - * FetchConnectedGa4PropertyResponse response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable - fetchConnectedGa4PropertyCallable() { - return stub.fetchConnectedGa4PropertyCallable(); + public final UnaryCallable deleteEventCreateRuleCallable() { + return stub.deleteEventCreateRuleCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Looks up a single AdSenseLink. + * Updates a DataRedactionSettings on a property. * *

Sample code: * @@ -14381,24 +14498,34 @@ public final FetchConnectedGa4PropertyResponse fetchConnectedGa4Property( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * AdSenseLinkName name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]"); - * AdSenseLink response = analyticsAdminServiceClient.getAdSenseLink(name); + * DataRedactionSettings dataRedactionSettings = DataRedactionSettings.newBuilder().build(); + * FieldMask updateMask = FieldMask.newBuilder().build(); + * DataRedactionSettings response = + * analyticsAdminServiceClient.updateDataRedactionSettings( + * dataRedactionSettings, updateMask); * } * } * - * @param name Required. Unique identifier for the AdSense Link requested. Format: - * properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/5678 + * @param dataRedactionSettings 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 AdSenseLink getAdSenseLink(AdSenseLinkName name) { - GetAdSenseLinkRequest request = - GetAdSenseLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getAdSenseLink(request); + public final DataRedactionSettings updateDataRedactionSettings( + DataRedactionSettings dataRedactionSettings, FieldMask updateMask) { + UpdateDataRedactionSettingsRequest request = + UpdateDataRedactionSettingsRequest.newBuilder() + .setDataRedactionSettings(dataRedactionSettings) + .setUpdateMask(updateMask) + .build(); + return updateDataRedactionSettings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Looks up a single AdSenseLink. + * Updates a DataRedactionSettings on a property. * *

Sample code: * @@ -14410,23 +14537,27 @@ public final AdSenseLink getAdSenseLink(AdSenseLinkName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString(); - * AdSenseLink response = analyticsAdminServiceClient.getAdSenseLink(name); + * UpdateDataRedactionSettingsRequest request = + * UpdateDataRedactionSettingsRequest.newBuilder() + * .setDataRedactionSettings(DataRedactionSettings.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) + * .build(); + * DataRedactionSettings response = + * analyticsAdminServiceClient.updateDataRedactionSettings(request); * } * } * - * @param name Required. Unique identifier for the AdSense Link requested. Format: - * properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/5678 + * @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 AdSenseLink getAdSenseLink(String name) { - GetAdSenseLinkRequest request = GetAdSenseLinkRequest.newBuilder().setName(name).build(); - return getAdSenseLink(request); + public final DataRedactionSettings updateDataRedactionSettings( + UpdateDataRedactionSettingsRequest request) { + return updateDataRedactionSettingsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Looks up a single AdSenseLink. + * Updates a DataRedactionSettings on a property. * *

Sample code: * @@ -14438,24 +14569,26 @@ public final AdSenseLink getAdSenseLink(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetAdSenseLinkRequest request = - * GetAdSenseLinkRequest.newBuilder() - * .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) + * UpdateDataRedactionSettingsRequest request = + * UpdateDataRedactionSettingsRequest.newBuilder() + * .setDataRedactionSettings(DataRedactionSettings.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); - * AdSenseLink response = analyticsAdminServiceClient.getAdSenseLink(request); + * ApiFuture future = + * analyticsAdminServiceClient.updateDataRedactionSettingsCallable().futureCall(request); + * // Do something. + * DataRedactionSettings response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AdSenseLink getAdSenseLink(GetAdSenseLinkRequest request) { - return getAdSenseLinkCallable().call(request); + public final UnaryCallable + updateDataRedactionSettingsCallable() { + return stub.updateDataRedactionSettingsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Looks up a single AdSenseLink. + * Lookup for a single DataRedactionSettings. * *

Sample code: * @@ -14467,24 +14600,27 @@ public final AdSenseLink getAdSenseLink(GetAdSenseLinkRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetAdSenseLinkRequest request = - * GetAdSenseLinkRequest.newBuilder() - * .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) - * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.getAdSenseLinkCallable().futureCall(request); - * // Do something. - * AdSenseLink response = future.get(); + * DataRedactionSettingsName name = DataRedactionSettingsName.of("[PROPERTY]", "[DATA_STREAM]"); + * DataRedactionSettings response = analyticsAdminServiceClient.getDataRedactionSettings(name); * } * } + * + * @param name Required. The name of the settings to lookup. Format: + * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings Example: + * "properties/1000/dataStreams/2000/dataRedactionSettings" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable getAdSenseLinkCallable() { - return stub.getAdSenseLinkCallable(); + public final DataRedactionSettings getDataRedactionSettings(DataRedactionSettingsName name) { + GetDataRedactionSettingsRequest request = + GetDataRedactionSettingsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getDataRedactionSettings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an AdSenseLink. + * Lookup for a single DataRedactionSettings. * *

Sample code: * @@ -14496,29 +14632,25 @@ public final UnaryCallable getAdSenseLinkCal * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * AdSenseLink adsenseLink = AdSenseLink.newBuilder().build(); - * AdSenseLink response = analyticsAdminServiceClient.createAdSenseLink(parent, adsenseLink); + * String name = DataRedactionSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString(); + * DataRedactionSettings response = analyticsAdminServiceClient.getDataRedactionSettings(name); * } * } * - * @param parent Required. The property for which to create an AdSense Link. Format: - * properties/{propertyId} Example: properties/1234 - * @param adsenseLink Required. The AdSense Link to create + * @param name Required. The name of the settings to lookup. Format: + * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings Example: + * "properties/1000/dataStreams/2000/dataRedactionSettings" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final AdSenseLink createAdSenseLink(PropertyName parent, AdSenseLink adsenseLink) { - CreateAdSenseLinkRequest request = - CreateAdSenseLinkRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setAdsenseLink(adsenseLink) - .build(); - return createAdSenseLink(request); + public final DataRedactionSettings getDataRedactionSettings(String name) { + GetDataRedactionSettingsRequest request = + GetDataRedactionSettingsRequest.newBuilder().setName(name).build(); + return getDataRedactionSettings(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an AdSenseLink. + * Lookup for a single DataRedactionSettings. * *

Sample code: * @@ -14530,26 +14662,26 @@ public final AdSenseLink createAdSenseLink(PropertyName parent, AdSenseLink adse * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = PropertyName.of("[PROPERTY]").toString(); - * AdSenseLink adsenseLink = AdSenseLink.newBuilder().build(); - * AdSenseLink response = analyticsAdminServiceClient.createAdSenseLink(parent, adsenseLink); + * GetDataRedactionSettingsRequest request = + * GetDataRedactionSettingsRequest.newBuilder() + * .setName(DataRedactionSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + * .build(); + * DataRedactionSettings response = + * analyticsAdminServiceClient.getDataRedactionSettings(request); * } * } * - * @param parent Required. The property for which to create an AdSense Link. Format: - * properties/{propertyId} Example: properties/1234 - * @param adsenseLink Required. The AdSense Link to create + * @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 AdSenseLink createAdSenseLink(String parent, AdSenseLink adsenseLink) { - CreateAdSenseLinkRequest request = - CreateAdSenseLinkRequest.newBuilder().setParent(parent).setAdsenseLink(adsenseLink).build(); - return createAdSenseLink(request); + public final DataRedactionSettings getDataRedactionSettings( + GetDataRedactionSettingsRequest request) { + return getDataRedactionSettingsCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an AdSenseLink. + * Lookup for a single DataRedactionSettings. * *

Sample code: * @@ -14561,25 +14693,57 @@ public final AdSenseLink createAdSenseLink(String parent, AdSenseLink adsenseLin * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateAdSenseLinkRequest request = - * CreateAdSenseLinkRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setAdsenseLink(AdSenseLink.newBuilder().build()) + * GetDataRedactionSettingsRequest request = + * GetDataRedactionSettingsRequest.newBuilder() + * .setName(DataRedactionSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) * .build(); - * AdSenseLink response = analyticsAdminServiceClient.createAdSenseLink(request); + * ApiFuture future = + * analyticsAdminServiceClient.getDataRedactionSettingsCallable().futureCall(request); + * // Do something. + * DataRedactionSettings response = future.get(); + * } + * } + */ + public final UnaryCallable + getDataRedactionSettingsCallable() { + return stub.getDataRedactionSettingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a roll-up property and all roll-up property source links. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CreateRollupPropertyRequest request =
+   *       CreateRollupPropertyRequest.newBuilder()
+   *           .setRollupProperty(Property.newBuilder().build())
+   *           .addAllSourceProperties(new ArrayList())
+   *           .build();
+   *   CreateRollupPropertyResponse response =
+   *       analyticsAdminServiceClient.createRollupProperty(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 AdSenseLink createAdSenseLink(CreateAdSenseLinkRequest request) { - return createAdSenseLinkCallable().call(request); + public final CreateRollupPropertyResponse createRollupProperty( + CreateRollupPropertyRequest request) { + return createRollupPropertyCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an AdSenseLink. + * Create a roll-up property and all roll-up property source links. * *

Sample code: * @@ -14591,25 +14755,27 @@ public final AdSenseLink createAdSenseLink(CreateAdSenseLinkRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateAdSenseLinkRequest request = - * CreateAdSenseLinkRequest.newBuilder() - * .setParent(PropertyName.of("[PROPERTY]").toString()) - * .setAdsenseLink(AdSenseLink.newBuilder().build()) + * CreateRollupPropertyRequest request = + * CreateRollupPropertyRequest.newBuilder() + * .setRollupProperty(Property.newBuilder().build()) + * .addAllSourceProperties(new ArrayList()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.createAdSenseLinkCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.createRollupPropertyCallable().futureCall(request); * // Do something. - * AdSenseLink response = future.get(); + * CreateRollupPropertyResponse response = future.get(); * } * } */ - public final UnaryCallable createAdSenseLinkCallable() { - return stub.createAdSenseLinkCallable(); + public final UnaryCallable + createRollupPropertyCallable() { + return stub.createRollupPropertyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an AdSenseLink. + * Lookup for a single roll-up property source Link. Only roll-up properties can have source + * links, so this method will throw an error if used on other types of properties. * *

Sample code: * @@ -14621,26 +14787,31 @@ public final UnaryCallable createAdSenseL * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * AdSenseLinkName name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]"); - * analyticsAdminServiceClient.deleteAdSenseLink(name); + * RollupPropertySourceLinkName name = + * RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]"); + * RollupPropertySourceLink response = + * analyticsAdminServiceClient.getRollupPropertySourceLink(name); * } * } * - * @param name Required. Unique identifier for the AdSense Link to be deleted. Format: - * properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/5678 + * @param name Required. The name of the roll-up property source link to lookup. Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/123/rollupPropertySourceLinks/456 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAdSenseLink(AdSenseLinkName name) { - DeleteAdSenseLinkRequest request = - DeleteAdSenseLinkRequest.newBuilder() + public final RollupPropertySourceLink getRollupPropertySourceLink( + RollupPropertySourceLinkName name) { + GetRollupPropertySourceLinkRequest request = + GetRollupPropertySourceLinkRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); - deleteAdSenseLink(request); + return getRollupPropertySourceLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an AdSenseLink. + * Lookup for a single roll-up property source Link. Only roll-up properties can have source + * links, so this method will throw an error if used on other types of properties. * *

Sample code: * @@ -14652,23 +14823,28 @@ public final void deleteAdSenseLink(AdSenseLinkName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString(); - * analyticsAdminServiceClient.deleteAdSenseLink(name); + * String name = + * RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]").toString(); + * RollupPropertySourceLink response = + * analyticsAdminServiceClient.getRollupPropertySourceLink(name); * } * } * - * @param name Required. Unique identifier for the AdSense Link to be deleted. Format: - * properties/{propertyId}/adSenseLinks/{linkId} Example: properties/1234/adSenseLinks/5678 + * @param name Required. The name of the roll-up property source link to lookup. Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/123/rollupPropertySourceLinks/456 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteAdSenseLink(String name) { - DeleteAdSenseLinkRequest request = DeleteAdSenseLinkRequest.newBuilder().setName(name).build(); - deleteAdSenseLink(request); + public final RollupPropertySourceLink getRollupPropertySourceLink(String name) { + GetRollupPropertySourceLinkRequest request = + GetRollupPropertySourceLinkRequest.newBuilder().setName(name).build(); + return getRollupPropertySourceLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an AdSenseLink. + * Lookup for a single roll-up property source Link. Only roll-up properties can have source + * links, so this method will throw an error if used on other types of properties. * *

Sample code: * @@ -14680,24 +14856,29 @@ public final void deleteAdSenseLink(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteAdSenseLinkRequest request = - * DeleteAdSenseLinkRequest.newBuilder() - * .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) + * GetRollupPropertySourceLinkRequest request = + * GetRollupPropertySourceLinkRequest.newBuilder() + * .setName( + * RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]") + * .toString()) * .build(); - * analyticsAdminServiceClient.deleteAdSenseLink(request); + * RollupPropertySourceLink response = + * analyticsAdminServiceClient.getRollupPropertySourceLink(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 deleteAdSenseLink(DeleteAdSenseLinkRequest request) { - deleteAdSenseLinkCallable().call(request); + public final RollupPropertySourceLink getRollupPropertySourceLink( + GetRollupPropertySourceLinkRequest request) { + return getRollupPropertySourceLinkCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an AdSenseLink. + * Lookup for a single roll-up property source Link. Only roll-up properties can have source + * links, so this method will throw an error if used on other types of properties. * *

Sample code: * @@ -14709,24 +14890,28 @@ public final void deleteAdSenseLink(DeleteAdSenseLinkRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteAdSenseLinkRequest request = - * DeleteAdSenseLinkRequest.newBuilder() - * .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) + * GetRollupPropertySourceLinkRequest request = + * GetRollupPropertySourceLinkRequest.newBuilder() + * .setName( + * RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]") + * .toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.deleteAdSenseLinkCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.getRollupPropertySourceLinkCallable().futureCall(request); * // Do something. - * future.get(); + * RollupPropertySourceLink response = future.get(); * } * } */ - public final UnaryCallable deleteAdSenseLinkCallable() { - return stub.deleteAdSenseLinkCallable(); + public final UnaryCallable + getRollupPropertySourceLinkCallable() { + return stub.getRollupPropertySourceLinkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists AdSenseLinks on a property. + * Lists roll-up property source Links on a property. Only roll-up properties can have source + * links, so this method will throw an error if used on other types of properties. * *

Sample code: * @@ -14739,28 +14924,30 @@ public final UnaryCallable deleteAdSenseLinkCal * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { * PropertyName parent = PropertyName.of("[PROPERTY]"); - * for (AdSenseLink element : - * analyticsAdminServiceClient.listAdSenseLinks(parent).iterateAll()) { + * for (RollupPropertySourceLink element : + * analyticsAdminServiceClient.listRollupPropertySourceLinks(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. Resource name of the parent property. Format: properties/{propertyId} - * Example: properties/1234 + * @param parent Required. The name of the roll-up property to list roll-up property source links + * under. Format: properties/{property_id} Example: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAdSenseLinksPagedResponse listAdSenseLinks(PropertyName parent) { - ListAdSenseLinksRequest request = - ListAdSenseLinksRequest.newBuilder() + public final ListRollupPropertySourceLinksPagedResponse listRollupPropertySourceLinks( + PropertyName parent) { + ListRollupPropertySourceLinksRequest request = + ListRollupPropertySourceLinksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listAdSenseLinks(request); + return listRollupPropertySourceLinks(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists AdSenseLinks on a property. + * Lists roll-up property source Links on a property. Only roll-up properties can have source + * links, so this method will throw an error if used on other types of properties. * *

Sample code: * @@ -14773,26 +14960,28 @@ public final ListAdSenseLinksPagedResponse listAdSenseLinks(PropertyName parent) * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { * String parent = PropertyName.of("[PROPERTY]").toString(); - * for (AdSenseLink element : - * analyticsAdminServiceClient.listAdSenseLinks(parent).iterateAll()) { + * for (RollupPropertySourceLink element : + * analyticsAdminServiceClient.listRollupPropertySourceLinks(parent).iterateAll()) { * // doThingsWith(element); * } * } * } * - * @param parent Required. Resource name of the parent property. Format: properties/{propertyId} - * Example: properties/1234 + * @param parent Required. The name of the roll-up property to list roll-up property source links + * under. Format: properties/{property_id} Example: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListAdSenseLinksPagedResponse listAdSenseLinks(String parent) { - ListAdSenseLinksRequest request = - ListAdSenseLinksRequest.newBuilder().setParent(parent).build(); - return listAdSenseLinks(request); + public final ListRollupPropertySourceLinksPagedResponse listRollupPropertySourceLinks( + String parent) { + ListRollupPropertySourceLinksRequest request = + ListRollupPropertySourceLinksRequest.newBuilder().setParent(parent).build(); + return listRollupPropertySourceLinks(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists AdSenseLinks on a property. + * Lists roll-up property source Links on a property. Only roll-up properties can have source + * links, so this method will throw an error if used on other types of properties. * *

Sample code: * @@ -14804,14 +14993,14 @@ public final ListAdSenseLinksPagedResponse listAdSenseLinks(String parent) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListAdSenseLinksRequest request = - * ListAdSenseLinksRequest.newBuilder() + * ListRollupPropertySourceLinksRequest request = + * ListRollupPropertySourceLinksRequest.newBuilder() * .setParent(PropertyName.of("[PROPERTY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * for (AdSenseLink element : - * analyticsAdminServiceClient.listAdSenseLinks(request).iterateAll()) { + * for (RollupPropertySourceLink element : + * analyticsAdminServiceClient.listRollupPropertySourceLinks(request).iterateAll()) { * // doThingsWith(element); * } * } @@ -14820,13 +15009,15 @@ public final ListAdSenseLinksPagedResponse listAdSenseLinks(String parent) { * @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 ListAdSenseLinksPagedResponse listAdSenseLinks(ListAdSenseLinksRequest request) { - return listAdSenseLinksPagedCallable().call(request); + public final ListRollupPropertySourceLinksPagedResponse listRollupPropertySourceLinks( + ListRollupPropertySourceLinksRequest request) { + return listRollupPropertySourceLinksPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists AdSenseLinks on a property. + * Lists roll-up property source Links on a property. Only roll-up properties can have source + * links, so this method will throw an error if used on other types of properties. * *

Sample code: * @@ -14838,29 +15029,33 @@ public final ListAdSenseLinksPagedResponse listAdSenseLinks(ListAdSenseLinksRequ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListAdSenseLinksRequest request = - * ListAdSenseLinksRequest.newBuilder() + * ListRollupPropertySourceLinksRequest request = + * ListRollupPropertySourceLinksRequest.newBuilder() * .setParent(PropertyName.of("[PROPERTY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.listAdSenseLinksPagedCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient + * .listRollupPropertySourceLinksPagedCallable() + * .futureCall(request); * // Do something. - * for (AdSenseLink element : future.get().iterateAll()) { + * for (RollupPropertySourceLink element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * } */ - public final UnaryCallable - listAdSenseLinksPagedCallable() { - return stub.listAdSenseLinksPagedCallable(); + public final UnaryCallable< + ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksPagedResponse> + listRollupPropertySourceLinksPagedCallable() { + return stub.listRollupPropertySourceLinksPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists AdSenseLinks on a property. + * Lists roll-up property source Links on a property. Only roll-up properties can have source + * links, so this method will throw an error if used on other types of properties. * *

Sample code: * @@ -14872,16 +15067,16 @@ public final ListAdSenseLinksPagedResponse listAdSenseLinks(ListAdSenseLinksRequ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListAdSenseLinksRequest request = - * ListAdSenseLinksRequest.newBuilder() + * ListRollupPropertySourceLinksRequest request = + * ListRollupPropertySourceLinksRequest.newBuilder() * .setParent(PropertyName.of("[PROPERTY]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); * while (true) { - * ListAdSenseLinksResponse response = - * analyticsAdminServiceClient.listAdSenseLinksCallable().call(request); - * for (AdSenseLink element : response.getAdsenseLinksList()) { + * ListRollupPropertySourceLinksResponse response = + * analyticsAdminServiceClient.listRollupPropertySourceLinksCallable().call(request); + * for (RollupPropertySourceLink element : response.getRollupPropertySourceLinksList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -14894,14 +15089,16 @@ public final ListAdSenseLinksPagedResponse listAdSenseLinks(ListAdSenseLinksRequ * } * } */ - public final UnaryCallable - listAdSenseLinksCallable() { - return stub.listAdSenseLinksCallable(); + public final UnaryCallable< + ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksResponse> + listRollupPropertySourceLinksCallable() { + return stub.listRollupPropertySourceLinksCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single EventCreateRule. + * Creates a roll-up property source link. Only roll-up properties can have source links, so this + * method will throw an error if used on other types of properties. * *

Sample code: * @@ -14913,27 +15110,33 @@ public final ListAdSenseLinksPagedResponse listAdSenseLinks(ListAdSenseLinksRequ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * EventCreateRuleName name = - * EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]"); - * EventCreateRule response = analyticsAdminServiceClient.getEventCreateRule(name); + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * RollupPropertySourceLink rollupPropertySourceLink = + * RollupPropertySourceLink.newBuilder().build(); + * RollupPropertySourceLink response = + * analyticsAdminServiceClient.createRollupPropertySourceLink( + * parent, rollupPropertySourceLink); * } * } * - * @param name Required. The name of the EventCreateRule to get. Example format: - * properties/123/dataStreams/456/eventCreateRules/789 + * @param parent Required. Format: properties/{property_id} Example: properties/1234 + * @param rollupPropertySourceLink Required. The roll-up property source link to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EventCreateRule getEventCreateRule(EventCreateRuleName name) { - GetEventCreateRuleRequest request = - GetEventCreateRuleRequest.newBuilder() - .setName(name == null ? null : name.toString()) + public final RollupPropertySourceLink createRollupPropertySourceLink( + PropertyName parent, RollupPropertySourceLink rollupPropertySourceLink) { + CreateRollupPropertySourceLinkRequest request = + CreateRollupPropertySourceLinkRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setRollupPropertySourceLink(rollupPropertySourceLink) .build(); - return getEventCreateRule(request); + return createRollupPropertySourceLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single EventCreateRule. + * Creates a roll-up property source link. Only roll-up properties can have source links, so this + * method will throw an error if used on other types of properties. * *

Sample code: * @@ -14945,25 +15148,33 @@ public final EventCreateRule getEventCreateRule(EventCreateRuleName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = - * EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]").toString(); - * EventCreateRule response = analyticsAdminServiceClient.getEventCreateRule(name); + * String parent = PropertyName.of("[PROPERTY]").toString(); + * RollupPropertySourceLink rollupPropertySourceLink = + * RollupPropertySourceLink.newBuilder().build(); + * RollupPropertySourceLink response = + * analyticsAdminServiceClient.createRollupPropertySourceLink( + * parent, rollupPropertySourceLink); * } * } * - * @param name Required. The name of the EventCreateRule to get. Example format: - * properties/123/dataStreams/456/eventCreateRules/789 + * @param parent Required. Format: properties/{property_id} Example: properties/1234 + * @param rollupPropertySourceLink Required. The roll-up property source link to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EventCreateRule getEventCreateRule(String name) { - GetEventCreateRuleRequest request = - GetEventCreateRuleRequest.newBuilder().setName(name).build(); - return getEventCreateRule(request); + public final RollupPropertySourceLink createRollupPropertySourceLink( + String parent, RollupPropertySourceLink rollupPropertySourceLink) { + CreateRollupPropertySourceLinkRequest request = + CreateRollupPropertySourceLinkRequest.newBuilder() + .setParent(parent) + .setRollupPropertySourceLink(rollupPropertySourceLink) + .build(); + return createRollupPropertySourceLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single EventCreateRule. + * Creates a roll-up property source link. Only roll-up properties can have source links, so this + * method will throw an error if used on other types of properties. * *

Sample code: * @@ -14975,26 +15186,28 @@ public final EventCreateRule getEventCreateRule(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetEventCreateRuleRequest request = - * GetEventCreateRuleRequest.newBuilder() - * .setName( - * EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") - * .toString()) + * CreateRollupPropertySourceLinkRequest request = + * CreateRollupPropertySourceLinkRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setRollupPropertySourceLink(RollupPropertySourceLink.newBuilder().build()) * .build(); - * EventCreateRule response = analyticsAdminServiceClient.getEventCreateRule(request); + * RollupPropertySourceLink response = + * analyticsAdminServiceClient.createRollupPropertySourceLink(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 EventCreateRule getEventCreateRule(GetEventCreateRuleRequest request) { - return getEventCreateRuleCallable().call(request); + public final RollupPropertySourceLink createRollupPropertySourceLink( + CreateRollupPropertySourceLinkRequest request) { + return createRollupPropertySourceLinkCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lookup for a single EventCreateRule. + * Creates a roll-up property source link. Only roll-up properties can have source links, so this + * method will throw an error if used on other types of properties. * *

Sample code: * @@ -15006,27 +15219,27 @@ public final EventCreateRule getEventCreateRule(GetEventCreateRuleRequest reques * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * GetEventCreateRuleRequest request = - * GetEventCreateRuleRequest.newBuilder() - * .setName( - * EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") - * .toString()) + * CreateRollupPropertySourceLinkRequest request = + * CreateRollupPropertySourceLinkRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setRollupPropertySourceLink(RollupPropertySourceLink.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.getEventCreateRuleCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.createRollupPropertySourceLinkCallable().futureCall(request); * // Do something. - * EventCreateRule response = future.get(); + * RollupPropertySourceLink response = future.get(); * } * } */ - public final UnaryCallable - getEventCreateRuleCallable() { - return stub.getEventCreateRuleCallable(); + public final UnaryCallable + createRollupPropertySourceLinkCallable() { + return stub.createRollupPropertySourceLinkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists EventCreateRules on a web data stream. + * Deletes a roll-up property source link. Only roll-up properties can have source links, so this + * method will throw an error if used on other types of properties. * *

Sample code: * @@ -15038,28 +15251,29 @@ public final EventCreateRule getEventCreateRule(GetEventCreateRuleRequest reques * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - * for (EventCreateRule element : - * analyticsAdminServiceClient.listEventCreateRules(parent).iterateAll()) { - * // doThingsWith(element); - * } + * RollupPropertySourceLinkName name = + * RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]"); + * analyticsAdminServiceClient.deleteRollupPropertySourceLink(name); * } * } * - * @param parent Required. Example format: properties/123/dataStreams/456 + * @param name Required. Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/1234/rollupPropertySourceLinks/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEventCreateRulesPagedResponse listEventCreateRules(DataStreamName parent) { - ListEventCreateRulesRequest request = - ListEventCreateRulesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) + public final void deleteRollupPropertySourceLink(RollupPropertySourceLinkName name) { + DeleteRollupPropertySourceLinkRequest request = + DeleteRollupPropertySourceLinkRequest.newBuilder() + .setName(name == null ? null : name.toString()) .build(); - return listEventCreateRules(request); + deleteRollupPropertySourceLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists EventCreateRules on a web data stream. + * Deletes a roll-up property source link. Only roll-up properties can have source links, so this + * method will throw an error if used on other types of properties. * *

Sample code: * @@ -15071,26 +15285,27 @@ public final ListEventCreateRulesPagedResponse listEventCreateRules(DataStreamNa * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString(); - * for (EventCreateRule element : - * analyticsAdminServiceClient.listEventCreateRules(parent).iterateAll()) { - * // doThingsWith(element); - * } + * String name = + * RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]").toString(); + * analyticsAdminServiceClient.deleteRollupPropertySourceLink(name); * } * } * - * @param parent Required. Example format: properties/123/dataStreams/456 + * @param name Required. Format: + * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + * Example: properties/1234/rollupPropertySourceLinks/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListEventCreateRulesPagedResponse listEventCreateRules(String parent) { - ListEventCreateRulesRequest request = - ListEventCreateRulesRequest.newBuilder().setParent(parent).build(); - return listEventCreateRules(request); + public final void deleteRollupPropertySourceLink(String name) { + DeleteRollupPropertySourceLinkRequest request = + DeleteRollupPropertySourceLinkRequest.newBuilder().setName(name).build(); + deleteRollupPropertySourceLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists EventCreateRules on a web data stream. + * Deletes a roll-up property source link. Only roll-up properties can have source links, so this + * method will throw an error if used on other types of properties. * *

Sample code: * @@ -15102,30 +15317,27 @@ public final ListEventCreateRulesPagedResponse listEventCreateRules(String paren * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListEventCreateRulesRequest request = - * ListEventCreateRulesRequest.newBuilder() - * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * DeleteRollupPropertySourceLinkRequest request = + * DeleteRollupPropertySourceLinkRequest.newBuilder() + * .setName( + * RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]") + * .toString()) * .build(); - * for (EventCreateRule element : - * analyticsAdminServiceClient.listEventCreateRules(request).iterateAll()) { - * // doThingsWith(element); - * } + * analyticsAdminServiceClient.deleteRollupPropertySourceLink(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 ListEventCreateRulesPagedResponse listEventCreateRules( - ListEventCreateRulesRequest request) { - return listEventCreateRulesPagedCallable().call(request); + public final void deleteRollupPropertySourceLink(DeleteRollupPropertySourceLinkRequest request) { + deleteRollupPropertySourceLinkCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists EventCreateRules on a web data stream. + * Deletes a roll-up property source link. Only roll-up properties can have source links, so this + * method will throw an error if used on other types of properties. * *

Sample code: * @@ -15137,105 +15349,27 @@ public final ListEventCreateRulesPagedResponse listEventCreateRules( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * ListEventCreateRulesRequest request = - * ListEventCreateRulesRequest.newBuilder() - * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - * .setPageSize(883849137) - * .setPageToken("pageToken873572522") + * DeleteRollupPropertySourceLinkRequest request = + * DeleteRollupPropertySourceLinkRequest.newBuilder() + * .setName( + * RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]") + * .toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.listEventCreateRulesPagedCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.deleteRollupPropertySourceLinkCallable().futureCall(request); * // Do something. - * for (EventCreateRule element : future.get().iterateAll()) { - * // doThingsWith(element); - * } - * } - * } - */ - public final UnaryCallable - listEventCreateRulesPagedCallable() { - return stub.listEventCreateRulesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists EventCreateRules on a web data stream. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   ListEventCreateRulesRequest request =
-   *       ListEventCreateRulesRequest.newBuilder()
-   *           .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListEventCreateRulesResponse response =
-   *         analyticsAdminServiceClient.listEventCreateRulesCallable().call(request);
-   *     for (EventCreateRule element : response.getEventCreateRulesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listEventCreateRulesCallable() { - return stub.listEventCreateRulesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an EventCreateRule. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
-   *   EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build();
-   *   EventCreateRule response =
-   *       analyticsAdminServiceClient.createEventCreateRule(parent, eventCreateRule);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/123/dataStreams/456 - * @param eventCreateRule Required. The EventCreateRule to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final EventCreateRule createEventCreateRule( - DataStreamName parent, EventCreateRule eventCreateRule) { - CreateEventCreateRuleRequest request = - CreateEventCreateRuleRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setEventCreateRule(eventCreateRule) - .build(); - return createEventCreateRule(request); + * future.get(); + * } + * } + */ + public final UnaryCallable + deleteRollupPropertySourceLinkCallable() { + return stub.deleteRollupPropertySourceLinkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an EventCreateRule. + * Create a subproperty and a subproperty event filter that applies to the created subproperty. * *

Sample code: * @@ -15247,30 +15381,26 @@ public final EventCreateRule createEventCreateRule( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString(); - * EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); - * EventCreateRule response = - * analyticsAdminServiceClient.createEventCreateRule(parent, eventCreateRule); + * CreateSubpropertyRequest request = + * CreateSubpropertyRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setSubproperty(Property.newBuilder().build()) + * .setSubpropertyEventFilter(SubpropertyEventFilter.newBuilder().build()) + * .build(); + * CreateSubpropertyResponse response = analyticsAdminServiceClient.createSubproperty(request); * } * } * - * @param parent Required. Example format: properties/123/dataStreams/456 - * @param eventCreateRule Required. The EventCreateRule to create. + * @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 EventCreateRule createEventCreateRule( - String parent, EventCreateRule eventCreateRule) { - CreateEventCreateRuleRequest request = - CreateEventCreateRuleRequest.newBuilder() - .setParent(parent) - .setEventCreateRule(eventCreateRule) - .build(); - return createEventCreateRule(request); + public final CreateSubpropertyResponse createSubproperty(CreateSubpropertyRequest request) { + return createSubpropertyCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an EventCreateRule. + * Create a subproperty and a subproperty event filter that applies to the created subproperty. * *

Sample code: * @@ -15282,25 +15412,27 @@ public final EventCreateRule createEventCreateRule( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateEventCreateRuleRequest request = - * CreateEventCreateRuleRequest.newBuilder() - * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - * .setEventCreateRule(EventCreateRule.newBuilder().build()) + * CreateSubpropertyRequest request = + * CreateSubpropertyRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setSubproperty(Property.newBuilder().build()) + * .setSubpropertyEventFilter(SubpropertyEventFilter.newBuilder().build()) * .build(); - * EventCreateRule response = analyticsAdminServiceClient.createEventCreateRule(request); + * ApiFuture future = + * analyticsAdminServiceClient.createSubpropertyCallable().futureCall(request); + * // Do something. + * CreateSubpropertyResponse response = future.get(); * } * } - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EventCreateRule createEventCreateRule(CreateEventCreateRuleRequest request) { - return createEventCreateRuleCallable().call(request); + public final UnaryCallable + createSubpropertyCallable() { + return stub.createSubpropertyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an EventCreateRule. + * Deletes a subproperty event filter. * *

Sample code: * @@ -15312,26 +15444,28 @@ public final EventCreateRule createEventCreateRule(CreateEventCreateRuleRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * CreateEventCreateRuleRequest request = - * CreateEventCreateRuleRequest.newBuilder() - * .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - * .setEventCreateRule(EventCreateRule.newBuilder().build()) - * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.createEventCreateRuleCallable().futureCall(request); - * // Do something. - * EventCreateRule response = future.get(); + * SubpropertyEventFilterName name = + * SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]"); + * analyticsAdminServiceClient.deleteSubpropertyEventFilter(name); * } * } + * + * @param name Required. Resource name of the subproperty event filter to delete. Format: + * properties/property_id/subpropertyEventFilters/subproperty_event_filter Example: + * properties/123/subpropertyEventFilters/456 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable - createEventCreateRuleCallable() { - return stub.createEventCreateRuleCallable(); + public final void deleteSubpropertyEventFilter(SubpropertyEventFilterName name) { + DeleteSubpropertyEventFilterRequest request = + DeleteSubpropertyEventFilterRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteSubpropertyEventFilter(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an EventCreateRule. + * Deletes a subproperty event filter. * *

Sample code: * @@ -15343,33 +15477,26 @@ public final EventCreateRule createEventCreateRule(CreateEventCreateRuleRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * EventCreateRule response = - * analyticsAdminServiceClient.updateEventCreateRule(eventCreateRule, updateMask); + * String name = + * SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]").toString(); + * analyticsAdminServiceClient.deleteSubpropertyEventFilter(name); * } * } * - * @param eventCreateRule Required. The EventCreateRule to update. The resource's `name` field is - * used to identify the EventCreateRule 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. + * @param name Required. Resource name of the subproperty event filter to delete. Format: + * properties/property_id/subpropertyEventFilters/subproperty_event_filter Example: + * properties/123/subpropertyEventFilters/456 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final EventCreateRule updateEventCreateRule( - EventCreateRule eventCreateRule, FieldMask updateMask) { - UpdateEventCreateRuleRequest request = - UpdateEventCreateRuleRequest.newBuilder() - .setEventCreateRule(eventCreateRule) - .setUpdateMask(updateMask) - .build(); - return updateEventCreateRule(request); + public final void deleteSubpropertyEventFilter(String name) { + DeleteSubpropertyEventFilterRequest request = + DeleteSubpropertyEventFilterRequest.newBuilder().setName(name).build(); + deleteSubpropertyEventFilter(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an EventCreateRule. + * Deletes a subproperty event filter. * *

Sample code: * @@ -15381,25 +15508,26 @@ public final EventCreateRule updateEventCreateRule( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateEventCreateRuleRequest request = - * UpdateEventCreateRuleRequest.newBuilder() - * .setEventCreateRule(EventCreateRule.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * DeleteSubpropertyEventFilterRequest request = + * DeleteSubpropertyEventFilterRequest.newBuilder() + * .setName( + * SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]") + * .toString()) * .build(); - * EventCreateRule response = analyticsAdminServiceClient.updateEventCreateRule(request); + * analyticsAdminServiceClient.deleteSubpropertyEventFilter(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 EventCreateRule updateEventCreateRule(UpdateEventCreateRuleRequest request) { - return updateEventCreateRuleCallable().call(request); + public final void deleteSubpropertyEventFilter(DeleteSubpropertyEventFilterRequest request) { + deleteSubpropertyEventFilterCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an EventCreateRule. + * Deletes a subproperty event filter. * *

Sample code: * @@ -15411,26 +15539,27 @@ public final EventCreateRule updateEventCreateRule(UpdateEventCreateRuleRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * UpdateEventCreateRuleRequest request = - * UpdateEventCreateRuleRequest.newBuilder() - * .setEventCreateRule(EventCreateRule.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * DeleteSubpropertyEventFilterRequest request = + * DeleteSubpropertyEventFilterRequest.newBuilder() + * .setName( + * SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]") + * .toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.updateEventCreateRuleCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.deleteSubpropertyEventFilterCallable().futureCall(request); * // Do something. - * EventCreateRule response = future.get(); + * future.get(); * } * } */ - public final UnaryCallable - updateEventCreateRuleCallable() { - return stub.updateEventCreateRuleCallable(); + public final UnaryCallable + deleteSubpropertyEventFilterCallable() { + return stub.deleteSubpropertyEventFilterCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an EventCreateRule. + * Creates a subproperty Event Filter. * *

Sample code: * @@ -15442,26 +15571,31 @@ public final EventCreateRule updateEventCreateRule(UpdateEventCreateRuleRequest * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * EventCreateRuleName name = - * EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]"); - * analyticsAdminServiceClient.deleteEventCreateRule(name); + * PropertyName parent = PropertyName.of("[PROPERTY]"); + * SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); + * SubpropertyEventFilter response = + * analyticsAdminServiceClient.createSubpropertyEventFilter(parent, subpropertyEventFilter); * } * } * - * @param name Required. Example format: properties/123/dataStreams/456/eventCreateRules/789 + * @param parent Required. The ordinary property for which to create a subproperty event filter. + * Format: properties/property_id Example: properties/123 + * @param subpropertyEventFilter Required. The subproperty event filter to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteEventCreateRule(EventCreateRuleName name) { - DeleteEventCreateRuleRequest request = - DeleteEventCreateRuleRequest.newBuilder() - .setName(name == null ? null : name.toString()) + public final SubpropertyEventFilter createSubpropertyEventFilter( + PropertyName parent, SubpropertyEventFilter subpropertyEventFilter) { + CreateSubpropertyEventFilterRequest request = + CreateSubpropertyEventFilterRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSubpropertyEventFilter(subpropertyEventFilter) .build(); - deleteEventCreateRule(request); + return createSubpropertyEventFilter(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an EventCreateRule. + * Creates a subproperty Event Filter. * *

Sample code: * @@ -15473,24 +15607,31 @@ public final void deleteEventCreateRule(EventCreateRuleName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * String name = - * EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]").toString(); - * analyticsAdminServiceClient.deleteEventCreateRule(name); + * String parent = PropertyName.of("[PROPERTY]").toString(); + * SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); + * SubpropertyEventFilter response = + * analyticsAdminServiceClient.createSubpropertyEventFilter(parent, subpropertyEventFilter); * } * } * - * @param name Required. Example format: properties/123/dataStreams/456/eventCreateRules/789 + * @param parent Required. The ordinary property for which to create a subproperty event filter. + * Format: properties/property_id Example: properties/123 + * @param subpropertyEventFilter Required. The subproperty event filter to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteEventCreateRule(String name) { - DeleteEventCreateRuleRequest request = - DeleteEventCreateRuleRequest.newBuilder().setName(name).build(); - deleteEventCreateRule(request); + public final SubpropertyEventFilter createSubpropertyEventFilter( + String parent, SubpropertyEventFilter subpropertyEventFilter) { + CreateSubpropertyEventFilterRequest request = + CreateSubpropertyEventFilterRequest.newBuilder() + .setParent(parent) + .setSubpropertyEventFilter(subpropertyEventFilter) + .build(); + return createSubpropertyEventFilter(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an EventCreateRule. + * Creates a subproperty Event Filter. * *

Sample code: * @@ -15502,26 +15643,27 @@ public final void deleteEventCreateRule(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteEventCreateRuleRequest request = - * DeleteEventCreateRuleRequest.newBuilder() - * .setName( - * EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") - * .toString()) + * CreateSubpropertyEventFilterRequest request = + * CreateSubpropertyEventFilterRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setSubpropertyEventFilter(SubpropertyEventFilter.newBuilder().build()) * .build(); - * analyticsAdminServiceClient.deleteEventCreateRule(request); + * SubpropertyEventFilter response = + * analyticsAdminServiceClient.createSubpropertyEventFilter(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 deleteEventCreateRule(DeleteEventCreateRuleRequest request) { - deleteEventCreateRuleCallable().call(request); + public final SubpropertyEventFilter createSubpropertyEventFilter( + CreateSubpropertyEventFilterRequest request) { + return createSubpropertyEventFilterCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an EventCreateRule. + * Creates a subproperty Event Filter. * *

Sample code: * @@ -15533,21 +15675,21 @@ public final void deleteEventCreateRule(DeleteEventCreateRuleRequest request) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteEventCreateRuleRequest request = - * DeleteEventCreateRuleRequest.newBuilder() - * .setName( - * EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") - * .toString()) + * CreateSubpropertyEventFilterRequest request = + * CreateSubpropertyEventFilterRequest.newBuilder() + * .setParent(PropertyName.of("[PROPERTY]").toString()) + * .setSubpropertyEventFilter(SubpropertyEventFilter.newBuilder().build()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.deleteEventCreateRuleCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.createSubpropertyEventFilterCallable().futureCall(request); * // Do something. - * future.get(); + * SubpropertyEventFilter response = future.get(); * } * } */ - public final UnaryCallable deleteEventCreateRuleCallable() { - return stub.deleteEventCreateRuleCallable(); + public final UnaryCallable + createSubpropertyEventFilterCallable() { + return stub.createSubpropertyEventFilterCallable(); } @Override @@ -15815,158 +15957,6 @@ protected ListPropertiesFixedSizeCollection createCollection( } } - public static class ListUserLinksPagedResponse - extends AbstractPagedListResponse< - ListUserLinksRequest, - ListUserLinksResponse, - UserLink, - ListUserLinksPage, - ListUserLinksFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListUserLinksPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListUserLinksPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListUserLinksPagedResponse(ListUserLinksPage page) { - super(page, ListUserLinksFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListUserLinksPage - extends AbstractPage< - ListUserLinksRequest, ListUserLinksResponse, UserLink, ListUserLinksPage> { - - private ListUserLinksPage( - PageContext context, - ListUserLinksResponse response) { - super(context, response); - } - - private static ListUserLinksPage createEmptyPage() { - return new ListUserLinksPage(null, null); - } - - @Override - protected ListUserLinksPage createPage( - PageContext context, - ListUserLinksResponse response) { - return new ListUserLinksPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListUserLinksFixedSizeCollection - extends AbstractFixedSizeCollection< - ListUserLinksRequest, - ListUserLinksResponse, - UserLink, - ListUserLinksPage, - ListUserLinksFixedSizeCollection> { - - private ListUserLinksFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListUserLinksFixedSizeCollection createEmptyCollection() { - return new ListUserLinksFixedSizeCollection(null, 0); - } - - @Override - protected ListUserLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListUserLinksFixedSizeCollection(pages, collectionSize); - } - } - - public static class AuditUserLinksPagedResponse - extends AbstractPagedListResponse< - AuditUserLinksRequest, - AuditUserLinksResponse, - AuditUserLink, - AuditUserLinksPage, - AuditUserLinksFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - AuditUserLinksPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new AuditUserLinksPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private AuditUserLinksPagedResponse(AuditUserLinksPage page) { - super(page, AuditUserLinksFixedSizeCollection.createEmptyCollection()); - } - } - - public static class AuditUserLinksPage - extends AbstractPage< - AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLink, AuditUserLinksPage> { - - private AuditUserLinksPage( - PageContext context, - AuditUserLinksResponse response) { - super(context, response); - } - - private static AuditUserLinksPage createEmptyPage() { - return new AuditUserLinksPage(null, null); - } - - @Override - protected AuditUserLinksPage createPage( - PageContext context, - AuditUserLinksResponse response) { - return new AuditUserLinksPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class AuditUserLinksFixedSizeCollection - extends AbstractFixedSizeCollection< - AuditUserLinksRequest, - AuditUserLinksResponse, - AuditUserLink, - AuditUserLinksPage, - AuditUserLinksFixedSizeCollection> { - - private AuditUserLinksFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static AuditUserLinksFixedSizeCollection createEmptyCollection() { - return new AuditUserLinksFixedSizeCollection(null, 0); - } - - @Override - protected AuditUserLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new AuditUserLinksFixedSizeCollection(pages, collectionSize); - } - } - public static class ListFirebaseLinksPagedResponse extends AbstractPagedListResponse< ListFirebaseLinksRequest, @@ -17588,4 +17578,101 @@ protected ListEventCreateRulesFixedSizeCollection createCollection( return new ListEventCreateRulesFixedSizeCollection(pages, collectionSize); } } + + public static class ListRollupPropertySourceLinksPagedResponse + extends AbstractPagedListResponse< + ListRollupPropertySourceLinksRequest, + ListRollupPropertySourceLinksResponse, + RollupPropertySourceLink, + ListRollupPropertySourceLinksPage, + ListRollupPropertySourceLinksFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListRollupPropertySourceLinksRequest, + ListRollupPropertySourceLinksResponse, + RollupPropertySourceLink> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListRollupPropertySourceLinksPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListRollupPropertySourceLinksPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListRollupPropertySourceLinksPagedResponse(ListRollupPropertySourceLinksPage page) { + super(page, ListRollupPropertySourceLinksFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListRollupPropertySourceLinksPage + extends AbstractPage< + ListRollupPropertySourceLinksRequest, + ListRollupPropertySourceLinksResponse, + RollupPropertySourceLink, + ListRollupPropertySourceLinksPage> { + + private ListRollupPropertySourceLinksPage( + PageContext< + ListRollupPropertySourceLinksRequest, + ListRollupPropertySourceLinksResponse, + RollupPropertySourceLink> + context, + ListRollupPropertySourceLinksResponse response) { + super(context, response); + } + + private static ListRollupPropertySourceLinksPage createEmptyPage() { + return new ListRollupPropertySourceLinksPage(null, null); + } + + @Override + protected ListRollupPropertySourceLinksPage createPage( + PageContext< + ListRollupPropertySourceLinksRequest, + ListRollupPropertySourceLinksResponse, + RollupPropertySourceLink> + context, + ListRollupPropertySourceLinksResponse response) { + return new ListRollupPropertySourceLinksPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListRollupPropertySourceLinksRequest, + ListRollupPropertySourceLinksResponse, + RollupPropertySourceLink> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListRollupPropertySourceLinksFixedSizeCollection + extends AbstractFixedSizeCollection< + ListRollupPropertySourceLinksRequest, + ListRollupPropertySourceLinksResponse, + RollupPropertySourceLink, + ListRollupPropertySourceLinksPage, + ListRollupPropertySourceLinksFixedSizeCollection> { + + private ListRollupPropertySourceLinksFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListRollupPropertySourceLinksFixedSizeCollection createEmptyCollection() { + return new ListRollupPropertySourceLinksFixedSizeCollection(null, 0); + } + + @Override + protected ListRollupPropertySourceLinksFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListRollupPropertySourceLinksFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java index d8055d771515..d75b918b3cda 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java @@ -16,7 +16,6 @@ package com.google.analytics.admin.v1alpha; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; @@ -36,9 +35,9 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; 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.ListRollupPropertySourceLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListSKAdNetworkConversionValueSchemasPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListSearchAds360LinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.stub.AnalyticsAdminServiceStubSettings; @@ -165,62 +164,6 @@ public UnaryCallSettings updatePropertySettings return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updatePropertySettings(); } - /** Returns the object with the settings used for calls to getUserLink. */ - public UnaryCallSettings getUserLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getUserLinkSettings(); - } - - /** Returns the object with the settings used for calls to batchGetUserLinks. */ - public UnaryCallSettings - batchGetUserLinksSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).batchGetUserLinksSettings(); - } - - /** Returns the object with the settings used for calls to listUserLinks. */ - public PagedCallSettings - listUserLinksSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listUserLinksSettings(); - } - - /** Returns the object with the settings used for calls to auditUserLinks. */ - public PagedCallSettings< - AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLinksPagedResponse> - auditUserLinksSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).auditUserLinksSettings(); - } - - /** Returns the object with the settings used for calls to createUserLink. */ - public UnaryCallSettings createUserLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createUserLinkSettings(); - } - - /** Returns the object with the settings used for calls to batchCreateUserLinks. */ - public UnaryCallSettings - batchCreateUserLinksSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).batchCreateUserLinksSettings(); - } - - /** Returns the object with the settings used for calls to updateUserLink. */ - public UnaryCallSettings updateUserLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateUserLinkSettings(); - } - - /** Returns the object with the settings used for calls to batchUpdateUserLinks. */ - public UnaryCallSettings - batchUpdateUserLinksSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).batchUpdateUserLinksSettings(); - } - - /** Returns the object with the settings used for calls to deleteUserLink. */ - public UnaryCallSettings deleteUserLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteUserLinkSettings(); - } - - /** Returns the object with the settings used for calls to batchDeleteUserLinks. */ - public UnaryCallSettings batchDeleteUserLinksSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).batchDeleteUserLinksSettings(); - } - /** Returns the object with the settings used for calls to createFirebaseLink. */ public UnaryCallSettings createFirebaseLinkSettings() { return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createFirebaseLinkSettings(); @@ -946,6 +889,77 @@ public UnaryCallSettings deleteEventCreateR return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteEventCreateRuleSettings(); } + /** Returns the object with the settings used for calls to updateDataRedactionSettings. */ + public UnaryCallSettings + updateDataRedactionSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .updateDataRedactionSettingsSettings(); + } + + /** Returns the object with the settings used for calls to getDataRedactionSettings. */ + public UnaryCallSettings + getDataRedactionSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .getDataRedactionSettingsSettings(); + } + + /** Returns the object with the settings used for calls to createRollupProperty. */ + public UnaryCallSettings + createRollupPropertySettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createRollupPropertySettings(); + } + + /** Returns the object with the settings used for calls to getRollupPropertySourceLink. */ + public UnaryCallSettings + getRollupPropertySourceLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .getRollupPropertySourceLinkSettings(); + } + + /** Returns the object with the settings used for calls to listRollupPropertySourceLinks. */ + public PagedCallSettings< + ListRollupPropertySourceLinksRequest, + ListRollupPropertySourceLinksResponse, + ListRollupPropertySourceLinksPagedResponse> + listRollupPropertySourceLinksSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .listRollupPropertySourceLinksSettings(); + } + + /** Returns the object with the settings used for calls to createRollupPropertySourceLink. */ + public UnaryCallSettings + createRollupPropertySourceLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .createRollupPropertySourceLinkSettings(); + } + + /** Returns the object with the settings used for calls to deleteRollupPropertySourceLink. */ + public UnaryCallSettings + deleteRollupPropertySourceLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .deleteRollupPropertySourceLinkSettings(); + } + + /** Returns the object with the settings used for calls to createSubproperty. */ + public UnaryCallSettings + createSubpropertySettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createSubpropertySettings(); + } + + /** Returns the object with the settings used for calls to deleteSubpropertyEventFilter. */ + public UnaryCallSettings + deleteSubpropertyEventFilterSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .deleteSubpropertyEventFilterSettings(); + } + + /** Returns the object with the settings used for calls to createSubpropertyEventFilter. */ + public UnaryCallSettings + createSubpropertyEventFilterSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .createSubpropertyEventFilterSettings(); + } + public static final AnalyticsAdminServiceSettings create(AnalyticsAdminServiceStubSettings stub) throws IOException { return new AnalyticsAdminServiceSettings.Builder(stub.toBuilder()).build(); @@ -1126,64 +1140,6 @@ public UnaryCallSettings.Builder updateProperty return getStubSettingsBuilder().updatePropertySettings(); } - /** Returns the builder for the settings used for calls to getUserLink. */ - public UnaryCallSettings.Builder getUserLinkSettings() { - return getStubSettingsBuilder().getUserLinkSettings(); - } - - /** Returns the builder for the settings used for calls to batchGetUserLinks. */ - public UnaryCallSettings.Builder - batchGetUserLinksSettings() { - return getStubSettingsBuilder().batchGetUserLinksSettings(); - } - - /** Returns the builder for the settings used for calls to listUserLinks. */ - public PagedCallSettings.Builder< - ListUserLinksRequest, ListUserLinksResponse, ListUserLinksPagedResponse> - listUserLinksSettings() { - return getStubSettingsBuilder().listUserLinksSettings(); - } - - /** Returns the builder for the settings used for calls to auditUserLinks. */ - public PagedCallSettings.Builder< - AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLinksPagedResponse> - auditUserLinksSettings() { - return getStubSettingsBuilder().auditUserLinksSettings(); - } - - /** Returns the builder for the settings used for calls to createUserLink. */ - public UnaryCallSettings.Builder createUserLinkSettings() { - return getStubSettingsBuilder().createUserLinkSettings(); - } - - /** Returns the builder for the settings used for calls to batchCreateUserLinks. */ - public UnaryCallSettings.Builder - batchCreateUserLinksSettings() { - return getStubSettingsBuilder().batchCreateUserLinksSettings(); - } - - /** Returns the builder for the settings used for calls to updateUserLink. */ - public UnaryCallSettings.Builder updateUserLinkSettings() { - return getStubSettingsBuilder().updateUserLinkSettings(); - } - - /** Returns the builder for the settings used for calls to batchUpdateUserLinks. */ - public UnaryCallSettings.Builder - batchUpdateUserLinksSettings() { - return getStubSettingsBuilder().batchUpdateUserLinksSettings(); - } - - /** Returns the builder for the settings used for calls to deleteUserLink. */ - public UnaryCallSettings.Builder deleteUserLinkSettings() { - return getStubSettingsBuilder().deleteUserLinkSettings(); - } - - /** Returns the builder for the settings used for calls to batchDeleteUserLinks. */ - public UnaryCallSettings.Builder - batchDeleteUserLinksSettings() { - return getStubSettingsBuilder().batchDeleteUserLinksSettings(); - } - /** Returns the builder for the settings used for calls to createFirebaseLink. */ public UnaryCallSettings.Builder createFirebaseLinkSettings() { @@ -1924,6 +1880,70 @@ public UnaryCallSettings.Builder deleteAdSenseL return getStubSettingsBuilder().deleteEventCreateRuleSettings(); } + /** Returns the builder for the settings used for calls to updateDataRedactionSettings. */ + public UnaryCallSettings.Builder + updateDataRedactionSettingsSettings() { + return getStubSettingsBuilder().updateDataRedactionSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to getDataRedactionSettings. */ + public UnaryCallSettings.Builder + getDataRedactionSettingsSettings() { + return getStubSettingsBuilder().getDataRedactionSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to createRollupProperty. */ + public UnaryCallSettings.Builder + createRollupPropertySettings() { + return getStubSettingsBuilder().createRollupPropertySettings(); + } + + /** Returns the builder for the settings used for calls to getRollupPropertySourceLink. */ + public UnaryCallSettings.Builder + getRollupPropertySourceLinkSettings() { + return getStubSettingsBuilder().getRollupPropertySourceLinkSettings(); + } + + /** Returns the builder for the settings used for calls to listRollupPropertySourceLinks. */ + public PagedCallSettings.Builder< + ListRollupPropertySourceLinksRequest, + ListRollupPropertySourceLinksResponse, + ListRollupPropertySourceLinksPagedResponse> + listRollupPropertySourceLinksSettings() { + return getStubSettingsBuilder().listRollupPropertySourceLinksSettings(); + } + + /** Returns the builder for the settings used for calls to createRollupPropertySourceLink. */ + public UnaryCallSettings.Builder< + CreateRollupPropertySourceLinkRequest, RollupPropertySourceLink> + createRollupPropertySourceLinkSettings() { + return getStubSettingsBuilder().createRollupPropertySourceLinkSettings(); + } + + /** Returns the builder for the settings used for calls to deleteRollupPropertySourceLink. */ + public UnaryCallSettings.Builder + deleteRollupPropertySourceLinkSettings() { + return getStubSettingsBuilder().deleteRollupPropertySourceLinkSettings(); + } + + /** Returns the builder for the settings used for calls to createSubproperty. */ + public UnaryCallSettings.Builder + createSubpropertySettings() { + return getStubSettingsBuilder().createSubpropertySettings(); + } + + /** Returns the builder for the settings used for calls to deleteSubpropertyEventFilter. */ + public UnaryCallSettings.Builder + deleteSubpropertyEventFilterSettings() { + return getStubSettingsBuilder().deleteSubpropertyEventFilterSettings(); + } + + /** Returns the builder for the settings used for calls to createSubpropertyEventFilter. */ + public UnaryCallSettings.Builder + createSubpropertyEventFilterSettings() { + return getStubSettingsBuilder().createSubpropertyEventFilterSettings(); + } + @Override public AnalyticsAdminServiceSettings build() throws IOException { return new AnalyticsAdminServiceSettings(this); diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json index 3dc1bc598837..53363c71c7e4 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json @@ -25,33 +25,18 @@ "ArchiveCustomMetric": { "methods": ["archiveCustomMetric", "archiveCustomMetric", "archiveCustomMetric", "archiveCustomMetricCallable"] }, - "AuditUserLinks": { - "methods": ["auditUserLinks", "auditUserLinksPagedCallable", "auditUserLinksCallable"] - }, "BatchCreateAccessBindings": { "methods": ["batchCreateAccessBindings", "batchCreateAccessBindingsCallable"] }, - "BatchCreateUserLinks": { - "methods": ["batchCreateUserLinks", "batchCreateUserLinksCallable"] - }, "BatchDeleteAccessBindings": { "methods": ["batchDeleteAccessBindings", "batchDeleteAccessBindingsCallable"] }, - "BatchDeleteUserLinks": { - "methods": ["batchDeleteUserLinks", "batchDeleteUserLinksCallable"] - }, "BatchGetAccessBindings": { "methods": ["batchGetAccessBindings", "batchGetAccessBindingsCallable"] }, - "BatchGetUserLinks": { - "methods": ["batchGetUserLinks", "batchGetUserLinksCallable"] - }, "BatchUpdateAccessBindings": { "methods": ["batchUpdateAccessBindings", "batchUpdateAccessBindingsCallable"] }, - "BatchUpdateUserLinks": { - "methods": ["batchUpdateUserLinks", "batchUpdateUserLinksCallable"] - }, "CancelDisplayVideo360AdvertiserLinkProposal": { "methods": ["cancelDisplayVideo360AdvertiserLinkProposal", "cancelDisplayVideo360AdvertiserLinkProposalCallable"] }, @@ -106,14 +91,23 @@ "CreateProperty": { "methods": ["createProperty", "createProperty", "createPropertyCallable"] }, + "CreateRollupProperty": { + "methods": ["createRollupProperty", "createRollupPropertyCallable"] + }, + "CreateRollupPropertySourceLink": { + "methods": ["createRollupPropertySourceLink", "createRollupPropertySourceLink", "createRollupPropertySourceLink", "createRollupPropertySourceLinkCallable"] + }, "CreateSKAdNetworkConversionValueSchema": { "methods": ["createSKAdNetworkConversionValueSchema", "createSKAdNetworkConversionValueSchema", "createSKAdNetworkConversionValueSchema", "createSKAdNetworkConversionValueSchemaCallable"] }, "CreateSearchAds360Link": { "methods": ["createSearchAds360Link", "createSearchAds360Link", "createSearchAds360Link", "createSearchAds360LinkCallable"] }, - "CreateUserLink": { - "methods": ["createUserLink", "createUserLink", "createUserLink", "createUserLink", "createUserLinkCallable"] + "CreateSubproperty": { + "methods": ["createSubproperty", "createSubpropertyCallable"] + }, + "CreateSubpropertyEventFilter": { + "methods": ["createSubpropertyEventFilter", "createSubpropertyEventFilter", "createSubpropertyEventFilter", "createSubpropertyEventFilterCallable"] }, "DeleteAccessBinding": { "methods": ["deleteAccessBinding", "deleteAccessBinding", "deleteAccessBinding", "deleteAccessBindingCallable"] @@ -160,14 +154,17 @@ "DeleteProperty": { "methods": ["deleteProperty", "deleteProperty", "deleteProperty", "deletePropertyCallable"] }, + "DeleteRollupPropertySourceLink": { + "methods": ["deleteRollupPropertySourceLink", "deleteRollupPropertySourceLink", "deleteRollupPropertySourceLink", "deleteRollupPropertySourceLinkCallable"] + }, "DeleteSKAdNetworkConversionValueSchema": { "methods": ["deleteSKAdNetworkConversionValueSchema", "deleteSKAdNetworkConversionValueSchema", "deleteSKAdNetworkConversionValueSchema", "deleteSKAdNetworkConversionValueSchemaCallable"] }, "DeleteSearchAds360Link": { "methods": ["deleteSearchAds360Link", "deleteSearchAds360Link", "deleteSearchAds360Link", "deleteSearchAds360LinkCallable"] }, - "DeleteUserLink": { - "methods": ["deleteUserLink", "deleteUserLink", "deleteUserLink", "deleteUserLinkCallable"] + "DeleteSubpropertyEventFilter": { + "methods": ["deleteSubpropertyEventFilter", "deleteSubpropertyEventFilter", "deleteSubpropertyEventFilter", "deleteSubpropertyEventFilterCallable"] }, "FetchAutomatedGa4ConfigurationOptOut": { "methods": ["fetchAutomatedGa4ConfigurationOptOut", "fetchAutomatedGa4ConfigurationOptOutCallable"] @@ -205,6 +202,9 @@ "GetCustomMetric": { "methods": ["getCustomMetric", "getCustomMetric", "getCustomMetric", "getCustomMetricCallable"] }, + "GetDataRedactionSettings": { + "methods": ["getDataRedactionSettings", "getDataRedactionSettings", "getDataRedactionSettings", "getDataRedactionSettingsCallable"] + }, "GetDataRetentionSettings": { "methods": ["getDataRetentionSettings", "getDataRetentionSettings", "getDataRetentionSettings", "getDataRetentionSettingsCallable"] }, @@ -241,15 +241,15 @@ "GetProperty": { "methods": ["getProperty", "getProperty", "getProperty", "getPropertyCallable"] }, + "GetRollupPropertySourceLink": { + "methods": ["getRollupPropertySourceLink", "getRollupPropertySourceLink", "getRollupPropertySourceLink", "getRollupPropertySourceLinkCallable"] + }, "GetSKAdNetworkConversionValueSchema": { "methods": ["getSKAdNetworkConversionValueSchema", "getSKAdNetworkConversionValueSchema", "getSKAdNetworkConversionValueSchema", "getSKAdNetworkConversionValueSchemaCallable"] }, "GetSearchAds360Link": { "methods": ["getSearchAds360Link", "getSearchAds360Link", "getSearchAds360Link", "getSearchAds360LinkCallable"] }, - "GetUserLink": { - "methods": ["getUserLink", "getUserLink", "getUserLink", "getUserLinkCallable"] - }, "ListAccessBindings": { "methods": ["listAccessBindings", "listAccessBindings", "listAccessBindings", "listAccessBindings", "listAccessBindingsPagedCallable", "listAccessBindingsCallable"] }, @@ -310,15 +310,15 @@ "ListProperties": { "methods": ["listProperties", "listPropertiesPagedCallable", "listPropertiesCallable"] }, + "ListRollupPropertySourceLinks": { + "methods": ["listRollupPropertySourceLinks", "listRollupPropertySourceLinks", "listRollupPropertySourceLinks", "listRollupPropertySourceLinksPagedCallable", "listRollupPropertySourceLinksCallable"] + }, "ListSKAdNetworkConversionValueSchemas": { "methods": ["listSKAdNetworkConversionValueSchemas", "listSKAdNetworkConversionValueSchemas", "listSKAdNetworkConversionValueSchemas", "listSKAdNetworkConversionValueSchemasPagedCallable", "listSKAdNetworkConversionValueSchemasCallable"] }, "ListSearchAds360Links": { "methods": ["listSearchAds360Links", "listSearchAds360Links", "listSearchAds360Links", "listSearchAds360LinksPagedCallable", "listSearchAds360LinksCallable"] }, - "ListUserLinks": { - "methods": ["listUserLinks", "listUserLinks", "listUserLinks", "listUserLinks", "listUserLinksPagedCallable", "listUserLinksCallable"] - }, "ProvisionAccountTicket": { "methods": ["provisionAccountTicket", "provisionAccountTicketCallable"] }, @@ -355,6 +355,9 @@ "UpdateCustomMetric": { "methods": ["updateCustomMetric", "updateCustomMetric", "updateCustomMetricCallable"] }, + "UpdateDataRedactionSettings": { + "methods": ["updateDataRedactionSettings", "updateDataRedactionSettings", "updateDataRedactionSettingsCallable"] + }, "UpdateDataRetentionSettings": { "methods": ["updateDataRetentionSettings", "updateDataRetentionSettings", "updateDataRetentionSettingsCallable"] }, @@ -390,9 +393,6 @@ }, "UpdateSearchAds360Link": { "methods": ["updateSearchAds360Link", "updateSearchAds360Link", "updateSearchAds360LinkCallable"] - }, - "UpdateUserLink": { - "methods": ["updateUserLink", "updateUserLink", "updateUserLinkCallable"] } } } diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java index 5cb4a953f4db..ed6045831b70 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java @@ -16,7 +16,6 @@ package com.google.analytics.admin.v1alpha.stub; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; @@ -36,9 +35,9 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; 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.ListRollupPropertySourceLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListSKAdNetworkConversionValueSchemasPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListSearchAds360LinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.AccessBinding; @@ -53,22 +52,13 @@ import com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; import com.google.analytics.admin.v1alpha.AttributionSettings; import com.google.analytics.admin.v1alpha.Audience; -import com.google.analytics.admin.v1alpha.AuditUserLinksRequest; -import com.google.analytics.admin.v1alpha.AuditUserLinksResponse; import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest; import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse; -import com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; import com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest; -import com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest; import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse; -import com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse; import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest; import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse; -import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; import com.google.analytics.admin.v1alpha.BigQueryLink; import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.ChannelGroup; @@ -91,11 +81,17 @@ 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.CreateRollupPropertyRequest; +import com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse; +import com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest; import com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest; -import com.google.analytics.admin.v1alpha.CreateUserLinkRequest; +import com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest; +import com.google.analytics.admin.v1alpha.CreateSubpropertyRequest; +import com.google.analytics.admin.v1alpha.CreateSubpropertyResponse; import com.google.analytics.admin.v1alpha.CustomDimension; import com.google.analytics.admin.v1alpha.CustomMetric; +import com.google.analytics.admin.v1alpha.DataRedactionSettings; import com.google.analytics.admin.v1alpha.DataRetentionSettings; import com.google.analytics.admin.v1alpha.DataSharingSettings; import com.google.analytics.admin.v1alpha.DataStream; @@ -114,9 +110,10 @@ import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.DeletePropertyRequest; +import com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest; import com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest; -import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; +import com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; import com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings; @@ -137,6 +134,7 @@ 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.GetDataRedactionSettingsRequest; import com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; import com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; import com.google.analytics.admin.v1alpha.GetDataStreamRequest; @@ -149,9 +147,9 @@ import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.GetPropertyRequest; +import com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest; import com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest; -import com.google.analytics.admin.v1alpha.GetUserLinkRequest; import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; @@ -195,16 +193,17 @@ 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.ListRollupPropertySourceLinksRequest; +import com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse; import com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest; import com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse; import com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest; import com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse; -import com.google.analytics.admin.v1alpha.ListUserLinksRequest; -import com.google.analytics.admin.v1alpha.ListUserLinksResponse; 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; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLink; import com.google.analytics.admin.v1alpha.RunAccessReportRequest; import com.google.analytics.admin.v1alpha.RunAccessReportResponse; import com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema; @@ -213,6 +212,7 @@ import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest; import com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; import com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; import com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; @@ -221,6 +221,7 @@ import com.google.analytics.admin.v1alpha.UpdateConversionEventRequest; import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest; +import com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; @@ -233,8 +234,6 @@ import com.google.analytics.admin.v1alpha.UpdatePropertyRequest; import com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; -import com.google.analytics.admin.v1alpha.UpdateUserLinkRequest; -import com.google.analytics.admin.v1alpha.UserLink; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; @@ -311,59 +310,6 @@ public UnaryCallable updatePropertyCallable() { throw new UnsupportedOperationException("Not implemented: updatePropertyCallable()"); } - public UnaryCallable getUserLinkCallable() { - throw new UnsupportedOperationException("Not implemented: getUserLinkCallable()"); - } - - public UnaryCallable - batchGetUserLinksCallable() { - throw new UnsupportedOperationException("Not implemented: batchGetUserLinksCallable()"); - } - - public UnaryCallable - listUserLinksPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listUserLinksPagedCallable()"); - } - - public UnaryCallable listUserLinksCallable() { - throw new UnsupportedOperationException("Not implemented: listUserLinksCallable()"); - } - - public UnaryCallable - auditUserLinksPagedCallable() { - throw new UnsupportedOperationException("Not implemented: auditUserLinksPagedCallable()"); - } - - public UnaryCallable auditUserLinksCallable() { - throw new UnsupportedOperationException("Not implemented: auditUserLinksCallable()"); - } - - public UnaryCallable createUserLinkCallable() { - throw new UnsupportedOperationException("Not implemented: createUserLinkCallable()"); - } - - public UnaryCallable - batchCreateUserLinksCallable() { - throw new UnsupportedOperationException("Not implemented: batchCreateUserLinksCallable()"); - } - - public UnaryCallable updateUserLinkCallable() { - throw new UnsupportedOperationException("Not implemented: updateUserLinkCallable()"); - } - - public UnaryCallable - batchUpdateUserLinksCallable() { - throw new UnsupportedOperationException("Not implemented: batchUpdateUserLinksCallable()"); - } - - public UnaryCallable deleteUserLinkCallable() { - throw new UnsupportedOperationException("Not implemented: deleteUserLinkCallable()"); - } - - public UnaryCallable batchDeleteUserLinksCallable() { - throw new UnsupportedOperationException("Not implemented: batchDeleteUserLinksCallable()"); - } - public UnaryCallable createFirebaseLinkCallable() { throw new UnsupportedOperationException("Not implemented: createFirebaseLinkCallable()"); } @@ -1006,6 +952,70 @@ public UnaryCallable deleteEventCreateRuleC throw new UnsupportedOperationException("Not implemented: deleteEventCreateRuleCallable()"); } + public UnaryCallable + updateDataRedactionSettingsCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateDataRedactionSettingsCallable()"); + } + + public UnaryCallable + getDataRedactionSettingsCallable() { + throw new UnsupportedOperationException("Not implemented: getDataRedactionSettingsCallable()"); + } + + public UnaryCallable + createRollupPropertyCallable() { + throw new UnsupportedOperationException("Not implemented: createRollupPropertyCallable()"); + } + + public UnaryCallable + getRollupPropertySourceLinkCallable() { + throw new UnsupportedOperationException( + "Not implemented: getRollupPropertySourceLinkCallable()"); + } + + public UnaryCallable< + ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksPagedResponse> + listRollupPropertySourceLinksPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listRollupPropertySourceLinksPagedCallable()"); + } + + public UnaryCallable + listRollupPropertySourceLinksCallable() { + throw new UnsupportedOperationException( + "Not implemented: listRollupPropertySourceLinksCallable()"); + } + + public UnaryCallable + createRollupPropertySourceLinkCallable() { + throw new UnsupportedOperationException( + "Not implemented: createRollupPropertySourceLinkCallable()"); + } + + public UnaryCallable + deleteRollupPropertySourceLinkCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteRollupPropertySourceLinkCallable()"); + } + + public UnaryCallable + createSubpropertyCallable() { + throw new UnsupportedOperationException("Not implemented: createSubpropertyCallable()"); + } + + public UnaryCallable + deleteSubpropertyEventFilterCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteSubpropertyEventFilterCallable()"); + } + + public UnaryCallable + createSubpropertyEventFilterCallable() { + throw new UnsupportedOperationException( + "Not implemented: createSubpropertyEventFilterCallable()"); + } + @Override public abstract void close(); } diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java index bcd1c037d9ee..bb2c83b04d03 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java @@ -16,7 +16,6 @@ package com.google.analytics.admin.v1alpha.stub; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; @@ -36,9 +35,9 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; 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.ListRollupPropertySourceLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListSKAdNetworkConversionValueSchemasPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListSearchAds360LinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.AccessBinding; @@ -54,23 +53,13 @@ import com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; import com.google.analytics.admin.v1alpha.AttributionSettings; import com.google.analytics.admin.v1alpha.Audience; -import com.google.analytics.admin.v1alpha.AuditUserLink; -import com.google.analytics.admin.v1alpha.AuditUserLinksRequest; -import com.google.analytics.admin.v1alpha.AuditUserLinksResponse; import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest; import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse; -import com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; import com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest; -import com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest; import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse; -import com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse; import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest; import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse; -import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; import com.google.analytics.admin.v1alpha.BigQueryLink; import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.ChangeHistoryEvent; @@ -94,11 +83,17 @@ 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.CreateRollupPropertyRequest; +import com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse; +import com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest; import com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest; -import com.google.analytics.admin.v1alpha.CreateUserLinkRequest; +import com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest; +import com.google.analytics.admin.v1alpha.CreateSubpropertyRequest; +import com.google.analytics.admin.v1alpha.CreateSubpropertyResponse; import com.google.analytics.admin.v1alpha.CustomDimension; import com.google.analytics.admin.v1alpha.CustomMetric; +import com.google.analytics.admin.v1alpha.DataRedactionSettings; import com.google.analytics.admin.v1alpha.DataRetentionSettings; import com.google.analytics.admin.v1alpha.DataSharingSettings; import com.google.analytics.admin.v1alpha.DataStream; @@ -117,9 +112,10 @@ import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.DeletePropertyRequest; +import com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest; import com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest; -import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; +import com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; import com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings; @@ -140,6 +136,7 @@ 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.GetDataRedactionSettingsRequest; import com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; import com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; import com.google.analytics.admin.v1alpha.GetDataStreamRequest; @@ -152,9 +149,9 @@ import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.GetPropertyRequest; +import com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest; import com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest; -import com.google.analytics.admin.v1alpha.GetUserLinkRequest; import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; @@ -198,16 +195,17 @@ 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.ListRollupPropertySourceLinksRequest; +import com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse; import com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest; import com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse; import com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest; import com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse; -import com.google.analytics.admin.v1alpha.ListUserLinksRequest; -import com.google.analytics.admin.v1alpha.ListUserLinksResponse; 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; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLink; import com.google.analytics.admin.v1alpha.RunAccessReportRequest; import com.google.analytics.admin.v1alpha.RunAccessReportResponse; import com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema; @@ -216,6 +214,7 @@ import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest; import com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; import com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; import com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; @@ -224,6 +223,7 @@ import com.google.analytics.admin.v1alpha.UpdateConversionEventRequest; import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest; +import com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; @@ -236,8 +236,6 @@ import com.google.analytics.admin.v1alpha.UpdatePropertyRequest; import com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; -import com.google.analytics.admin.v1alpha.UpdateUserLinkRequest; -import com.google.analytics.admin.v1alpha.UserLink; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.BetaApi; @@ -345,23 +343,6 @@ public class AnalyticsAdminServiceStubSettings private final UnaryCallSettings createPropertySettings; private final UnaryCallSettings deletePropertySettings; private final UnaryCallSettings updatePropertySettings; - private final UnaryCallSettings getUserLinkSettings; - private final UnaryCallSettings - batchGetUserLinksSettings; - private final PagedCallSettings< - ListUserLinksRequest, ListUserLinksResponse, ListUserLinksPagedResponse> - listUserLinksSettings; - private final PagedCallSettings< - AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLinksPagedResponse> - auditUserLinksSettings; - private final UnaryCallSettings createUserLinkSettings; - private final UnaryCallSettings - batchCreateUserLinksSettings; - private final UnaryCallSettings updateUserLinkSettings; - private final UnaryCallSettings - batchUpdateUserLinksSettings; - private final UnaryCallSettings deleteUserLinkSettings; - private final UnaryCallSettings batchDeleteUserLinksSettings; private final UnaryCallSettings createFirebaseLinkSettings; private final UnaryCallSettings deleteFirebaseLinkSettings; @@ -613,6 +594,29 @@ public class AnalyticsAdminServiceStubSettings updateEventCreateRuleSettings; private final UnaryCallSettings deleteEventCreateRuleSettings; + private final UnaryCallSettings + updateDataRedactionSettingsSettings; + private final UnaryCallSettings + getDataRedactionSettingsSettings; + private final UnaryCallSettings + createRollupPropertySettings; + private final UnaryCallSettings + getRollupPropertySourceLinkSettings; + private final PagedCallSettings< + ListRollupPropertySourceLinksRequest, + ListRollupPropertySourceLinksResponse, + ListRollupPropertySourceLinksPagedResponse> + listRollupPropertySourceLinksSettings; + private final UnaryCallSettings + createRollupPropertySourceLinkSettings; + private final UnaryCallSettings + deleteRollupPropertySourceLinkSettings; + private final UnaryCallSettings + createSubpropertySettings; + private final UnaryCallSettings + deleteSubpropertyEventFilterSettings; + private final UnaryCallSettings + createSubpropertyEventFilterSettings; private static final PagedListDescriptor LIST_ACCOUNTS_PAGE_STR_DESC = @@ -727,80 +731,6 @@ public Iterable extractResources(ListPropertiesResponse payload) { } }; - private static final PagedListDescriptor - LIST_USER_LINKS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListUserLinksRequest injectToken(ListUserLinksRequest payload, String token) { - return ListUserLinksRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListUserLinksRequest injectPageSize(ListUserLinksRequest payload, int pageSize) { - return ListUserLinksRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListUserLinksRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListUserLinksResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListUserLinksResponse payload) { - return payload.getUserLinksList() == null - ? ImmutableList.of() - : payload.getUserLinksList(); - } - }; - - private static final PagedListDescriptor< - AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLink> - AUDIT_USER_LINKS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public AuditUserLinksRequest injectToken(AuditUserLinksRequest payload, String token) { - return AuditUserLinksRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public AuditUserLinksRequest injectPageSize( - AuditUserLinksRequest payload, int pageSize) { - return AuditUserLinksRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(AuditUserLinksRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(AuditUserLinksResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(AuditUserLinksResponse payload) { - return payload.getUserLinksList() == null - ? ImmutableList.of() - : payload.getUserLinksList(); - } - }; - private static final PagedListDescriptor< ListFirebaseLinksRequest, ListFirebaseLinksResponse, FirebaseLink> LIST_FIREBASE_LINKS_PAGE_STR_DESC = @@ -1606,6 +1536,55 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + ListRollupPropertySourceLinksRequest, + ListRollupPropertySourceLinksResponse, + RollupPropertySourceLink> + LIST_ROLLUP_PROPERTY_SOURCE_LINKS_PAGE_STR_DESC = + new PagedListDescriptor< + ListRollupPropertySourceLinksRequest, + ListRollupPropertySourceLinksResponse, + RollupPropertySourceLink>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListRollupPropertySourceLinksRequest injectToken( + ListRollupPropertySourceLinksRequest payload, String token) { + return ListRollupPropertySourceLinksRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListRollupPropertySourceLinksRequest injectPageSize( + ListRollupPropertySourceLinksRequest payload, int pageSize) { + return ListRollupPropertySourceLinksRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListRollupPropertySourceLinksRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListRollupPropertySourceLinksResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListRollupPropertySourceLinksResponse payload) { + return payload.getRollupPropertySourceLinksList() == null + ? ImmutableList.of() + : payload.getRollupPropertySourceLinksList(); + } + }; + private static final PagedListResponseFactory< ListAccountsRequest, ListAccountsResponse, ListAccountsPagedResponse> LIST_ACCOUNTS_PAGE_STR_FACT = @@ -1663,42 +1642,6 @@ public ApiFuture getFuturePagedResponse( } }; - private static final PagedListResponseFactory< - ListUserLinksRequest, ListUserLinksResponse, ListUserLinksPagedResponse> - LIST_USER_LINKS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListUserLinksRequest, ListUserLinksResponse, ListUserLinksPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListUserLinksRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_USER_LINKS_PAGE_STR_DESC, request, context); - return ListUserLinksPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLinksPagedResponse> - AUDIT_USER_LINKS_PAGE_STR_FACT = - new PagedListResponseFactory< - AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLinksPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - AuditUserLinksRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, AUDIT_USER_LINKS_PAGE_STR_DESC, request, context); - return AuditUserLinksPagedResponse.createAsync(pageContext, futureResponse); - } - }; - private static final PagedListResponseFactory< ListFirebaseLinksRequest, ListFirebaseLinksResponse, ListFirebaseLinksPagedResponse> LIST_FIREBASE_LINKS_PAGE_STR_FACT = @@ -2161,6 +2104,38 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListRollupPropertySourceLinksRequest, + ListRollupPropertySourceLinksResponse, + ListRollupPropertySourceLinksPagedResponse> + LIST_ROLLUP_PROPERTY_SOURCE_LINKS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListRollupPropertySourceLinksRequest, + ListRollupPropertySourceLinksResponse, + ListRollupPropertySourceLinksPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksResponse> + callable, + ListRollupPropertySourceLinksRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListRollupPropertySourceLinksRequest, + ListRollupPropertySourceLinksResponse, + RollupPropertySourceLink> + pageContext = + PageContext.create( + callable, + LIST_ROLLUP_PROPERTY_SOURCE_LINKS_PAGE_STR_DESC, + request, + context); + return ListRollupPropertySourceLinksPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to getAccount. */ public UnaryCallSettings getAccountSettings() { return getAccountSettings; @@ -2224,62 +2199,6 @@ public UnaryCallSettings updatePropertySettings return updatePropertySettings; } - /** Returns the object with the settings used for calls to getUserLink. */ - public UnaryCallSettings getUserLinkSettings() { - return getUserLinkSettings; - } - - /** Returns the object with the settings used for calls to batchGetUserLinks. */ - public UnaryCallSettings - batchGetUserLinksSettings() { - return batchGetUserLinksSettings; - } - - /** Returns the object with the settings used for calls to listUserLinks. */ - public PagedCallSettings - listUserLinksSettings() { - return listUserLinksSettings; - } - - /** Returns the object with the settings used for calls to auditUserLinks. */ - public PagedCallSettings< - AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLinksPagedResponse> - auditUserLinksSettings() { - return auditUserLinksSettings; - } - - /** Returns the object with the settings used for calls to createUserLink. */ - public UnaryCallSettings createUserLinkSettings() { - return createUserLinkSettings; - } - - /** Returns the object with the settings used for calls to batchCreateUserLinks. */ - public UnaryCallSettings - batchCreateUserLinksSettings() { - return batchCreateUserLinksSettings; - } - - /** Returns the object with the settings used for calls to updateUserLink. */ - public UnaryCallSettings updateUserLinkSettings() { - return updateUserLinkSettings; - } - - /** Returns the object with the settings used for calls to batchUpdateUserLinks. */ - public UnaryCallSettings - batchUpdateUserLinksSettings() { - return batchUpdateUserLinksSettings; - } - - /** Returns the object with the settings used for calls to deleteUserLink. */ - public UnaryCallSettings deleteUserLinkSettings() { - return deleteUserLinkSettings; - } - - /** Returns the object with the settings used for calls to batchDeleteUserLinks. */ - public UnaryCallSettings batchDeleteUserLinksSettings() { - return batchDeleteUserLinksSettings; - } - /** Returns the object with the settings used for calls to createFirebaseLink. */ public UnaryCallSettings createFirebaseLinkSettings() { return createFirebaseLinkSettings; @@ -2969,6 +2888,69 @@ public UnaryCallSettings deleteEventCreateR return deleteEventCreateRuleSettings; } + /** Returns the object with the settings used for calls to updateDataRedactionSettings. */ + public UnaryCallSettings + updateDataRedactionSettingsSettings() { + return updateDataRedactionSettingsSettings; + } + + /** Returns the object with the settings used for calls to getDataRedactionSettings. */ + public UnaryCallSettings + getDataRedactionSettingsSettings() { + return getDataRedactionSettingsSettings; + } + + /** Returns the object with the settings used for calls to createRollupProperty. */ + public UnaryCallSettings + createRollupPropertySettings() { + return createRollupPropertySettings; + } + + /** Returns the object with the settings used for calls to getRollupPropertySourceLink. */ + public UnaryCallSettings + getRollupPropertySourceLinkSettings() { + return getRollupPropertySourceLinkSettings; + } + + /** Returns the object with the settings used for calls to listRollupPropertySourceLinks. */ + public PagedCallSettings< + ListRollupPropertySourceLinksRequest, + ListRollupPropertySourceLinksResponse, + ListRollupPropertySourceLinksPagedResponse> + listRollupPropertySourceLinksSettings() { + return listRollupPropertySourceLinksSettings; + } + + /** Returns the object with the settings used for calls to createRollupPropertySourceLink. */ + public UnaryCallSettings + createRollupPropertySourceLinkSettings() { + return createRollupPropertySourceLinkSettings; + } + + /** Returns the object with the settings used for calls to deleteRollupPropertySourceLink. */ + public UnaryCallSettings + deleteRollupPropertySourceLinkSettings() { + return deleteRollupPropertySourceLinkSettings; + } + + /** Returns the object with the settings used for calls to createSubproperty. */ + public UnaryCallSettings + createSubpropertySettings() { + return createSubpropertySettings; + } + + /** Returns the object with the settings used for calls to deleteSubpropertyEventFilter. */ + public UnaryCallSettings + deleteSubpropertyEventFilterSettings() { + return deleteSubpropertyEventFilterSettings; + } + + /** Returns the object with the settings used for calls to createSubpropertyEventFilter. */ + public UnaryCallSettings + createSubpropertyEventFilterSettings() { + return createSubpropertyEventFilterSettings; + } + public AnalyticsAdminServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -3086,16 +3068,6 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx createPropertySettings = settingsBuilder.createPropertySettings().build(); deletePropertySettings = settingsBuilder.deletePropertySettings().build(); updatePropertySettings = settingsBuilder.updatePropertySettings().build(); - getUserLinkSettings = settingsBuilder.getUserLinkSettings().build(); - batchGetUserLinksSettings = settingsBuilder.batchGetUserLinksSettings().build(); - listUserLinksSettings = settingsBuilder.listUserLinksSettings().build(); - auditUserLinksSettings = settingsBuilder.auditUserLinksSettings().build(); - createUserLinkSettings = settingsBuilder.createUserLinkSettings().build(); - batchCreateUserLinksSettings = settingsBuilder.batchCreateUserLinksSettings().build(); - updateUserLinkSettings = settingsBuilder.updateUserLinkSettings().build(); - batchUpdateUserLinksSettings = settingsBuilder.batchUpdateUserLinksSettings().build(); - deleteUserLinkSettings = settingsBuilder.deleteUserLinkSettings().build(); - batchDeleteUserLinksSettings = settingsBuilder.batchDeleteUserLinksSettings().build(); createFirebaseLinkSettings = settingsBuilder.createFirebaseLinkSettings().build(); deleteFirebaseLinkSettings = settingsBuilder.deleteFirebaseLinkSettings().build(); listFirebaseLinksSettings = settingsBuilder.listFirebaseLinksSettings().build(); @@ -3231,6 +3203,23 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx createEventCreateRuleSettings = settingsBuilder.createEventCreateRuleSettings().build(); updateEventCreateRuleSettings = settingsBuilder.updateEventCreateRuleSettings().build(); deleteEventCreateRuleSettings = settingsBuilder.deleteEventCreateRuleSettings().build(); + updateDataRedactionSettingsSettings = + settingsBuilder.updateDataRedactionSettingsSettings().build(); + getDataRedactionSettingsSettings = settingsBuilder.getDataRedactionSettingsSettings().build(); + createRollupPropertySettings = settingsBuilder.createRollupPropertySettings().build(); + getRollupPropertySourceLinkSettings = + settingsBuilder.getRollupPropertySourceLinkSettings().build(); + listRollupPropertySourceLinksSettings = + settingsBuilder.listRollupPropertySourceLinksSettings().build(); + createRollupPropertySourceLinkSettings = + settingsBuilder.createRollupPropertySourceLinkSettings().build(); + deleteRollupPropertySourceLinkSettings = + settingsBuilder.deleteRollupPropertySourceLinkSettings().build(); + createSubpropertySettings = settingsBuilder.createSubpropertySettings().build(); + deleteSubpropertyEventFilterSettings = + settingsBuilder.deleteSubpropertyEventFilterSettings().build(); + createSubpropertyEventFilterSettings = + settingsBuilder.createSubpropertyEventFilterSettings().build(); } /** Builder for AnalyticsAdminServiceStubSettings. */ @@ -3258,26 +3247,6 @@ public static class Builder private final UnaryCallSettings.Builder createPropertySettings; private final UnaryCallSettings.Builder deletePropertySettings; private final UnaryCallSettings.Builder updatePropertySettings; - private final UnaryCallSettings.Builder getUserLinkSettings; - private final UnaryCallSettings.Builder - batchGetUserLinksSettings; - private final PagedCallSettings.Builder< - ListUserLinksRequest, ListUserLinksResponse, ListUserLinksPagedResponse> - listUserLinksSettings; - private final PagedCallSettings.Builder< - AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLinksPagedResponse> - auditUserLinksSettings; - private final UnaryCallSettings.Builder createUserLinkSettings; - private final UnaryCallSettings.Builder< - BatchCreateUserLinksRequest, BatchCreateUserLinksResponse> - batchCreateUserLinksSettings; - private final UnaryCallSettings.Builder updateUserLinkSettings; - private final UnaryCallSettings.Builder< - BatchUpdateUserLinksRequest, BatchUpdateUserLinksResponse> - batchUpdateUserLinksSettings; - private final UnaryCallSettings.Builder deleteUserLinkSettings; - private final UnaryCallSettings.Builder - batchDeleteUserLinksSettings; private final UnaryCallSettings.Builder createFirebaseLinkSettings; private final UnaryCallSettings.Builder @@ -3557,6 +3526,34 @@ public static class Builder updateEventCreateRuleSettings; private final UnaryCallSettings.Builder deleteEventCreateRuleSettings; + private final UnaryCallSettings.Builder< + UpdateDataRedactionSettingsRequest, DataRedactionSettings> + updateDataRedactionSettingsSettings; + private final UnaryCallSettings.Builder + getDataRedactionSettingsSettings; + private final UnaryCallSettings.Builder< + CreateRollupPropertyRequest, CreateRollupPropertyResponse> + createRollupPropertySettings; + private final UnaryCallSettings.Builder< + GetRollupPropertySourceLinkRequest, RollupPropertySourceLink> + getRollupPropertySourceLinkSettings; + private final PagedCallSettings.Builder< + ListRollupPropertySourceLinksRequest, + ListRollupPropertySourceLinksResponse, + ListRollupPropertySourceLinksPagedResponse> + listRollupPropertySourceLinksSettings; + private final UnaryCallSettings.Builder< + CreateRollupPropertySourceLinkRequest, RollupPropertySourceLink> + createRollupPropertySourceLinkSettings; + private final UnaryCallSettings.Builder + deleteRollupPropertySourceLinkSettings; + private final UnaryCallSettings.Builder + createSubpropertySettings; + private final UnaryCallSettings.Builder + deleteSubpropertyEventFilterSettings; + private final UnaryCallSettings.Builder< + CreateSubpropertyEventFilterRequest, SubpropertyEventFilter> + createSubpropertyEventFilterSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -3619,16 +3616,6 @@ protected Builder(ClientContext clientContext) { createPropertySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deletePropertySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updatePropertySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getUserLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - batchGetUserLinksSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listUserLinksSettings = PagedCallSettings.newBuilder(LIST_USER_LINKS_PAGE_STR_FACT); - auditUserLinksSettings = PagedCallSettings.newBuilder(AUDIT_USER_LINKS_PAGE_STR_FACT); - createUserLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - batchCreateUserLinksSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateUserLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - batchUpdateUserLinksSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteUserLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - batchDeleteUserLinksSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createFirebaseLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteFirebaseLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listFirebaseLinksSettings = PagedCallSettings.newBuilder(LIST_FIREBASE_LINKS_PAGE_STR_FACT); @@ -3757,6 +3744,17 @@ protected Builder(ClientContext clientContext) { createEventCreateRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateEventCreateRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteEventCreateRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateDataRedactionSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getDataRedactionSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createRollupPropertySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getRollupPropertySourceLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listRollupPropertySourceLinksSettings = + PagedCallSettings.newBuilder(LIST_ROLLUP_PROPERTY_SOURCE_LINKS_PAGE_STR_FACT); + createRollupPropertySourceLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteRollupPropertySourceLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createSubpropertySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteSubpropertyEventFilterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createSubpropertyEventFilterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -3771,16 +3769,6 @@ protected Builder(ClientContext clientContext) { createPropertySettings, deletePropertySettings, updatePropertySettings, - getUserLinkSettings, - batchGetUserLinksSettings, - listUserLinksSettings, - auditUserLinksSettings, - createUserLinkSettings, - batchCreateUserLinksSettings, - updateUserLinkSettings, - batchUpdateUserLinksSettings, - deleteUserLinkSettings, - batchDeleteUserLinksSettings, createFirebaseLinkSettings, deleteFirebaseLinkSettings, listFirebaseLinksSettings, @@ -3887,7 +3875,17 @@ protected Builder(ClientContext clientContext) { listEventCreateRulesSettings, createEventCreateRuleSettings, updateEventCreateRuleSettings, - deleteEventCreateRuleSettings); + deleteEventCreateRuleSettings, + updateDataRedactionSettingsSettings, + getDataRedactionSettingsSettings, + createRollupPropertySettings, + getRollupPropertySourceLinkSettings, + listRollupPropertySourceLinksSettings, + createRollupPropertySourceLinkSettings, + deleteRollupPropertySourceLinkSettings, + createSubpropertySettings, + deleteSubpropertyEventFilterSettings, + createSubpropertyEventFilterSettings); initDefaults(this); } @@ -3905,16 +3903,6 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { createPropertySettings = settings.createPropertySettings.toBuilder(); deletePropertySettings = settings.deletePropertySettings.toBuilder(); updatePropertySettings = settings.updatePropertySettings.toBuilder(); - getUserLinkSettings = settings.getUserLinkSettings.toBuilder(); - batchGetUserLinksSettings = settings.batchGetUserLinksSettings.toBuilder(); - listUserLinksSettings = settings.listUserLinksSettings.toBuilder(); - auditUserLinksSettings = settings.auditUserLinksSettings.toBuilder(); - createUserLinkSettings = settings.createUserLinkSettings.toBuilder(); - batchCreateUserLinksSettings = settings.batchCreateUserLinksSettings.toBuilder(); - updateUserLinkSettings = settings.updateUserLinkSettings.toBuilder(); - batchUpdateUserLinksSettings = settings.batchUpdateUserLinksSettings.toBuilder(); - deleteUserLinkSettings = settings.deleteUserLinkSettings.toBuilder(); - batchDeleteUserLinksSettings = settings.batchDeleteUserLinksSettings.toBuilder(); createFirebaseLinkSettings = settings.createFirebaseLinkSettings.toBuilder(); deleteFirebaseLinkSettings = settings.deleteFirebaseLinkSettings.toBuilder(); listFirebaseLinksSettings = settings.listFirebaseLinksSettings.toBuilder(); @@ -4050,6 +4038,23 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { createEventCreateRuleSettings = settings.createEventCreateRuleSettings.toBuilder(); updateEventCreateRuleSettings = settings.updateEventCreateRuleSettings.toBuilder(); deleteEventCreateRuleSettings = settings.deleteEventCreateRuleSettings.toBuilder(); + updateDataRedactionSettingsSettings = + settings.updateDataRedactionSettingsSettings.toBuilder(); + getDataRedactionSettingsSettings = settings.getDataRedactionSettingsSettings.toBuilder(); + createRollupPropertySettings = settings.createRollupPropertySettings.toBuilder(); + getRollupPropertySourceLinkSettings = + settings.getRollupPropertySourceLinkSettings.toBuilder(); + listRollupPropertySourceLinksSettings = + settings.listRollupPropertySourceLinksSettings.toBuilder(); + createRollupPropertySourceLinkSettings = + settings.createRollupPropertySourceLinkSettings.toBuilder(); + deleteRollupPropertySourceLinkSettings = + settings.deleteRollupPropertySourceLinkSettings.toBuilder(); + createSubpropertySettings = settings.createSubpropertySettings.toBuilder(); + deleteSubpropertyEventFilterSettings = + settings.deleteSubpropertyEventFilterSettings.toBuilder(); + createSubpropertyEventFilterSettings = + settings.createSubpropertyEventFilterSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -4064,16 +4069,6 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { createPropertySettings, deletePropertySettings, updatePropertySettings, - getUserLinkSettings, - batchGetUserLinksSettings, - listUserLinksSettings, - auditUserLinksSettings, - createUserLinkSettings, - batchCreateUserLinksSettings, - updateUserLinkSettings, - batchUpdateUserLinksSettings, - deleteUserLinkSettings, - batchDeleteUserLinksSettings, createFirebaseLinkSettings, deleteFirebaseLinkSettings, listFirebaseLinksSettings, @@ -4180,7 +4175,17 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { listEventCreateRulesSettings, createEventCreateRuleSettings, updateEventCreateRuleSettings, - deleteEventCreateRuleSettings); + deleteEventCreateRuleSettings, + updateDataRedactionSettingsSettings, + getDataRedactionSettingsSettings, + createRollupPropertySettings, + getRollupPropertySourceLinkSettings, + listRollupPropertySourceLinksSettings, + createRollupPropertySourceLinkSettings, + deleteRollupPropertySourceLinkSettings, + createSubpropertySettings, + deleteSubpropertyEventFilterSettings, + createSubpropertyEventFilterSettings); } private static Builder createDefault() { @@ -4265,56 +4270,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 - .getUserLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .batchGetUserLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .listUserLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .auditUserLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .createUserLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .batchCreateUserLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .updateUserLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .batchUpdateUserLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .deleteUserLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .batchDeleteUserLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - builder .createFirebaseLinkSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -4850,6 +4805,56 @@ 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 + .updateDataRedactionSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getDataRedactionSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createRollupPropertySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getRollupPropertySourceLinkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listRollupPropertySourceLinksSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createRollupPropertySourceLinkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteRollupPropertySourceLinkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createSubpropertySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteSubpropertyEventFilterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createSubpropertyEventFilterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + return builder; } @@ -4932,64 +4937,6 @@ public UnaryCallSettings.Builder updateProperty return updatePropertySettings; } - /** Returns the builder for the settings used for calls to getUserLink. */ - public UnaryCallSettings.Builder getUserLinkSettings() { - return getUserLinkSettings; - } - - /** Returns the builder for the settings used for calls to batchGetUserLinks. */ - public UnaryCallSettings.Builder - batchGetUserLinksSettings() { - return batchGetUserLinksSettings; - } - - /** Returns the builder for the settings used for calls to listUserLinks. */ - public PagedCallSettings.Builder< - ListUserLinksRequest, ListUserLinksResponse, ListUserLinksPagedResponse> - listUserLinksSettings() { - return listUserLinksSettings; - } - - /** Returns the builder for the settings used for calls to auditUserLinks. */ - public PagedCallSettings.Builder< - AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLinksPagedResponse> - auditUserLinksSettings() { - return auditUserLinksSettings; - } - - /** Returns the builder for the settings used for calls to createUserLink. */ - public UnaryCallSettings.Builder createUserLinkSettings() { - return createUserLinkSettings; - } - - /** Returns the builder for the settings used for calls to batchCreateUserLinks. */ - public UnaryCallSettings.Builder - batchCreateUserLinksSettings() { - return batchCreateUserLinksSettings; - } - - /** Returns the builder for the settings used for calls to updateUserLink. */ - public UnaryCallSettings.Builder updateUserLinkSettings() { - return updateUserLinkSettings; - } - - /** Returns the builder for the settings used for calls to batchUpdateUserLinks. */ - public UnaryCallSettings.Builder - batchUpdateUserLinksSettings() { - return batchUpdateUserLinksSettings; - } - - /** Returns the builder for the settings used for calls to deleteUserLink. */ - public UnaryCallSettings.Builder deleteUserLinkSettings() { - return deleteUserLinkSettings; - } - - /** Returns the builder for the settings used for calls to batchDeleteUserLinks. */ - public UnaryCallSettings.Builder - batchDeleteUserLinksSettings() { - return batchDeleteUserLinksSettings; - } - /** Returns the builder for the settings used for calls to createFirebaseLink. */ public UnaryCallSettings.Builder createFirebaseLinkSettings() { @@ -5730,6 +5677,70 @@ public UnaryCallSettings.Builder deleteAdSenseL return deleteEventCreateRuleSettings; } + /** Returns the builder for the settings used for calls to updateDataRedactionSettings. */ + public UnaryCallSettings.Builder + updateDataRedactionSettingsSettings() { + return updateDataRedactionSettingsSettings; + } + + /** Returns the builder for the settings used for calls to getDataRedactionSettings. */ + public UnaryCallSettings.Builder + getDataRedactionSettingsSettings() { + return getDataRedactionSettingsSettings; + } + + /** Returns the builder for the settings used for calls to createRollupProperty. */ + public UnaryCallSettings.Builder + createRollupPropertySettings() { + return createRollupPropertySettings; + } + + /** Returns the builder for the settings used for calls to getRollupPropertySourceLink. */ + public UnaryCallSettings.Builder + getRollupPropertySourceLinkSettings() { + return getRollupPropertySourceLinkSettings; + } + + /** Returns the builder for the settings used for calls to listRollupPropertySourceLinks. */ + public PagedCallSettings.Builder< + ListRollupPropertySourceLinksRequest, + ListRollupPropertySourceLinksResponse, + ListRollupPropertySourceLinksPagedResponse> + listRollupPropertySourceLinksSettings() { + return listRollupPropertySourceLinksSettings; + } + + /** Returns the builder for the settings used for calls to createRollupPropertySourceLink. */ + public UnaryCallSettings.Builder< + CreateRollupPropertySourceLinkRequest, RollupPropertySourceLink> + createRollupPropertySourceLinkSettings() { + return createRollupPropertySourceLinkSettings; + } + + /** Returns the builder for the settings used for calls to deleteRollupPropertySourceLink. */ + public UnaryCallSettings.Builder + deleteRollupPropertySourceLinkSettings() { + return deleteRollupPropertySourceLinkSettings; + } + + /** Returns the builder for the settings used for calls to createSubproperty. */ + public UnaryCallSettings.Builder + createSubpropertySettings() { + return createSubpropertySettings; + } + + /** Returns the builder for the settings used for calls to deleteSubpropertyEventFilter. */ + public UnaryCallSettings.Builder + deleteSubpropertyEventFilterSettings() { + return deleteSubpropertyEventFilterSettings; + } + + /** Returns the builder for the settings used for calls to createSubpropertyEventFilter. */ + public UnaryCallSettings.Builder + createSubpropertyEventFilterSettings() { + return createSubpropertyEventFilterSettings; + } + @Override public AnalyticsAdminServiceStubSettings build() throws IOException { return new AnalyticsAdminServiceStubSettings(this); diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java index f9b5cddb044c..e455c375570f 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java @@ -16,7 +16,6 @@ package com.google.analytics.admin.v1alpha.stub; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; @@ -36,9 +35,9 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; 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.ListRollupPropertySourceLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListSKAdNetworkConversionValueSchemasPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListSearchAds360LinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.AccessBinding; @@ -53,22 +52,13 @@ import com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; import com.google.analytics.admin.v1alpha.AttributionSettings; import com.google.analytics.admin.v1alpha.Audience; -import com.google.analytics.admin.v1alpha.AuditUserLinksRequest; -import com.google.analytics.admin.v1alpha.AuditUserLinksResponse; import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest; import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse; -import com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; import com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest; -import com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest; import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse; -import com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse; import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest; import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse; -import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; import com.google.analytics.admin.v1alpha.BigQueryLink; import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.ChannelGroup; @@ -91,11 +81,17 @@ 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.CreateRollupPropertyRequest; +import com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse; +import com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest; import com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest; -import com.google.analytics.admin.v1alpha.CreateUserLinkRequest; +import com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest; +import com.google.analytics.admin.v1alpha.CreateSubpropertyRequest; +import com.google.analytics.admin.v1alpha.CreateSubpropertyResponse; import com.google.analytics.admin.v1alpha.CustomDimension; import com.google.analytics.admin.v1alpha.CustomMetric; +import com.google.analytics.admin.v1alpha.DataRedactionSettings; import com.google.analytics.admin.v1alpha.DataRetentionSettings; import com.google.analytics.admin.v1alpha.DataSharingSettings; import com.google.analytics.admin.v1alpha.DataStream; @@ -114,9 +110,10 @@ import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.DeletePropertyRequest; +import com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest; import com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest; -import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; +import com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; import com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings; @@ -137,6 +134,7 @@ 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.GetDataRedactionSettingsRequest; import com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; import com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; import com.google.analytics.admin.v1alpha.GetDataStreamRequest; @@ -149,9 +147,9 @@ import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.GetPropertyRequest; +import com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest; import com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest; -import com.google.analytics.admin.v1alpha.GetUserLinkRequest; import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; @@ -195,16 +193,17 @@ 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.ListRollupPropertySourceLinksRequest; +import com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse; import com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest; import com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse; import com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest; import com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse; -import com.google.analytics.admin.v1alpha.ListUserLinksRequest; -import com.google.analytics.admin.v1alpha.ListUserLinksResponse; 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; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLink; import com.google.analytics.admin.v1alpha.RunAccessReportRequest; import com.google.analytics.admin.v1alpha.RunAccessReportResponse; import com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema; @@ -213,6 +212,7 @@ import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest; import com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; import com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; import com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; @@ -221,6 +221,7 @@ import com.google.analytics.admin.v1alpha.UpdateConversionEventRequest; import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest; +import com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; @@ -233,8 +234,6 @@ import com.google.analytics.admin.v1alpha.UpdatePropertyRequest; import com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; -import com.google.analytics.admin.v1alpha.UpdateUserLinkRequest; -import com.google.analytics.admin.v1alpha.UserLink; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -377,118 +376,6 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Property.getDefaultInstance())) .build(); - private static final MethodDescriptor getUserLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.analytics.admin.v1alpha.AnalyticsAdminService/GetUserLink") - .setRequestMarshaller(ProtoUtils.marshaller(GetUserLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(UserLink.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - batchGetUserLinksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchGetUserLinks") - .setRequestMarshaller( - ProtoUtils.marshaller(BatchGetUserLinksRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(BatchGetUserLinksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listUserLinksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListUserLinks") - .setRequestMarshaller( - ProtoUtils.marshaller(ListUserLinksRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListUserLinksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - auditUserLinksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/AuditUserLinks") - .setRequestMarshaller( - ProtoUtils.marshaller(AuditUserLinksRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(AuditUserLinksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createUserLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateUserLink") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateUserLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(UserLink.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - batchCreateUserLinksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchCreateUserLinks") - .setRequestMarshaller( - ProtoUtils.marshaller(BatchCreateUserLinksRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(BatchCreateUserLinksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateUserLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateUserLink") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateUserLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(UserLink.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - batchUpdateUserLinksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchUpdateUserLinks") - .setRequestMarshaller( - ProtoUtils.marshaller(BatchUpdateUserLinksRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(BatchUpdateUserLinksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteUserLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteUserLink") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteUserLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - batchDeleteUserLinksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchDeleteUserLinks") - .setRequestMarshaller( - ProtoUtils.marshaller(BatchDeleteUserLinksRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - private static final MethodDescriptor createFirebaseLinkMethodDescriptor = MethodDescriptor.newBuilder() @@ -1827,6 +1714,131 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor + updateDataRedactionSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRedactionSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDataRedactionSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DataRedactionSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getDataRedactionSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRedactionSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDataRedactionSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DataRedactionSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createRollupPropertyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateRollupProperty") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateRollupPropertyRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CreateRollupPropertyResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + GetRollupPropertySourceLinkRequest, RollupPropertySourceLink> + getRollupPropertySourceLinkMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetRollupPropertySourceLink") + .setRequestMarshaller( + ProtoUtils.marshaller(GetRollupPropertySourceLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(RollupPropertySourceLink.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksResponse> + listRollupPropertySourceLinksMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListRollupPropertySourceLinks") + .setRequestMarshaller( + ProtoUtils.marshaller(ListRollupPropertySourceLinksRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListRollupPropertySourceLinksResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + CreateRollupPropertySourceLinkRequest, RollupPropertySourceLink> + createRollupPropertySourceLinkMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateRollupPropertySourceLink") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateRollupPropertySourceLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(RollupPropertySourceLink.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteRollupPropertySourceLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteRollupPropertySourceLink") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteRollupPropertySourceLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createSubpropertyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSubproperty") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateSubpropertyRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CreateSubpropertyResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteSubpropertyEventFilterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSubpropertyEventFilter") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteSubpropertyEventFilterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createSubpropertyEventFilterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSubpropertyEventFilter") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateSubpropertyEventFilterRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SubpropertyEventFilter.getDefaultInstance())) + .build(); + private final UnaryCallable getAccountCallable; private final UnaryCallable listAccountsCallable; private final UnaryCallable @@ -1846,23 +1858,6 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { private final UnaryCallable createPropertyCallable; private final UnaryCallable deletePropertyCallable; private final UnaryCallable updatePropertyCallable; - private final UnaryCallable getUserLinkCallable; - private final UnaryCallable - batchGetUserLinksCallable; - private final UnaryCallable listUserLinksCallable; - private final UnaryCallable - listUserLinksPagedCallable; - private final UnaryCallable auditUserLinksCallable; - private final UnaryCallable - auditUserLinksPagedCallable; - private final UnaryCallable createUserLinkCallable; - private final UnaryCallable - batchCreateUserLinksCallable; - private final UnaryCallable updateUserLinkCallable; - private final UnaryCallable - batchUpdateUserLinksCallable; - private final UnaryCallable deleteUserLinkCallable; - private final UnaryCallable batchDeleteUserLinksCallable; private final UnaryCallable createFirebaseLinkCallable; private final UnaryCallable deleteFirebaseLinkCallable; private final UnaryCallable @@ -2110,6 +2105,30 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { private final UnaryCallable updateEventCreateRuleCallable; private final UnaryCallable deleteEventCreateRuleCallable; + private final UnaryCallable + updateDataRedactionSettingsCallable; + private final UnaryCallable + getDataRedactionSettingsCallable; + private final UnaryCallable + createRollupPropertyCallable; + private final UnaryCallable + getRollupPropertySourceLinkCallable; + private final UnaryCallable< + ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksResponse> + listRollupPropertySourceLinksCallable; + private final UnaryCallable< + ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksPagedResponse> + listRollupPropertySourceLinksPagedCallable; + private final UnaryCallable + createRollupPropertySourceLinkCallable; + private final UnaryCallable + deleteRollupPropertySourceLinkCallable; + private final UnaryCallable + createSubpropertyCallable; + private final UnaryCallable + deleteSubpropertyEventFilterCallable; + private final UnaryCallable + createSubpropertyEventFilterCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -2239,110 +2258,6 @@ protected GrpcAnalyticsAdminServiceStub( return builder.build(); }) .build(); - GrpcCallSettings getUserLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getUserLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - batchGetUserLinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchGetUserLinksMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings listUserLinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listUserLinksMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - auditUserLinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(auditUserLinksMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings createUserLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createUserLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - batchCreateUserLinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchCreateUserLinksMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateUserLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateUserLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("user_link.name", String.valueOf(request.getUserLink().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - batchUpdateUserLinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchUpdateUserLinksMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteUserLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteUserLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings batchDeleteUserLinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchDeleteUserLinksMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); GrpcCallSettings createFirebaseLinkTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createFirebaseLinkMethodDescriptor) @@ -3555,6 +3470,111 @@ protected GrpcAnalyticsAdminServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + updateDataRedactionSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateDataRedactionSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "data_redaction_settings.name", + String.valueOf(request.getDataRedactionSettings().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getDataRedactionSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDataRedactionSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createRollupPropertyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createRollupPropertyMethodDescriptor) + .build(); + GrpcCallSettings + getRollupPropertySourceLinkTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getRollupPropertySourceLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listRollupPropertySourceLinksTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listRollupPropertySourceLinksMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createRollupPropertySourceLinkTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(createRollupPropertySourceLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteRollupPropertySourceLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteRollupPropertySourceLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createSubpropertyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSubpropertyMethodDescriptor) + .build(); + GrpcCallSettings + deleteSubpropertyEventFilterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSubpropertyEventFilterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createSubpropertyEventFilterTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(createSubpropertyEventFilterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); this.getAccountCallable = callableFactory.createUnaryCallable( @@ -3604,50 +3624,6 @@ protected GrpcAnalyticsAdminServiceStub( this.updatePropertyCallable = callableFactory.createUnaryCallable( updatePropertyTransportSettings, settings.updatePropertySettings(), clientContext); - this.getUserLinkCallable = - callableFactory.createUnaryCallable( - getUserLinkTransportSettings, settings.getUserLinkSettings(), clientContext); - this.batchGetUserLinksCallable = - callableFactory.createUnaryCallable( - batchGetUserLinksTransportSettings, - settings.batchGetUserLinksSettings(), - clientContext); - this.listUserLinksCallable = - callableFactory.createUnaryCallable( - listUserLinksTransportSettings, settings.listUserLinksSettings(), clientContext); - this.listUserLinksPagedCallable = - callableFactory.createPagedCallable( - listUserLinksTransportSettings, settings.listUserLinksSettings(), clientContext); - this.auditUserLinksCallable = - callableFactory.createUnaryCallable( - auditUserLinksTransportSettings, settings.auditUserLinksSettings(), clientContext); - this.auditUserLinksPagedCallable = - callableFactory.createPagedCallable( - auditUserLinksTransportSettings, settings.auditUserLinksSettings(), clientContext); - this.createUserLinkCallable = - callableFactory.createUnaryCallable( - createUserLinkTransportSettings, settings.createUserLinkSettings(), clientContext); - this.batchCreateUserLinksCallable = - callableFactory.createUnaryCallable( - batchCreateUserLinksTransportSettings, - settings.batchCreateUserLinksSettings(), - clientContext); - this.updateUserLinkCallable = - callableFactory.createUnaryCallable( - updateUserLinkTransportSettings, settings.updateUserLinkSettings(), clientContext); - this.batchUpdateUserLinksCallable = - callableFactory.createUnaryCallable( - batchUpdateUserLinksTransportSettings, - settings.batchUpdateUserLinksSettings(), - clientContext); - this.deleteUserLinkCallable = - callableFactory.createUnaryCallable( - deleteUserLinkTransportSettings, settings.deleteUserLinkSettings(), clientContext); - this.batchDeleteUserLinksCallable = - callableFactory.createUnaryCallable( - batchDeleteUserLinksTransportSettings, - settings.batchDeleteUserLinksSettings(), - clientContext); this.createFirebaseLinkCallable = callableFactory.createUnaryCallable( createFirebaseLinkTransportSettings, @@ -4236,6 +4212,61 @@ protected GrpcAnalyticsAdminServiceStub( deleteEventCreateRuleTransportSettings, settings.deleteEventCreateRuleSettings(), clientContext); + this.updateDataRedactionSettingsCallable = + callableFactory.createUnaryCallable( + updateDataRedactionSettingsTransportSettings, + settings.updateDataRedactionSettingsSettings(), + clientContext); + this.getDataRedactionSettingsCallable = + callableFactory.createUnaryCallable( + getDataRedactionSettingsTransportSettings, + settings.getDataRedactionSettingsSettings(), + clientContext); + this.createRollupPropertyCallable = + callableFactory.createUnaryCallable( + createRollupPropertyTransportSettings, + settings.createRollupPropertySettings(), + clientContext); + this.getRollupPropertySourceLinkCallable = + callableFactory.createUnaryCallable( + getRollupPropertySourceLinkTransportSettings, + settings.getRollupPropertySourceLinkSettings(), + clientContext); + this.listRollupPropertySourceLinksCallable = + callableFactory.createUnaryCallable( + listRollupPropertySourceLinksTransportSettings, + settings.listRollupPropertySourceLinksSettings(), + clientContext); + this.listRollupPropertySourceLinksPagedCallable = + callableFactory.createPagedCallable( + listRollupPropertySourceLinksTransportSettings, + settings.listRollupPropertySourceLinksSettings(), + clientContext); + this.createRollupPropertySourceLinkCallable = + callableFactory.createUnaryCallable( + createRollupPropertySourceLinkTransportSettings, + settings.createRollupPropertySourceLinkSettings(), + clientContext); + this.deleteRollupPropertySourceLinkCallable = + callableFactory.createUnaryCallable( + deleteRollupPropertySourceLinkTransportSettings, + settings.deleteRollupPropertySourceLinkSettings(), + clientContext); + this.createSubpropertyCallable = + callableFactory.createUnaryCallable( + createSubpropertyTransportSettings, + settings.createSubpropertySettings(), + clientContext); + this.deleteSubpropertyEventFilterCallable = + callableFactory.createUnaryCallable( + deleteSubpropertyEventFilterTransportSettings, + settings.deleteSubpropertyEventFilterSettings(), + clientContext); + this.createSubpropertyEventFilterCallable = + callableFactory.createUnaryCallable( + createSubpropertyEventFilterTransportSettings, + settings.createSubpropertyEventFilterSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -4319,71 +4350,6 @@ public UnaryCallable updatePropertyCallable() { return updatePropertyCallable; } - @Override - public UnaryCallable getUserLinkCallable() { - return getUserLinkCallable; - } - - @Override - public UnaryCallable - batchGetUserLinksCallable() { - return batchGetUserLinksCallable; - } - - @Override - public UnaryCallable listUserLinksCallable() { - return listUserLinksCallable; - } - - @Override - public UnaryCallable - listUserLinksPagedCallable() { - return listUserLinksPagedCallable; - } - - @Override - public UnaryCallable auditUserLinksCallable() { - return auditUserLinksCallable; - } - - @Override - public UnaryCallable - auditUserLinksPagedCallable() { - return auditUserLinksPagedCallable; - } - - @Override - public UnaryCallable createUserLinkCallable() { - return createUserLinkCallable; - } - - @Override - public UnaryCallable - batchCreateUserLinksCallable() { - return batchCreateUserLinksCallable; - } - - @Override - public UnaryCallable updateUserLinkCallable() { - return updateUserLinkCallable; - } - - @Override - public UnaryCallable - batchUpdateUserLinksCallable() { - return batchUpdateUserLinksCallable; - } - - @Override - public UnaryCallable deleteUserLinkCallable() { - return deleteUserLinkCallable; - } - - @Override - public UnaryCallable batchDeleteUserLinksCallable() { - return batchDeleteUserLinksCallable; - } - @Override public UnaryCallable createFirebaseLinkCallable() { return createFirebaseLinkCallable; @@ -5118,6 +5084,73 @@ public UnaryCallable deleteEventCreateRuleC return deleteEventCreateRuleCallable; } + @Override + public UnaryCallable + updateDataRedactionSettingsCallable() { + return updateDataRedactionSettingsCallable; + } + + @Override + public UnaryCallable + getDataRedactionSettingsCallable() { + return getDataRedactionSettingsCallable; + } + + @Override + public UnaryCallable + createRollupPropertyCallable() { + return createRollupPropertyCallable; + } + + @Override + public UnaryCallable + getRollupPropertySourceLinkCallable() { + return getRollupPropertySourceLinkCallable; + } + + @Override + public UnaryCallable + listRollupPropertySourceLinksCallable() { + return listRollupPropertySourceLinksCallable; + } + + @Override + public UnaryCallable< + ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksPagedResponse> + listRollupPropertySourceLinksPagedCallable() { + return listRollupPropertySourceLinksPagedCallable; + } + + @Override + public UnaryCallable + createRollupPropertySourceLinkCallable() { + return createRollupPropertySourceLinkCallable; + } + + @Override + public UnaryCallable + deleteRollupPropertySourceLinkCallable() { + return deleteRollupPropertySourceLinkCallable; + } + + @Override + public UnaryCallable + createSubpropertyCallable() { + return createSubpropertyCallable; + } + + @Override + public UnaryCallable + deleteSubpropertyEventFilterCallable() { + return deleteSubpropertyEventFilterCallable; + } + + @Override + public UnaryCallable + createSubpropertyEventFilterCallable() { + return createSubpropertyEventFilterCallable; + } + @Override public final void close() { try { diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java index 36bb1fef084e..e2b1140a9032 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java @@ -16,7 +16,6 @@ package com.google.analytics.admin.v1alpha.stub; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; @@ -36,9 +35,9 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; 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.ListRollupPropertySourceLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListSKAdNetworkConversionValueSchemasPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListSearchAds360LinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.AccessBinding; @@ -53,22 +52,13 @@ import com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; import com.google.analytics.admin.v1alpha.AttributionSettings; import com.google.analytics.admin.v1alpha.Audience; -import com.google.analytics.admin.v1alpha.AuditUserLinksRequest; -import com.google.analytics.admin.v1alpha.AuditUserLinksResponse; import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest; import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse; -import com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; import com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest; -import com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest; import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse; -import com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse; import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest; import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse; -import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; import com.google.analytics.admin.v1alpha.BigQueryLink; import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.ChannelGroup; @@ -91,11 +81,17 @@ 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.CreateRollupPropertyRequest; +import com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse; +import com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest; import com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest; -import com.google.analytics.admin.v1alpha.CreateUserLinkRequest; +import com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest; +import com.google.analytics.admin.v1alpha.CreateSubpropertyRequest; +import com.google.analytics.admin.v1alpha.CreateSubpropertyResponse; import com.google.analytics.admin.v1alpha.CustomDimension; import com.google.analytics.admin.v1alpha.CustomMetric; +import com.google.analytics.admin.v1alpha.DataRedactionSettings; import com.google.analytics.admin.v1alpha.DataRetentionSettings; import com.google.analytics.admin.v1alpha.DataSharingSettings; import com.google.analytics.admin.v1alpha.DataStream; @@ -114,9 +110,10 @@ import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.DeletePropertyRequest; +import com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest; import com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest; -import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; +import com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; import com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings; @@ -137,6 +134,7 @@ 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.GetDataRedactionSettingsRequest; import com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; import com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; import com.google.analytics.admin.v1alpha.GetDataStreamRequest; @@ -149,9 +147,9 @@ import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.GetPropertyRequest; +import com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest; import com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest; -import com.google.analytics.admin.v1alpha.GetUserLinkRequest; import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; @@ -195,16 +193,17 @@ 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.ListRollupPropertySourceLinksRequest; +import com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse; import com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest; import com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse; import com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest; import com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse; -import com.google.analytics.admin.v1alpha.ListUserLinksRequest; -import com.google.analytics.admin.v1alpha.ListUserLinksResponse; 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; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLink; import com.google.analytics.admin.v1alpha.RunAccessReportRequest; import com.google.analytics.admin.v1alpha.RunAccessReportResponse; import com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema; @@ -213,6 +212,7 @@ import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest; import com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; import com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; import com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; @@ -221,6 +221,7 @@ import com.google.analytics.admin.v1alpha.UpdateConversionEventRequest; import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest; +import com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; @@ -233,8 +234,6 @@ import com.google.analytics.admin.v1alpha.UpdatePropertyRequest; import com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; -import com.google.analytics.admin.v1alpha.UpdateUserLinkRequest; -import com.google.analytics.admin.v1alpha.UserLink; import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; @@ -677,101 +676,101 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .build()) .build(); - private static final ApiMethodDescriptor - getUserLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.analytics.admin.v1alpha.AnalyticsAdminService/GetUserLink") - .setHttpMethod("GET") + private static final ApiMethodDescriptor + createFirebaseLinkMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateFirebaseLink") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=accounts/*/userLinks/*}", + "/v1alpha/{parent=properties/*}/firebaseLinks", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) - .setAdditionalPaths("/v1alpha/{name=properties/*/userLinks/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("firebaseLink", request.getFirebaseLink(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(UserLink.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(FirebaseLink.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - batchGetUserLinksMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + deleteFirebaseLinkMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchGetUserLinks") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteFirebaseLink") + .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=accounts/*}/userLinks:batchGet", + "/v1alpha/{name=properties/*/firebaseLinks/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) - .setAdditionalPaths("/v1alpha/{parent=properties/*}/userLinks:batchGet") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "names", request.getNamesList()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(BatchGetUserLinksResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - listUserLinksMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + listFirebaseLinksMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListUserLinks") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListFirebaseLinks") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=accounts/*}/userLinks", + "/v1alpha/{parent=properties/*}/firebaseLinks", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) - .setAdditionalPaths("/v1alpha/{parent=properties/*}/userLinks") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); @@ -781,237 +780,256 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListUserLinksResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListFirebaseLinksResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - auditUserLinksMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + getGlobalSiteTagMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/AuditUserLinks") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetGlobalSiteTag") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=accounts/*}/userLinks:audit", + "/v1alpha/{name=properties/*/dataStreams/*/globalSiteTag}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) - .setAdditionalPaths("/v1alpha/{parent=properties/*}/userLinks:audit") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(AuditUserLinksResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(GlobalSiteTag.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - createUserLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + createGoogleAdsLinkMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateUserLink") + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateGoogleAdsLink") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=accounts/*}/userLinks", + "/v1alpha/{parent=properties/*}/googleAdsLinks", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) - .setAdditionalPaths("/v1alpha/{parent=properties/*}/userLinks") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam( - fields, "notifyNewUser", request.getNotifyNewUser()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("userLink", request.getUserLink(), true)) + .toBody("googleAdsLink", request.getGoogleAdsLink(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(UserLink.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(GoogleAdsLink.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - BatchCreateUserLinksRequest, BatchCreateUserLinksResponse> - batchCreateUserLinksMethodDescriptor = - ApiMethodDescriptor - .newBuilder() + private static final ApiMethodDescriptor + updateGoogleAdsLinkMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchCreateUserLinks") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleAdsLink") + .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=accounts/*}/userLinks:batchCreate", + "/v1alpha/{googleAdsLink.name=properties/*/googleAdsLinks/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam( + fields, "googleAdsLink.name", request.getGoogleAdsLink().getName()); return fields; }) - .setAdditionalPaths("/v1alpha/{parent=properties/*}/userLinks:batchCreate") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) + .toBody("googleAdsLink", request.getGoogleAdsLink(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(BatchCreateUserLinksResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(GoogleAdsLink.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - updateUserLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + deleteGoogleAdsLinkMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateUserLink") - .setHttpMethod("PATCH") + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteGoogleAdsLink") + .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{userLink.name=accounts/*/userLinks/*}", + "/v1alpha/{name=properties/*/googleAdsLinks/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "userLink.name", request.getUserLink().getName()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) - .setAdditionalPaths("/v1alpha/{userLink.name=properties/*/userLinks/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("userLink", request.getUserLink(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(UserLink.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - BatchUpdateUserLinksRequest, BatchUpdateUserLinksResponse> - batchUpdateUserLinksMethodDescriptor = - ApiMethodDescriptor - .newBuilder() + private static final ApiMethodDescriptor + listGoogleAdsLinksMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchUpdateUserLinks") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListGoogleAdsLinks") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=accounts/*}/userLinks:batchUpdate", + "/v1alpha/{parent=properties/*}/googleAdsLinks", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) - .setAdditionalPaths("/v1alpha/{parent=properties/*}/userLinks:batchUpdate") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListGoogleAdsLinksResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getDataSharingSettingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataSharingSettings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=accounts/*/dataSharingSettings}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(BatchUpdateUserLinksResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DataSharingSettings.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - deleteUserLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + GetMeasurementProtocolSecretRequest, MeasurementProtocolSecret> + getMeasurementProtocolSecretMethodDescriptor = + ApiMethodDescriptor + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteUserLink") - .setHttpMethod("DELETE") + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetMeasurementProtocolSecret") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=accounts/*/userLinks/*}", + "/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) - .setAdditionalPaths("/v1alpha/{name=properties/*/userLinks/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -1019,65 +1037,69 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(MeasurementProtocolSecret.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - batchDeleteUserLinksMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> + listMeasurementProtocolSecretsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchDeleteUserLinks") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListMeasurementProtocolSecrets") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=accounts/*}/userLinks:batchDelete", + "/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) - .setAdditionalPaths("/v1alpha/{parent=properties/*}/userLinks:batchDelete") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + ListMeasurementProtocolSecretsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - createFirebaseLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> + createMeasurementProtocolSecretMethodDescriptor = + ApiMethodDescriptor + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateFirebaseLink") + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateMeasurementProtocolSecret") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/firebaseLinks", + "/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; @@ -1085,7 +1107,7 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -1093,29 +1115,32 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("firebaseLink", request.getFirebaseLink(), true)) + .toBody( + "measurementProtocolSecret", + request.getMeasurementProtocolSecret(), + true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(FirebaseLink.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(MeasurementProtocolSecret.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - deleteFirebaseLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + deleteMeasurementProtocolSecretMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteFirebaseLink") + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteMeasurementProtocolSecret") .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/firebaseLinks/*}", + "/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; @@ -1123,7 +1148,7 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -1137,179 +1162,203 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .build()) .build(); - private static final ApiMethodDescriptor - listFirebaseLinksMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> + updateMeasurementProtocolSecretMethodDescriptor = + ApiMethodDescriptor + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListFirebaseLinks") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateMeasurementProtocolSecret") + .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/firebaseLinks", + "/v1alpha/{measurementProtocolSecret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam( + fields, + "measurementProtocolSecret.name", + request.getMeasurementProtocolSecret().getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "measurementProtocolSecret", + request.getMeasurementProtocolSecret(), + true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListFirebaseLinksResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(MeasurementProtocolSecret.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getGlobalSiteTagMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> + acknowledgeUserDataCollectionMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetGlobalSiteTag") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/AcknowledgeUserDataCollection") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/dataStreams/*/globalSiteTag}", + "/v1alpha/{property=properties/*}:acknowledgeUserDataCollection", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "property", request.getProperty()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearProperty().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(GlobalSiteTag.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + AcknowledgeUserDataCollectionResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - createGoogleAdsLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + GetSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> + getSKAdNetworkConversionValueSchemaMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateGoogleAdsLink") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetSKAdNetworkConversionValueSchema") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter + .newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/googleAdsLinks", + "/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("googleAdsLink", request.getGoogleAdsLink(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(GoogleAdsLink.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SKAdNetworkConversionValueSchema.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - updateGoogleAdsLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + CreateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> + createSKAdNetworkConversionValueSchemaMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleAdsLink") - .setHttpMethod("PATCH") + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSKAdNetworkConversionValueSchema") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter + .newBuilder() .setPath( - "/v1alpha/{googleAdsLink.name=properties/*/googleAdsLinks/*}", + "/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "googleAdsLink.name", request.getGoogleAdsLink().getName()); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("googleAdsLink", request.getGoogleAdsLink(), true)) + .toBody( + "skadnetworkConversionValueSchema", + request.getSkadnetworkConversionValueSchema(), + true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(GoogleAdsLink.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SKAdNetworkConversionValueSchema.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - deleteGoogleAdsLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + deleteSKAdNetworkConversionValueSchemaMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteGoogleAdsLink") + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSKAdNetworkConversionValueSchema") .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter + .newBuilder() .setPath( - "/v1alpha/{name=properties/*/googleAdsLinks/*}", + "/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) @@ -1322,181 +1371,204 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .build()) .build(); - private static final ApiMethodDescriptor - listGoogleAdsLinksMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + UpdateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> + updateSKAdNetworkConversionValueSchemaMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListGoogleAdsLinks") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateSKAdNetworkConversionValueSchema") + .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter + .newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/googleAdsLinks", + "/v1alpha/{skadnetworkConversionValueSchema.name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "skadnetworkConversionValueSchema.name", + request.getSkadnetworkConversionValueSchema().getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "skadnetworkConversionValueSchema", + request.getSkadnetworkConversionValueSchema(), + true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListGoogleAdsLinksResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SKAdNetworkConversionValueSchema.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getDataSharingSettingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + ListSKAdNetworkConversionValueSchemasRequest, + ListSKAdNetworkConversionValueSchemasResponse> + listSKAdNetworkConversionValueSchemasMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataSharingSettings") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListSKAdNetworkConversionValueSchemas") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter + .newBuilder() .setPath( - "/v1alpha/{name=accounts/*/dataSharingSettings}", + "/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DataSharingSettings.getDefaultInstance()) + ProtoMessageResponseParser + .newBuilder() + .setDefaultInstance( + ListSKAdNetworkConversionValueSchemasResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor< - GetMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - getMeasurementProtocolSecretMethodDescriptor = + SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse> + searchChangeHistoryEventsMethodDescriptor = ApiMethodDescriptor - .newBuilder() + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetMeasurementProtocolSecret") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/SearchChangeHistoryEvents") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}", + "/v1alpha/{account=accounts/*}:searchChangeHistoryEvents", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "account", request.getAccount()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearAccount().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(MeasurementProtocolSecret.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchChangeHistoryEventsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> - listMeasurementProtocolSecretsMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() + private static final ApiMethodDescriptor + getGoogleSignalsSettingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListMeasurementProtocolSecrets") + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetGoogleSignalsSettings") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets", + "/v1alpha/{name=properties/*/googleSignalsSettings}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance( - ListMeasurementProtocolSecretsResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(GoogleSignalsSettings.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor< - CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - createMeasurementProtocolSecretMethodDescriptor = + UpdateGoogleSignalsSettingsRequest, GoogleSignalsSettings> + updateGoogleSignalsSettingsMethodDescriptor = ApiMethodDescriptor - .newBuilder() + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateMeasurementProtocolSecret") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleSignalsSettings") + .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*/dataStreams/*}/measurementProtocolSecrets", + "/v1alpha/{googleSignalsSettings.name=properties/*/googleSignalsSettings}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam( + fields, + "googleSignalsSettings.name", + request.getGoogleSignalsSettings().getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) @@ -1504,79 +1576,80 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub request -> ProtoRestSerializer.create() .toBody( - "measurementProtocolSecret", - request.getMeasurementProtocolSecret(), + "googleSignalsSettings", + request.getGoogleSignalsSettings(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(MeasurementProtocolSecret.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(GoogleSignalsSettings.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - deleteMeasurementProtocolSecretMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + createConversionEventMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteMeasurementProtocolSecret") - .setHttpMethod("DELETE") + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateConversionEvent") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/dataStreams/*/measurementProtocolSecrets/*}", + "/v1alpha/{parent=properties/*}/conversionEvents", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("conversionEvent", request.getConversionEvent(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ConversionEvent.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - updateMeasurementProtocolSecretMethodDescriptor = - ApiMethodDescriptor - .newBuilder() + private static final ApiMethodDescriptor + updateConversionEventMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateMeasurementProtocolSecret") + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateConversionEvent") .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{measurementProtocolSecret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}", + "/v1alpha/{conversionEvent.name=properties/*/conversionEvents/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam( fields, - "measurementProtocolSecret.name", - request.getMeasurementProtocolSecret().getName()); + "conversionEvent.name", + request.getConversionEvent().getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); @@ -1585,159 +1658,140 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody( - "measurementProtocolSecret", - request.getMeasurementProtocolSecret(), - true)) + .toBody("conversionEvent", request.getConversionEvent(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(MeasurementProtocolSecret.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ConversionEvent.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() + private static final ApiMethodDescriptor + getConversionEventMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/AcknowledgeUserDataCollection") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetConversionEvent") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{property=properties/*}:acknowledgeUserDataCollection", + "/v1alpha/{name=properties/*/conversionEvents/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "property", request.getProperty()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearProperty().build(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance( - AcknowledgeUserDataCollectionResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ConversionEvent.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - GetSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> - getSKAdNetworkConversionValueSchemaMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() + private static final ApiMethodDescriptor + deleteConversionEventMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetSKAdNetworkConversionValueSchema") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConversionEvent") + .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}", + "/v1alpha/{name=properties/*/conversionEvents/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(SKAdNetworkConversionValueSchema.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor< - CreateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> - createSKAdNetworkConversionValueSchemaMethodDescriptor = + ListConversionEventsRequest, ListConversionEventsResponse> + listConversionEventsMethodDescriptor = ApiMethodDescriptor - . - newBuilder() + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSKAdNetworkConversionValueSchema") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListConversionEvents") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema", + "/v1alpha/{parent=properties/*}/conversionEvents", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "skadnetworkConversionValueSchema", - request.getSkadnetworkConversionValueSchema(), - true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(SKAdNetworkConversionValueSchema.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListConversionEventsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - deleteSKAdNetworkConversionValueSchemaMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + getDisplayVideo360AdvertiserLinkMethodDescriptor = + ApiMethodDescriptor + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSKAdNetworkConversionValueSchema") - .setHttpMethod("DELETE") + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLink") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}", + "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; @@ -1745,7 +1799,7 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -1753,81 +1807,31 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - UpdateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> - updateSKAdNetworkConversionValueSchemaMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateSKAdNetworkConversionValueSchema") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() - .setPath( - "/v1alpha/{skadnetworkConversionValueSchema.name=properties/*/dataStreams/*/sKAdNetworkConversionValueSchema/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putPathParam( - fields, - "skadnetworkConversionValueSchema.name", - request.getSkadnetworkConversionValueSchema().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "skadnetworkConversionValueSchema", - request.getSkadnetworkConversionValueSchema(), - true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(SKAdNetworkConversionValueSchema.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DisplayVideo360AdvertiserLink.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor< - ListSKAdNetworkConversionValueSchemasRequest, - ListSKAdNetworkConversionValueSchemasResponse> - listSKAdNetworkConversionValueSchemasMethodDescriptor = + ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse> + listDisplayVideo360AdvertiserLinksMethodDescriptor = ApiMethodDescriptor - . + . newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListSKAdNetworkConversionValueSchemas") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinks") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter - .newBuilder() + .newBuilder() .setPath( - "/v1alpha/{parent=properties/*/dataStreams/*}/sKAdNetworkConversionValueSchema", + "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; @@ -1835,7 +1839,7 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); @@ -1846,116 +1850,124 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .build()) .setResponseParser( ProtoMessageResponseParser - .newBuilder() + .newBuilder() .setDefaultInstance( - ListSKAdNetworkConversionValueSchemasResponse.getDefaultInstance()) + ListDisplayVideo360AdvertiserLinksResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor< - SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse> - searchChangeHistoryEventsMethodDescriptor = + CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + createDisplayVideo360AdvertiserLinkMethodDescriptor = ApiMethodDescriptor - .newBuilder() + . + newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/SearchChangeHistoryEvents") + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLink") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter + .newBuilder() .setPath( - "/v1alpha/{account=accounts/*}:searchChangeHistoryEvents", + "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "account", request.getAccount()); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearAccount().build(), true)) + .toBody( + "displayVideo360AdvertiserLink", + request.getDisplayVideo360AdvertiserLink(), + true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(SearchChangeHistoryEventsResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DisplayVideo360AdvertiserLink.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getGoogleSignalsSettingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + deleteDisplayVideo360AdvertiserLinkMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetGoogleSignalsSettings") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLink") + .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter + .newBuilder() .setPath( - "/v1alpha/{name=properties/*/googleSignalsSettings}", + "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(GoogleSignalsSettings.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor< - UpdateGoogleSignalsSettingsRequest, GoogleSignalsSettings> - updateGoogleSignalsSettingsMethodDescriptor = + UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + updateDisplayVideo360AdvertiserLinkMethodDescriptor = ApiMethodDescriptor - .newBuilder() + . + newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleSignalsSettings") + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDisplayVideo360AdvertiserLink") .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter + .newBuilder() .setPath( - "/v1alpha/{googleSignalsSettings.name=properties/*/googleSignalsSettings}", + "/v1alpha/{displayVideo360AdvertiserLink.name=properties/*/displayVideo360AdvertiserLinks/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); serializer.putPathParam( fields, - "googleSignalsSettings.name", - request.getGoogleSignalsSettings().getName()); + "displayVideo360AdvertiserLink.name", + request.getDisplayVideo360AdvertiserLink().getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -1964,155 +1976,176 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub request -> ProtoRestSerializer.create() .toBody( - "googleSignalsSettings", - request.getGoogleSignalsSettings(), + "displayVideo360AdvertiserLink", + request.getDisplayVideo360AdvertiserLink(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(GoogleSignalsSettings.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DisplayVideo360AdvertiserLink.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - createConversionEventMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + getDisplayVideo360AdvertiserLinkProposalMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateConversionEvent") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLinkProposal") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter + .newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/conversionEvents", + "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("conversionEvent", request.getConversionEvent(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ConversionEvent.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + DisplayVideo360AdvertiserLinkProposal.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - updateConversionEventMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse> + listDisplayVideo360AdvertiserLinkProposalsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateConversionEvent") - .setHttpMethod("PATCH") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinkProposals") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter + .newBuilder() .setPath( - "/v1alpha/{conversionEvent.name=properties/*/conversionEvents/*}", + "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, - "conversionEvent.name", - request.getConversionEvent().getName()); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("conversionEvent", request.getConversionEvent(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ConversionEvent.getDefaultInstance()) + ProtoMessageResponseParser + .newBuilder() + .setDefaultInstance( + ListDisplayVideo360AdvertiserLinkProposalsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getConversionEventMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + createDisplayVideo360AdvertiserLinkProposalMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetConversionEvent") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLinkProposal") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter + .newBuilder() .setPath( - "/v1alpha/{name=properties/*/conversionEvents/*}", + "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "displayVideo360AdvertiserLinkProposal", + request.getDisplayVideo360AdvertiserLinkProposal(), + true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ConversionEvent.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + DisplayVideo360AdvertiserLinkProposal.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - deleteConversionEventMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + DeleteDisplayVideo360AdvertiserLinkProposalRequest, Empty> + deleteDisplayVideo360AdvertiserLinkProposalMethodDescriptor = + ApiMethodDescriptor + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConversionEvent") + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLinkProposal") .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter + .newBuilder() .setPath( - "/v1alpha/{name=properties/*/conversionEvents/*}", + "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) @@ -2126,60 +2159,70 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .build(); private static final ApiMethodDescriptor< - ListConversionEventsRequest, ListConversionEventsResponse> - listConversionEventsMethodDescriptor = + ApproveDisplayVideo360AdvertiserLinkProposalRequest, + ApproveDisplayVideo360AdvertiserLinkProposalResponse> + approveDisplayVideo360AdvertiserLinkProposalMethodDescriptor = ApiMethodDescriptor - .newBuilder() + . + newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListConversionEvents") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ApproveDisplayVideo360AdvertiserLinkProposal") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter + .newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/conversionEvents", + "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:approve", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListConversionEventsResponse.getDefaultInstance()) + ProtoMessageResponseParser + .newBuilder() + .setDefaultInstance( + ApproveDisplayVideo360AdvertiserLinkProposalResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor< - GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - getDisplayVideo360AdvertiserLinkMethodDescriptor = + CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + cancelDisplayVideo360AdvertiserLinkProposalMethodDescriptor = ApiMethodDescriptor - .newBuilder() + . + newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLink") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/CancelDisplayVideo360AdvertiserLinkProposal") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter + .newBuilder() .setPath( - "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}", + "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; @@ -2187,394 +2230,354 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DisplayVideo360AdvertiserLink.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + DisplayVideo360AdvertiserLinkProposal.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse> - listDisplayVideo360AdvertiserLinksMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() + private static final ApiMethodDescriptor + createCustomDimensionMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinks") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomDimension") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks", + "/v1alpha/{parent=properties/*}/customDimensions", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("customDimension", request.getCustomDimension(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser - .newBuilder() - .setDefaultInstance( - ListDisplayVideo360AdvertiserLinksResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CustomDimension.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - createDisplayVideo360AdvertiserLinkMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() + private static final ApiMethodDescriptor + updateCustomDimensionMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLink") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomDimension") + .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks", + "/v1alpha/{customDimension.name=properties/*/customDimensions/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "customDimension.name", + request.getCustomDimension().getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody( - "displayVideo360AdvertiserLink", - request.getDisplayVideo360AdvertiserLink(), - true)) + .toBody("customDimension", request.getCustomDimension(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DisplayVideo360AdvertiserLink.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CustomDimension.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - deleteDisplayVideo360AdvertiserLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + ListCustomDimensionsRequest, ListCustomDimensionsResponse> + listCustomDimensionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLink") - .setHttpMethod("DELETE") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomDimensions") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}", + "/v1alpha/{parent=properties/*}/customDimensions", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListCustomDimensionsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - updateDisplayVideo360AdvertiserLinkMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() + private static final ApiMethodDescriptor + archiveCustomDimensionMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDisplayVideo360AdvertiserLink") - .setHttpMethod("PATCH") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomDimension") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{displayVideo360AdvertiserLink.name=properties/*/displayVideo360AdvertiserLinks/*}", + "/v1alpha/{name=properties/*/customDimensions/*}:archive", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putPathParam( - fields, - "displayVideo360AdvertiserLink.name", - request.getDisplayVideo360AdvertiserLink().getName()); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody( - "displayVideo360AdvertiserLink", - request.getDisplayVideo360AdvertiserLink(), - true)) + .toBody("*", request.toBuilder().clearName().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DisplayVideo360AdvertiserLink.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - getDisplayVideo360AdvertiserLinkProposalMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() + private static final ApiMethodDescriptor + getCustomDimensionMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLinkProposal") + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomDimension") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}", + "/v1alpha/{name=properties/*/customDimensions/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance( - DisplayVideo360AdvertiserLinkProposal.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CustomDimension.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse> - listDisplayVideo360AdvertiserLinkProposalsMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() + private static final ApiMethodDescriptor + createCustomMetricMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinkProposals") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomMetric") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals", + "/v1alpha/{parent=properties/*}/customMetrics", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("customMetric", request.getCustomMetric(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser - .newBuilder() - .setDefaultInstance( - ListDisplayVideo360AdvertiserLinkProposalsResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CustomMetric.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - createDisplayVideo360AdvertiserLinkProposalMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() + private static final ApiMethodDescriptor + updateCustomMetricMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLinkProposal") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomMetric") + .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals", + "/v1alpha/{customMetric.name=properties/*/customMetrics/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "customMetric.name", request.getCustomMetric().getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody( - "displayVideo360AdvertiserLinkProposal", - request.getDisplayVideo360AdvertiserLinkProposal(), - true)) + .toBody("customMetric", request.getCustomMetric(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance( - DisplayVideo360AdvertiserLinkProposal.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CustomMetric.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - DeleteDisplayVideo360AdvertiserLinkProposalRequest, Empty> - deleteDisplayVideo360AdvertiserLinkProposalMethodDescriptor = - ApiMethodDescriptor - .newBuilder() + private static final ApiMethodDescriptor + listCustomMetricsMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLinkProposal") - .setHttpMethod("DELETE") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomMetrics") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}", + "/v1alpha/{parent=properties/*}/customMetrics", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListCustomMetricsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - ApproveDisplayVideo360AdvertiserLinkProposalRequest, - ApproveDisplayVideo360AdvertiserLinkProposalResponse> - approveDisplayVideo360AdvertiserLinkProposalMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() + private static final ApiMethodDescriptor + archiveCustomMetricMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ApproveDisplayVideo360AdvertiserLinkProposal") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomMetric") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:approve", + "/v1alpha/{name=properties/*/customMetrics/*}:archive", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) @@ -2584,121 +2587,109 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .toBody("*", request.toBuilder().clearName().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser - .newBuilder() - .setDefaultInstance( - ApproveDisplayVideo360AdvertiserLinkProposalResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - cancelDisplayVideo360AdvertiserLinkProposalMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() + private static final ApiMethodDescriptor + getCustomMetricMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CancelDisplayVideo360AdvertiserLinkProposal") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomMetric") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel", + "/v1alpha/{name=properties/*/customMetrics/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), true)) + return fields; + }) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance( - DisplayVideo360AdvertiserLinkProposal.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CustomMetric.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - createCustomDimensionMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + getDataRetentionSettingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomDimension") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRetentionSettings") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/customDimensions", + "/v1alpha/{name=properties/*/dataRetentionSettings}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("customDimension", request.getCustomDimension(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CustomDimension.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DataRetentionSettings.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - updateCustomDimensionMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + UpdateDataRetentionSettingsRequest, DataRetentionSettings> + updateDataRetentionSettingsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomDimension") + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRetentionSettings") .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{customDimension.name=properties/*/customDimensions/*}", + "/v1alpha/{dataRetentionSettings.name=properties/*/dataRetentionSettings}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam( fields, - "customDimension.name", - request.getCustomDimension().getName()); + "dataRetentionSettings.name", + request.getDataRetentionSettings().getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); @@ -2707,31 +2698,32 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("customDimension", request.getCustomDimension(), true)) + .toBody( + "dataRetentionSettings", + request.getDataRetentionSettings(), + true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CustomDimension.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DataRetentionSettings.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - ListCustomDimensionsRequest, ListCustomDimensionsResponse> - listCustomDimensionsMethodDescriptor = - ApiMethodDescriptor - .newBuilder() + private static final ApiMethodDescriptor + createDataStreamMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomDimensions") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDataStream") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/customDimensions", + "/v1alpha/{parent=properties/*}/dataStreams", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; @@ -2739,36 +2731,37 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("dataStream", request.getDataStream(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListCustomDimensionsResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DataStream.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - archiveCustomDimensionMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + deleteDataStreamMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomDimension") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDataStream") + .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/customDimensions/*}:archive", + "/v1alpha/{name=properties/*/dataStreams/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; @@ -2776,15 +2769,12 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -2793,55 +2783,60 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .build()) .build(); - private static final ApiMethodDescriptor - getCustomDimensionMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + updateDataStreamMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomDimension") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataStream") + .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/customDimensions/*}", + "/v1alpha/{dataStream.name=properties/*/dataStreams/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam( + fields, "dataStream.name", request.getDataStream().getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("dataStream", request.getDataStream(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CustomDimension.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DataStream.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - createCustomMetricMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + listDataStreamsMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomMetric") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListDataStreams") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/customMetrics", + "/v1alpha/{parent=properties/*}/dataStreams", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; @@ -2849,453 +2844,447 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("customMetric", request.getCustomMetric(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CustomMetric.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListDataStreamsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - updateCustomMetricMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + getDataStreamMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomMetric") - .setHttpMethod("PATCH") + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataStream") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{customMetric.name=properties/*/customMetrics/*}", + "/v1alpha/{name=properties/*/dataStreams/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "customMetric.name", request.getCustomMetric().getName()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("customMetric", request.getCustomMetric(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CustomMetric.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DataStream.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - listCustomMetricsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomMetrics") + private static final ApiMethodDescriptor + getAudienceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.analytics.admin.v1alpha.AnalyticsAdminService/GetAudience") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/customMetrics", + "/v1alpha/{name=properties/*/audiences/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListCustomMetricsResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Audience.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - archiveCustomMetricMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + listAudiencesMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomMetric") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAudiences") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/customMetrics/*}:archive", + "/v1alpha/{parent=properties/*}/audiences", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAudiencesResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getCustomMetricMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + createAudienceMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomMetric") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAudience") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/customMetrics/*}", + "/v1alpha/{parent=properties/*}/audiences", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("audience", request.getAudience(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CustomMetric.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Audience.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getDataRetentionSettingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + updateAudienceMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRetentionSettings") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAudience") + .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/dataRetentionSettings}", + "/v1alpha/{audience.name=properties/*/audiences/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam( + fields, "audience.name", request.getAudience().getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("audience", request.getAudience(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DataRetentionSettings.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Audience.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - UpdateDataRetentionSettingsRequest, DataRetentionSettings> - updateDataRetentionSettingsMethodDescriptor = - ApiMethodDescriptor - .newBuilder() + private static final ApiMethodDescriptor + archiveAudienceMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRetentionSettings") - .setHttpMethod("PATCH") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveAudience") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{dataRetentionSettings.name=properties/*/dataRetentionSettings}", + "/v1alpha/{name=properties/*/audiences/*}:archive", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam( - fields, - "dataRetentionSettings.name", - request.getDataRetentionSettings().getName()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody( - "dataRetentionSettings", - request.getDataRetentionSettings(), - true)) + .toBody("*", request.toBuilder().clearName().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DataRetentionSettings.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - createDataStreamMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + getSearchAds360LinkMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDataStream") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetSearchAds360Link") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/dataStreams", + "/v1alpha/{name=properties/*/searchAds360Links/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("dataStream", request.getDataStream(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DataStream.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchAds360Link.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - deleteDataStreamMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + ListSearchAds360LinksRequest, ListSearchAds360LinksResponse> + listSearchAds360LinksMethodDescriptor = + ApiMethodDescriptor + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDataStream") - .setHttpMethod("DELETE") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListSearchAds360Links") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/dataStreams/*}", + "/v1alpha/{parent=properties/*}/searchAds360Links", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSearchAds360LinksResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - updateDataStreamMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + createSearchAds360LinkMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataStream") - .setHttpMethod("PATCH") + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSearchAds360Link") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{dataStream.name=properties/*/dataStreams/*}", + "/v1alpha/{parent=properties/*}/searchAds360Links", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "dataStream.name", request.getDataStream().getName()); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("dataStream", request.getDataStream(), true)) + .toBody("searchAds360Link", request.getSearchAds360Link(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DataStream.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchAds360Link.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - listDataStreamsMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + deleteSearchAds360LinkMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListDataStreams") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSearchAds360Link") + .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/dataStreams", + "/v1alpha/{name=properties/*/searchAds360Links/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListDataStreamsResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getDataStreamMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + updateSearchAds360LinkMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataStream") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateSearchAds360Link") + .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/dataStreams/*}", + "/v1alpha/{searchAds360Link.name=properties/*/searchAds360Links/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam( + fields, + "searchAds360Link.name", + request.getSearchAds360Link().getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("searchAds360Link", request.getSearchAds360Link(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DataStream.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchAds360Link.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getAudienceMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.analytics.admin.v1alpha.AnalyticsAdminService/GetAudience") + private static final ApiMethodDescriptor + getAttributionSettingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetAttributionSettings") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/audiences/*}", + "/v1alpha/{name=properties/*/attributionSettings}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; @@ -3303,7 +3292,7 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -3311,71 +3300,80 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Audience.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AttributionSettings.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - listAudiencesMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + updateAttributionSettingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAudiences") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAttributionSettings") + .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/audiences", + "/v1alpha/{attributionSettings.name=properties/*/attributionSettings}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam( + fields, + "attributionSettings.name", + request.getAttributionSettings().getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "attributionSettings", + request.getAttributionSettings(), + true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListAudiencesResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AttributionSettings.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - createAudienceMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + runAccessReportMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAudience") + "google.analytics.admin.v1alpha.AnalyticsAdminService/RunAccessReport") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/audiences", + "/v1alpha/{entity=properties/*}:runAccessReport", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam(fields, "entity", request.getEntity()); return fields; }) + .setAdditionalPaths("/v1alpha/{entity=accounts/*}:runAccessReport") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -3383,540 +3381,544 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("audience", request.getAudience(), true)) + .toBody("*", request.toBuilder().clearEntity().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Audience.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RunAccessReportResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - updateAudienceMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + createAccessBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAudience") - .setHttpMethod("PATCH") + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAccessBinding") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{audience.name=properties/*/audiences/*}", + "/v1alpha/{parent=accounts/*}/accessBindings", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "audience.name", request.getAudience().getName()); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) + .setAdditionalPaths("/v1alpha/{parent=properties/*}/accessBindings") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("audience", request.getAudience(), true)) + .toBody("accessBinding", request.getAccessBinding(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Audience.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AccessBinding.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - archiveAudienceMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + getAccessBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveAudience") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetAccessBinding") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/audiences/*}:archive", + "/v1alpha/{name=accounts/*/accessBindings/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1alpha/{name=properties/*/accessBindings/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AccessBinding.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getSearchAds360LinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + updateAccessBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetSearchAds360Link") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAccessBinding") + .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/searchAds360Links/*}", + "/v1alpha/{accessBinding.name=accounts/*/accessBindings/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam( + fields, "accessBinding.name", request.getAccessBinding().getName()); return fields; }) + .setAdditionalPaths( + "/v1alpha/{accessBinding.name=properties/*/accessBindings/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("accessBinding", request.getAccessBinding(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(SearchAds360Link.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AccessBinding.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - ListSearchAds360LinksRequest, ListSearchAds360LinksResponse> - listSearchAds360LinksMethodDescriptor = - ApiMethodDescriptor - .newBuilder() + private static final ApiMethodDescriptor + deleteAccessBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListSearchAds360Links") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAccessBinding") + .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/searchAds360Links", + "/v1alpha/{name=accounts/*/accessBindings/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1alpha/{name=properties/*/accessBindings/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListSearchAds360LinksResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - createSearchAds360LinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + listAccessBindingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSearchAds360Link") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccessBindings") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/searchAds360Links", + "/v1alpha/{parent=accounts/*}/accessBindings", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) + .setAdditionalPaths("/v1alpha/{parent=properties/*}/accessBindings") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("searchAds360Link", request.getSearchAds360Link(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(SearchAds360Link.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAccessBindingsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - deleteSearchAds360LinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + BatchCreateAccessBindingsRequest, BatchCreateAccessBindingsResponse> + batchCreateAccessBindingsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSearchAds360Link") - .setHttpMethod("DELETE") + "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchCreateAccessBindings") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/searchAds360Links/*}", + "/v1alpha/{parent=accounts/*}/accessBindings:batchCreate", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) + .setAdditionalPaths( + "/v1alpha/{parent=properties/*}/accessBindings:batchCreate") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchCreateAccessBindingsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - updateSearchAds360LinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + BatchGetAccessBindingsRequest, BatchGetAccessBindingsResponse> + batchGetAccessBindingsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateSearchAds360Link") - .setHttpMethod("PATCH") + "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchGetAccessBindings") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{searchAds360Link.name=properties/*/searchAds360Links/*}", + "/v1alpha/{parent=accounts/*}/accessBindings:batchGet", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam( - fields, - "searchAds360Link.name", - request.getSearchAds360Link().getName()); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) + .setAdditionalPaths("/v1alpha/{parent=properties/*}/accessBindings:batchGet") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "names", request.getNamesList()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("searchAds360Link", request.getSearchAds360Link(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(SearchAds360Link.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchGetAccessBindingsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getAttributionSettingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + BatchUpdateAccessBindingsRequest, BatchUpdateAccessBindingsResponse> + batchUpdateAccessBindingsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetAttributionSettings") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchUpdateAccessBindings") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/attributionSettings}", + "/v1alpha/{parent=accounts/*}/accessBindings:batchUpdate", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) + .setAdditionalPaths( + "/v1alpha/{parent=properties/*}/accessBindings:batchUpdate") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(AttributionSettings.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchUpdateAccessBindingsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - updateAttributionSettingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + batchDeleteAccessBindingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAttributionSettings") - .setHttpMethod("PATCH") + "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchDeleteAccessBindings") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{attributionSettings.name=properties/*/attributionSettings}", + "/v1alpha/{parent=accounts/*}/accessBindings:batchDelete", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam( - fields, - "attributionSettings.name", - request.getAttributionSettings().getName()); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) + .setAdditionalPaths( + "/v1alpha/{parent=properties/*}/accessBindings:batchDelete") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody( - "attributionSettings", - request.getAttributionSettings(), - true)) + .toBody("*", request.toBuilder().clearParent().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(AttributionSettings.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - runAccessReportMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + getExpandedDataSetMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/RunAccessReport") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetExpandedDataSet") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{entity=properties/*}:runAccessReport", + "/v1alpha/{name=properties/*/expandedDataSets/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "entity", request.getEntity()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) - .setAdditionalPaths("/v1alpha/{entity=accounts/*}:runAccessReport") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearEntity().build(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(RunAccessReportResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ExpandedDataSet.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - createAccessBindingMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + ListExpandedDataSetsRequest, ListExpandedDataSetsResponse> + listExpandedDataSetsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAccessBinding") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListExpandedDataSets") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=accounts/*}/accessBindings", + "/v1alpha/{parent=properties/*}/expandedDataSets", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) - .setAdditionalPaths("/v1alpha/{parent=properties/*}/accessBindings") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("accessBinding", request.getAccessBinding(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(AccessBinding.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListExpandedDataSetsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getAccessBindingMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + createExpandedDataSetMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetAccessBinding") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateExpandedDataSet") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=accounts/*/accessBindings/*}", + "/v1alpha/{parent=properties/*}/expandedDataSets", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) - .setAdditionalPaths("/v1alpha/{name=properties/*/accessBindings/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("expandedDataSet", request.getExpandedDataSet(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(AccessBinding.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ExpandedDataSet.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - updateAccessBindingMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + updateExpandedDataSetMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAccessBinding") + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateExpandedDataSet") .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{accessBinding.name=accounts/*/accessBindings/*}", + "/v1alpha/{expandedDataSet.name=properties/*/expandedDataSets/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam( - fields, "accessBinding.name", request.getAccessBinding().getName()); + fields, + "expandedDataSet.name", + request.getExpandedDataSet().getName()); return fields; }) - .setAdditionalPaths( - "/v1alpha/{accessBinding.name=properties/*/accessBindings/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("accessBinding", request.getAccessBinding(), true)) + .toBody("expandedDataSet", request.getExpandedDataSet(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(AccessBinding.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ExpandedDataSet.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - deleteAccessBindingMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + deleteExpandedDataSetMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAccessBinding") + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteExpandedDataSet") .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=accounts/*/accessBindings/*}", + "/v1alpha/{name=properties/*/expandedDataSets/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) - .setAdditionalPaths("/v1alpha/{name=properties/*/accessBindings/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -3930,199 +3932,183 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .build()) .build(); - private static final ApiMethodDescriptor - listAccessBindingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + getChannelGroupMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccessBindings") + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetChannelGroup") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=accounts/*}/accessBindings", + "/v1alpha/{name=properties/*/channelGroups/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) - .setAdditionalPaths("/v1alpha/{parent=properties/*}/accessBindings") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListAccessBindingsResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ChannelGroup.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - BatchCreateAccessBindingsRequest, BatchCreateAccessBindingsResponse> - batchCreateAccessBindingsMethodDescriptor = - ApiMethodDescriptor - .newBuilder() + private static final ApiMethodDescriptor + listChannelGroupsMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchCreateAccessBindings") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListChannelGroups") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=accounts/*}/accessBindings:batchCreate", + "/v1alpha/{parent=properties/*}/channelGroups", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) - .setAdditionalPaths( - "/v1alpha/{parent=properties/*}/accessBindings:batchCreate") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(BatchCreateAccessBindingsResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListChannelGroupsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - BatchGetAccessBindingsRequest, BatchGetAccessBindingsResponse> - batchGetAccessBindingsMethodDescriptor = - ApiMethodDescriptor - .newBuilder() + private static final ApiMethodDescriptor + createChannelGroupMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchGetAccessBindings") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateChannelGroup") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=accounts/*}/accessBindings:batchGet", + "/v1alpha/{parent=properties/*}/channelGroups", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) - .setAdditionalPaths("/v1alpha/{parent=properties/*}/accessBindings:batchGet") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "names", request.getNamesList()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("channelGroup", request.getChannelGroup(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(BatchGetAccessBindingsResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ChannelGroup.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - BatchUpdateAccessBindingsRequest, BatchUpdateAccessBindingsResponse> - batchUpdateAccessBindingsMethodDescriptor = - ApiMethodDescriptor - .newBuilder() + private static final ApiMethodDescriptor + updateChannelGroupMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchUpdateAccessBindings") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateChannelGroup") + .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=accounts/*}/accessBindings:batchUpdate", + "/v1alpha/{channelGroup.name=properties/*/channelGroups/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam( + fields, "channelGroup.name", request.getChannelGroup().getName()); return fields; }) - .setAdditionalPaths( - "/v1alpha/{parent=properties/*}/accessBindings:batchUpdate") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) + .toBody("channelGroup", request.getChannelGroup(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(BatchUpdateAccessBindingsResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ChannelGroup.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - batchDeleteAccessBindingsMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + deleteChannelGroupMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchDeleteAccessBindings") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteChannelGroup") + .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=accounts/*}/accessBindings:batchDelete", + "/v1alpha/{name=properties/*/channelGroups/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) - .setAdditionalPaths( - "/v1alpha/{parent=properties/*}/accessBindings:batchDelete") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -4131,174 +4117,182 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .build()) .build(); - private static final ApiMethodDescriptor - getExpandedDataSetMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> + setAutomatedGa4ConfigurationOptOutMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetExpandedDataSet") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/SetAutomatedGa4ConfigurationOptOut") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter + .newBuilder() .setPath( - "/v1alpha/{name=properties/*/expandedDataSets/*}", + "/v1alpha/properties:setAutomatedGa4ConfigurationOptOut", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ExpandedDataSet.getDefaultInstance()) + ProtoMessageResponseParser + .newBuilder() + .setDefaultInstance( + SetAutomatedGa4ConfigurationOptOutResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor< - ListExpandedDataSetsRequest, ListExpandedDataSetsResponse> - listExpandedDataSetsMethodDescriptor = + FetchAutomatedGa4ConfigurationOptOutRequest, FetchAutomatedGa4ConfigurationOptOutResponse> + fetchAutomatedGa4ConfigurationOptOutMethodDescriptor = ApiMethodDescriptor - .newBuilder() + . + newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListExpandedDataSets") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/FetchAutomatedGa4ConfigurationOptOut") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter + .newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/expandedDataSets", + "/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListExpandedDataSetsResponse.getDefaultInstance()) + ProtoMessageResponseParser + .newBuilder() + .setDefaultInstance( + FetchAutomatedGa4ConfigurationOptOutResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - createExpandedDataSetMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + getBigQueryLinkMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateExpandedDataSet") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetBigQueryLink") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/expandedDataSets", + "/v1alpha/{name=properties/*/bigQueryLinks/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("expandedDataSet", request.getExpandedDataSet(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ExpandedDataSet.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BigQueryLink.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - updateExpandedDataSetMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + listBigQueryLinksMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateExpandedDataSet") - .setHttpMethod("PATCH") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListBigQueryLinks") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{expandedDataSet.name=properties/*/expandedDataSets/*}", + "/v1alpha/{parent=properties/*}/bigQueryLinks", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam( - fields, - "expandedDataSet.name", - request.getExpandedDataSet().getName()); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("expandedDataSet", request.getExpandedDataSet(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ExpandedDataSet.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListBigQueryLinksResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - deleteExpandedDataSetMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + GetEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> + getEnhancedMeasurementSettingsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteExpandedDataSet") - .setHttpMethod("DELETE") + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetEnhancedMeasurementSettings") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/expandedDataSets/*}", + "/v1alpha/{name=properties/*/dataStreams/*/enhancedMeasurementSettings}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; @@ -4306,7 +4300,7 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -4314,106 +4308,120 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(EnhancedMeasurementSettings.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getChannelGroupMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + UpdateEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> + updateEnhancedMeasurementSettingsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetChannelGroup") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEnhancedMeasurementSettings") + .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter + .newBuilder() .setPath( - "/v1alpha/{name=properties/*/channelGroups/*}", + "/v1alpha/{enhancedMeasurementSettings.name=properties/*/dataStreams/*/enhancedMeasurementSettings}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "enhancedMeasurementSettings.name", + request.getEnhancedMeasurementSettings().getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "enhancedMeasurementSettings", + request.getEnhancedMeasurementSettings(), + true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ChannelGroup.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(EnhancedMeasurementSettings.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - listChannelGroupsMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + CreateConnectedSiteTagRequest, CreateConnectedSiteTagResponse> + createConnectedSiteTagMethodDescriptor = + ApiMethodDescriptor + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListChannelGroups") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateConnectedSiteTag") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/channelGroups", + "/v1alpha/properties:createConnectedSiteTag", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListChannelGroupsResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CreateConnectedSiteTagResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - createChannelGroupMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + deleteConnectedSiteTagMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateChannelGroup") + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConnectedSiteTag") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/channelGroups", + "/v1alpha/properties:deleteConnectedSiteTag", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -4421,192 +4429,178 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("channelGroup", request.getChannelGroup(), true)) + .toBody("*", request.toBuilder().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ChannelGroup.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - updateChannelGroupMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + ListConnectedSiteTagsRequest, ListConnectedSiteTagsResponse> + listConnectedSiteTagsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateChannelGroup") - .setHttpMethod("PATCH") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListConnectedSiteTags") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{channelGroup.name=properties/*/channelGroups/*}", + "/v1alpha/properties:listConnectedSiteTags", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "channelGroup.name", request.getChannelGroup().getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("channelGroup", request.getChannelGroup(), true)) + .toBody("*", request.toBuilder().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ChannelGroup.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListConnectedSiteTagsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - deleteChannelGroupMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + FetchConnectedGa4PropertyRequest, FetchConnectedGa4PropertyResponse> + fetchConnectedGa4PropertyMethodDescriptor = + ApiMethodDescriptor + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteChannelGroup") - .setHttpMethod("DELETE") + "google.analytics.admin.v1alpha.AnalyticsAdminService/FetchConnectedGa4Property") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/channelGroups/*}", + "/v1alpha/properties:fetchConnectedGa4Property", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "property", request.getProperty()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(FetchConnectedGa4PropertyResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> - setAutomatedGa4ConfigurationOptOutMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() + private static final ApiMethodDescriptor + getAdSenseLinkMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/SetAutomatedGa4ConfigurationOptOut") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetAdSenseLink") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/properties:setAutomatedGa4ConfigurationOptOut", + "/v1alpha/{name=properties/*/adSenseLinks/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().build(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser - .newBuilder() - .setDefaultInstance( - SetAutomatedGa4ConfigurationOptOutResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AdSenseLink.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - FetchAutomatedGa4ConfigurationOptOutRequest, FetchAutomatedGa4ConfigurationOptOutResponse> - fetchAutomatedGa4ConfigurationOptOutMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() + private static final ApiMethodDescriptor + createAdSenseLinkMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/FetchAutomatedGa4ConfigurationOptOut") + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAdSenseLink") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut", + "/v1alpha/{parent=properties/*}/adSenseLinks", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().build(), true)) + .toBody("adsenseLink", request.getAdsenseLink(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser - .newBuilder() - .setDefaultInstance( - FetchAutomatedGa4ConfigurationOptOutResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AdSenseLink.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getBigQueryLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + deleteAdSenseLinkMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetBigQueryLink") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAdSenseLink") + .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/bigQueryLinks/*}", + "/v1alpha/{name=properties/*/adSenseLinks/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; @@ -4614,7 +4608,7 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -4622,26 +4616,26 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(BigQueryLink.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - listBigQueryLinksMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + listAdSenseLinksMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListBigQueryLinks") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAdSenseLinks") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/bigQueryLinks", + "/v1alpha/{parent=properties/*}/adSenseLinks", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; @@ -4649,7 +4643,7 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); @@ -4659,28 +4653,26 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListBigQueryLinksResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAdSenseLinksResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - GetEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> - getEnhancedMeasurementSettingsMethodDescriptor = - ApiMethodDescriptor - .newBuilder() + private static final ApiMethodDescriptor + getEventCreateRuleMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetEnhancedMeasurementSettings") + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetEventCreateRule") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/dataStreams/*/enhancedMeasurementSettings}", + "/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; @@ -4688,7 +4680,7 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -4696,83 +4688,73 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(EnhancedMeasurementSettings.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(EventCreateRule.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor< - UpdateEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> - updateEnhancedMeasurementSettingsMethodDescriptor = + ListEventCreateRulesRequest, ListEventCreateRulesResponse> + listEventCreateRulesMethodDescriptor = ApiMethodDescriptor - .newBuilder() + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEnhancedMeasurementSettings") - .setHttpMethod("PATCH") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListEventCreateRules") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{enhancedMeasurementSettings.name=properties/*/dataStreams/*/enhancedMeasurementSettings}", + "/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putPathParam( - fields, - "enhancedMeasurementSettings.name", - request.getEnhancedMeasurementSettings().getName()); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer - serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody( - "enhancedMeasurementSettings", - request.getEnhancedMeasurementSettings(), - true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(EnhancedMeasurementSettings.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListEventCreateRulesResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - CreateConnectedSiteTagRequest, CreateConnectedSiteTagResponse> - createConnectedSiteTagMethodDescriptor = - ApiMethodDescriptor - .newBuilder() + private static final ApiMethodDescriptor + createEventCreateRuleMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateConnectedSiteTag") + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateEventCreateRule") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/properties:createConnectedSiteTag", + "/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -4780,142 +4762,153 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().build(), true)) + .toBody("eventCreateRule", request.getEventCreateRule(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CreateConnectedSiteTagResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(EventCreateRule.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - deleteConnectedSiteTagMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + updateEventCreateRuleMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConnectedSiteTag") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEventCreateRule") + .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/properties:deleteConnectedSiteTag", + "/v1alpha/{eventCreateRule.name=properties/*/dataStreams/*/eventCreateRules/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "eventCreateRule.name", + request.getEventCreateRule().getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().build(), true)) + .toBody("eventCreateRule", request.getEventCreateRule(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(EventCreateRule.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - ListConnectedSiteTagsRequest, ListConnectedSiteTagsResponse> - listConnectedSiteTagsMethodDescriptor = - ApiMethodDescriptor - .newBuilder() + private static final ApiMethodDescriptor + deleteEventCreateRuleMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListConnectedSiteTags") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteEventCreateRule") + .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/properties:listConnectedSiteTags", + "/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().build(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListConnectedSiteTagsResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor< - FetchConnectedGa4PropertyRequest, FetchConnectedGa4PropertyResponse> - fetchConnectedGa4PropertyMethodDescriptor = + UpdateDataRedactionSettingsRequest, DataRedactionSettings> + updateDataRedactionSettingsMethodDescriptor = ApiMethodDescriptor - .newBuilder() + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/FetchConnectedGa4Property") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRedactionSettings") + .setHttpMethod("PATCH") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/properties:fetchConnectedGa4Property", + "/v1alpha/{dataRedactionSettings.name=properties/*/dataStreams/*/dataRedactionSettings}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "dataRedactionSettings.name", + request.getDataRedactionSettings().getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "property", request.getProperty()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "dataRedactionSettings", + request.getDataRedactionSettings(), + true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(FetchConnectedGa4PropertyResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DataRedactionSettings.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getAdSenseLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + getDataRedactionSettingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetAdSenseLink") + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRedactionSettings") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/adSenseLinks/*}", + "/v1alpha/{name=properties/*/dataStreams/*/dataRedactionSettings}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; @@ -4923,7 +4916,7 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -4931,34 +4924,35 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(AdSenseLink.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DataRedactionSettings.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - createAdSenseLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + CreateRollupPropertyRequest, CreateRollupPropertyResponse> + createRollupPropertyMethodDescriptor = + ApiMethodDescriptor + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAdSenseLink") + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateRollupProperty") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/adSenseLinks", + "/v1alpha/properties:createRollupProperty", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -4966,29 +4960,31 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("adsenseLink", request.getAdsenseLink(), true)) + .toBody("*", request.toBuilder().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(AdSenseLink.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CreateRollupPropertyResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - deleteAdSenseLinkMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + GetRollupPropertySourceLinkRequest, RollupPropertySourceLink> + getRollupPropertySourceLinkMethodDescriptor = + ApiMethodDescriptor + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAdSenseLink") - .setHttpMethod("DELETE") + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetRollupPropertySourceLink") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/adSenseLinks/*}", + "/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; @@ -4996,7 +4992,7 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -5004,26 +5000,29 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RollupPropertySourceLink.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - listAdSenseLinksMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksResponse> + listRollupPropertySourceLinksMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAdSenseLinks") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListRollupPropertySourceLinks") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*}/adSenseLinks", + "/v1alpha/{parent=properties/*}/rollupPropertySourceLinks", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; @@ -5031,7 +5030,7 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); @@ -5041,108 +5040,112 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListAdSenseLinksResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + ListRollupPropertySourceLinksResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - getEventCreateRuleMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + CreateRollupPropertySourceLinkRequest, RollupPropertySourceLink> + createRollupPropertySourceLinkMethodDescriptor = + ApiMethodDescriptor + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetEventCreateRule") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateRollupPropertySourceLink") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}", + "/v1alpha/{parent=properties/*}/rollupPropertySourceLinks", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "rollupPropertySourceLink", + request.getRollupPropertySourceLink(), + true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(EventCreateRule.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RollupPropertySourceLink.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor< - ListEventCreateRulesRequest, ListEventCreateRulesResponse> - listEventCreateRulesMethodDescriptor = - ApiMethodDescriptor - .newBuilder() + private static final ApiMethodDescriptor + deleteRollupPropertySourceLinkMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListEventCreateRules") - .setHttpMethod("GET") + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteRollupPropertySourceLink") + .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules", + "/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListEventCreateRulesResponse.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - createEventCreateRuleMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + createSubpropertyMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateEventCreateRule") + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSubproperty") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules", + "/v1alpha/properties:createSubproperty", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; @@ -5150,88 +5153,89 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("eventCreateRule", request.getEventCreateRule(), true)) + .toBody("*", request.toBuilder().build(), true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(EventCreateRule.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CreateSubpropertyResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - updateEventCreateRuleMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor + deleteSubpropertyEventFilterMethodDescriptor = + ApiMethodDescriptor.newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEventCreateRule") - .setHttpMethod("PATCH") + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSubpropertyEventFilter") + .setHttpMethod("DELETE") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{eventCreateRule.name=properties/*/dataStreams/*/eventCreateRules/*}", + "/v1alpha/{name=properties/*/subpropertyEventFilters/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam( - fields, - "eventCreateRule.name", - request.getEventCreateRule().getName()); + serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("eventCreateRule", request.getEventCreateRule(), true)) + .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(EventCreateRule.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); - private static final ApiMethodDescriptor - deleteEventCreateRuleMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + CreateSubpropertyEventFilterRequest, SubpropertyEventFilter> + createSubpropertyEventFilterMethodDescriptor = + ApiMethodDescriptor + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteEventCreateRule") - .setHttpMethod("DELETE") + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSubpropertyEventFilter") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( - "/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}", + "/v1alpha/{parent=properties/*}/subpropertyEventFilters", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); + serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) - .setRequestBodyExtractor(request -> null) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "subpropertyEventFilter", + request.getSubpropertyEventFilter(), + true)) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SubpropertyEventFilter.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); @@ -5255,23 +5259,6 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub private final UnaryCallable createPropertyCallable; private final UnaryCallable deletePropertyCallable; private final UnaryCallable updatePropertyCallable; - private final UnaryCallable getUserLinkCallable; - private final UnaryCallable - batchGetUserLinksCallable; - private final UnaryCallable listUserLinksCallable; - private final UnaryCallable - listUserLinksPagedCallable; - private final UnaryCallable auditUserLinksCallable; - private final UnaryCallable - auditUserLinksPagedCallable; - private final UnaryCallable createUserLinkCallable; - private final UnaryCallable - batchCreateUserLinksCallable; - private final UnaryCallable updateUserLinkCallable; - private final UnaryCallable - batchUpdateUserLinksCallable; - private final UnaryCallable deleteUserLinkCallable; - private final UnaryCallable batchDeleteUserLinksCallable; private final UnaryCallable createFirebaseLinkCallable; private final UnaryCallable deleteFirebaseLinkCallable; private final UnaryCallable @@ -5519,6 +5506,30 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub private final UnaryCallable updateEventCreateRuleCallable; private final UnaryCallable deleteEventCreateRuleCallable; + private final UnaryCallable + updateDataRedactionSettingsCallable; + private final UnaryCallable + getDataRedactionSettingsCallable; + private final UnaryCallable + createRollupPropertyCallable; + private final UnaryCallable + getRollupPropertySourceLinkCallable; + private final UnaryCallable< + ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksResponse> + listRollupPropertySourceLinksCallable; + private final UnaryCallable< + ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksPagedResponse> + listRollupPropertySourceLinksPagedCallable; + private final UnaryCallable + createRollupPropertySourceLinkCallable; + private final UnaryCallable + deleteRollupPropertySourceLinkCallable; + private final UnaryCallable + createSubpropertyCallable; + private final UnaryCallable + deleteSubpropertyEventFilterCallable; + private final UnaryCallable + createSubpropertyEventFilterCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -5570,194 +5581,77 @@ protected HttpJsonAnalyticsAdminServiceStub( .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings listAccountsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listAccountsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deleteAccountTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteAccountMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings updateAccountTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateAccountMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("account.name", String.valueOf(request.getAccount().getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - provisionAccountTicketTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(provisionAccountTicketMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listAccountSummariesTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(listAccountSummariesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getPropertyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getPropertyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - listPropertiesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listPropertiesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings createPropertyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createPropertyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deletePropertyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deletePropertyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings updatePropertyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updatePropertyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("property.name", String.valueOf(request.getProperty().getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings getUserLinkTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getUserLinkMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - batchGetUserLinksTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(batchGetUserLinksMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - listUserLinksTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listUserLinksMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - auditUserLinksTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(auditUserLinksMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings createUserLinkTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createUserLinkMethodDescriptor) + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listAccountsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAccountsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteAccountTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAccountMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateAccountTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAccountMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("account.name", String.valueOf(request.getAccount().getName())); return builder.build(); }) .build(); - HttpJsonCallSettings - batchCreateUserLinksTransportSettings = + HttpJsonCallSettings + provisionAccountTicketTransportSettings = HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(batchCreateUserLinksMethodDescriptor) + .newBuilder() + .setMethodDescriptor(provisionAccountTicketMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listAccountSummariesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listAccountSummariesMethodDescriptor) .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) .build(); - HttpJsonCallSettings updateUserLinkTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateUserLinkMethodDescriptor) + HttpJsonCallSettings getPropertyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getPropertyMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("user_link.name", String.valueOf(request.getUserLink().getName())); + builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); - HttpJsonCallSettings - batchUpdateUserLinksTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(batchUpdateUserLinksMethodDescriptor) + HttpJsonCallSettings + listPropertiesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listPropertiesMethodDescriptor) .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) .build(); - HttpJsonCallSettings deleteUserLinkTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteUserLinkMethodDescriptor) + HttpJsonCallSettings createPropertyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createPropertyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deletePropertyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deletePropertyMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -5766,14 +5660,14 @@ protected HttpJsonAnalyticsAdminServiceStub( return builder.build(); }) .build(); - HttpJsonCallSettings batchDeleteUserLinksTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(batchDeleteUserLinksMethodDescriptor) + HttpJsonCallSettings updatePropertyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updatePropertyMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); + builder.add("property.name", String.valueOf(request.getProperty().getName())); return builder.build(); }) .build(); @@ -7122,6 +7016,125 @@ protected HttpJsonAnalyticsAdminServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + updateDataRedactionSettingsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(updateDataRedactionSettingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "data_redaction_settings.name", + String.valueOf(request.getDataRedactionSettings().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getDataRedactionSettingsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getDataRedactionSettingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createRollupPropertyTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(createRollupPropertyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + getRollupPropertySourceLinkTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getRollupPropertySourceLinkMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings< + ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksResponse> + listRollupPropertySourceLinksTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listRollupPropertySourceLinksMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createRollupPropertySourceLinkTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(createRollupPropertySourceLinkMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteRollupPropertySourceLinkTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteRollupPropertySourceLinkMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createSubpropertyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createSubpropertyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + deleteSubpropertyEventFilterTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteSubpropertyEventFilterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createSubpropertyEventFilterTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(createSubpropertyEventFilterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); this.getAccountCallable = callableFactory.createUnaryCallable( @@ -7171,50 +7184,6 @@ protected HttpJsonAnalyticsAdminServiceStub( this.updatePropertyCallable = callableFactory.createUnaryCallable( updatePropertyTransportSettings, settings.updatePropertySettings(), clientContext); - this.getUserLinkCallable = - callableFactory.createUnaryCallable( - getUserLinkTransportSettings, settings.getUserLinkSettings(), clientContext); - this.batchGetUserLinksCallable = - callableFactory.createUnaryCallable( - batchGetUserLinksTransportSettings, - settings.batchGetUserLinksSettings(), - clientContext); - this.listUserLinksCallable = - callableFactory.createUnaryCallable( - listUserLinksTransportSettings, settings.listUserLinksSettings(), clientContext); - this.listUserLinksPagedCallable = - callableFactory.createPagedCallable( - listUserLinksTransportSettings, settings.listUserLinksSettings(), clientContext); - this.auditUserLinksCallable = - callableFactory.createUnaryCallable( - auditUserLinksTransportSettings, settings.auditUserLinksSettings(), clientContext); - this.auditUserLinksPagedCallable = - callableFactory.createPagedCallable( - auditUserLinksTransportSettings, settings.auditUserLinksSettings(), clientContext); - this.createUserLinkCallable = - callableFactory.createUnaryCallable( - createUserLinkTransportSettings, settings.createUserLinkSettings(), clientContext); - this.batchCreateUserLinksCallable = - callableFactory.createUnaryCallable( - batchCreateUserLinksTransportSettings, - settings.batchCreateUserLinksSettings(), - clientContext); - this.updateUserLinkCallable = - callableFactory.createUnaryCallable( - updateUserLinkTransportSettings, settings.updateUserLinkSettings(), clientContext); - this.batchUpdateUserLinksCallable = - callableFactory.createUnaryCallable( - batchUpdateUserLinksTransportSettings, - settings.batchUpdateUserLinksSettings(), - clientContext); - this.deleteUserLinkCallable = - callableFactory.createUnaryCallable( - deleteUserLinkTransportSettings, settings.deleteUserLinkSettings(), clientContext); - this.batchDeleteUserLinksCallable = - callableFactory.createUnaryCallable( - batchDeleteUserLinksTransportSettings, - settings.batchDeleteUserLinksSettings(), - clientContext); this.createFirebaseLinkCallable = callableFactory.createUnaryCallable( createFirebaseLinkTransportSettings, @@ -7803,6 +7772,61 @@ protected HttpJsonAnalyticsAdminServiceStub( deleteEventCreateRuleTransportSettings, settings.deleteEventCreateRuleSettings(), clientContext); + this.updateDataRedactionSettingsCallable = + callableFactory.createUnaryCallable( + updateDataRedactionSettingsTransportSettings, + settings.updateDataRedactionSettingsSettings(), + clientContext); + this.getDataRedactionSettingsCallable = + callableFactory.createUnaryCallable( + getDataRedactionSettingsTransportSettings, + settings.getDataRedactionSettingsSettings(), + clientContext); + this.createRollupPropertyCallable = + callableFactory.createUnaryCallable( + createRollupPropertyTransportSettings, + settings.createRollupPropertySettings(), + clientContext); + this.getRollupPropertySourceLinkCallable = + callableFactory.createUnaryCallable( + getRollupPropertySourceLinkTransportSettings, + settings.getRollupPropertySourceLinkSettings(), + clientContext); + this.listRollupPropertySourceLinksCallable = + callableFactory.createUnaryCallable( + listRollupPropertySourceLinksTransportSettings, + settings.listRollupPropertySourceLinksSettings(), + clientContext); + this.listRollupPropertySourceLinksPagedCallable = + callableFactory.createPagedCallable( + listRollupPropertySourceLinksTransportSettings, + settings.listRollupPropertySourceLinksSettings(), + clientContext); + this.createRollupPropertySourceLinkCallable = + callableFactory.createUnaryCallable( + createRollupPropertySourceLinkTransportSettings, + settings.createRollupPropertySourceLinkSettings(), + clientContext); + this.deleteRollupPropertySourceLinkCallable = + callableFactory.createUnaryCallable( + deleteRollupPropertySourceLinkTransportSettings, + settings.deleteRollupPropertySourceLinkSettings(), + clientContext); + this.createSubpropertyCallable = + callableFactory.createUnaryCallable( + createSubpropertyTransportSettings, + settings.createSubpropertySettings(), + clientContext); + this.deleteSubpropertyEventFilterCallable = + callableFactory.createUnaryCallable( + deleteSubpropertyEventFilterTransportSettings, + settings.deleteSubpropertyEventFilterSettings(), + clientContext); + this.createSubpropertyEventFilterCallable = + callableFactory.createUnaryCallable( + createSubpropertyEventFilterTransportSettings, + settings.createSubpropertyEventFilterSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -7822,16 +7846,6 @@ public static List getMethodDescriptors() { methodDescriptors.add(createPropertyMethodDescriptor); methodDescriptors.add(deletePropertyMethodDescriptor); methodDescriptors.add(updatePropertyMethodDescriptor); - methodDescriptors.add(getUserLinkMethodDescriptor); - methodDescriptors.add(batchGetUserLinksMethodDescriptor); - methodDescriptors.add(listUserLinksMethodDescriptor); - methodDescriptors.add(auditUserLinksMethodDescriptor); - methodDescriptors.add(createUserLinkMethodDescriptor); - methodDescriptors.add(batchCreateUserLinksMethodDescriptor); - methodDescriptors.add(updateUserLinkMethodDescriptor); - methodDescriptors.add(batchUpdateUserLinksMethodDescriptor); - methodDescriptors.add(deleteUserLinkMethodDescriptor); - methodDescriptors.add(batchDeleteUserLinksMethodDescriptor); methodDescriptors.add(createFirebaseLinkMethodDescriptor); methodDescriptors.add(deleteFirebaseLinkMethodDescriptor); methodDescriptors.add(listFirebaseLinksMethodDescriptor); @@ -7939,6 +7953,16 @@ public static List getMethodDescriptors() { methodDescriptors.add(createEventCreateRuleMethodDescriptor); methodDescriptors.add(updateEventCreateRuleMethodDescriptor); methodDescriptors.add(deleteEventCreateRuleMethodDescriptor); + methodDescriptors.add(updateDataRedactionSettingsMethodDescriptor); + methodDescriptors.add(getDataRedactionSettingsMethodDescriptor); + methodDescriptors.add(createRollupPropertyMethodDescriptor); + methodDescriptors.add(getRollupPropertySourceLinkMethodDescriptor); + methodDescriptors.add(listRollupPropertySourceLinksMethodDescriptor); + methodDescriptors.add(createRollupPropertySourceLinkMethodDescriptor); + methodDescriptors.add(deleteRollupPropertySourceLinkMethodDescriptor); + methodDescriptors.add(createSubpropertyMethodDescriptor); + methodDescriptors.add(deleteSubpropertyEventFilterMethodDescriptor); + methodDescriptors.add(createSubpropertyEventFilterMethodDescriptor); return methodDescriptors; } @@ -8016,71 +8040,6 @@ public UnaryCallable updatePropertyCallable() { return updatePropertyCallable; } - @Override - public UnaryCallable getUserLinkCallable() { - return getUserLinkCallable; - } - - @Override - public UnaryCallable - batchGetUserLinksCallable() { - return batchGetUserLinksCallable; - } - - @Override - public UnaryCallable listUserLinksCallable() { - return listUserLinksCallable; - } - - @Override - public UnaryCallable - listUserLinksPagedCallable() { - return listUserLinksPagedCallable; - } - - @Override - public UnaryCallable auditUserLinksCallable() { - return auditUserLinksCallable; - } - - @Override - public UnaryCallable - auditUserLinksPagedCallable() { - return auditUserLinksPagedCallable; - } - - @Override - public UnaryCallable createUserLinkCallable() { - return createUserLinkCallable; - } - - @Override - public UnaryCallable - batchCreateUserLinksCallable() { - return batchCreateUserLinksCallable; - } - - @Override - public UnaryCallable updateUserLinkCallable() { - return updateUserLinkCallable; - } - - @Override - public UnaryCallable - batchUpdateUserLinksCallable() { - return batchUpdateUserLinksCallable; - } - - @Override - public UnaryCallable deleteUserLinkCallable() { - return deleteUserLinkCallable; - } - - @Override - public UnaryCallable batchDeleteUserLinksCallable() { - return batchDeleteUserLinksCallable; - } - @Override public UnaryCallable createFirebaseLinkCallable() { return createFirebaseLinkCallable; @@ -8815,6 +8774,73 @@ public UnaryCallable deleteEventCreateRuleC return deleteEventCreateRuleCallable; } + @Override + public UnaryCallable + updateDataRedactionSettingsCallable() { + return updateDataRedactionSettingsCallable; + } + + @Override + public UnaryCallable + getDataRedactionSettingsCallable() { + return getDataRedactionSettingsCallable; + } + + @Override + public UnaryCallable + createRollupPropertyCallable() { + return createRollupPropertyCallable; + } + + @Override + public UnaryCallable + getRollupPropertySourceLinkCallable() { + return getRollupPropertySourceLinkCallable; + } + + @Override + public UnaryCallable + listRollupPropertySourceLinksCallable() { + return listRollupPropertySourceLinksCallable; + } + + @Override + public UnaryCallable< + ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksPagedResponse> + listRollupPropertySourceLinksPagedCallable() { + return listRollupPropertySourceLinksPagedCallable; + } + + @Override + public UnaryCallable + createRollupPropertySourceLinkCallable() { + return createRollupPropertySourceLinkCallable; + } + + @Override + public UnaryCallable + deleteRollupPropertySourceLinkCallable() { + return deleteRollupPropertySourceLinkCallable; + } + + @Override + public UnaryCallable + createSubpropertyCallable() { + return createSubpropertyCallable; + } + + @Override + public UnaryCallable + deleteSubpropertyEventFilterCallable() { + return deleteSubpropertyEventFilterCallable; + } + + @Override + public UnaryCallable + createSubpropertyEventFilterCallable() { + return createSubpropertyEventFilterCallable; + } + @Override public final void close() { try { diff --git a/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json b/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json index f3ba06dba21d..7cc46dc11d77 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json +++ b/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json @@ -980,60 +980,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.analytics.admin.v1alpha.AuditUserLink", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.analytics.admin.v1alpha.AuditUserLink$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.analytics.admin.v1alpha.AuditUserLinksRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.analytics.admin.v1alpha.AuditUserLinksRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.analytics.admin.v1alpha.AuditUserLinksResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.analytics.admin.v1alpha.AuditUserLinksResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest", "queryAllDeclaredConstructors": true, @@ -1071,25 +1017,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse", + "name": "com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1098,7 +1026,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse$Builder", + "name": "com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1107,7 +1035,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest", + "name": "com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1116,7 +1044,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1125,7 +1053,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest", + "name": "com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1134,7 +1062,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1143,7 +1071,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest", + "name": "com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1152,7 +1080,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1161,7 +1089,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse", + "name": "com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1170,7 +1098,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse$Builder", + "name": "com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1179,7 +1107,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest", + "name": "com.google.analytics.admin.v1alpha.BigQueryLink", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1188,7 +1116,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.BigQueryLink$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1197,7 +1125,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse", + "name": "com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1206,7 +1134,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse$Builder", + "name": "com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1215,7 +1143,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest", + "name": "com.google.analytics.admin.v1alpha.ChangeHistoryChange", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1224,7 +1152,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.ChangeHistoryChange$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1233,7 +1161,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse", + "name": "com.google.analytics.admin.v1alpha.ChangeHistoryChange$ChangeHistoryResource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1242,7 +1170,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse$Builder", + "name": "com.google.analytics.admin.v1alpha.ChangeHistoryChange$ChangeHistoryResource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1251,7 +1179,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest", + "name": "com.google.analytics.admin.v1alpha.ChangeHistoryEvent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1260,7 +1188,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.ChangeHistoryEvent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1269,7 +1197,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse", + "name": "com.google.analytics.admin.v1alpha.ChangeHistoryResourceType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1278,7 +1206,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse$Builder", + "name": "com.google.analytics.admin.v1alpha.ChannelGroup", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1287,7 +1215,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BigQueryLink", + "name": "com.google.analytics.admin.v1alpha.ChannelGroup$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1296,7 +1224,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.BigQueryLink$Builder", + "name": "com.google.analytics.admin.v1alpha.ChannelGroupFilter", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1305,7 +1233,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest", + "name": "com.google.analytics.admin.v1alpha.ChannelGroupFilter$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1314,7 +1242,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.ChannelGroupFilter$InListFilter", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1323,7 +1251,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ChangeHistoryChange", + "name": "com.google.analytics.admin.v1alpha.ChannelGroupFilter$InListFilter$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1332,7 +1260,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ChangeHistoryChange$Builder", + "name": "com.google.analytics.admin.v1alpha.ChannelGroupFilter$StringFilter", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1341,7 +1269,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ChangeHistoryChange$ChangeHistoryResource", + "name": "com.google.analytics.admin.v1alpha.ChannelGroupFilter$StringFilter$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1350,7 +1278,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ChangeHistoryChange$ChangeHistoryResource$Builder", + "name": "com.google.analytics.admin.v1alpha.ChannelGroupFilter$StringFilter$MatchType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1359,7 +1287,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ChangeHistoryEvent", + "name": "com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1368,7 +1296,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ChangeHistoryEvent$Builder", + "name": "com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1377,7 +1305,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ChangeHistoryResourceType", + "name": "com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1386,7 +1314,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ChannelGroup", + "name": "com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1395,7 +1323,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ChannelGroup$Builder", + "name": "com.google.analytics.admin.v1alpha.CoarseValue", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1404,7 +1332,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ChannelGroupFilter", + "name": "com.google.analytics.admin.v1alpha.ConnectedSiteTag", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1413,7 +1341,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ChannelGroupFilter$Builder", + "name": "com.google.analytics.admin.v1alpha.ConnectedSiteTag$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1422,7 +1350,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ChannelGroupFilter$InListFilter", + "name": "com.google.analytics.admin.v1alpha.ConversionEvent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1431,7 +1359,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ChannelGroupFilter$InListFilter$Builder", + "name": "com.google.analytics.admin.v1alpha.ConversionEvent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1440,7 +1368,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ChannelGroupFilter$StringFilter", + "name": "com.google.analytics.admin.v1alpha.ConversionEvent$ConversionCountingMethod", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1449,7 +1377,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ChannelGroupFilter$StringFilter$Builder", + "name": "com.google.analytics.admin.v1alpha.ConversionValues", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1458,7 +1386,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ChannelGroupFilter$StringFilter$MatchType", + "name": "com.google.analytics.admin.v1alpha.ConversionValues$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1467,7 +1395,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression", + "name": "com.google.analytics.admin.v1alpha.CreateAccessBindingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1476,7 +1404,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateAccessBindingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1485,7 +1413,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList", + "name": "com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1494,7 +1422,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1503,7 +1431,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CoarseValue", + "name": "com.google.analytics.admin.v1alpha.CreateAudienceRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1512,7 +1440,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ConnectedSiteTag", + "name": "com.google.analytics.admin.v1alpha.CreateAudienceRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1521,7 +1449,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ConnectedSiteTag$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateChannelGroupRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1530,7 +1458,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ConversionEvent", + "name": "com.google.analytics.admin.v1alpha.CreateChannelGroupRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1539,7 +1467,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ConversionEvent$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1548,7 +1476,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ConversionEvent$ConversionCountingMethod", + "name": "com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1557,7 +1485,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ConversionValues", + "name": "com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1566,7 +1494,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ConversionValues$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1575,7 +1503,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateAccessBindingRequest", + "name": "com.google.analytics.admin.v1alpha.CreateConversionEventRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1584,7 +1512,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateAccessBindingRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateConversionEventRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1593,7 +1521,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest", + "name": "com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1602,7 +1530,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1611,7 +1539,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateAudienceRequest", + "name": "com.google.analytics.admin.v1alpha.CreateCustomMetricRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1620,7 +1548,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateAudienceRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateCustomMetricRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1629,7 +1557,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateChannelGroupRequest", + "name": "com.google.analytics.admin.v1alpha.CreateDataStreamRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1638,7 +1566,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateChannelGroupRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateDataStreamRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1647,7 +1575,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest", + "name": "com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1656,7 +1584,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1665,7 +1593,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse", + "name": "com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1674,7 +1602,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1683,7 +1611,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateConversionEventRequest", + "name": "com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1692,7 +1620,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateConversionEventRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1701,7 +1629,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest", + "name": "com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1710,7 +1638,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1719,7 +1647,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateCustomMetricRequest", + "name": "com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1728,7 +1656,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateCustomMetricRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1737,7 +1665,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateDataStreamRequest", + "name": "com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1746,7 +1674,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateDataStreamRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1755,7 +1683,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest", + "name": "com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1764,7 +1692,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1773,7 +1701,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest", + "name": "com.google.analytics.admin.v1alpha.CreatePropertyRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1782,7 +1710,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.CreatePropertyRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1791,7 +1719,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest", + "name": "com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1800,7 +1728,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1809,7 +1737,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest", + "name": "com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1818,7 +1746,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1827,7 +1755,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest", + "name": "com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1836,7 +1764,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1845,7 +1773,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest", + "name": "com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1854,7 +1782,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1863,7 +1791,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest", + "name": "com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1872,7 +1800,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1881,7 +1809,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreatePropertyRequest", + "name": "com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1890,7 +1818,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreatePropertyRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1899,7 +1827,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest", + "name": "com.google.analytics.admin.v1alpha.CreateSubpropertyRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1908,7 +1836,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateSubpropertyRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1917,7 +1845,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest", + "name": "com.google.analytics.admin.v1alpha.CreateSubpropertyResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1926,7 +1854,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.CreateSubpropertyResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1935,7 +1863,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateUserLinkRequest", + "name": "com.google.analytics.admin.v1alpha.CustomDimension", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1944,7 +1872,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CreateUserLinkRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.CustomDimension$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1953,7 +1881,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CustomDimension", + "name": "com.google.analytics.admin.v1alpha.CustomDimension$DimensionScope", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1962,7 +1890,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CustomDimension$Builder", + "name": "com.google.analytics.admin.v1alpha.CustomMetric", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1971,7 +1899,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CustomDimension$DimensionScope", + "name": "com.google.analytics.admin.v1alpha.CustomMetric$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1980,7 +1908,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CustomMetric", + "name": "com.google.analytics.admin.v1alpha.CustomMetric$MeasurementUnit", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1989,7 +1917,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CustomMetric$Builder", + "name": "com.google.analytics.admin.v1alpha.CustomMetric$MetricScope", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1998,7 +1926,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CustomMetric$MeasurementUnit", + "name": "com.google.analytics.admin.v1alpha.CustomMetric$RestrictedMetricType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2007,7 +1935,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CustomMetric$MetricScope", + "name": "com.google.analytics.admin.v1alpha.DataRedactionSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2016,7 +1944,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.CustomMetric$RestrictedMetricType", + "name": "com.google.analytics.admin.v1alpha.DataRedactionSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2420,6 +2348,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest", "queryAllDeclaredConstructors": true, @@ -2457,7 +2403,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.DeleteUserLinkRequest", + "name": "com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2466,7 +2412,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.DeleteUserLinkRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2951,6 +2897,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest", "queryAllDeclaredConstructors": true, @@ -3167,6 +3131,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest", "queryAllDeclaredConstructors": true, @@ -3204,7 +3186,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.GetUserLinkRequest", + "name": "com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3213,7 +3195,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.GetUserLinkRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4076,6 +4058,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest", "queryAllDeclaredConstructors": true, @@ -4149,7 +4167,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ListUserLinksRequest", + "name": "com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4158,7 +4176,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ListUserLinksRequest$Builder", + "name": "com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4167,7 +4185,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ListUserLinksResponse", + "name": "com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4176,7 +4194,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.ListUserLinksResponse$Builder", + "name": "com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4364,6 +4382,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.admin.v1alpha.RollupPropertySourceLink", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.RollupPropertySourceLink$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.admin.v1alpha.RunAccessReportRequest", "queryAllDeclaredConstructors": true, @@ -4517,6 +4553,132 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.admin.v1alpha.SubpropertyEventFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.SubpropertyEventFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause$FilterClauseType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition$StringFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition$StringFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition$StringFilter$MatchType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest", "queryAllDeclaredConstructors": true, @@ -4661,6 +4823,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest", "queryAllDeclaredConstructors": true, @@ -4878,25 +5058,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.UpdateUserLinkRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.analytics.admin.v1alpha.UpdateUserLinkRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.analytics.admin.v1alpha.UserLink", + "name": "com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4905,7 +5067,7 @@ "allPublicClasses": true }, { - "name": "com.google.analytics.admin.v1alpha.UserLink$Builder", + "name": "com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java index ffd241701e81..00bb0dd5ccf2 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java @@ -16,7 +16,6 @@ package com.google.analytics.admin.v1alpha; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; @@ -36,9 +35,9 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; 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.ListRollupPropertySourceLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListSKAdNetworkConversionValueSchemasPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListSearchAds360LinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.stub.HttpJsonAnalyticsAdminServiceStub; @@ -949,18 +948,19 @@ public void updatePropertyExceptionTest() throws Exception { } @Test - public void getUserLinkTest() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) + public void createFirebaseLinkTest() throws Exception { + FirebaseLink expectedResponse = + FirebaseLink.newBuilder() + .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString()) + .setProject("project-309310695") + .setCreateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]"); + PropertyName parent = PropertyName.of("[PROPERTY]"); + FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - UserLink actualResponse = client.getUserLink(name); + FirebaseLink actualResponse = client.createFirebaseLink(parent, firebaseLink); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -979,15 +979,16 @@ public void getUserLinkTest() throws Exception { } @Test - public void getUserLinkExceptionTest() throws Exception { + public void createFirebaseLinkExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]"); - client.getUserLink(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); + client.createFirebaseLink(parent, firebaseLink); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -995,18 +996,19 @@ public void getUserLinkExceptionTest() throws Exception { } @Test - public void getUserLinkTest2() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) + public void createFirebaseLinkTest2() throws Exception { + FirebaseLink expectedResponse = + FirebaseLink.newBuilder() + .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString()) + .setProject("project-309310695") + .setCreateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - String name = "accounts/account-2326/userLinks/userLink-2326"; + String parent = "properties/propertie-2024"; + FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - UserLink actualResponse = client.getUserLink(name); + FirebaseLink actualResponse = client.createFirebaseLink(parent, firebaseLink); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1025,15 +1027,16 @@ public void getUserLinkTest2() throws Exception { } @Test - public void getUserLinkExceptionTest2() throws Exception { + public void createFirebaseLinkExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "accounts/account-2326/userLinks/userLink-2326"; - client.getUserLink(name); + String parent = "properties/propertie-2024"; + FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); + client.createFirebaseLink(parent, firebaseLink); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1041,19 +1044,13 @@ public void getUserLinkExceptionTest2() throws Exception { } @Test - public void batchGetUserLinksTest() throws Exception { - BatchGetUserLinksResponse expectedResponse = - BatchGetUserLinksResponse.newBuilder().addAllUserLinks(new ArrayList()).build(); + public void deleteFirebaseLinkTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - BatchGetUserLinksRequest request = - BatchGetUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllNames(new ArrayList()) - .build(); + FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]"); - BatchGetUserLinksResponse actualResponse = client.batchGetUserLinks(request); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteFirebaseLink(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1071,19 +1068,15 @@ public void batchGetUserLinksTest() throws Exception { } @Test - public void batchGetUserLinksExceptionTest() throws Exception { + public void deleteFirebaseLinkExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - BatchGetUserLinksRequest request = - BatchGetUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllNames(new ArrayList()) - .build(); - client.batchGetUserLinks(request); + FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]"); + client.deleteFirebaseLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1091,23 +1084,13 @@ public void batchGetUserLinksExceptionTest() throws Exception { } @Test - public void listUserLinksTest() throws Exception { - UserLink responsesElement = UserLink.newBuilder().build(); - ListUserLinksResponse expectedResponse = - ListUserLinksResponse.newBuilder() - .setNextPageToken("") - .addAllUserLinks(Arrays.asList(responsesElement)) - .build(); + public void deleteFirebaseLinkTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - AccountName parent = AccountName.of("[ACCOUNT]"); - - ListUserLinksPagedResponse pagedListResponse = client.listUserLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + String name = "properties/propertie-2649/firebaseLinks/firebaseLink-2649"; - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getUserLinksList().get(0), resources.get(0)); + client.deleteFirebaseLink(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1125,15 +1108,15 @@ public void listUserLinksTest() throws Exception { } @Test - public void listUserLinksExceptionTest() throws Exception { + public void deleteFirebaseLinkExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - AccountName parent = AccountName.of("[ACCOUNT]"); - client.listUserLinks(parent); + String name = "properties/propertie-2649/firebaseLinks/firebaseLink-2649"; + client.deleteFirebaseLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1141,23 +1124,23 @@ public void listUserLinksExceptionTest() throws Exception { } @Test - public void listUserLinksTest2() throws Exception { - UserLink responsesElement = UserLink.newBuilder().build(); - ListUserLinksResponse expectedResponse = - ListUserLinksResponse.newBuilder() + public void listFirebaseLinksTest() throws Exception { + FirebaseLink responsesElement = FirebaseLink.newBuilder().build(); + ListFirebaseLinksResponse expectedResponse = + ListFirebaseLinksResponse.newBuilder() .setNextPageToken("") - .addAllUserLinks(Arrays.asList(responsesElement)) + .addAllFirebaseLinks(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); PropertyName parent = PropertyName.of("[PROPERTY]"); - ListUserLinksPagedResponse pagedListResponse = client.listUserLinks(parent); + ListFirebaseLinksPagedResponse pagedListResponse = client.listFirebaseLinks(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getUserLinksList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getFirebaseLinksList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1175,7 +1158,7 @@ public void listUserLinksTest2() throws Exception { } @Test - public void listUserLinksExceptionTest2() throws Exception { + public void listFirebaseLinksExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -1183,7 +1166,7 @@ public void listUserLinksExceptionTest2() throws Exception { try { PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listUserLinks(parent); + client.listFirebaseLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1191,23 +1174,23 @@ public void listUserLinksExceptionTest2() throws Exception { } @Test - public void listUserLinksTest3() throws Exception { - UserLink responsesElement = UserLink.newBuilder().build(); - ListUserLinksResponse expectedResponse = - ListUserLinksResponse.newBuilder() + public void listFirebaseLinksTest2() throws Exception { + FirebaseLink responsesElement = FirebaseLink.newBuilder().build(); + ListFirebaseLinksResponse expectedResponse = + ListFirebaseLinksResponse.newBuilder() .setNextPageToken("") - .addAllUserLinks(Arrays.asList(responsesElement)) + .addAllFirebaseLinks(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - String parent = "accounts/account-4811"; + String parent = "properties/propertie-2024"; - ListUserLinksPagedResponse pagedListResponse = client.listUserLinks(parent); + ListFirebaseLinksPagedResponse pagedListResponse = client.listFirebaseLinks(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getUserLinksList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getFirebaseLinksList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1225,15 +1208,15 @@ public void listUserLinksTest3() throws Exception { } @Test - public void listUserLinksExceptionTest3() throws Exception { + public void listFirebaseLinksExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "accounts/account-4811"; - client.listUserLinks(parent); + String parent = "properties/propertie-2024"; + client.listFirebaseLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1241,28 +1224,18 @@ public void listUserLinksExceptionTest3() throws Exception { } @Test - public void auditUserLinksTest() throws Exception { - AuditUserLink responsesElement = AuditUserLink.newBuilder().build(); - AuditUserLinksResponse expectedResponse = - AuditUserLinksResponse.newBuilder() - .setNextPageToken("") - .addAllUserLinks(Arrays.asList(responsesElement)) + public void getGlobalSiteTagTest() throws Exception { + GlobalSiteTag expectedResponse = + GlobalSiteTag.newBuilder() + .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setSnippet("snippet-2061635299") .build(); mockService.addResponse(expectedResponse); - AuditUserLinksRequest request = - AuditUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - AuditUserLinksPagedResponse pagedListResponse = client.auditUserLinks(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getUserLinksList().get(0), resources.get(0)); + GlobalSiteTag actualResponse = client.getGlobalSiteTag(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1280,20 +1253,15 @@ public void auditUserLinksTest() throws Exception { } @Test - public void auditUserLinksExceptionTest() throws Exception { + public void getGlobalSiteTagExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - AuditUserLinksRequest request = - AuditUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.auditUserLinks(request); + GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]"); + client.getGlobalSiteTag(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1301,19 +1269,17 @@ public void auditUserLinksExceptionTest() throws Exception { } @Test - public void createUserLinkTest() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) + public void getGlobalSiteTagTest2() throws Exception { + GlobalSiteTag expectedResponse = + GlobalSiteTag.newBuilder() + .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setSnippet("snippet-2061635299") .build(); mockService.addResponse(expectedResponse); - AccountName parent = AccountName.of("[ACCOUNT]"); - UserLink userLink = UserLink.newBuilder().build(); + String name = "properties/propertie-1615/dataStreams/dataStream-1615/globalSiteTag"; - UserLink actualResponse = client.createUserLink(parent, userLink); + GlobalSiteTag actualResponse = client.getGlobalSiteTag(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1332,16 +1298,15 @@ public void createUserLinkTest() throws Exception { } @Test - public void createUserLinkExceptionTest() throws Exception { + public void getGlobalSiteTagExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - AccountName parent = AccountName.of("[ACCOUNT]"); - UserLink userLink = UserLink.newBuilder().build(); - client.createUserLink(parent, userLink); + String name = "properties/propertie-1615/dataStreams/dataStream-1615/globalSiteTag"; + client.getGlobalSiteTag(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1349,19 +1314,23 @@ public void createUserLinkExceptionTest() throws Exception { } @Test - public void createUserLinkTest2() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) + public void createGoogleAdsLinkTest() throws Exception { + GoogleAdsLink expectedResponse = + GoogleAdsLink.newBuilder() + .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) + .setCustomerId("customerId-1581184615") + .setCanManageClients(true) + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreatorEmailAddress("creatorEmailAddress67752708") .build(); mockService.addResponse(expectedResponse); PropertyName parent = PropertyName.of("[PROPERTY]"); - UserLink userLink = UserLink.newBuilder().build(); + GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - UserLink actualResponse = client.createUserLink(parent, userLink); + GoogleAdsLink actualResponse = client.createGoogleAdsLink(parent, googleAdsLink); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1380,7 +1349,7 @@ public void createUserLinkTest2() throws Exception { } @Test - public void createUserLinkExceptionTest2() throws Exception { + public void createGoogleAdsLinkExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -1388,8 +1357,8 @@ public void createUserLinkExceptionTest2() throws Exception { try { PropertyName parent = PropertyName.of("[PROPERTY]"); - UserLink userLink = UserLink.newBuilder().build(); - client.createUserLink(parent, userLink); + GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); + client.createGoogleAdsLink(parent, googleAdsLink); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1397,19 +1366,23 @@ public void createUserLinkExceptionTest2() throws Exception { } @Test - public void createUserLinkTest3() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) + public void createGoogleAdsLinkTest2() throws Exception { + GoogleAdsLink expectedResponse = + GoogleAdsLink.newBuilder() + .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) + .setCustomerId("customerId-1581184615") + .setCanManageClients(true) + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreatorEmailAddress("creatorEmailAddress67752708") .build(); mockService.addResponse(expectedResponse); - String parent = "accounts/account-4811"; - UserLink userLink = UserLink.newBuilder().build(); + String parent = "properties/propertie-2024"; + GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - UserLink actualResponse = client.createUserLink(parent, userLink); + GoogleAdsLink actualResponse = client.createGoogleAdsLink(parent, googleAdsLink); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1428,16 +1401,16 @@ public void createUserLinkTest3() throws Exception { } @Test - public void createUserLinkExceptionTest3() throws Exception { + public void createGoogleAdsLinkExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "accounts/account-4811"; - UserLink userLink = UserLink.newBuilder().build(); - client.createUserLink(parent, userLink); + String parent = "properties/propertie-2024"; + GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); + client.createGoogleAdsLink(parent, googleAdsLink); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1445,21 +1418,32 @@ public void createUserLinkExceptionTest3() throws Exception { } @Test - public void batchCreateUserLinksTest() throws Exception { - BatchCreateUserLinksResponse expectedResponse = - BatchCreateUserLinksResponse.newBuilder() - .addAllUserLinks(new ArrayList()) + public void updateGoogleAdsLinkTest() throws Exception { + GoogleAdsLink expectedResponse = + GoogleAdsLink.newBuilder() + .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) + .setCustomerId("customerId-1581184615") + .setCanManageClients(true) + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreatorEmailAddress("creatorEmailAddress67752708") .build(); mockService.addResponse(expectedResponse); - BatchCreateUserLinksRequest request = - BatchCreateUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .setNotifyNewUsers(true) - .addAllRequests(new ArrayList()) + GoogleAdsLink googleAdsLink = + GoogleAdsLink.newBuilder() + .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) + .setCustomerId("customerId-1581184615") + .setCanManageClients(true) + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreatorEmailAddress("creatorEmailAddress67752708") .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - BatchCreateUserLinksResponse actualResponse = client.batchCreateUserLinks(request); + GoogleAdsLink actualResponse = client.updateGoogleAdsLink(googleAdsLink, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1478,20 +1462,25 @@ public void batchCreateUserLinksTest() throws Exception { } @Test - public void batchCreateUserLinksExceptionTest() throws Exception { + public void updateGoogleAdsLinkExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - BatchCreateUserLinksRequest request = - BatchCreateUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .setNotifyNewUsers(true) - .addAllRequests(new ArrayList()) + GoogleAdsLink googleAdsLink = + GoogleAdsLink.newBuilder() + .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) + .setCustomerId("customerId-1581184615") + .setCanManageClients(true) + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreatorEmailAddress("creatorEmailAddress67752708") .build(); - client.batchCreateUserLinks(request); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateGoogleAdsLink(googleAdsLink, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1499,24 +1488,13 @@ public void batchCreateUserLinksExceptionTest() throws Exception { } @Test - public void updateUserLinkTest() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) - .build(); + public void deleteGoogleAdsLinkTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - UserLink userLink = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) - .build(); + GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]"); - UserLink actualResponse = client.updateUserLink(userLink); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteGoogleAdsLink(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1534,20 +1512,15 @@ public void updateUserLinkTest() throws Exception { } @Test - public void updateUserLinkExceptionTest() throws Exception { + public void deleteGoogleAdsLinkExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - UserLink userLink = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) - .build(); - client.updateUserLink(userLink); + GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]"); + client.deleteGoogleAdsLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1555,21 +1528,13 @@ public void updateUserLinkExceptionTest() throws Exception { } @Test - public void batchUpdateUserLinksTest() throws Exception { - BatchUpdateUserLinksResponse expectedResponse = - BatchUpdateUserLinksResponse.newBuilder() - .addAllUserLinks(new ArrayList()) - .build(); + public void deleteGoogleAdsLinkTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - BatchUpdateUserLinksRequest request = - BatchUpdateUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); + String name = "properties/propertie-1267/googleAdsLinks/googleAdsLink-1267"; - BatchUpdateUserLinksResponse actualResponse = client.batchUpdateUserLinks(request); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteGoogleAdsLink(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1587,19 +1552,15 @@ public void batchUpdateUserLinksTest() throws Exception { } @Test - public void batchUpdateUserLinksExceptionTest() throws Exception { + public void deleteGoogleAdsLinkExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - BatchUpdateUserLinksRequest request = - BatchUpdateUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); - client.batchUpdateUserLinks(request); + String name = "properties/propertie-1267/googleAdsLinks/googleAdsLink-1267"; + client.deleteGoogleAdsLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1607,13 +1568,23 @@ public void batchUpdateUserLinksExceptionTest() throws Exception { } @Test - public void deleteUserLinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void listGoogleAdsLinksTest() throws Exception { + GoogleAdsLink responsesElement = GoogleAdsLink.newBuilder().build(); + ListGoogleAdsLinksResponse expectedResponse = + ListGoogleAdsLinksResponse.newBuilder() + .setNextPageToken("") + .addAllGoogleAdsLinks(Arrays.asList(responsesElement)) + .build(); mockService.addResponse(expectedResponse); - UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]"); + PropertyName parent = PropertyName.of("[PROPERTY]"); + + ListGoogleAdsLinksPagedResponse pagedListResponse = client.listGoogleAdsLinks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - client.deleteUserLink(name); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGoogleAdsLinksList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1631,15 +1602,15 @@ public void deleteUserLinkTest() throws Exception { } @Test - public void deleteUserLinkExceptionTest() throws Exception { + public void listGoogleAdsLinksExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]"); - client.deleteUserLink(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listGoogleAdsLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1647,13 +1618,23 @@ public void deleteUserLinkExceptionTest() throws Exception { } @Test - public void deleteUserLinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void listGoogleAdsLinksTest2() throws Exception { + GoogleAdsLink responsesElement = GoogleAdsLink.newBuilder().build(); + ListGoogleAdsLinksResponse expectedResponse = + ListGoogleAdsLinksResponse.newBuilder() + .setNextPageToken("") + .addAllGoogleAdsLinks(Arrays.asList(responsesElement)) + .build(); mockService.addResponse(expectedResponse); - String name = "accounts/account-2326/userLinks/userLink-2326"; + String parent = "properties/propertie-2024"; + + ListGoogleAdsLinksPagedResponse pagedListResponse = client.listGoogleAdsLinks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - client.deleteUserLink(name); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGoogleAdsLinksList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1671,15 +1652,15 @@ public void deleteUserLinkTest2() throws Exception { } @Test - public void deleteUserLinkExceptionTest2() throws Exception { + public void listGoogleAdsLinksExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "accounts/account-2326/userLinks/userLink-2326"; - client.deleteUserLink(name); + String parent = "properties/propertie-2024"; + client.listGoogleAdsLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1687,17 +1668,22 @@ public void deleteUserLinkExceptionTest2() throws Exception { } @Test - public void batchDeleteUserLinksTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getDataSharingSettingsTest() throws Exception { + DataSharingSettings expectedResponse = + DataSharingSettings.newBuilder() + .setName(DataSharingSettingsName.of("[ACCOUNT]").toString()) + .setSharingWithGoogleSupportEnabled(true) + .setSharingWithGoogleAssignedSalesEnabled(true) + .setSharingWithGoogleAnySalesEnabled(true) + .setSharingWithGoogleProductsEnabled(true) + .setSharingWithOthersEnabled(true) + .build(); mockService.addResponse(expectedResponse); - BatchDeleteUserLinksRequest request = - BatchDeleteUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); + DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]"); - client.batchDeleteUserLinks(request); + DataSharingSettings actualResponse = client.getDataSharingSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1715,19 +1701,15 @@ public void batchDeleteUserLinksTest() throws Exception { } @Test - public void batchDeleteUserLinksExceptionTest() throws Exception { + public void getDataSharingSettingsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - BatchDeleteUserLinksRequest request = - BatchDeleteUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); - client.batchDeleteUserLinks(request); + DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]"); + client.getDataSharingSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1735,19 +1717,21 @@ public void batchDeleteUserLinksExceptionTest() throws Exception { } @Test - public void createFirebaseLinkTest() throws Exception { - FirebaseLink expectedResponse = - FirebaseLink.newBuilder() - .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString()) - .setProject("project-309310695") - .setCreateTime(Timestamp.newBuilder().build()) + public void getDataSharingSettingsTest2() throws Exception { + DataSharingSettings expectedResponse = + DataSharingSettings.newBuilder() + .setName(DataSharingSettingsName.of("[ACCOUNT]").toString()) + .setSharingWithGoogleSupportEnabled(true) + .setSharingWithGoogleAssignedSalesEnabled(true) + .setSharingWithGoogleAnySalesEnabled(true) + .setSharingWithGoogleProductsEnabled(true) + .setSharingWithOthersEnabled(true) .build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); + String name = "accounts/account-7122/dataSharingSettings"; - FirebaseLink actualResponse = client.createFirebaseLink(parent, firebaseLink); + DataSharingSettings actualResponse = client.getDataSharingSettings(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1766,16 +1750,15 @@ public void createFirebaseLinkTest() throws Exception { } @Test - public void createFirebaseLinkExceptionTest() throws Exception { + public void getDataSharingSettingsExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - client.createFirebaseLink(parent, firebaseLink); + String name = "accounts/account-7122/dataSharingSettings"; + client.getDataSharingSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1783,19 +1766,23 @@ public void createFirebaseLinkExceptionTest() throws Exception { } @Test - public void createFirebaseLinkTest2() throws Exception { - FirebaseLink expectedResponse = - FirebaseLink.newBuilder() - .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString()) - .setProject("project-309310695") - .setCreateTime(Timestamp.newBuilder().build()) + public void getMeasurementProtocolSecretTest() throws Exception { + MeasurementProtocolSecret expectedResponse = + MeasurementProtocolSecret.newBuilder() + .setName( + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + .toString()) + .setDisplayName("displayName1714148973") + .setSecretValue("secretValue-2044460895") .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-2024"; - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); + MeasurementProtocolSecretName name = + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - FirebaseLink actualResponse = client.createFirebaseLink(parent, firebaseLink); + MeasurementProtocolSecret actualResponse = client.getMeasurementProtocolSecret(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -1814,16 +1801,17 @@ public void createFirebaseLinkTest2() throws Exception { } @Test - public void createFirebaseLinkExceptionTest2() throws Exception { + public void getMeasurementProtocolSecretExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - client.createFirebaseLink(parent, firebaseLink); + MeasurementProtocolSecretName name = + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + client.getMeasurementProtocolSecret(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1831,13 +1819,23 @@ public void createFirebaseLinkExceptionTest2() throws Exception { } @Test - public void deleteFirebaseLinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getMeasurementProtocolSecretTest2() throws Exception { + MeasurementProtocolSecret expectedResponse = + MeasurementProtocolSecret.newBuilder() + .setName( + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + .toString()) + .setDisplayName("displayName1714148973") + .setSecretValue("secretValue-2044460895") + .build(); mockService.addResponse(expectedResponse); - FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]"); + String name = + "properties/propertie-6357/dataStreams/dataStream-6357/measurementProtocolSecrets/measurementProtocolSecret-6357"; - client.deleteFirebaseLink(name); + MeasurementProtocolSecret actualResponse = client.getMeasurementProtocolSecret(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1855,15 +1853,16 @@ public void deleteFirebaseLinkTest() throws Exception { } @Test - public void deleteFirebaseLinkExceptionTest() throws Exception { + public void getMeasurementProtocolSecretExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]"); - client.deleteFirebaseLink(name); + String name = + "properties/propertie-6357/dataStreams/dataStream-6357/measurementProtocolSecrets/measurementProtocolSecret-6357"; + client.getMeasurementProtocolSecret(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1871,13 +1870,25 @@ public void deleteFirebaseLinkExceptionTest() throws Exception { } @Test - public void deleteFirebaseLinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void listMeasurementProtocolSecretsTest() throws Exception { + MeasurementProtocolSecret responsesElement = MeasurementProtocolSecret.newBuilder().build(); + ListMeasurementProtocolSecretsResponse expectedResponse = + ListMeasurementProtocolSecretsResponse.newBuilder() + .setNextPageToken("") + .addAllMeasurementProtocolSecrets(Arrays.asList(responsesElement)) + .build(); mockService.addResponse(expectedResponse); - String name = "properties/propertie-2649/firebaseLinks/firebaseLink-2649"; + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.deleteFirebaseLink(name); + 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 = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1895,15 +1906,15 @@ public void deleteFirebaseLinkTest2() throws Exception { } @Test - public void deleteFirebaseLinkExceptionTest2() throws Exception { + public void listMeasurementProtocolSecretsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-2649/firebaseLinks/firebaseLink-2649"; - client.deleteFirebaseLink(name); + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + client.listMeasurementProtocolSecrets(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1911,23 +1922,25 @@ public void deleteFirebaseLinkExceptionTest2() throws Exception { } @Test - public void listFirebaseLinksTest() throws Exception { - FirebaseLink responsesElement = FirebaseLink.newBuilder().build(); - ListFirebaseLinksResponse expectedResponse = - ListFirebaseLinksResponse.newBuilder() + public void listMeasurementProtocolSecretsTest2() throws Exception { + MeasurementProtocolSecret responsesElement = MeasurementProtocolSecret.newBuilder().build(); + ListMeasurementProtocolSecretsResponse expectedResponse = + ListMeasurementProtocolSecretsResponse.newBuilder() .setNextPageToken("") - .addAllFirebaseLinks(Arrays.asList(responsesElement)) + .addAllMeasurementProtocolSecrets(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); + String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; - ListFirebaseLinksPagedResponse pagedListResponse = client.listFirebaseLinks(parent); + ListMeasurementProtocolSecretsPagedResponse pagedListResponse = + client.listMeasurementProtocolSecrets(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getFirebaseLinksList().get(0), resources.get(0)); + Assert.assertEquals( + expectedResponse.getMeasurementProtocolSecretsList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1945,15 +1958,15 @@ public void listFirebaseLinksTest() throws Exception { } @Test - public void listFirebaseLinksExceptionTest() throws Exception { + public void listMeasurementProtocolSecretsExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listFirebaseLinks(parent); + String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; + client.listMeasurementProtocolSecrets(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1961,23 +1974,25 @@ public void listFirebaseLinksExceptionTest() throws Exception { } @Test - public void listFirebaseLinksTest2() throws Exception { - FirebaseLink responsesElement = FirebaseLink.newBuilder().build(); - ListFirebaseLinksResponse expectedResponse = - ListFirebaseLinksResponse.newBuilder() - .setNextPageToken("") - .addAllFirebaseLinks(Arrays.asList(responsesElement)) + public void createMeasurementProtocolSecretTest() throws Exception { + MeasurementProtocolSecret expectedResponse = + MeasurementProtocolSecret.newBuilder() + .setName( + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + .toString()) + .setDisplayName("displayName1714148973") + .setSecretValue("secretValue-2044460895") .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-2024"; - - ListFirebaseLinksPagedResponse pagedListResponse = client.listFirebaseLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + MeasurementProtocolSecret measurementProtocolSecret = + MeasurementProtocolSecret.newBuilder().build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getFirebaseLinksList().get(0), resources.get(0)); + MeasurementProtocolSecret actualResponse = + client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -1995,15 +2010,17 @@ public void listFirebaseLinksTest2() throws Exception { } @Test - public void listFirebaseLinksExceptionTest2() throws Exception { + public void createMeasurementProtocolSecretExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - client.listFirebaseLinks(parent); + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + MeasurementProtocolSecret measurementProtocolSecret = + MeasurementProtocolSecret.newBuilder().build(); + client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2011,17 +2028,24 @@ public void listFirebaseLinksExceptionTest2() throws Exception { } @Test - public void getGlobalSiteTagTest() throws Exception { - GlobalSiteTag expectedResponse = - GlobalSiteTag.newBuilder() - .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setSnippet("snippet-2061635299") + public void createMeasurementProtocolSecretTest2() throws Exception { + MeasurementProtocolSecret expectedResponse = + MeasurementProtocolSecret.newBuilder() + .setName( + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + .toString()) + .setDisplayName("displayName1714148973") + .setSecretValue("secretValue-2044460895") .build(); mockService.addResponse(expectedResponse); - GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]"); + String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; + MeasurementProtocolSecret measurementProtocolSecret = + MeasurementProtocolSecret.newBuilder().build(); - GlobalSiteTag actualResponse = client.getGlobalSiteTag(name); + MeasurementProtocolSecret actualResponse = + client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2040,15 +2064,17 @@ public void getGlobalSiteTagTest() throws Exception { } @Test - public void getGlobalSiteTagExceptionTest() throws Exception { + public void createMeasurementProtocolSecretExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]"); - client.getGlobalSiteTag(name); + String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; + MeasurementProtocolSecret measurementProtocolSecret = + MeasurementProtocolSecret.newBuilder().build(); + client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2056,18 +2082,15 @@ public void getGlobalSiteTagExceptionTest() throws Exception { } @Test - public void getGlobalSiteTagTest2() throws Exception { - GlobalSiteTag expectedResponse = - GlobalSiteTag.newBuilder() - .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setSnippet("snippet-2061635299") - .build(); + public void deleteMeasurementProtocolSecretTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - String name = "properties/propertie-1615/dataStreams/dataStream-1615/globalSiteTag"; + MeasurementProtocolSecretName name = + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - GlobalSiteTag actualResponse = client.getGlobalSiteTag(name); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteMeasurementProtocolSecret(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2085,15 +2108,17 @@ public void getGlobalSiteTagTest2() throws Exception { } @Test - public void getGlobalSiteTagExceptionTest2() throws Exception { + public void deleteMeasurementProtocolSecretExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-1615/dataStreams/dataStream-1615/globalSiteTag"; - client.getGlobalSiteTag(name); + MeasurementProtocolSecretName name = + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + client.deleteMeasurementProtocolSecret(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2101,24 +2126,14 @@ public void getGlobalSiteTagExceptionTest2() throws Exception { } @Test - public void createGoogleAdsLinkTest() throws Exception { - GoogleAdsLink expectedResponse = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") - .build(); + public void deleteMeasurementProtocolSecretTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); + String name = + "properties/propertie-6357/dataStreams/dataStream-6357/measurementProtocolSecrets/measurementProtocolSecret-6357"; - GoogleAdsLink actualResponse = client.createGoogleAdsLink(parent, googleAdsLink); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteMeasurementProtocolSecret(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2136,40 +2151,48 @@ public void createGoogleAdsLinkTest() throws Exception { } @Test - public void createGoogleAdsLinkExceptionTest() throws Exception { + public void deleteMeasurementProtocolSecretExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - client.createGoogleAdsLink(parent, googleAdsLink); - Assert.fail("No exception raised"); + String name = + "properties/propertie-6357/dataStreams/dataStream-6357/measurementProtocolSecrets/measurementProtocolSecret-6357"; + client.deleteMeasurementProtocolSecret(name); + Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. } } @Test - public void createGoogleAdsLinkTest2() throws Exception { - GoogleAdsLink expectedResponse = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") + public void updateMeasurementProtocolSecretTest() throws Exception { + MeasurementProtocolSecret expectedResponse = + MeasurementProtocolSecret.newBuilder() + .setName( + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + .toString()) + .setDisplayName("displayName1714148973") + .setSecretValue("secretValue-2044460895") .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-2024"; - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); + MeasurementProtocolSecret measurementProtocolSecret = + MeasurementProtocolSecret.newBuilder() + .setName( + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + .toString()) + .setDisplayName("displayName1714148973") + .setSecretValue("secretValue-2044460895") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - GoogleAdsLink actualResponse = client.createGoogleAdsLink(parent, googleAdsLink); + MeasurementProtocolSecret actualResponse = + client.updateMeasurementProtocolSecret(measurementProtocolSecret, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2188,16 +2211,24 @@ public void createGoogleAdsLinkTest2() throws Exception { } @Test - public void createGoogleAdsLinkExceptionTest2() throws Exception { + public void updateMeasurementProtocolSecretExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - client.createGoogleAdsLink(parent, googleAdsLink); + MeasurementProtocolSecret measurementProtocolSecret = + MeasurementProtocolSecret.newBuilder() + .setName( + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + .toString()) + .setDisplayName("displayName1714148973") + .setSecretValue("secretValue-2044460895") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateMeasurementProtocolSecret(measurementProtocolSecret, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2205,32 +2236,19 @@ public void createGoogleAdsLinkExceptionTest2() throws Exception { } @Test - public void updateGoogleAdsLinkTest() throws Exception { - GoogleAdsLink expectedResponse = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") - .build(); + public void acknowledgeUserDataCollectionTest() throws Exception { + AcknowledgeUserDataCollectionResponse expectedResponse = + AcknowledgeUserDataCollectionResponse.newBuilder().build(); mockService.addResponse(expectedResponse); - GoogleAdsLink googleAdsLink = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") + AcknowledgeUserDataCollectionRequest request = + AcknowledgeUserDataCollectionRequest.newBuilder() + .setProperty(PropertyName.of("[PROPERTY]").toString()) + .setAcknowledgement("acknowledgement1769490938") .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - GoogleAdsLink actualResponse = client.updateGoogleAdsLink(googleAdsLink, updateMask); + AcknowledgeUserDataCollectionResponse actualResponse = + client.acknowledgeUserDataCollection(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2249,25 +2267,19 @@ public void updateGoogleAdsLinkTest() throws Exception { } @Test - public void updateGoogleAdsLinkExceptionTest() throws Exception { + public void acknowledgeUserDataCollectionExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - GoogleAdsLink googleAdsLink = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") + AcknowledgeUserDataCollectionRequest request = + AcknowledgeUserDataCollectionRequest.newBuilder() + .setProperty(PropertyName.of("[PROPERTY]").toString()) + .setAcknowledgement("acknowledgement1769490938") .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateGoogleAdsLink(googleAdsLink, updateMask); + client.acknowledgeUserDataCollection(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2275,13 +2287,27 @@ public void updateGoogleAdsLinkExceptionTest() throws Exception { } @Test - public void deleteGoogleAdsLinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getSKAdNetworkConversionValueSchemaTest() throws Exception { + SKAdNetworkConversionValueSchema expectedResponse = + SKAdNetworkConversionValueSchema.newBuilder() + .setName( + SKAdNetworkConversionValueSchemaName.of( + "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") + .toString()) + .setPostbackWindowOne(PostbackWindow.newBuilder().build()) + .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) + .setPostbackWindowThree(PostbackWindow.newBuilder().build()) + .setApplyConversionValues(true) + .build(); mockService.addResponse(expectedResponse); - GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]"); + SKAdNetworkConversionValueSchemaName name = + SKAdNetworkConversionValueSchemaName.of( + "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]"); - client.deleteGoogleAdsLink(name); + SKAdNetworkConversionValueSchema actualResponse = + client.getSKAdNetworkConversionValueSchema(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2299,15 +2325,17 @@ public void deleteGoogleAdsLinkTest() throws Exception { } @Test - public void deleteGoogleAdsLinkExceptionTest() throws Exception { + public void getSKAdNetworkConversionValueSchemaExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]"); - client.deleteGoogleAdsLink(name); + SKAdNetworkConversionValueSchemaName name = + SKAdNetworkConversionValueSchemaName.of( + "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]"); + client.getSKAdNetworkConversionValueSchema(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2315,13 +2343,26 @@ public void deleteGoogleAdsLinkExceptionTest() throws Exception { } @Test - public void deleteGoogleAdsLinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getSKAdNetworkConversionValueSchemaTest2() throws Exception { + SKAdNetworkConversionValueSchema expectedResponse = + SKAdNetworkConversionValueSchema.newBuilder() + .setName( + SKAdNetworkConversionValueSchemaName.of( + "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") + .toString()) + .setPostbackWindowOne(PostbackWindow.newBuilder().build()) + .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) + .setPostbackWindowThree(PostbackWindow.newBuilder().build()) + .setApplyConversionValues(true) + .build(); mockService.addResponse(expectedResponse); - String name = "properties/propertie-1267/googleAdsLinks/googleAdsLink-1267"; + String name = + "properties/propertie-7099/dataStreams/dataStream-7099/sKAdNetworkConversionValueSchema/sKAdNetworkConversionValueSchem-7099"; - client.deleteGoogleAdsLink(name); + SKAdNetworkConversionValueSchema actualResponse = + client.getSKAdNetworkConversionValueSchema(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2339,15 +2380,16 @@ public void deleteGoogleAdsLinkTest2() throws Exception { } @Test - public void deleteGoogleAdsLinkExceptionTest2() throws Exception { + public void getSKAdNetworkConversionValueSchemaExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-1267/googleAdsLinks/googleAdsLink-1267"; - client.deleteGoogleAdsLink(name); + String name = + "properties/propertie-7099/dataStreams/dataStream-7099/sKAdNetworkConversionValueSchema/sKAdNetworkConversionValueSchem-7099"; + client.getSKAdNetworkConversionValueSchema(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2355,23 +2397,27 @@ public void deleteGoogleAdsLinkExceptionTest2() throws Exception { } @Test - public void listGoogleAdsLinksTest() throws Exception { - GoogleAdsLink responsesElement = GoogleAdsLink.newBuilder().build(); - ListGoogleAdsLinksResponse expectedResponse = - ListGoogleAdsLinksResponse.newBuilder() - .setNextPageToken("") - .addAllGoogleAdsLinks(Arrays.asList(responsesElement)) + public void createSKAdNetworkConversionValueSchemaTest() throws Exception { + SKAdNetworkConversionValueSchema expectedResponse = + SKAdNetworkConversionValueSchema.newBuilder() + .setName( + SKAdNetworkConversionValueSchemaName.of( + "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") + .toString()) + .setPostbackWindowOne(PostbackWindow.newBuilder().build()) + .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) + .setPostbackWindowThree(PostbackWindow.newBuilder().build()) + .setApplyConversionValues(true) .build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListGoogleAdsLinksPagedResponse pagedListResponse = client.listGoogleAdsLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = + SKAdNetworkConversionValueSchema.newBuilder().build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGoogleAdsLinksList().get(0), resources.get(0)); + SKAdNetworkConversionValueSchema actualResponse = + client.createSKAdNetworkConversionValueSchema(parent, skadnetworkConversionValueSchema); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2389,15 +2435,17 @@ public void listGoogleAdsLinksTest() throws Exception { } @Test - public void listGoogleAdsLinksExceptionTest() throws Exception { + public void createSKAdNetworkConversionValueSchemaExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listGoogleAdsLinks(parent); + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = + SKAdNetworkConversionValueSchema.newBuilder().build(); + client.createSKAdNetworkConversionValueSchema(parent, skadnetworkConversionValueSchema); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2405,23 +2453,27 @@ public void listGoogleAdsLinksExceptionTest() throws Exception { } @Test - public void listGoogleAdsLinksTest2() throws Exception { - GoogleAdsLink responsesElement = GoogleAdsLink.newBuilder().build(); - ListGoogleAdsLinksResponse expectedResponse = - ListGoogleAdsLinksResponse.newBuilder() - .setNextPageToken("") - .addAllGoogleAdsLinks(Arrays.asList(responsesElement)) + public void createSKAdNetworkConversionValueSchemaTest2() throws Exception { + SKAdNetworkConversionValueSchema expectedResponse = + SKAdNetworkConversionValueSchema.newBuilder() + .setName( + SKAdNetworkConversionValueSchemaName.of( + "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") + .toString()) + .setPostbackWindowOne(PostbackWindow.newBuilder().build()) + .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) + .setPostbackWindowThree(PostbackWindow.newBuilder().build()) + .setApplyConversionValues(true) .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-2024"; - - ListGoogleAdsLinksPagedResponse pagedListResponse = client.listGoogleAdsLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; + SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = + SKAdNetworkConversionValueSchema.newBuilder().build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGoogleAdsLinksList().get(0), resources.get(0)); + SKAdNetworkConversionValueSchema actualResponse = + client.createSKAdNetworkConversionValueSchema(parent, skadnetworkConversionValueSchema); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2439,15 +2491,17 @@ public void listGoogleAdsLinksTest2() throws Exception { } @Test - public void listGoogleAdsLinksExceptionTest2() throws Exception { + public void createSKAdNetworkConversionValueSchemaExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - client.listGoogleAdsLinks(parent); + String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; + SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = + SKAdNetworkConversionValueSchema.newBuilder().build(); + client.createSKAdNetworkConversionValueSchema(parent, skadnetworkConversionValueSchema); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2455,22 +2509,15 @@ public void listGoogleAdsLinksExceptionTest2() throws Exception { } @Test - public void getDataSharingSettingsTest() throws Exception { - DataSharingSettings expectedResponse = - DataSharingSettings.newBuilder() - .setName(DataSharingSettingsName.of("[ACCOUNT]").toString()) - .setSharingWithGoogleSupportEnabled(true) - .setSharingWithGoogleAssignedSalesEnabled(true) - .setSharingWithGoogleAnySalesEnabled(true) - .setSharingWithGoogleProductsEnabled(true) - .setSharingWithOthersEnabled(true) - .build(); + public void deleteSKAdNetworkConversionValueSchemaTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]"); + SKAdNetworkConversionValueSchemaName name = + SKAdNetworkConversionValueSchemaName.of( + "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]"); - DataSharingSettings actualResponse = client.getDataSharingSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteSKAdNetworkConversionValueSchema(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2488,15 +2535,17 @@ public void getDataSharingSettingsTest() throws Exception { } @Test - public void getDataSharingSettingsExceptionTest() throws Exception { + public void deleteSKAdNetworkConversionValueSchemaExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]"); - client.getDataSharingSettings(name); + SKAdNetworkConversionValueSchemaName name = + SKAdNetworkConversionValueSchemaName.of( + "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]"); + client.deleteSKAdNetworkConversionValueSchema(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2504,22 +2553,14 @@ public void getDataSharingSettingsExceptionTest() throws Exception { } @Test - public void getDataSharingSettingsTest2() throws Exception { - DataSharingSettings expectedResponse = - DataSharingSettings.newBuilder() - .setName(DataSharingSettingsName.of("[ACCOUNT]").toString()) - .setSharingWithGoogleSupportEnabled(true) - .setSharingWithGoogleAssignedSalesEnabled(true) - .setSharingWithGoogleAnySalesEnabled(true) - .setSharingWithGoogleProductsEnabled(true) - .setSharingWithOthersEnabled(true) - .build(); + public void deleteSKAdNetworkConversionValueSchemaTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - String name = "accounts/account-7122/dataSharingSettings"; + String name = + "properties/propertie-7099/dataStreams/dataStream-7099/sKAdNetworkConversionValueSchema/sKAdNetworkConversionValueSchem-7099"; - DataSharingSettings actualResponse = client.getDataSharingSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteSKAdNetworkConversionValueSchema(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2537,15 +2578,16 @@ public void getDataSharingSettingsTest2() throws Exception { } @Test - public void getDataSharingSettingsExceptionTest2() throws Exception { + public void deleteSKAdNetworkConversionValueSchemaExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "accounts/account-7122/dataSharingSettings"; - client.getDataSharingSettings(name); + String name = + "properties/propertie-7099/dataStreams/dataStream-7099/sKAdNetworkConversionValueSchema/sKAdNetworkConversionValueSchem-7099"; + client.deleteSKAdNetworkConversionValueSchema(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2553,23 +2595,35 @@ public void getDataSharingSettingsExceptionTest2() throws Exception { } @Test - public void getMeasurementProtocolSecretTest() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() + public void updateSKAdNetworkConversionValueSchemaTest() throws Exception { + SKAdNetworkConversionValueSchema expectedResponse = + SKAdNetworkConversionValueSchema.newBuilder() .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + SKAdNetworkConversionValueSchemaName.of( + "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") + .setPostbackWindowOne(PostbackWindow.newBuilder().build()) + .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) + .setPostbackWindowThree(PostbackWindow.newBuilder().build()) + .setApplyConversionValues(true) .build(); mockService.addResponse(expectedResponse); - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = + SKAdNetworkConversionValueSchema.newBuilder() + .setName( + SKAdNetworkConversionValueSchemaName.of( + "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") + .toString()) + .setPostbackWindowOne(PostbackWindow.newBuilder().build()) + .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) + .setPostbackWindowThree(PostbackWindow.newBuilder().build()) + .setApplyConversionValues(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - MeasurementProtocolSecret actualResponse = client.getMeasurementProtocolSecret(name); + SKAdNetworkConversionValueSchema actualResponse = + client.updateSKAdNetworkConversionValueSchema(skadnetworkConversionValueSchema, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2588,17 +2642,26 @@ public void getMeasurementProtocolSecretTest() throws Exception { } @Test - public void getMeasurementProtocolSecretExceptionTest() throws Exception { + public void updateSKAdNetworkConversionValueSchemaExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - client.getMeasurementProtocolSecret(name); + SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = + SKAdNetworkConversionValueSchema.newBuilder() + .setName( + SKAdNetworkConversionValueSchemaName.of( + "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") + .toString()) + .setPostbackWindowOne(PostbackWindow.newBuilder().build()) + .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) + .setPostbackWindowThree(PostbackWindow.newBuilder().build()) + .setApplyConversionValues(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSKAdNetworkConversionValueSchema(skadnetworkConversionValueSchema, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2606,23 +2669,27 @@ public void getMeasurementProtocolSecretExceptionTest() throws Exception { } @Test - public void getMeasurementProtocolSecretTest2() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") + public void listSKAdNetworkConversionValueSchemasTest() throws Exception { + SKAdNetworkConversionValueSchema responsesElement = + SKAdNetworkConversionValueSchema.newBuilder().build(); + ListSKAdNetworkConversionValueSchemasResponse expectedResponse = + ListSKAdNetworkConversionValueSchemasResponse.newBuilder() + .setNextPageToken("") + .addAllSkadnetworkConversionValueSchemas(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - String name = - "properties/propertie-6357/dataStreams/dataStream-6357/measurementProtocolSecrets/measurementProtocolSecret-6357"; + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - MeasurementProtocolSecret actualResponse = client.getMeasurementProtocolSecret(name); - Assert.assertEquals(expectedResponse, actualResponse); + ListSKAdNetworkConversionValueSchemasPagedResponse pagedListResponse = + client.listSKAdNetworkConversionValueSchemas(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getSkadnetworkConversionValueSchemasList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2640,16 +2707,15 @@ public void getMeasurementProtocolSecretTest2() throws Exception { } @Test - public void getMeasurementProtocolSecretExceptionTest2() throws Exception { + public void listSKAdNetworkConversionValueSchemasExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = - "properties/propertie-6357/dataStreams/dataStream-6357/measurementProtocolSecrets/measurementProtocolSecret-6357"; - client.getMeasurementProtocolSecret(name); + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + client.listSKAdNetworkConversionValueSchemas(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2657,25 +2723,27 @@ public void getMeasurementProtocolSecretExceptionTest2() throws Exception { } @Test - public void listMeasurementProtocolSecretsTest() throws Exception { - MeasurementProtocolSecret responsesElement = MeasurementProtocolSecret.newBuilder().build(); - ListMeasurementProtocolSecretsResponse expectedResponse = - ListMeasurementProtocolSecretsResponse.newBuilder() + public void listSKAdNetworkConversionValueSchemasTest2() throws Exception { + SKAdNetworkConversionValueSchema responsesElement = + SKAdNetworkConversionValueSchema.newBuilder().build(); + ListSKAdNetworkConversionValueSchemasResponse expectedResponse = + ListSKAdNetworkConversionValueSchemasResponse.newBuilder() .setNextPageToken("") - .addAllMeasurementProtocolSecrets(Arrays.asList(responsesElement)) + .addAllSkadnetworkConversionValueSchemas(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; - ListMeasurementProtocolSecretsPagedResponse pagedListResponse = - client.listMeasurementProtocolSecrets(parent); + ListSKAdNetworkConversionValueSchemasPagedResponse pagedListResponse = + client.listSKAdNetworkConversionValueSchemas(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); Assert.assertEquals( - expectedResponse.getMeasurementProtocolSecretsList().get(0), resources.get(0)); + expectedResponse.getSkadnetworkConversionValueSchemasList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2693,15 +2761,88 @@ public void listMeasurementProtocolSecretsTest() throws Exception { } @Test - public void listMeasurementProtocolSecretsExceptionTest() throws Exception { + public void listSKAdNetworkConversionValueSchemasExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.listMeasurementProtocolSecrets(parent); + String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; + client.listSKAdNetworkConversionValueSchemas(parent); + 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)) + .build(); + mockService.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 = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchChangeHistoryEventsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.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. @@ -2709,25 +2850,19 @@ public void listMeasurementProtocolSecretsExceptionTest() throws Exception { } @Test - public void listMeasurementProtocolSecretsTest2() throws Exception { - MeasurementProtocolSecret responsesElement = MeasurementProtocolSecret.newBuilder().build(); - ListMeasurementProtocolSecretsResponse expectedResponse = - ListMeasurementProtocolSecretsResponse.newBuilder() - .setNextPageToken("") - .addAllMeasurementProtocolSecrets(Arrays.asList(responsesElement)) + public void getGoogleSignalsSettingsTest() throws Exception { + GoogleSignalsSettings expectedResponse = + GoogleSignalsSettings.newBuilder() + .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) + .setState(GoogleSignalsState.forNumber(0)) + .setConsent(GoogleSignalsConsent.forNumber(0)) .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; - - ListMeasurementProtocolSecretsPagedResponse pagedListResponse = - client.listMeasurementProtocolSecrets(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + GoogleSignalsSettingsName name = GoogleSignalsSettingsName.of("[PROPERTY]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getMeasurementProtocolSecretsList().get(0), resources.get(0)); + GoogleSignalsSettings actualResponse = client.getGoogleSignalsSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2745,15 +2880,15 @@ public void listMeasurementProtocolSecretsTest2() throws Exception { } @Test - public void listMeasurementProtocolSecretsExceptionTest2() throws Exception { + public void getGoogleSignalsSettingsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; - client.listMeasurementProtocolSecrets(parent); + GoogleSignalsSettingsName name = GoogleSignalsSettingsName.of("[PROPERTY]"); + client.getGoogleSignalsSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2761,24 +2896,18 @@ public void listMeasurementProtocolSecretsExceptionTest2() throws Exception { } @Test - public void createMeasurementProtocolSecretTest() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") + public void getGoogleSignalsSettingsTest2() throws Exception { + GoogleSignalsSettings expectedResponse = + GoogleSignalsSettings.newBuilder() + .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) + .setState(GoogleSignalsState.forNumber(0)) + .setConsent(GoogleSignalsConsent.forNumber(0)) .build(); mockService.addResponse(expectedResponse); - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); + String name = "properties/propertie-7279/googleSignalsSettings"; - MeasurementProtocolSecret actualResponse = - client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); + GoogleSignalsSettings actualResponse = client.getGoogleSignalsSettings(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2797,17 +2926,15 @@ public void createMeasurementProtocolSecretTest() throws Exception { } @Test - public void createMeasurementProtocolSecretExceptionTest() throws Exception { + public void getGoogleSignalsSettingsExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); + String name = "properties/propertie-7279/googleSignalsSettings"; + client.getGoogleSignalsSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2815,24 +2942,25 @@ public void createMeasurementProtocolSecretExceptionTest() throws Exception { } @Test - public void createMeasurementProtocolSecretTest2() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") + public void updateGoogleSignalsSettingsTest() throws Exception { + GoogleSignalsSettings expectedResponse = + GoogleSignalsSettings.newBuilder() + .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) + .setState(GoogleSignalsState.forNumber(0)) + .setConsent(GoogleSignalsConsent.forNumber(0)) .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); + GoogleSignalsSettings googleSignalsSettings = + GoogleSignalsSettings.newBuilder() + .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) + .setState(GoogleSignalsState.forNumber(0)) + .setConsent(GoogleSignalsConsent.forNumber(0)) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - MeasurementProtocolSecret actualResponse = - client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); + GoogleSignalsSettings actualResponse = + client.updateGoogleSignalsSettings(googleSignalsSettings, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2851,17 +2979,21 @@ public void createMeasurementProtocolSecretTest2() throws Exception { } @Test - public void createMeasurementProtocolSecretExceptionTest2() throws Exception { + public void updateGoogleSignalsSettingsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); + GoogleSignalsSettings googleSignalsSettings = + GoogleSignalsSettings.newBuilder() + .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) + .setState(GoogleSignalsState.forNumber(0)) + .setConsent(GoogleSignalsConsent.forNumber(0)) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateGoogleSignalsSettings(googleSignalsSettings, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2869,15 +3001,22 @@ public void createMeasurementProtocolSecretExceptionTest2() throws Exception { } @Test - public void deleteMeasurementProtocolSecretTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void createConversionEventTest() throws Exception { + ConversionEvent expectedResponse = + ConversionEvent.newBuilder() + .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) + .build(); mockService.addResponse(expectedResponse); - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + PropertyName parent = PropertyName.of("[PROPERTY]"); + ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - client.deleteMeasurementProtocolSecret(name); + ConversionEvent actualResponse = client.createConversionEvent(parent, conversionEvent); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2895,17 +3034,16 @@ public void deleteMeasurementProtocolSecretTest() throws Exception { } @Test - public void deleteMeasurementProtocolSecretExceptionTest() throws Exception { + public void createConversionEventExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - client.deleteMeasurementProtocolSecret(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); + client.createConversionEvent(parent, conversionEvent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2913,14 +3051,22 @@ public void deleteMeasurementProtocolSecretExceptionTest() throws Exception { } @Test - public void deleteMeasurementProtocolSecretTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void createConversionEventTest2() throws Exception { + ConversionEvent expectedResponse = + ConversionEvent.newBuilder() + .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) + .build(); mockService.addResponse(expectedResponse); - String name = - "properties/propertie-6357/dataStreams/dataStream-6357/measurementProtocolSecrets/measurementProtocolSecret-6357"; + String parent = "properties/propertie-2024"; + ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - client.deleteMeasurementProtocolSecret(name); + ConversionEvent actualResponse = client.createConversionEvent(parent, conversionEvent); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -2938,16 +3084,16 @@ public void deleteMeasurementProtocolSecretTest2() throws Exception { } @Test - public void deleteMeasurementProtocolSecretExceptionTest2() throws Exception { + public void createConversionEventExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = - "properties/propertie-6357/dataStreams/dataStream-6357/measurementProtocolSecrets/measurementProtocolSecret-6357"; - client.deleteMeasurementProtocolSecret(name); + String parent = "properties/propertie-2024"; + ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); + client.createConversionEvent(parent, conversionEvent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2955,31 +3101,28 @@ public void deleteMeasurementProtocolSecretExceptionTest2() throws Exception { } @Test - public void updateMeasurementProtocolSecretTest() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") + public void updateConversionEventTest() throws Exception { + ConversionEvent expectedResponse = + ConversionEvent.newBuilder() + .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) .build(); mockService.addResponse(expectedResponse); - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") + ConversionEvent conversionEvent = + ConversionEvent.newBuilder() + .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); - MeasurementProtocolSecret actualResponse = - client.updateMeasurementProtocolSecret(measurementProtocolSecret, updateMask); + ConversionEvent actualResponse = client.updateConversionEvent(conversionEvent, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -2998,24 +3141,23 @@ public void updateMeasurementProtocolSecretTest() throws Exception { } @Test - public void updateMeasurementProtocolSecretExceptionTest() throws Exception { + public void updateConversionEventExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") + ConversionEvent conversionEvent = + ConversionEvent.newBuilder() + .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateMeasurementProtocolSecret(measurementProtocolSecret, updateMask); + client.updateConversionEvent(conversionEvent, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3023,19 +3165,20 @@ public void updateMeasurementProtocolSecretExceptionTest() throws Exception { } @Test - public void acknowledgeUserDataCollectionTest() throws Exception { - AcknowledgeUserDataCollectionResponse expectedResponse = - AcknowledgeUserDataCollectionResponse.newBuilder().build(); + public void getConversionEventTest() throws Exception { + ConversionEvent expectedResponse = + ConversionEvent.newBuilder() + .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) + .build(); mockService.addResponse(expectedResponse); - AcknowledgeUserDataCollectionRequest request = - AcknowledgeUserDataCollectionRequest.newBuilder() - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .setAcknowledgement("acknowledgement1769490938") - .build(); + ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); - AcknowledgeUserDataCollectionResponse actualResponse = - client.acknowledgeUserDataCollection(request); + ConversionEvent actualResponse = client.getConversionEvent(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -3054,19 +3197,15 @@ public void acknowledgeUserDataCollectionTest() throws Exception { } @Test - public void acknowledgeUserDataCollectionExceptionTest() throws Exception { + public void getConversionEventExceptionTest() throws Exception { ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - AcknowledgeUserDataCollectionRequest request = - AcknowledgeUserDataCollectionRequest.newBuilder() - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .setAcknowledgement("acknowledgement1769490938") - .build(); - client.acknowledgeUserDataCollection(request); + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); + client.getConversionEvent(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3074,26 +3213,20 @@ public void acknowledgeUserDataCollectionExceptionTest() throws Exception { } @Test - public void getSKAdNetworkConversionValueSchemaTest() throws Exception { - SKAdNetworkConversionValueSchema expectedResponse = - SKAdNetworkConversionValueSchema.newBuilder() - .setName( - SKAdNetworkConversionValueSchemaName.of( - "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") - .toString()) - .setPostbackWindowOne(PostbackWindow.newBuilder().build()) - .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) - .setPostbackWindowThree(PostbackWindow.newBuilder().build()) - .setApplyConversionValues(true) + public void getConversionEventTest2() throws Exception { + ConversionEvent expectedResponse = + ConversionEvent.newBuilder() + .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) .build(); mockService.addResponse(expectedResponse); - SKAdNetworkConversionValueSchemaName name = - SKAdNetworkConversionValueSchemaName.of( - "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]"); + String name = "properties/propertie-4144/conversionEvents/conversionEvent-4144"; - SKAdNetworkConversionValueSchema actualResponse = - client.getSKAdNetworkConversionValueSchema(name); + ConversionEvent actualResponse = client.getConversionEvent(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -3112,17 +3245,15 @@ public void getSKAdNetworkConversionValueSchemaTest() throws Exception { } @Test - public void getSKAdNetworkConversionValueSchemaExceptionTest() throws Exception { + public void getConversionEventExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - SKAdNetworkConversionValueSchemaName name = - SKAdNetworkConversionValueSchemaName.of( - "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]"); - client.getSKAdNetworkConversionValueSchema(name); + String name = "properties/propertie-4144/conversionEvents/conversionEvent-4144"; + client.getConversionEvent(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3130,26 +3261,13 @@ public void getSKAdNetworkConversionValueSchemaExceptionTest() throws Exception } @Test - public void getSKAdNetworkConversionValueSchemaTest2() throws Exception { - SKAdNetworkConversionValueSchema expectedResponse = - SKAdNetworkConversionValueSchema.newBuilder() - .setName( - SKAdNetworkConversionValueSchemaName.of( - "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") - .toString()) - .setPostbackWindowOne(PostbackWindow.newBuilder().build()) - .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) - .setPostbackWindowThree(PostbackWindow.newBuilder().build()) - .setApplyConversionValues(true) - .build(); + public void deleteConversionEventTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - String name = - "properties/propertie-7099/dataStreams/dataStream-7099/sKAdNetworkConversionValueSchema/sKAdNetworkConversionValueSchem-7099"; + ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); - SKAdNetworkConversionValueSchema actualResponse = - client.getSKAdNetworkConversionValueSchema(name); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteConversionEvent(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -3167,16 +3285,15 @@ public void getSKAdNetworkConversionValueSchemaTest2() throws Exception { } @Test - public void getSKAdNetworkConversionValueSchemaExceptionTest2() throws Exception { + public void deleteConversionEventExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = - "properties/propertie-7099/dataStreams/dataStream-7099/sKAdNetworkConversionValueSchema/sKAdNetworkConversionValueSchem-7099"; - client.getSKAdNetworkConversionValueSchema(name); + ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); + client.deleteConversionEvent(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3184,27 +3301,13 @@ public void getSKAdNetworkConversionValueSchemaExceptionTest2() throws Exception } @Test - public void createSKAdNetworkConversionValueSchemaTest() throws Exception { - SKAdNetworkConversionValueSchema expectedResponse = - SKAdNetworkConversionValueSchema.newBuilder() - .setName( - SKAdNetworkConversionValueSchemaName.of( - "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") - .toString()) - .setPostbackWindowOne(PostbackWindow.newBuilder().build()) - .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) - .setPostbackWindowThree(PostbackWindow.newBuilder().build()) - .setApplyConversionValues(true) - .build(); + public void deleteConversionEventTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = - SKAdNetworkConversionValueSchema.newBuilder().build(); + String name = "properties/propertie-4144/conversionEvents/conversionEvent-4144"; - SKAdNetworkConversionValueSchema actualResponse = - client.createSKAdNetworkConversionValueSchema(parent, skadnetworkConversionValueSchema); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteConversionEvent(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -3222,17 +3325,15 @@ public void createSKAdNetworkConversionValueSchemaTest() throws Exception { } @Test - public void createSKAdNetworkConversionValueSchemaExceptionTest() throws Exception { + public void deleteConversionEventExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = - SKAdNetworkConversionValueSchema.newBuilder().build(); - client.createSKAdNetworkConversionValueSchema(parent, skadnetworkConversionValueSchema); + String name = "properties/propertie-4144/conversionEvents/conversionEvent-4144"; + client.deleteConversionEvent(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3240,27 +3341,23 @@ public void createSKAdNetworkConversionValueSchemaExceptionTest() throws Excepti } @Test - public void createSKAdNetworkConversionValueSchemaTest2() throws Exception { - SKAdNetworkConversionValueSchema expectedResponse = - SKAdNetworkConversionValueSchema.newBuilder() - .setName( - SKAdNetworkConversionValueSchemaName.of( - "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") - .toString()) - .setPostbackWindowOne(PostbackWindow.newBuilder().build()) - .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) - .setPostbackWindowThree(PostbackWindow.newBuilder().build()) - .setApplyConversionValues(true) + public void listConversionEventsTest() throws Exception { + ConversionEvent responsesElement = ConversionEvent.newBuilder().build(); + ListConversionEventsResponse expectedResponse = + ListConversionEventsResponse.newBuilder() + .setNextPageToken("") + .addAllConversionEvents(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; - SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = - SKAdNetworkConversionValueSchema.newBuilder().build(); + PropertyName parent = PropertyName.of("[PROPERTY]"); - SKAdNetworkConversionValueSchema actualResponse = - client.createSKAdNetworkConversionValueSchema(parent, skadnetworkConversionValueSchema); - Assert.assertEquals(expectedResponse, actualResponse); + 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 = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -3278,17 +3375,15 @@ public void createSKAdNetworkConversionValueSchemaTest2() throws Exception { } @Test - public void createSKAdNetworkConversionValueSchemaExceptionTest2() throws Exception { + public void listConversionEventsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; - SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = - SKAdNetworkConversionValueSchema.newBuilder().build(); - client.createSKAdNetworkConversionValueSchema(parent, skadnetworkConversionValueSchema); + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listConversionEvents(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3296,15 +3391,23 @@ public void createSKAdNetworkConversionValueSchemaExceptionTest2() throws Except } @Test - public void deleteSKAdNetworkConversionValueSchemaTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void listConversionEventsTest2() throws Exception { + ConversionEvent responsesElement = ConversionEvent.newBuilder().build(); + ListConversionEventsResponse expectedResponse = + ListConversionEventsResponse.newBuilder() + .setNextPageToken("") + .addAllConversionEvents(Arrays.asList(responsesElement)) + .build(); mockService.addResponse(expectedResponse); - SKAdNetworkConversionValueSchemaName name = - SKAdNetworkConversionValueSchemaName.of( - "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]"); + String parent = "properties/propertie-2024"; - client.deleteSKAdNetworkConversionValueSchema(name); + 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 = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -3322,17 +3425,15 @@ public void deleteSKAdNetworkConversionValueSchemaTest() throws Exception { } @Test - public void deleteSKAdNetworkConversionValueSchemaExceptionTest() throws Exception { + public void listConversionEventsExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - SKAdNetworkConversionValueSchemaName name = - SKAdNetworkConversionValueSchemaName.of( - "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]"); - client.deleteSKAdNetworkConversionValueSchema(name); + String parent = "properties/propertie-2024"; + client.listConversionEvents(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3340,14 +3441,26 @@ public void deleteSKAdNetworkConversionValueSchemaExceptionTest() throws Excepti } @Test - public void deleteSKAdNetworkConversionValueSchemaTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getDisplayVideo360AdvertiserLinkTest() throws Exception { + DisplayVideo360AdvertiserLink expectedResponse = + DisplayVideo360AdvertiserLink.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .build(); mockService.addResponse(expectedResponse); - String name = - "properties/propertie-7099/dataStreams/dataStream-7099/sKAdNetworkConversionValueSchema/sKAdNetworkConversionValueSchem-7099"; + DisplayVideo360AdvertiserLinkName name = + DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); - client.deleteSKAdNetworkConversionValueSchema(name); + DisplayVideo360AdvertiserLink actualResponse = client.getDisplayVideo360AdvertiserLink(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -3365,16 +3478,16 @@ public void deleteSKAdNetworkConversionValueSchemaTest2() throws Exception { } @Test - public void deleteSKAdNetworkConversionValueSchemaExceptionTest2() throws Exception { + public void getDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = - "properties/propertie-7099/dataStreams/dataStream-7099/sKAdNetworkConversionValueSchema/sKAdNetworkConversionValueSchem-7099"; - client.deleteSKAdNetworkConversionValueSchema(name); + DisplayVideo360AdvertiserLinkName name = + DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); + client.getDisplayVideo360AdvertiserLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3382,35 +3495,25 @@ public void deleteSKAdNetworkConversionValueSchemaExceptionTest2() throws Except } @Test - public void updateSKAdNetworkConversionValueSchemaTest() throws Exception { - SKAdNetworkConversionValueSchema expectedResponse = - SKAdNetworkConversionValueSchema.newBuilder() + public void getDisplayVideo360AdvertiserLinkTest2() throws Exception { + DisplayVideo360AdvertiserLink expectedResponse = + DisplayVideo360AdvertiserLink.newBuilder() .setName( - SKAdNetworkConversionValueSchemaName.of( - "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") + DisplayVideo360AdvertiserLinkName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") .toString()) - .setPostbackWindowOne(PostbackWindow.newBuilder().build()) - .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) - .setPostbackWindowThree(PostbackWindow.newBuilder().build()) - .setApplyConversionValues(true) + .setAdvertiserId("advertiserId550061990") + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = - SKAdNetworkConversionValueSchema.newBuilder() - .setName( - SKAdNetworkConversionValueSchemaName.of( - "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") - .toString()) - .setPostbackWindowOne(PostbackWindow.newBuilder().build()) - .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) - .setPostbackWindowThree(PostbackWindow.newBuilder().build()) - .setApplyConversionValues(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + String name = + "properties/propertie-7275/displayVideo360AdvertiserLinks/displayVideo360AdvertiserLink-7275"; - SKAdNetworkConversionValueSchema actualResponse = - client.updateSKAdNetworkConversionValueSchema(skadnetworkConversionValueSchema, updateMask); + DisplayVideo360AdvertiserLink actualResponse = client.getDisplayVideo360AdvertiserLink(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -3429,54 +3532,44 @@ public void updateSKAdNetworkConversionValueSchemaTest() throws Exception { } @Test - public void updateSKAdNetworkConversionValueSchemaExceptionTest() throws Exception { + public void getDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = - SKAdNetworkConversionValueSchema.newBuilder() - .setName( - SKAdNetworkConversionValueSchemaName.of( - "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") - .toString()) - .setPostbackWindowOne(PostbackWindow.newBuilder().build()) - .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) - .setPostbackWindowThree(PostbackWindow.newBuilder().build()) - .setApplyConversionValues(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateSKAdNetworkConversionValueSchema(skadnetworkConversionValueSchema, updateMask); + String name = + "properties/propertie-7275/displayVideo360AdvertiserLinks/displayVideo360AdvertiserLink-7275"; + client.getDisplayVideo360AdvertiserLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. } } - - @Test - public void listSKAdNetworkConversionValueSchemasTest() throws Exception { - SKAdNetworkConversionValueSchema responsesElement = - SKAdNetworkConversionValueSchema.newBuilder().build(); - ListSKAdNetworkConversionValueSchemasResponse expectedResponse = - ListSKAdNetworkConversionValueSchemasResponse.newBuilder() + + @Test + public void listDisplayVideo360AdvertiserLinksTest() throws Exception { + DisplayVideo360AdvertiserLink responsesElement = + DisplayVideo360AdvertiserLink.newBuilder().build(); + ListDisplayVideo360AdvertiserLinksResponse expectedResponse = + ListDisplayVideo360AdvertiserLinksResponse.newBuilder() .setNextPageToken("") - .addAllSkadnetworkConversionValueSchemas(Arrays.asList(responsesElement)) + .addAllDisplayVideo360AdvertiserLinks(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + PropertyName parent = PropertyName.of("[PROPERTY]"); - ListSKAdNetworkConversionValueSchemasPagedResponse pagedListResponse = - client.listSKAdNetworkConversionValueSchemas(parent); + ListDisplayVideo360AdvertiserLinksPagedResponse pagedListResponse = + client.listDisplayVideo360AdvertiserLinks(parent); - List resources = + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); Assert.assertEquals( - expectedResponse.getSkadnetworkConversionValueSchemasList().get(0), resources.get(0)); + expectedResponse.getDisplayVideo360AdvertiserLinksList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -3494,15 +3587,15 @@ public void listSKAdNetworkConversionValueSchemasTest() throws Exception { } @Test - public void listSKAdNetworkConversionValueSchemasExceptionTest() throws Exception { + public void listDisplayVideo360AdvertiserLinksExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.listSKAdNetworkConversionValueSchemas(parent); + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listDisplayVideo360AdvertiserLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3510,27 +3603,27 @@ public void listSKAdNetworkConversionValueSchemasExceptionTest() throws Exceptio } @Test - public void listSKAdNetworkConversionValueSchemasTest2() throws Exception { - SKAdNetworkConversionValueSchema responsesElement = - SKAdNetworkConversionValueSchema.newBuilder().build(); - ListSKAdNetworkConversionValueSchemasResponse expectedResponse = - ListSKAdNetworkConversionValueSchemasResponse.newBuilder() + public void listDisplayVideo360AdvertiserLinksTest2() throws Exception { + DisplayVideo360AdvertiserLink responsesElement = + DisplayVideo360AdvertiserLink.newBuilder().build(); + ListDisplayVideo360AdvertiserLinksResponse expectedResponse = + ListDisplayVideo360AdvertiserLinksResponse.newBuilder() .setNextPageToken("") - .addAllSkadnetworkConversionValueSchemas(Arrays.asList(responsesElement)) + .addAllDisplayVideo360AdvertiserLinks(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; + String parent = "properties/propertie-2024"; - ListSKAdNetworkConversionValueSchemasPagedResponse pagedListResponse = - client.listSKAdNetworkConversionValueSchemas(parent); + ListDisplayVideo360AdvertiserLinksPagedResponse pagedListResponse = + client.listDisplayVideo360AdvertiserLinks(parent); - List resources = + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); Assert.assertEquals( - expectedResponse.getSkadnetworkConversionValueSchemasList().get(0), resources.get(0)); + expectedResponse.getDisplayVideo360AdvertiserLinksList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -3548,15 +3641,15 @@ public void listSKAdNetworkConversionValueSchemasTest2() throws Exception { } @Test - public void listSKAdNetworkConversionValueSchemasExceptionTest2() throws Exception { + public void listDisplayVideo360AdvertiserLinksExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; - client.listSKAdNetworkConversionValueSchemas(parent); + String parent = "properties/propertie-2024"; + client.listDisplayVideo360AdvertiserLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3564,35 +3657,28 @@ public void listSKAdNetworkConversionValueSchemasExceptionTest2() throws Excepti } @Test - public void searchChangeHistoryEventsTest() throws Exception { - ChangeHistoryEvent responsesElement = ChangeHistoryEvent.newBuilder().build(); - SearchChangeHistoryEventsResponse expectedResponse = - SearchChangeHistoryEventsResponse.newBuilder() - .setNextPageToken("") - .addAllChangeHistoryEvents(Arrays.asList(responsesElement)) + public void createDisplayVideo360AdvertiserLinkTest() throws Exception { + DisplayVideo360AdvertiserLink expectedResponse = + DisplayVideo360AdvertiserLink.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) .build(); mockService.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()); + PropertyName parent = PropertyName.of("[PROPERTY]"); + DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = + DisplayVideo360AdvertiserLink.newBuilder().build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getChangeHistoryEventsList().get(0), resources.get(0)); + DisplayVideo360AdvertiserLink actualResponse = + client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -3610,26 +3696,17 @@ public void searchChangeHistoryEventsTest() throws Exception { } @Test - public void searchChangeHistoryEventsExceptionTest() throws Exception { + public void createDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.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); + PropertyName parent = PropertyName.of("[PROPERTY]"); + DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = + DisplayVideo360AdvertiserLink.newBuilder().build(); + client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3637,18 +3714,27 @@ public void searchChangeHistoryEventsExceptionTest() throws Exception { } @Test - public void getGoogleSignalsSettingsTest() throws Exception { - GoogleSignalsSettings expectedResponse = - GoogleSignalsSettings.newBuilder() - .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) - .setState(GoogleSignalsState.forNumber(0)) - .setConsent(GoogleSignalsConsent.forNumber(0)) + public void createDisplayVideo360AdvertiserLinkTest2() throws Exception { + DisplayVideo360AdvertiserLink expectedResponse = + DisplayVideo360AdvertiserLink.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - GoogleSignalsSettingsName name = GoogleSignalsSettingsName.of("[PROPERTY]"); + String parent = "properties/propertie-2024"; + DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = + DisplayVideo360AdvertiserLink.newBuilder().build(); - GoogleSignalsSettings actualResponse = client.getGoogleSignalsSettings(name); + DisplayVideo360AdvertiserLink actualResponse = + client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -3667,15 +3753,17 @@ public void getGoogleSignalsSettingsTest() throws Exception { } @Test - public void getGoogleSignalsSettingsExceptionTest() throws Exception { + public void createDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - GoogleSignalsSettingsName name = GoogleSignalsSettingsName.of("[PROPERTY]"); - client.getGoogleSignalsSettings(name); + String parent = "properties/propertie-2024"; + DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = + DisplayVideo360AdvertiserLink.newBuilder().build(); + client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3683,19 +3771,14 @@ public void getGoogleSignalsSettingsExceptionTest() throws 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(); + public void deleteDisplayVideo360AdvertiserLinkTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - String name = "properties/propertie-7279/googleSignalsSettings"; + DisplayVideo360AdvertiserLinkName name = + DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); - GoogleSignalsSettings actualResponse = client.getGoogleSignalsSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteDisplayVideo360AdvertiserLink(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -3713,15 +3796,16 @@ public void getGoogleSignalsSettingsTest2() throws Exception { } @Test - public void getGoogleSignalsSettingsExceptionTest2() throws Exception { + public void deleteDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-7279/googleSignalsSettings"; - client.getGoogleSignalsSettings(name); + DisplayVideo360AdvertiserLinkName name = + DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); + client.deleteDisplayVideo360AdvertiserLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3729,26 +3813,14 @@ public void getGoogleSignalsSettingsExceptionTest2() throws 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(); + public void deleteDisplayVideo360AdvertiserLinkTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - GoogleSignalsSettings googleSignalsSettings = - GoogleSignalsSettings.newBuilder() - .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) - .setState(GoogleSignalsState.forNumber(0)) - .setConsent(GoogleSignalsConsent.forNumber(0)) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + String name = + "properties/propertie-7275/displayVideo360AdvertiserLinks/displayVideo360AdvertiserLink-7275"; - GoogleSignalsSettings actualResponse = - client.updateGoogleSignalsSettings(googleSignalsSettings, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteDisplayVideo360AdvertiserLink(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -3766,21 +3838,16 @@ public void updateGoogleSignalsSettingsTest() throws Exception { } @Test - public void updateGoogleSignalsSettingsExceptionTest() throws Exception { + public void deleteDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - GoogleSignalsSettings googleSignalsSettings = - GoogleSignalsSettings.newBuilder() - .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) - .setState(GoogleSignalsState.forNumber(0)) - .setConsent(GoogleSignalsConsent.forNumber(0)) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateGoogleSignalsSettings(googleSignalsSettings, updateMask); + String name = + "properties/propertie-7275/displayVideo360AdvertiserLinks/displayVideo360AdvertiserLink-7275"; + client.deleteDisplayVideo360AdvertiserLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3788,21 +3855,37 @@ public void updateGoogleSignalsSettingsExceptionTest() throws Exception { } @Test - public void createConversionEventTest() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) + public void updateDisplayVideo360AdvertiserLinkTest() throws Exception { + DisplayVideo360AdvertiserLink expectedResponse = + DisplayVideo360AdvertiserLink.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); + DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = + DisplayVideo360AdvertiserLink.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - ConversionEvent actualResponse = client.createConversionEvent(parent, conversionEvent); + DisplayVideo360AdvertiserLink actualResponse = + client.updateDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -3821,16 +3904,27 @@ public void createConversionEventTest() throws Exception { } @Test - public void createConversionEventExceptionTest() throws Exception { + public void updateDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - client.createConversionEvent(parent, conversionEvent); + DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = + DisplayVideo360AdvertiserLink.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3838,21 +3932,29 @@ public void createConversionEventExceptionTest() throws Exception { } @Test - public void createConversionEventTest2() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) + public void getDisplayVideo360AdvertiserLinkProposalTest() throws Exception { + DisplayVideo360AdvertiserLinkProposal expectedResponse = + DisplayVideo360AdvertiserLinkProposal.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setValidationEmail("validationEmail-94407005") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-2024"; - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); + DisplayVideo360AdvertiserLinkProposalName name = + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); - ConversionEvent actualResponse = client.createConversionEvent(parent, conversionEvent); + DisplayVideo360AdvertiserLinkProposal actualResponse = + client.getDisplayVideo360AdvertiserLinkProposal(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -3871,16 +3973,17 @@ public void createConversionEventTest2() throws Exception { } @Test - public void createConversionEventExceptionTest2() throws Exception { + public void getDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - client.createConversionEvent(parent, conversionEvent); + DisplayVideo360AdvertiserLinkProposalName name = + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); + client.getDisplayVideo360AdvertiserLinkProposal(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3888,28 +3991,28 @@ public void createConversionEventExceptionTest2() throws Exception { } @Test - public void updateConversionEventTest() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) + public void getDisplayVideo360AdvertiserLinkProposalTest2() throws Exception { + DisplayVideo360AdvertiserLinkProposal expectedResponse = + DisplayVideo360AdvertiserLinkProposal.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setValidationEmail("validationEmail-94407005") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - ConversionEvent conversionEvent = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + String name = + "properties/propertie-8473/displayVideo360AdvertiserLinkProposals/displayVideo360AdvertiserLinkProposal-8473"; - ConversionEvent actualResponse = client.updateConversionEvent(conversionEvent, updateMask); + DisplayVideo360AdvertiserLinkProposal actualResponse = + client.getDisplayVideo360AdvertiserLinkProposal(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -3928,23 +4031,16 @@ public void updateConversionEventTest() throws Exception { } @Test - public void updateConversionEventExceptionTest() throws Exception { + public void getDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - ConversionEvent conversionEvent = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateConversionEvent(conversionEvent, updateMask); + String name = + "properties/propertie-8473/displayVideo360AdvertiserLinkProposals/displayVideo360AdvertiserLinkProposal-8473"; + client.getDisplayVideo360AdvertiserLinkProposal(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3952,21 +4048,27 @@ public void updateConversionEventExceptionTest() throws Exception { } @Test - public void getConversionEventTest() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) + public void listDisplayVideo360AdvertiserLinkProposalsTest() throws Exception { + DisplayVideo360AdvertiserLinkProposal responsesElement = + DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); + ListDisplayVideo360AdvertiserLinkProposalsResponse expectedResponse = + ListDisplayVideo360AdvertiserLinkProposalsResponse.newBuilder() + .setNextPageToken("") + .addAllDisplayVideo360AdvertiserLinkProposals(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); + PropertyName parent = PropertyName.of("[PROPERTY]"); - ConversionEvent actualResponse = client.getConversionEvent(name); - Assert.assertEquals(expectedResponse, actualResponse); + ListDisplayVideo360AdvertiserLinkProposalsPagedResponse pagedListResponse = + client.listDisplayVideo360AdvertiserLinkProposals(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getDisplayVideo360AdvertiserLinkProposalsList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -3984,15 +4086,15 @@ public void getConversionEventTest() throws Exception { } @Test - public void getConversionEventExceptionTest() throws Exception { + public void listDisplayVideo360AdvertiserLinkProposalsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); - client.getConversionEvent(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listDisplayVideo360AdvertiserLinkProposals(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4000,21 +4102,27 @@ public void getConversionEventExceptionTest() throws Exception { } @Test - public void getConversionEventTest2() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) + public void listDisplayVideo360AdvertiserLinkProposalsTest2() throws Exception { + DisplayVideo360AdvertiserLinkProposal responsesElement = + DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); + ListDisplayVideo360AdvertiserLinkProposalsResponse expectedResponse = + ListDisplayVideo360AdvertiserLinkProposalsResponse.newBuilder() + .setNextPageToken("") + .addAllDisplayVideo360AdvertiserLinkProposals(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - String name = "properties/propertie-4144/conversionEvents/conversionEvent-4144"; + String parent = "properties/propertie-2024"; - ConversionEvent actualResponse = client.getConversionEvent(name); - Assert.assertEquals(expectedResponse, actualResponse); + ListDisplayVideo360AdvertiserLinkProposalsPagedResponse pagedListResponse = + client.listDisplayVideo360AdvertiserLinkProposals(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getDisplayVideo360AdvertiserLinkProposalsList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -4032,15 +4140,15 @@ public void getConversionEventTest2() throws Exception { } @Test - public void getConversionEventExceptionTest2() throws Exception { + public void listDisplayVideo360AdvertiserLinkProposalsExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-4144/conversionEvents/conversionEvent-4144"; - client.getConversionEvent(name); + String parent = "properties/propertie-2024"; + client.listDisplayVideo360AdvertiserLinkProposals(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4048,13 +4156,31 @@ public void getConversionEventExceptionTest2() throws Exception { } @Test - public void deleteConversionEventTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void createDisplayVideo360AdvertiserLinkProposalTest() throws Exception { + DisplayVideo360AdvertiserLinkProposal expectedResponse = + DisplayVideo360AdvertiserLinkProposal.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setValidationEmail("validationEmail-94407005") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .build(); mockService.addResponse(expectedResponse); - ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); + PropertyName parent = PropertyName.of("[PROPERTY]"); + DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = + DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - client.deleteConversionEvent(name); + DisplayVideo360AdvertiserLinkProposal actualResponse = + client.createDisplayVideo360AdvertiserLinkProposal( + parent, displayVideo360AdvertiserLinkProposal); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -4072,15 +4198,18 @@ public void deleteConversionEventTest() throws Exception { } @Test - public void deleteConversionEventExceptionTest() throws Exception { + public void createDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); - client.deleteConversionEvent(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = + DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); + client.createDisplayVideo360AdvertiserLinkProposal( + parent, displayVideo360AdvertiserLinkProposal); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4088,13 +4217,31 @@ public void deleteConversionEventExceptionTest() throws Exception { } @Test - public void deleteConversionEventTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void createDisplayVideo360AdvertiserLinkProposalTest2() throws Exception { + DisplayVideo360AdvertiserLinkProposal expectedResponse = + DisplayVideo360AdvertiserLinkProposal.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setValidationEmail("validationEmail-94407005") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .build(); mockService.addResponse(expectedResponse); - String name = "properties/propertie-4144/conversionEvents/conversionEvent-4144"; + String parent = "properties/propertie-2024"; + DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = + DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - client.deleteConversionEvent(name); + DisplayVideo360AdvertiserLinkProposal actualResponse = + client.createDisplayVideo360AdvertiserLinkProposal( + parent, displayVideo360AdvertiserLinkProposal); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -4112,15 +4259,18 @@ public void deleteConversionEventTest2() throws Exception { } @Test - public void deleteConversionEventExceptionTest2() throws Exception { + public void createDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-4144/conversionEvents/conversionEvent-4144"; - client.deleteConversionEvent(name); + String parent = "properties/propertie-2024"; + DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = + DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); + client.createDisplayVideo360AdvertiserLinkProposal( + parent, displayVideo360AdvertiserLinkProposal); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4128,23 +4278,15 @@ public void deleteConversionEventExceptionTest2() throws Exception { } @Test - public void listConversionEventsTest() throws Exception { - ConversionEvent responsesElement = ConversionEvent.newBuilder().build(); - ListConversionEventsResponse expectedResponse = - ListConversionEventsResponse.newBuilder() - .setNextPageToken("") - .addAllConversionEvents(Arrays.asList(responsesElement)) - .build(); + public void deleteDisplayVideo360AdvertiserLinkProposalTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListConversionEventsPagedResponse pagedListResponse = client.listConversionEvents(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + DisplayVideo360AdvertiserLinkProposalName name = + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getConversionEventsList().get(0), resources.get(0)); + client.deleteDisplayVideo360AdvertiserLinkProposal(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -4162,15 +4304,17 @@ public void listConversionEventsTest() throws Exception { } @Test - public void listConversionEventsExceptionTest() throws Exception { + public void deleteDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listConversionEvents(parent); + DisplayVideo360AdvertiserLinkProposalName name = + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); + client.deleteDisplayVideo360AdvertiserLinkProposal(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4178,23 +4322,14 @@ public void listConversionEventsExceptionTest() throws Exception { } @Test - public void listConversionEventsTest2() throws Exception { - ConversionEvent responsesElement = ConversionEvent.newBuilder().build(); - ListConversionEventsResponse expectedResponse = - ListConversionEventsResponse.newBuilder() - .setNextPageToken("") - .addAllConversionEvents(Arrays.asList(responsesElement)) - .build(); + public void deleteDisplayVideo360AdvertiserLinkProposalTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-2024"; - - ListConversionEventsPagedResponse pagedListResponse = client.listConversionEvents(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + String name = + "properties/propertie-8473/displayVideo360AdvertiserLinkProposals/displayVideo360AdvertiserLinkProposal-8473"; - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getConversionEventsList().get(0), resources.get(0)); + client.deleteDisplayVideo360AdvertiserLinkProposal(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -4212,15 +4347,16 @@ public void listConversionEventsTest2() throws Exception { } @Test - public void listConversionEventsExceptionTest2() throws Exception { + public void deleteDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - client.listConversionEvents(parent); + String name = + "properties/propertie-8473/displayVideo360AdvertiserLinkProposals/displayVideo360AdvertiserLinkProposal-8473"; + client.deleteDisplayVideo360AdvertiserLinkProposal(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4228,25 +4364,23 @@ public void listConversionEventsExceptionTest2() throws Exception { } @Test - public void getDisplayVideo360AdvertiserLinkTest() throws Exception { - DisplayVideo360AdvertiserLink expectedResponse = - DisplayVideo360AdvertiserLink.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + public void approveDisplayVideo360AdvertiserLinkProposalTest() throws Exception { + ApproveDisplayVideo360AdvertiserLinkProposalResponse expectedResponse = + ApproveDisplayVideo360AdvertiserLinkProposalResponse.newBuilder() + .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - DisplayVideo360AdvertiserLinkName name = - DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); + ApproveDisplayVideo360AdvertiserLinkProposalRequest request = + ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .build(); - DisplayVideo360AdvertiserLink actualResponse = client.getDisplayVideo360AdvertiserLink(name); + ApproveDisplayVideo360AdvertiserLinkProposalResponse actualResponse = + client.approveDisplayVideo360AdvertiserLinkProposal(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -4265,16 +4399,21 @@ public void getDisplayVideo360AdvertiserLinkTest() throws Exception { } @Test - public void getDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { + public void approveDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - DisplayVideo360AdvertiserLinkName name = - DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); - client.getDisplayVideo360AdvertiserLink(name); + ApproveDisplayVideo360AdvertiserLinkProposalRequest request = + ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .build(); + client.approveDisplayVideo360AdvertiserLinkProposal(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4282,25 +4421,33 @@ public void getDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { } @Test - public void getDisplayVideo360AdvertiserLinkTest2() throws Exception { - DisplayVideo360AdvertiserLink expectedResponse = - DisplayVideo360AdvertiserLink.newBuilder() + public void cancelDisplayVideo360AdvertiserLinkProposalTest() throws Exception { + DisplayVideo360AdvertiserLinkProposal expectedResponse = + DisplayVideo360AdvertiserLinkProposal.newBuilder() .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") .toString()) .setAdvertiserId("advertiserId550061990") + .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setValidationEmail("validationEmail-94407005") .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) .setCostDataSharingEnabled(BoolValue.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - String name = - "properties/propertie-7275/displayVideo360AdvertiserLinks/displayVideo360AdvertiserLink-7275"; + CancelDisplayVideo360AdvertiserLinkProposalRequest request = + CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .build(); - DisplayVideo360AdvertiserLink actualResponse = client.getDisplayVideo360AdvertiserLink(name); + DisplayVideo360AdvertiserLinkProposal actualResponse = + client.cancelDisplayVideo360AdvertiserLinkProposal(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -4319,16 +4466,21 @@ public void getDisplayVideo360AdvertiserLinkTest2() throws Exception { } @Test - public void getDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception { + public void cancelDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = - "properties/propertie-7275/displayVideo360AdvertiserLinks/displayVideo360AdvertiserLink-7275"; - client.getDisplayVideo360AdvertiserLink(name); + CancelDisplayVideo360AdvertiserLinkProposalRequest request = + CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .build(); + client.cancelDisplayVideo360AdvertiserLinkProposal(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4336,27 +4488,22 @@ public void getDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception { } @Test - public void listDisplayVideo360AdvertiserLinksTest() throws Exception { - DisplayVideo360AdvertiserLink responsesElement = - DisplayVideo360AdvertiserLink.newBuilder().build(); - ListDisplayVideo360AdvertiserLinksResponse expectedResponse = - ListDisplayVideo360AdvertiserLinksResponse.newBuilder() - .setNextPageToken("") - .addAllDisplayVideo360AdvertiserLinks(Arrays.asList(responsesElement)) + public void createCustomDimensionTest() throws Exception { + CustomDimension expectedResponse = + CustomDimension.newBuilder() + .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDisallowAdsPersonalization(true) .build(); mockService.addResponse(expectedResponse); PropertyName parent = PropertyName.of("[PROPERTY]"); + CustomDimension customDimension = CustomDimension.newBuilder().build(); - ListDisplayVideo360AdvertiserLinksPagedResponse pagedListResponse = - client.listDisplayVideo360AdvertiserLinks(parent); - - List resources = - Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getDisplayVideo360AdvertiserLinksList().get(0), resources.get(0)); + CustomDimension actualResponse = client.createCustomDimension(parent, customDimension); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -4374,7 +4521,7 @@ public void listDisplayVideo360AdvertiserLinksTest() throws Exception { } @Test - public void listDisplayVideo360AdvertiserLinksExceptionTest() throws Exception { + public void createCustomDimensionExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -4382,7 +4529,8 @@ public void listDisplayVideo360AdvertiserLinksExceptionTest() throws Exception { try { PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listDisplayVideo360AdvertiserLinks(parent); + CustomDimension customDimension = CustomDimension.newBuilder().build(); + client.createCustomDimension(parent, customDimension); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4390,27 +4538,22 @@ public void listDisplayVideo360AdvertiserLinksExceptionTest() throws Exception { } @Test - public void listDisplayVideo360AdvertiserLinksTest2() throws Exception { - DisplayVideo360AdvertiserLink responsesElement = - DisplayVideo360AdvertiserLink.newBuilder().build(); - ListDisplayVideo360AdvertiserLinksResponse expectedResponse = - ListDisplayVideo360AdvertiserLinksResponse.newBuilder() - .setNextPageToken("") - .addAllDisplayVideo360AdvertiserLinks(Arrays.asList(responsesElement)) + public void createCustomDimensionTest2() throws Exception { + CustomDimension expectedResponse = + CustomDimension.newBuilder() + .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDisallowAdsPersonalization(true) .build(); mockService.addResponse(expectedResponse); String parent = "properties/propertie-2024"; + CustomDimension customDimension = CustomDimension.newBuilder().build(); - ListDisplayVideo360AdvertiserLinksPagedResponse pagedListResponse = - client.listDisplayVideo360AdvertiserLinks(parent); - - List resources = - Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getDisplayVideo360AdvertiserLinksList().get(0), resources.get(0)); + CustomDimension actualResponse = client.createCustomDimension(parent, customDimension); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -4428,7 +4571,7 @@ public void listDisplayVideo360AdvertiserLinksTest2() throws Exception { } @Test - public void listDisplayVideo360AdvertiserLinksExceptionTest2() throws Exception { + public void createCustomDimensionExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -4436,7 +4579,8 @@ public void listDisplayVideo360AdvertiserLinksExceptionTest2() throws Exception try { String parent = "properties/propertie-2024"; - client.listDisplayVideo360AdvertiserLinks(parent); + CustomDimension customDimension = CustomDimension.newBuilder().build(); + client.createCustomDimension(parent, customDimension); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4444,27 +4588,28 @@ public void listDisplayVideo360AdvertiserLinksExceptionTest2() throws Exception } @Test - public void createDisplayVideo360AdvertiserLinkTest() throws Exception { - DisplayVideo360AdvertiserLink expectedResponse = - DisplayVideo360AdvertiserLink.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + public void updateCustomDimensionTest() throws Exception { + CustomDimension expectedResponse = + CustomDimension.newBuilder() + .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDisallowAdsPersonalization(true) .build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder().build(); + CustomDimension customDimension = + CustomDimension.newBuilder() + .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDisallowAdsPersonalization(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - DisplayVideo360AdvertiserLink actualResponse = - client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); + CustomDimension actualResponse = client.updateCustomDimension(customDimension, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -4483,17 +4628,23 @@ public void createDisplayVideo360AdvertiserLinkTest() throws Exception { } @Test - public void createDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { + public void updateCustomDimensionExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder().build(); - client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); + CustomDimension customDimension = + CustomDimension.newBuilder() + .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDisallowAdsPersonalization(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCustomDimension(customDimension, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4501,28 +4652,23 @@ public void createDisplayVideo360AdvertiserLinkExceptionTest() throws Exception } @Test - public void createDisplayVideo360AdvertiserLinkTest2() throws Exception { - DisplayVideo360AdvertiserLink expectedResponse = - DisplayVideo360AdvertiserLink.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + public void listCustomDimensionsTest() throws Exception { + CustomDimension responsesElement = CustomDimension.newBuilder().build(); + ListCustomDimensionsResponse expectedResponse = + ListCustomDimensionsResponse.newBuilder() + .setNextPageToken("") + .addAllCustomDimensions(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-2024"; - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder().build(); + PropertyName parent = PropertyName.of("[PROPERTY]"); - DisplayVideo360AdvertiserLink actualResponse = - client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); - Assert.assertEquals(expectedResponse, actualResponse); + 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 = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -4540,17 +4686,15 @@ public void createDisplayVideo360AdvertiserLinkTest2() throws Exception { } @Test - public void createDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception { + public void listCustomDimensionsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder().build(); - client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listCustomDimensions(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4558,14 +4702,23 @@ public void createDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception } @Test - public void deleteDisplayVideo360AdvertiserLinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void listCustomDimensionsTest2() throws Exception { + CustomDimension responsesElement = CustomDimension.newBuilder().build(); + ListCustomDimensionsResponse expectedResponse = + ListCustomDimensionsResponse.newBuilder() + .setNextPageToken("") + .addAllCustomDimensions(Arrays.asList(responsesElement)) + .build(); mockService.addResponse(expectedResponse); - DisplayVideo360AdvertiserLinkName name = - DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); + String parent = "properties/propertie-2024"; - client.deleteDisplayVideo360AdvertiserLink(name); + 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 = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -4583,16 +4736,15 @@ public void deleteDisplayVideo360AdvertiserLinkTest() throws Exception { } @Test - public void deleteDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { + public void listCustomDimensionsExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - DisplayVideo360AdvertiserLinkName name = - DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); - client.deleteDisplayVideo360AdvertiserLink(name); + String parent = "properties/propertie-2024"; + client.listCustomDimensions(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4600,14 +4752,13 @@ public void deleteDisplayVideo360AdvertiserLinkExceptionTest() throws Exception } @Test - public void deleteDisplayVideo360AdvertiserLinkTest2() throws Exception { + public void archiveCustomDimensionTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - String name = - "properties/propertie-7275/displayVideo360AdvertiserLinks/displayVideo360AdvertiserLink-7275"; + CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - client.deleteDisplayVideo360AdvertiserLink(name); + client.archiveCustomDimension(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -4625,16 +4776,15 @@ public void deleteDisplayVideo360AdvertiserLinkTest2() throws Exception { } @Test - public void deleteDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception { + public void archiveCustomDimensionExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = - "properties/propertie-7275/displayVideo360AdvertiserLinks/displayVideo360AdvertiserLink-7275"; - client.deleteDisplayVideo360AdvertiserLink(name); + CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); + client.archiveCustomDimension(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4642,38 +4792,13 @@ public void deleteDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception } @Test - public void updateDisplayVideo360AdvertiserLinkTest() throws Exception { - DisplayVideo360AdvertiserLink expectedResponse = - DisplayVideo360AdvertiserLink.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); + public void archiveCustomDimensionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + String name = "properties/propertie-447/customDimensions/customDimension-447"; - DisplayVideo360AdvertiserLink actualResponse = - client.updateDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); + client.archiveCustomDimension(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -4691,27 +4816,15 @@ public void updateDisplayVideo360AdvertiserLinkTest() throws Exception { } @Test - public void updateDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { + public void archiveCustomDimensionExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink, updateMask); + String name = "properties/propertie-447/customDimensions/customDimension-447"; + client.archiveCustomDimension(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4719,29 +4832,20 @@ public void updateDisplayVideo360AdvertiserLinkExceptionTest() throws Exception } @Test - public void getDisplayVideo360AdvertiserLinkProposalTest() throws Exception { - DisplayVideo360AdvertiserLinkProposal expectedResponse = - DisplayVideo360AdvertiserLinkProposal.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setValidationEmail("validationEmail-94407005") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + public void getCustomDimensionTest() throws Exception { + CustomDimension expectedResponse = + CustomDimension.newBuilder() + .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDisallowAdsPersonalization(true) .build(); mockService.addResponse(expectedResponse); - DisplayVideo360AdvertiserLinkProposalName name = - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); + CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - DisplayVideo360AdvertiserLinkProposal actualResponse = - client.getDisplayVideo360AdvertiserLinkProposal(name); + CustomDimension actualResponse = client.getCustomDimension(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -4760,17 +4864,15 @@ public void getDisplayVideo360AdvertiserLinkProposalTest() throws Exception { } @Test - public void getDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { + public void getCustomDimensionExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - DisplayVideo360AdvertiserLinkProposalName name = - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); - client.getDisplayVideo360AdvertiserLinkProposal(name); + CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); + client.getCustomDimension(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4778,28 +4880,20 @@ public void getDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Excep } @Test - public void getDisplayVideo360AdvertiserLinkProposalTest2() throws Exception { - DisplayVideo360AdvertiserLinkProposal expectedResponse = - DisplayVideo360AdvertiserLinkProposal.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setValidationEmail("validationEmail-94407005") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + public void getCustomDimensionTest2() throws Exception { + CustomDimension expectedResponse = + CustomDimension.newBuilder() + .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDisallowAdsPersonalization(true) .build(); mockService.addResponse(expectedResponse); - String name = - "properties/propertie-8473/displayVideo360AdvertiserLinkProposals/displayVideo360AdvertiserLinkProposal-8473"; + String name = "properties/propertie-447/customDimensions/customDimension-447"; - DisplayVideo360AdvertiserLinkProposal actualResponse = - client.getDisplayVideo360AdvertiserLinkProposal(name); + CustomDimension actualResponse = client.getCustomDimension(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -4818,16 +4912,15 @@ public void getDisplayVideo360AdvertiserLinkProposalTest2() throws Exception { } @Test - public void getDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exception { + public void getCustomDimensionExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = - "properties/propertie-8473/displayVideo360AdvertiserLinkProposals/displayVideo360AdvertiserLinkProposal-8473"; - client.getDisplayVideo360AdvertiserLinkProposal(name); + String name = "properties/propertie-447/customDimensions/customDimension-447"; + client.getCustomDimension(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4835,27 +4928,22 @@ public void getDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exce } @Test - public void listDisplayVideo360AdvertiserLinkProposalsTest() throws Exception { - DisplayVideo360AdvertiserLinkProposal responsesElement = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - ListDisplayVideo360AdvertiserLinkProposalsResponse expectedResponse = - ListDisplayVideo360AdvertiserLinkProposalsResponse.newBuilder() - .setNextPageToken("") - .addAllDisplayVideo360AdvertiserLinkProposals(Arrays.asList(responsesElement)) + public void createCustomMetricTest() throws Exception { + CustomMetric expectedResponse = + CustomMetric.newBuilder() + .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllRestrictedMetricType(new ArrayList()) .build(); mockService.addResponse(expectedResponse); PropertyName parent = PropertyName.of("[PROPERTY]"); + CustomMetric customMetric = CustomMetric.newBuilder().build(); - ListDisplayVideo360AdvertiserLinkProposalsPagedResponse pagedListResponse = - client.listDisplayVideo360AdvertiserLinkProposals(parent); - - List resources = - Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getDisplayVideo360AdvertiserLinkProposalsList().get(0), resources.get(0)); + CustomMetric actualResponse = client.createCustomMetric(parent, customMetric); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -4873,7 +4961,7 @@ public void listDisplayVideo360AdvertiserLinkProposalsTest() throws Exception { } @Test - public void listDisplayVideo360AdvertiserLinkProposalsExceptionTest() throws Exception { + public void createCustomMetricExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -4881,7 +4969,8 @@ public void listDisplayVideo360AdvertiserLinkProposalsExceptionTest() throws Exc try { PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listDisplayVideo360AdvertiserLinkProposals(parent); + CustomMetric customMetric = CustomMetric.newBuilder().build(); + client.createCustomMetric(parent, customMetric); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4889,27 +4978,22 @@ public void listDisplayVideo360AdvertiserLinkProposalsExceptionTest() throws Exc } @Test - public void listDisplayVideo360AdvertiserLinkProposalsTest2() throws Exception { - DisplayVideo360AdvertiserLinkProposal responsesElement = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - ListDisplayVideo360AdvertiserLinkProposalsResponse expectedResponse = - ListDisplayVideo360AdvertiserLinkProposalsResponse.newBuilder() - .setNextPageToken("") - .addAllDisplayVideo360AdvertiserLinkProposals(Arrays.asList(responsesElement)) + public void createCustomMetricTest2() throws Exception { + CustomMetric expectedResponse = + CustomMetric.newBuilder() + .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllRestrictedMetricType(new ArrayList()) .build(); mockService.addResponse(expectedResponse); String parent = "properties/propertie-2024"; + CustomMetric customMetric = CustomMetric.newBuilder().build(); - ListDisplayVideo360AdvertiserLinkProposalsPagedResponse pagedListResponse = - client.listDisplayVideo360AdvertiserLinkProposals(parent); - - List resources = - Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getDisplayVideo360AdvertiserLinkProposalsList().get(0), resources.get(0)); + CustomMetric actualResponse = client.createCustomMetric(parent, customMetric); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -4927,7 +5011,7 @@ public void listDisplayVideo360AdvertiserLinkProposalsTest2() throws Exception { } @Test - public void listDisplayVideo360AdvertiserLinkProposalsExceptionTest2() throws Exception { + public void createCustomMetricExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -4935,7 +5019,8 @@ public void listDisplayVideo360AdvertiserLinkProposalsExceptionTest2() throws Ex try { String parent = "properties/propertie-2024"; - client.listDisplayVideo360AdvertiserLinkProposals(parent); + CustomMetric customMetric = CustomMetric.newBuilder().build(); + client.createCustomMetric(parent, customMetric); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4943,30 +5028,28 @@ public void listDisplayVideo360AdvertiserLinkProposalsExceptionTest2() throws Ex } @Test - public void createDisplayVideo360AdvertiserLinkProposalTest() throws Exception { - DisplayVideo360AdvertiserLinkProposal expectedResponse = - DisplayVideo360AdvertiserLinkProposal.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setValidationEmail("validationEmail-94407005") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + public void updateCustomMetricTest() throws Exception { + CustomMetric expectedResponse = + CustomMetric.newBuilder() + .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllRestrictedMetricType(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); + CustomMetric customMetric = + CustomMetric.newBuilder() + .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllRestrictedMetricType(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - DisplayVideo360AdvertiserLinkProposal actualResponse = - client.createDisplayVideo360AdvertiserLinkProposal( - parent, displayVideo360AdvertiserLinkProposal); + CustomMetric actualResponse = client.updateCustomMetric(customMetric, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -4985,18 +5068,23 @@ public void createDisplayVideo360AdvertiserLinkProposalTest() throws Exception { } @Test - public void createDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { + public void updateCustomMetricExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - client.createDisplayVideo360AdvertiserLinkProposal( - parent, displayVideo360AdvertiserLinkProposal); + CustomMetric customMetric = + CustomMetric.newBuilder() + .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllRestrictedMetricType(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCustomMetric(customMetric, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5004,31 +5092,23 @@ public void createDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Ex } @Test - public void createDisplayVideo360AdvertiserLinkProposalTest2() throws Exception { - DisplayVideo360AdvertiserLinkProposal expectedResponse = - DisplayVideo360AdvertiserLinkProposal.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setValidationEmail("validationEmail-94407005") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + public void listCustomMetricsTest() throws Exception { + CustomMetric responsesElement = CustomMetric.newBuilder().build(); + ListCustomMetricsResponse expectedResponse = + ListCustomMetricsResponse.newBuilder() + .setNextPageToken("") + .addAllCustomMetrics(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-2024"; - DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); + PropertyName parent = PropertyName.of("[PROPERTY]"); - DisplayVideo360AdvertiserLinkProposal actualResponse = - client.createDisplayVideo360AdvertiserLinkProposal( - parent, displayVideo360AdvertiserLinkProposal); - Assert.assertEquals(expectedResponse, actualResponse); + 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 = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -5046,18 +5126,15 @@ public void createDisplayVideo360AdvertiserLinkProposalTest2() throws Exception } @Test - public void createDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exception { + public void listCustomMetricsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - client.createDisplayVideo360AdvertiserLinkProposal( - parent, displayVideo360AdvertiserLinkProposal); + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listCustomMetrics(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5065,15 +5142,23 @@ public void createDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws E } @Test - public void deleteDisplayVideo360AdvertiserLinkProposalTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void listCustomMetricsTest2() throws Exception { + CustomMetric responsesElement = CustomMetric.newBuilder().build(); + ListCustomMetricsResponse expectedResponse = + ListCustomMetricsResponse.newBuilder() + .setNextPageToken("") + .addAllCustomMetrics(Arrays.asList(responsesElement)) + .build(); mockService.addResponse(expectedResponse); - DisplayVideo360AdvertiserLinkProposalName name = - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); + String parent = "properties/propertie-2024"; - client.deleteDisplayVideo360AdvertiserLinkProposal(name); + 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 = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -5091,17 +5176,15 @@ public void deleteDisplayVideo360AdvertiserLinkProposalTest() throws Exception { } @Test - public void deleteDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { + public void listCustomMetricsExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - DisplayVideo360AdvertiserLinkProposalName name = - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); - client.deleteDisplayVideo360AdvertiserLinkProposal(name); + String parent = "properties/propertie-2024"; + client.listCustomMetrics(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5109,14 +5192,13 @@ public void deleteDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Ex } @Test - public void deleteDisplayVideo360AdvertiserLinkProposalTest2() throws Exception { + public void archiveCustomMetricTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - String name = - "properties/propertie-8473/displayVideo360AdvertiserLinkProposals/displayVideo360AdvertiserLinkProposal-8473"; + CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - client.deleteDisplayVideo360AdvertiserLinkProposal(name); + client.archiveCustomMetric(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -5134,16 +5216,15 @@ public void deleteDisplayVideo360AdvertiserLinkProposalTest2() throws Exception } @Test - public void deleteDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exception { + public void archiveCustomMetricExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = - "properties/propertie-8473/displayVideo360AdvertiserLinkProposals/displayVideo360AdvertiserLinkProposal-8473"; - client.deleteDisplayVideo360AdvertiserLinkProposal(name); + CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); + client.archiveCustomMetric(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5151,24 +5232,13 @@ public void deleteDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws E } @Test - public void approveDisplayVideo360AdvertiserLinkProposalTest() throws Exception { - ApproveDisplayVideo360AdvertiserLinkProposalResponse expectedResponse = - ApproveDisplayVideo360AdvertiserLinkProposalResponse.newBuilder() - .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build()) - .build(); + public void archiveCustomMetricTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - ApproveDisplayVideo360AdvertiserLinkProposalRequest request = - ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .build(); + String name = "properties/propertie-2999/customMetrics/customMetric-2999"; - ApproveDisplayVideo360AdvertiserLinkProposalResponse actualResponse = - client.approveDisplayVideo360AdvertiserLinkProposal(request); - Assert.assertEquals(expectedResponse, actualResponse); + client.archiveCustomMetric(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -5186,21 +5256,15 @@ public void approveDisplayVideo360AdvertiserLinkProposalTest() throws Exception } @Test - public void approveDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { + public void archiveCustomMetricExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - ApproveDisplayVideo360AdvertiserLinkProposalRequest request = - ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .build(); - client.approveDisplayVideo360AdvertiserLinkProposal(request); + String name = "properties/propertie-2999/customMetrics/customMetric-2999"; + client.archiveCustomMetric(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5208,33 +5272,20 @@ public void approveDisplayVideo360AdvertiserLinkProposalExceptionTest() throws E } @Test - public void cancelDisplayVideo360AdvertiserLinkProposalTest() throws Exception { - DisplayVideo360AdvertiserLinkProposal expectedResponse = - DisplayVideo360AdvertiserLinkProposal.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setValidationEmail("validationEmail-94407005") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + public void getCustomMetricTest() throws Exception { + CustomMetric expectedResponse = + CustomMetric.newBuilder() + .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllRestrictedMetricType(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - CancelDisplayVideo360AdvertiserLinkProposalRequest request = - CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .build(); + CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - DisplayVideo360AdvertiserLinkProposal actualResponse = - client.cancelDisplayVideo360AdvertiserLinkProposal(request); + CustomMetric actualResponse = client.getCustomMetric(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -5253,21 +5304,15 @@ public void cancelDisplayVideo360AdvertiserLinkProposalTest() throws Exception { } @Test - public void cancelDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { + public void getCustomMetricExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - CancelDisplayVideo360AdvertiserLinkProposalRequest request = - CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .build(); - client.cancelDisplayVideo360AdvertiserLinkProposal(request); + CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); + client.getCustomMetric(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5275,21 +5320,20 @@ public void cancelDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Ex } @Test - public void createCustomDimensionTest() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) + public void getCustomMetricTest2() throws Exception { + CustomMetric expectedResponse = + CustomMetric.newBuilder() + .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) .setParameterName("parameterName-379607596") .setDisplayName("displayName1714148973") .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) + .addAllRestrictedMetricType(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomDimension customDimension = CustomDimension.newBuilder().build(); + String name = "properties/propertie-2999/customMetrics/customMetric-2999"; - CustomDimension actualResponse = client.createCustomDimension(parent, customDimension); + CustomMetric actualResponse = client.getCustomMetric(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -5308,16 +5352,15 @@ public void createCustomDimensionTest() throws Exception { } @Test - public void createCustomDimensionExceptionTest() throws Exception { + public void getCustomMetricExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomDimension customDimension = CustomDimension.newBuilder().build(); - client.createCustomDimension(parent, customDimension); + String name = "properties/propertie-2999/customMetrics/customMetric-2999"; + client.getCustomMetric(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5325,21 +5368,17 @@ public void createCustomDimensionExceptionTest() throws Exception { } @Test - public void createCustomDimensionTest2() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) + public void getDataRetentionSettingsTest() throws Exception { + DataRetentionSettings expectedResponse = + DataRetentionSettings.newBuilder() + .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) + .setResetUserDataOnNewActivity(true) .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-2024"; - CustomDimension customDimension = CustomDimension.newBuilder().build(); + DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]"); - CustomDimension actualResponse = client.createCustomDimension(parent, customDimension); + DataRetentionSettings actualResponse = client.getDataRetentionSettings(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -5358,45 +5397,33 @@ public void createCustomDimensionTest2() throws Exception { } @Test - public void createCustomDimensionExceptionTest2() throws Exception { + public void getDataRetentionSettingsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - CustomDimension customDimension = CustomDimension.newBuilder().build(); - client.createCustomDimension(parent, customDimension); + DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]"); + client.getDataRetentionSettings(name); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateCustomDimensionTest() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataRetentionSettingsTest2() throws Exception { + DataRetentionSettings expectedResponse = + DataRetentionSettings.newBuilder() + .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) + .setResetUserDataOnNewActivity(true) .build(); mockService.addResponse(expectedResponse); - CustomDimension customDimension = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + String name = "properties/propertie-2463/dataRetentionSettings"; - CustomDimension actualResponse = client.updateCustomDimension(customDimension, updateMask); + DataRetentionSettings actualResponse = client.getDataRetentionSettings(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -5415,23 +5442,15 @@ public void updateCustomDimensionTest() throws Exception { } @Test - public void updateCustomDimensionExceptionTest() throws Exception { + public void getDataRetentionSettingsExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - CustomDimension customDimension = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateCustomDimension(customDimension, updateMask); + String name = "properties/propertie-2463/dataRetentionSettings"; + client.getDataRetentionSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5439,23 +5458,24 @@ public void updateCustomDimensionExceptionTest() throws Exception { } @Test - public void listCustomDimensionsTest() throws Exception { - CustomDimension responsesElement = CustomDimension.newBuilder().build(); - ListCustomDimensionsResponse expectedResponse = - ListCustomDimensionsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomDimensions(Arrays.asList(responsesElement)) + public void updateDataRetentionSettingsTest() throws Exception { + DataRetentionSettings expectedResponse = + DataRetentionSettings.newBuilder() + .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) + .setResetUserDataOnNewActivity(true) .build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListCustomDimensionsPagedResponse pagedListResponse = client.listCustomDimensions(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + DataRetentionSettings dataRetentionSettings = + DataRetentionSettings.newBuilder() + .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) + .setResetUserDataOnNewActivity(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomDimensionsList().get(0), resources.get(0)); + DataRetentionSettings actualResponse = + client.updateDataRetentionSettings(dataRetentionSettings, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -5473,15 +5493,20 @@ public void listCustomDimensionsTest() throws Exception { } @Test - public void listCustomDimensionsExceptionTest() throws Exception { + public void updateDataRetentionSettingsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listCustomDimensions(parent); + DataRetentionSettings dataRetentionSettings = + DataRetentionSettings.newBuilder() + .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) + .setResetUserDataOnNewActivity(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDataRetentionSettings(dataRetentionSettings, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5489,23 +5514,21 @@ public void listCustomDimensionsExceptionTest() throws Exception { } @Test - public void listCustomDimensionsTest2() throws Exception { - CustomDimension responsesElement = CustomDimension.newBuilder().build(); - ListCustomDimensionsResponse expectedResponse = - ListCustomDimensionsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomDimensions(Arrays.asList(responsesElement)) + public void createDataStreamTest() throws Exception { + DataStream expectedResponse = + DataStream.newBuilder() + .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-2024"; - - ListCustomDimensionsPagedResponse pagedListResponse = client.listCustomDimensions(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + PropertyName parent = PropertyName.of("[PROPERTY]"); + DataStream dataStream = DataStream.newBuilder().build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomDimensionsList().get(0), resources.get(0)); + DataStream actualResponse = client.createDataStream(parent, dataStream); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -5523,15 +5546,16 @@ public void listCustomDimensionsTest2() throws Exception { } @Test - public void listCustomDimensionsExceptionTest2() throws Exception { + public void createDataStreamExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - client.listCustomDimensions(parent); + PropertyName parent = PropertyName.of("[PROPERTY]"); + DataStream dataStream = DataStream.newBuilder().build(); + client.createDataStream(parent, dataStream); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5539,13 +5563,21 @@ public void listCustomDimensionsExceptionTest2() throws Exception { } @Test - public void archiveCustomDimensionTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void createDataStreamTest2() throws Exception { + DataStream expectedResponse = + DataStream.newBuilder() + .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); mockService.addResponse(expectedResponse); - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); + String parent = "properties/propertie-2024"; + DataStream dataStream = DataStream.newBuilder().build(); - client.archiveCustomDimension(name); + DataStream actualResponse = client.createDataStream(parent, dataStream); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -5563,15 +5595,16 @@ public void archiveCustomDimensionTest() throws Exception { } @Test - public void archiveCustomDimensionExceptionTest() throws Exception { + public void createDataStreamExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - client.archiveCustomDimension(name); + String parent = "properties/propertie-2024"; + DataStream dataStream = DataStream.newBuilder().build(); + client.createDataStream(parent, dataStream); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5579,13 +5612,13 @@ public void archiveCustomDimensionExceptionTest() throws Exception { } @Test - public void archiveCustomDimensionTest2() throws Exception { + public void deleteDataStreamTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - String name = "properties/propertie-447/customDimensions/customDimension-447"; + DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.archiveCustomDimension(name); + client.deleteDataStream(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -5603,15 +5636,15 @@ public void archiveCustomDimensionTest2() throws Exception { } @Test - public void archiveCustomDimensionExceptionTest2() throws Exception { + public void deleteDataStreamExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-447/customDimensions/customDimension-447"; - client.archiveCustomDimension(name); + DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + client.deleteDataStream(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5619,21 +5652,13 @@ public void archiveCustomDimensionExceptionTest2() throws Exception { } @Test - public void getCustomDimensionTest() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); + public void deleteDataStreamTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); + String name = "properties/propertie-9806/dataStreams/dataStream-9806"; - CustomDimension actualResponse = client.getCustomDimension(name); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteDataStream(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -5651,15 +5676,15 @@ public void getCustomDimensionTest() throws Exception { } @Test - public void getCustomDimensionExceptionTest() throws Exception { + public void deleteDataStreamExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - client.getCustomDimension(name); + String name = "properties/propertie-9806/dataStreams/dataStream-9806"; + client.deleteDataStream(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5667,20 +5692,26 @@ public void getCustomDimensionExceptionTest() throws Exception { } @Test - public void getCustomDimensionTest2() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") + public void updateDataStreamTest() throws Exception { + DataStream expectedResponse = + DataStream.newBuilder() + .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - String name = "properties/propertie-447/customDimensions/customDimension-447"; + DataStream dataStream = + DataStream.newBuilder() + .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - CustomDimension actualResponse = client.getCustomDimension(name); + DataStream actualResponse = client.updateDataStream(dataStream, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -5699,15 +5730,22 @@ public void getCustomDimensionTest2() throws Exception { } @Test - public void getCustomDimensionExceptionTest2() throws Exception { + public void updateDataStreamExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-447/customDimensions/customDimension-447"; - client.getCustomDimension(name); + DataStream dataStream = + DataStream.newBuilder() + .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDataStream(dataStream, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5715,22 +5753,23 @@ public void getCustomDimensionExceptionTest2() throws Exception { } @Test - public void createCustomMetricTest() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) + public void listDataStreamsTest() throws Exception { + DataStream responsesElement = DataStream.newBuilder().build(); + ListDataStreamsResponse expectedResponse = + ListDataStreamsResponse.newBuilder() + .setNextPageToken("") + .addAllDataStreams(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomMetric customMetric = CustomMetric.newBuilder().build(); - CustomMetric actualResponse = client.createCustomMetric(parent, customMetric); - Assert.assertEquals(expectedResponse, actualResponse); + ListDataStreamsPagedResponse pagedListResponse = client.listDataStreams(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataStreamsList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -5748,7 +5787,7 @@ public void createCustomMetricTest() throws Exception { } @Test - public void createCustomMetricExceptionTest() throws Exception { + public void listDataStreamsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -5756,8 +5795,7 @@ public void createCustomMetricExceptionTest() throws Exception { try { PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomMetric customMetric = CustomMetric.newBuilder().build(); - client.createCustomMetric(parent, customMetric); + client.listDataStreams(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5765,22 +5803,23 @@ public void createCustomMetricExceptionTest() throws Exception { } @Test - public void createCustomMetricTest2() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) + public void listDataStreamsTest2() throws Exception { + DataStream responsesElement = DataStream.newBuilder().build(); + ListDataStreamsResponse expectedResponse = + ListDataStreamsResponse.newBuilder() + .setNextPageToken("") + .addAllDataStreams(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); String parent = "properties/propertie-2024"; - CustomMetric customMetric = CustomMetric.newBuilder().build(); - CustomMetric actualResponse = client.createCustomMetric(parent, customMetric); - Assert.assertEquals(expectedResponse, actualResponse); + ListDataStreamsPagedResponse pagedListResponse = client.listDataStreams(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataStreamsList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -5798,16 +5837,15 @@ public void createCustomMetricTest2() throws Exception { } @Test - public void createCustomMetricExceptionTest2() throws Exception { + public void listDataStreamsExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - CustomMetric customMetric = CustomMetric.newBuilder().build(); - client.createCustomMetric(parent, customMetric); + String parent = "properties/propertie-2024"; + client.listDataStreams(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5815,28 +5853,19 @@ public void createCustomMetricExceptionTest2() throws Exception { } @Test - public void updateCustomMetricTest() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") + public void getDataStreamTest() throws Exception { + DataStream expectedResponse = + DataStream.newBuilder() + .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - CustomMetric customMetric = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - CustomMetric actualResponse = client.updateCustomMetric(customMetric, updateMask); + DataStream actualResponse = client.getDataStream(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -5855,23 +5884,15 @@ public void updateCustomMetricTest() throws Exception { } @Test - public void updateCustomMetricExceptionTest() throws Exception { + public void getDataStreamExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - CustomMetric customMetric = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateCustomMetric(customMetric, updateMask); + DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + client.getDataStream(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5879,23 +5900,20 @@ public void updateCustomMetricExceptionTest() throws Exception { } @Test - public void listCustomMetricsTest() throws Exception { - CustomMetric responsesElement = CustomMetric.newBuilder().build(); - ListCustomMetricsResponse expectedResponse = - ListCustomMetricsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomMetrics(Arrays.asList(responsesElement)) + public void getDataStreamTest2() throws Exception { + DataStream expectedResponse = + DataStream.newBuilder() + .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListCustomMetricsPagedResponse pagedListResponse = client.listCustomMetrics(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + String name = "properties/propertie-9806/dataStreams/dataStream-9806"; - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomMetricsList().get(0), resources.get(0)); + DataStream actualResponse = client.getDataStream(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -5913,15 +5931,15 @@ public void listCustomMetricsTest() throws Exception { } @Test - public void listCustomMetricsExceptionTest() throws Exception { + public void getDataStreamExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listCustomMetrics(parent); + String name = "properties/propertie-9806/dataStreams/dataStream-9806"; + client.getDataStream(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5929,23 +5947,23 @@ public void listCustomMetricsExceptionTest() throws Exception { } @Test - public void listCustomMetricsTest2() throws Exception { - CustomMetric responsesElement = CustomMetric.newBuilder().build(); - ListCustomMetricsResponse expectedResponse = - ListCustomMetricsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomMetrics(Arrays.asList(responsesElement)) + public void getAudienceTest() throws Exception { + Audience expectedResponse = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-2024"; - - ListCustomMetricsPagedResponse pagedListResponse = client.listCustomMetrics(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + AudienceName name = AudienceName.of("[PROPERTY]", "[AUDIENCE]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomMetricsList().get(0), resources.get(0)); + Audience actualResponse = client.getAudience(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -5963,15 +5981,15 @@ public void listCustomMetricsTest2() throws Exception { } @Test - public void listCustomMetricsExceptionTest2() throws Exception { + public void getAudienceExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - client.listCustomMetrics(parent); + AudienceName name = AudienceName.of("[PROPERTY]", "[AUDIENCE]"); + client.getAudience(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5979,13 +5997,23 @@ public void listCustomMetricsExceptionTest2() throws Exception { } @Test - public void archiveCustomMetricTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getAudienceTest2() throws Exception { + Audience expectedResponse = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) + .build(); mockService.addResponse(expectedResponse); - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); + String name = "properties/propertie-2172/audiences/audience-2172"; - client.archiveCustomMetric(name); + Audience actualResponse = client.getAudience(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -6003,15 +6031,15 @@ public void archiveCustomMetricTest() throws Exception { } @Test - public void archiveCustomMetricExceptionTest() throws Exception { + public void getAudienceExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - client.archiveCustomMetric(name); + String name = "properties/propertie-2172/audiences/audience-2172"; + client.getAudience(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6019,13 +6047,23 @@ public void archiveCustomMetricExceptionTest() throws Exception { } @Test - public void archiveCustomMetricTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void listAudiencesTest() throws Exception { + Audience responsesElement = Audience.newBuilder().build(); + ListAudiencesResponse expectedResponse = + ListAudiencesResponse.newBuilder() + .setNextPageToken("") + .addAllAudiences(Arrays.asList(responsesElement)) + .build(); mockService.addResponse(expectedResponse); - String name = "properties/propertie-2999/customMetrics/customMetric-2999"; + PropertyName parent = PropertyName.of("[PROPERTY]"); - client.archiveCustomMetric(name); + ListAudiencesPagedResponse pagedListResponse = client.listAudiences(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAudiencesList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -6043,15 +6081,15 @@ public void archiveCustomMetricTest2() throws Exception { } @Test - public void archiveCustomMetricExceptionTest2() throws Exception { + public void listAudiencesExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-2999/customMetrics/customMetric-2999"; - client.archiveCustomMetric(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listAudiences(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6059,21 +6097,23 @@ public void archiveCustomMetricExceptionTest2() throws Exception { } @Test - public void getCustomMetricTest() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) + public void listAudiencesTest2() throws Exception { + Audience responsesElement = Audience.newBuilder().build(); + ListAudiencesResponse expectedResponse = + ListAudiencesResponse.newBuilder() + .setNextPageToken("") + .addAllAudiences(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); + String parent = "properties/propertie-2024"; - CustomMetric actualResponse = client.getCustomMetric(name); - Assert.assertEquals(expectedResponse, actualResponse); + ListAudiencesPagedResponse pagedListResponse = client.listAudiences(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAudiencesList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -6091,15 +6131,15 @@ public void getCustomMetricTest() throws Exception { } @Test - public void getCustomMetricExceptionTest() throws Exception { + public void listAudiencesExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - client.getCustomMetric(name); + String parent = "properties/propertie-2024"; + client.listAudiences(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6107,20 +6147,23 @@ public void getCustomMetricExceptionTest() throws Exception { } @Test - public void getCustomMetricTest2() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") + public void createAudienceTest() throws Exception { + Audience expectedResponse = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - String name = "properties/propertie-2999/customMetrics/customMetric-2999"; + PropertyName parent = PropertyName.of("[PROPERTY]"); + Audience audience = Audience.newBuilder().build(); - CustomMetric actualResponse = client.getCustomMetric(name); + Audience actualResponse = client.createAudience(parent, audience); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -6139,15 +6182,16 @@ public void getCustomMetricTest2() throws Exception { } @Test - public void getCustomMetricExceptionTest2() throws Exception { + public void createAudienceExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-2999/customMetrics/customMetric-2999"; - client.getCustomMetric(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + Audience audience = Audience.newBuilder().build(); + client.createAudience(parent, audience); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6155,17 +6199,23 @@ public void getCustomMetricExceptionTest2() throws Exception { } @Test - public void getDataRetentionSettingsTest() throws Exception { - DataRetentionSettings expectedResponse = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) + public void createAudienceTest2() throws Exception { + Audience expectedResponse = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]"); + String parent = "properties/propertie-2024"; + Audience audience = Audience.newBuilder().build(); - DataRetentionSettings actualResponse = client.getDataRetentionSettings(name); + Audience actualResponse = client.createAudience(parent, audience); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -6184,15 +6234,16 @@ public void getDataRetentionSettingsTest() throws Exception { } @Test - public void getDataRetentionSettingsExceptionTest() throws Exception { + public void createAudienceExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]"); - client.getDataRetentionSettings(name); + String parent = "properties/propertie-2024"; + Audience audience = Audience.newBuilder().build(); + client.createAudience(parent, audience); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6200,17 +6251,32 @@ public void getDataRetentionSettingsExceptionTest() throws Exception { } @Test - public void getDataRetentionSettingsTest2() throws Exception { - DataRetentionSettings expectedResponse = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) + public void updateAudienceTest() throws Exception { + Audience expectedResponse = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + Audience audience = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) .build(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-2463/dataRetentionSettings"; + FieldMask updateMask = FieldMask.newBuilder().build(); - DataRetentionSettings actualResponse = client.getDataRetentionSettings(name); + Audience actualResponse = client.updateAudience(audience, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -6229,15 +6295,25 @@ public void getDataRetentionSettingsTest2() throws Exception { } @Test - public void getDataRetentionSettingsExceptionTest2() throws Exception { + public void updateAudienceExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-2463/dataRetentionSettings"; - client.getDataRetentionSettings(name); + Audience audience = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAudience(audience, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6245,24 +6321,16 @@ public void getDataRetentionSettingsExceptionTest2() throws Exception { } @Test - public void updateDataRetentionSettingsTest() throws Exception { - DataRetentionSettings expectedResponse = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) - .build(); + public void archiveAudienceTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - DataRetentionSettings dataRetentionSettings = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) + ArchiveAudienceRequest request = + ArchiveAudienceRequest.newBuilder() + .setName(PropertyName.of("[PROPERTY]").toString()) .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - DataRetentionSettings actualResponse = - client.updateDataRetentionSettings(dataRetentionSettings, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); + client.archiveAudience(request); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -6280,20 +6348,18 @@ public void updateDataRetentionSettingsTest() throws Exception { } @Test - public void updateDataRetentionSettingsExceptionTest() throws Exception { + public void archiveAudienceExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - DataRetentionSettings dataRetentionSettings = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) + ArchiveAudienceRequest request = + ArchiveAudienceRequest.newBuilder() + .setName(PropertyName.of("[PROPERTY]").toString()) .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateDataRetentionSettings(dataRetentionSettings, updateMask); + client.archiveAudience(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6301,20 +6367,22 @@ public void updateDataRetentionSettingsExceptionTest() throws Exception { } @Test - public void createDataStreamTest() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) + public void getSearchAds360LinkTest() throws Exception { + SearchAds360Link expectedResponse = + SearchAds360Link.newBuilder() + .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) + .setAdvertiserId("advertiserId550061990") + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - DataStream dataStream = DataStream.newBuilder().build(); + SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]"); - DataStream actualResponse = client.createDataStream(parent, dataStream); + SearchAds360Link actualResponse = client.getSearchAds360Link(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -6333,16 +6401,15 @@ public void createDataStreamTest() throws Exception { } @Test - public void createDataStreamExceptionTest() throws Exception { + public void getSearchAds360LinkExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - DataStream dataStream = DataStream.newBuilder().build(); - client.createDataStream(parent, dataStream); + SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]"); + client.getSearchAds360Link(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6350,20 +6417,22 @@ public void createDataStreamExceptionTest() throws Exception { } @Test - public void createDataStreamTest2() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) + public void getSearchAds360LinkTest2() throws Exception { + SearchAds360Link expectedResponse = + SearchAds360Link.newBuilder() + .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) + .setAdvertiserId("advertiserId550061990") + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-2024"; - DataStream dataStream = DataStream.newBuilder().build(); + String name = "properties/propertie-3689/searchAds360Links/searchAds360Link-3689"; - DataStream actualResponse = client.createDataStream(parent, dataStream); + SearchAds360Link actualResponse = client.getSearchAds360Link(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -6382,16 +6451,15 @@ public void createDataStreamTest2() throws Exception { } @Test - public void createDataStreamExceptionTest2() throws Exception { + public void getSearchAds360LinkExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - DataStream dataStream = DataStream.newBuilder().build(); - client.createDataStream(parent, dataStream); + String name = "properties/propertie-3689/searchAds360Links/searchAds360Link-3689"; + client.getSearchAds360Link(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6399,13 +6467,23 @@ public void createDataStreamExceptionTest2() throws Exception { } @Test - public void deleteDataStreamTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void listSearchAds360LinksTest() throws Exception { + SearchAds360Link responsesElement = SearchAds360Link.newBuilder().build(); + ListSearchAds360LinksResponse expectedResponse = + ListSearchAds360LinksResponse.newBuilder() + .setNextPageToken("") + .addAllSearchAds360Links(Arrays.asList(responsesElement)) + .build(); mockService.addResponse(expectedResponse); - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + PropertyName parent = PropertyName.of("[PROPERTY]"); - client.deleteDataStream(name); + ListSearchAds360LinksPagedResponse pagedListResponse = client.listSearchAds360Links(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSearchAds360LinksList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -6423,15 +6501,15 @@ public void deleteDataStreamTest() throws Exception { } @Test - public void deleteDataStreamExceptionTest() throws Exception { + public void listSearchAds360LinksExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.deleteDataStream(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listSearchAds360Links(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6439,13 +6517,23 @@ public void deleteDataStreamExceptionTest() throws Exception { } @Test - public void deleteDataStreamTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void listSearchAds360LinksTest2() throws Exception { + SearchAds360Link responsesElement = SearchAds360Link.newBuilder().build(); + ListSearchAds360LinksResponse expectedResponse = + ListSearchAds360LinksResponse.newBuilder() + .setNextPageToken("") + .addAllSearchAds360Links(Arrays.asList(responsesElement)) + .build(); mockService.addResponse(expectedResponse); - String name = "properties/propertie-9806/dataStreams/dataStream-9806"; + String parent = "properties/propertie-2024"; - client.deleteDataStream(name); + ListSearchAds360LinksPagedResponse pagedListResponse = client.listSearchAds360Links(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSearchAds360LinksList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -6463,15 +6551,15 @@ public void deleteDataStreamTest2() throws Exception { } @Test - public void deleteDataStreamExceptionTest2() throws Exception { + public void listSearchAds360LinksExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-9806/dataStreams/dataStream-9806"; - client.deleteDataStream(name); + String parent = "properties/propertie-2024"; + client.listSearchAds360Links(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6479,26 +6567,23 @@ public void deleteDataStreamExceptionTest2() throws Exception { } @Test - public void updateDataStreamTest() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) + public void createSearchAds360LinkTest() throws Exception { + SearchAds360Link expectedResponse = + SearchAds360Link.newBuilder() + .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) + .setAdvertiserId("advertiserId550061990") + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - DataStream dataStream = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + PropertyName parent = PropertyName.of("[PROPERTY]"); + SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); - DataStream actualResponse = client.updateDataStream(dataStream, updateMask); + SearchAds360Link actualResponse = client.createSearchAds360Link(parent, searchAds360Link); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -6517,22 +6602,16 @@ public void updateDataStreamTest() throws Exception { } @Test - public void updateDataStreamExceptionTest() throws Exception { + public void createSearchAds360LinkExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - DataStream dataStream = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateDataStream(dataStream, updateMask); + PropertyName parent = PropertyName.of("[PROPERTY]"); + SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); + client.createSearchAds360Link(parent, searchAds360Link); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6540,23 +6619,24 @@ public void updateDataStreamExceptionTest() throws Exception { } @Test - public void listDataStreamsTest() throws Exception { - DataStream responsesElement = DataStream.newBuilder().build(); - ListDataStreamsResponse expectedResponse = - ListDataStreamsResponse.newBuilder() - .setNextPageToken("") - .addAllDataStreams(Arrays.asList(responsesElement)) + public void createSearchAds360LinkTest2() throws Exception { + SearchAds360Link expectedResponse = + SearchAds360Link.newBuilder() + .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) + .setAdvertiserId("advertiserId550061990") + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListDataStreamsPagedResponse pagedListResponse = client.listDataStreams(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + String parent = "properties/propertie-2024"; + SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDataStreamsList().get(0), resources.get(0)); + SearchAds360Link actualResponse = client.createSearchAds360Link(parent, searchAds360Link); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -6574,39 +6654,30 @@ public void listDataStreamsTest() throws Exception { } @Test - public void listDataStreamsExceptionTest() throws Exception { + public void createSearchAds360LinkExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listDataStreams(parent); + String parent = "properties/propertie-2024"; + SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); + client.createSearchAds360Link(parent, searchAds360Link); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listDataStreamsTest2() throws Exception { - DataStream responsesElement = DataStream.newBuilder().build(); - ListDataStreamsResponse expectedResponse = - ListDataStreamsResponse.newBuilder() - .setNextPageToken("") - .addAllDataStreams(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "properties/propertie-2024"; + // Expected exception. + } + } - ListDataStreamsPagedResponse pagedListResponse = client.listDataStreams(parent); + @Test + public void deleteSearchAds360LinkTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDataStreamsList().get(0), resources.get(0)); + client.deleteSearchAds360Link(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -6624,15 +6695,15 @@ public void listDataStreamsTest2() throws Exception { } @Test - public void listDataStreamsExceptionTest2() throws Exception { + public void deleteSearchAds360LinkExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - client.listDataStreams(parent); + SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]"); + client.deleteSearchAds360Link(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6640,20 +6711,13 @@ public void listDataStreamsExceptionTest2() throws Exception { } @Test - public void getDataStreamTest() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); + public void deleteSearchAds360LinkTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + String name = "properties/propertie-3689/searchAds360Links/searchAds360Link-3689"; - DataStream actualResponse = client.getDataStream(name); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteSearchAds360Link(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -6671,15 +6735,15 @@ public void getDataStreamTest() throws Exception { } @Test - public void getDataStreamExceptionTest() throws Exception { + public void deleteSearchAds360LinkExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.getDataStream(name); + String name = "properties/propertie-3689/searchAds360Links/searchAds360Link-3689"; + client.deleteSearchAds360Link(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6687,19 +6751,32 @@ public void getDataStreamExceptionTest() throws Exception { } @Test - public void getDataStreamTest2() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) + public void updateSearchAds360LinkTest() throws Exception { + SearchAds360Link expectedResponse = + SearchAds360Link.newBuilder() + .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) + .setAdvertiserId("advertiserId550061990") + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - String name = "properties/propertie-9806/dataStreams/dataStream-9806"; + SearchAds360Link searchAds360Link = + SearchAds360Link.newBuilder() + .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) + .setAdvertiserId("advertiserId550061990") + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - DataStream actualResponse = client.getDataStream(name); + SearchAds360Link actualResponse = client.updateSearchAds360Link(searchAds360Link, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -6718,15 +6795,25 @@ public void getDataStreamTest2() throws Exception { } @Test - public void getDataStreamExceptionTest2() throws Exception { + public void updateSearchAds360LinkExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-9806/dataStreams/dataStream-9806"; - client.getDataStream(name); + SearchAds360Link searchAds360Link = + SearchAds360Link.newBuilder() + .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) + .setAdvertiserId("advertiserId550061990") + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSearchAds360Link(searchAds360Link, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6734,22 +6821,16 @@ public void getDataStreamExceptionTest2() throws Exception { } @Test - public void getAudienceTest() throws Exception { - Audience expectedResponse = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) + public void getAttributionSettingsTest() throws Exception { + AttributionSettings expectedResponse = + AttributionSettings.newBuilder() + .setName(AttributionSettingsName.of("[PROPERTY]").toString()) .build(); mockService.addResponse(expectedResponse); - AudienceName name = AudienceName.of("[PROPERTY]", "[AUDIENCE]"); + AttributionSettingsName name = AttributionSettingsName.of("[PROPERTY]"); - Audience actualResponse = client.getAudience(name); + AttributionSettings actualResponse = client.getAttributionSettings(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -6768,15 +6849,15 @@ public void getAudienceTest() throws Exception { } @Test - public void getAudienceExceptionTest() throws Exception { + public void getAttributionSettingsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - AudienceName name = AudienceName.of("[PROPERTY]", "[AUDIENCE]"); - client.getAudience(name); + AttributionSettingsName name = AttributionSettingsName.of("[PROPERTY]"); + client.getAttributionSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6784,22 +6865,16 @@ public void getAudienceExceptionTest() throws Exception { } @Test - public void getAudienceTest2() throws Exception { - Audience expectedResponse = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) + public void getAttributionSettingsTest2() throws Exception { + AttributionSettings expectedResponse = + AttributionSettings.newBuilder() + .setName(AttributionSettingsName.of("[PROPERTY]").toString()) .build(); mockService.addResponse(expectedResponse); - String name = "properties/propertie-2172/audiences/audience-2172"; + String name = "properties/propertie-492/attributionSettings"; - Audience actualResponse = client.getAudience(name); + AttributionSettings actualResponse = client.getAttributionSettings(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -6818,15 +6893,15 @@ public void getAudienceTest2() throws Exception { } @Test - public void getAudienceExceptionTest2() throws Exception { + public void getAttributionSettingsExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-2172/audiences/audience-2172"; - client.getAudience(name); + String name = "properties/propertie-492/attributionSettings"; + client.getAttributionSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6834,23 +6909,22 @@ public void getAudienceExceptionTest2() throws Exception { } @Test - public void listAudiencesTest() throws Exception { - Audience responsesElement = Audience.newBuilder().build(); - ListAudiencesResponse expectedResponse = - ListAudiencesResponse.newBuilder() - .setNextPageToken("") - .addAllAudiences(Arrays.asList(responsesElement)) + public void updateAttributionSettingsTest() throws Exception { + AttributionSettings expectedResponse = + AttributionSettings.newBuilder() + .setName(AttributionSettingsName.of("[PROPERTY]").toString()) .build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListAudiencesPagedResponse pagedListResponse = client.listAudiences(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + AttributionSettings attributionSettings = + AttributionSettings.newBuilder() + .setName(AttributionSettingsName.of("[PROPERTY]").toString()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAudiencesList().get(0), resources.get(0)); + AttributionSettings actualResponse = + client.updateAttributionSettings(attributionSettings, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -6868,15 +6942,19 @@ public void listAudiencesTest() throws Exception { } @Test - public void listAudiencesExceptionTest() throws Exception { + public void updateAttributionSettingsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listAudiences(parent); + AttributionSettings attributionSettings = + AttributionSettings.newBuilder() + .setName(AttributionSettingsName.of("[PROPERTY]").toString()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAttributionSettings(attributionSettings, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6884,23 +6962,36 @@ public void listAudiencesExceptionTest() throws Exception { } @Test - public void listAudiencesTest2() throws Exception { - Audience responsesElement = Audience.newBuilder().build(); - ListAudiencesResponse expectedResponse = - ListAudiencesResponse.newBuilder() - .setNextPageToken("") - .addAllAudiences(Arrays.asList(responsesElement)) + public void runAccessReportTest() throws Exception { + RunAccessReportResponse expectedResponse = + RunAccessReportResponse.newBuilder() + .addAllDimensionHeaders(new ArrayList()) + .addAllMetricHeaders(new ArrayList()) + .addAllRows(new ArrayList()) + .setRowCount(1340416618) + .setQuota(AccessQuota.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-2024"; - - ListAudiencesPagedResponse pagedListResponse = client.listAudiences(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + RunAccessReportRequest request = + RunAccessReportRequest.newBuilder() + .setEntity("properties/propertie-4993") + .addAllDimensions(new ArrayList()) + .addAllMetrics(new ArrayList()) + .addAllDateRanges(new ArrayList()) + .setDimensionFilter(AccessFilterExpression.newBuilder().build()) + .setMetricFilter(AccessFilterExpression.newBuilder().build()) + .setOffset(-1019779949) + .setLimit(102976443) + .setTimeZone("timeZone-2077180903") + .addAllOrderBys(new ArrayList()) + .setReturnEntityQuota(true) + .setIncludeAllUsers(true) + .setExpandGroups(true) + .build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAudiencesList().get(0), resources.get(0)); + RunAccessReportResponse actualResponse = client.runAccessReport(request); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -6918,15 +7009,30 @@ public void listAudiencesTest2() throws Exception { } @Test - public void listAudiencesExceptionTest2() throws Exception { + public void runAccessReportExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - client.listAudiences(parent); + RunAccessReportRequest request = + RunAccessReportRequest.newBuilder() + .setEntity("properties/propertie-4993") + .addAllDimensions(new ArrayList()) + .addAllMetrics(new ArrayList()) + .addAllDateRanges(new ArrayList()) + .setDimensionFilter(AccessFilterExpression.newBuilder().build()) + .setMetricFilter(AccessFilterExpression.newBuilder().build()) + .setOffset(-1019779949) + .setLimit(102976443) + .setTimeZone("timeZone-2077180903") + .addAllOrderBys(new ArrayList()) + .setReturnEntityQuota(true) + .setIncludeAllUsers(true) + .setExpandGroups(true) + .build(); + client.runAccessReport(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6934,23 +7040,20 @@ public void listAudiencesExceptionTest2() throws Exception { } @Test - public void createAudienceTest() throws Exception { - Audience expectedResponse = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) + public void createAccessBindingTest() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - Audience audience = Audience.newBuilder().build(); + AccountName parent = AccountName.of("[ACCOUNT]"); + AccessBinding accessBinding = AccessBinding.newBuilder().build(); - Audience actualResponse = client.createAudience(parent, audience); + AccessBinding actualResponse = client.createAccessBinding(parent, accessBinding); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -6969,16 +7072,16 @@ public void createAudienceTest() throws Exception { } @Test - public void createAudienceExceptionTest() throws Exception { + public void createAccessBindingExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - Audience audience = Audience.newBuilder().build(); - client.createAudience(parent, audience); + + try { + AccountName parent = AccountName.of("[ACCOUNT]"); + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + client.createAccessBinding(parent, accessBinding); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6986,23 +7089,20 @@ public void createAudienceExceptionTest() throws Exception { } @Test - public void createAudienceTest2() throws Exception { - Audience expectedResponse = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) + public void createAccessBindingTest2() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-2024"; - Audience audience = Audience.newBuilder().build(); + PropertyName parent = PropertyName.of("[PROPERTY]"); + AccessBinding accessBinding = AccessBinding.newBuilder().build(); - Audience actualResponse = client.createAudience(parent, audience); + AccessBinding actualResponse = client.createAccessBinding(parent, accessBinding); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -7021,16 +7121,16 @@ public void createAudienceTest2() throws Exception { } @Test - public void createAudienceExceptionTest2() throws Exception { + public void createAccessBindingExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - Audience audience = Audience.newBuilder().build(); - client.createAudience(parent, audience); + PropertyName parent = PropertyName.of("[PROPERTY]"); + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + client.createAccessBinding(parent, accessBinding); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7038,32 +7138,20 @@ public void createAudienceExceptionTest2() throws Exception { } @Test - public void updateAudienceTest() throws Exception { - Audience expectedResponse = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) + public void createAccessBindingTest3() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - Audience audience = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + String parent = "accounts/account-4811"; + AccessBinding accessBinding = AccessBinding.newBuilder().build(); - Audience actualResponse = client.updateAudience(audience, updateMask); + AccessBinding actualResponse = client.createAccessBinding(parent, accessBinding); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -7082,25 +7170,16 @@ public void updateAudienceTest() throws Exception { } @Test - public void updateAudienceExceptionTest() throws Exception { + public void createAccessBindingExceptionTest3() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - Audience audience = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateAudience(audience, updateMask); + String parent = "accounts/account-4811"; + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + client.createAccessBinding(parent, accessBinding); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7108,16 +7187,21 @@ public void updateAudienceExceptionTest() throws Exception { } @Test - public void archiveAudienceTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getAccessBindingTest() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) + .build(); mockService.addResponse(expectedResponse); - ArchiveAudienceRequest request = - ArchiveAudienceRequest.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .build(); + AccessBindingName name = + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); - client.archiveAudience(request); + AccessBinding actualResponse = client.getAccessBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -7135,18 +7219,16 @@ public void archiveAudienceTest() throws Exception { } @Test - public void archiveAudienceExceptionTest() throws Exception { + public void getAccessBindingExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - ArchiveAudienceRequest request = - ArchiveAudienceRequest.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .build(); - client.archiveAudience(request); + AccessBindingName name = + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); + client.getAccessBinding(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7154,22 +7236,19 @@ public void archiveAudienceExceptionTest() throws Exception { } @Test - public void getSearchAds360LinkTest() throws Exception { - SearchAds360Link expectedResponse = - SearchAds360Link.newBuilder() - .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) - .setAdvertiserId("advertiserId550061990") - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) + public void getAccessBindingTest2() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]"); + String name = "accounts/account-3488/accessBindings/accessBinding-3488"; - SearchAds360Link actualResponse = client.getSearchAds360Link(name); + AccessBinding actualResponse = client.getAccessBinding(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -7188,15 +7267,15 @@ public void getSearchAds360LinkTest() throws Exception { } @Test - public void getSearchAds360LinkExceptionTest() throws Exception { + public void getAccessBindingExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]"); - client.getSearchAds360Link(name); + String name = "accounts/account-3488/accessBindings/accessBinding-3488"; + client.getAccessBinding(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7204,22 +7283,25 @@ public void getSearchAds360LinkExceptionTest() throws Exception { } @Test - public void getSearchAds360LinkTest2() throws Exception { - SearchAds360Link expectedResponse = - SearchAds360Link.newBuilder() - .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) - .setAdvertiserId("advertiserId550061990") - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) + public void updateAccessBindingTest() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - String name = "properties/propertie-3689/searchAds360Links/searchAds360Link-3689"; + AccessBinding accessBinding = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) + .build(); - SearchAds360Link actualResponse = client.getSearchAds360Link(name); + AccessBinding actualResponse = client.updateAccessBinding(accessBinding); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -7238,15 +7320,21 @@ public void getSearchAds360LinkTest2() throws Exception { } @Test - public void getSearchAds360LinkExceptionTest2() throws Exception { + public void updateAccessBindingExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-3689/searchAds360Links/searchAds360Link-3689"; - client.getSearchAds360Link(name); + AccessBinding accessBinding = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) + .build(); + client.updateAccessBinding(accessBinding); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7254,23 +7342,14 @@ public void getSearchAds360LinkExceptionTest2() throws Exception { } @Test - public void listSearchAds360LinksTest() throws Exception { - SearchAds360Link responsesElement = SearchAds360Link.newBuilder().build(); - ListSearchAds360LinksResponse expectedResponse = - ListSearchAds360LinksResponse.newBuilder() - .setNextPageToken("") - .addAllSearchAds360Links(Arrays.asList(responsesElement)) - .build(); + public void deleteAccessBindingTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListSearchAds360LinksPagedResponse pagedListResponse = client.listSearchAds360Links(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + AccessBindingName name = + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getSearchAds360LinksList().get(0), resources.get(0)); + client.deleteAccessBinding(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -7288,15 +7367,16 @@ public void listSearchAds360LinksTest() throws Exception { } @Test - public void listSearchAds360LinksExceptionTest() throws Exception { + public void deleteAccessBindingExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listSearchAds360Links(parent); + AccessBindingName name = + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); + client.deleteAccessBinding(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7304,23 +7384,13 @@ public void listSearchAds360LinksExceptionTest() throws Exception { } @Test - public void listSearchAds360LinksTest2() throws Exception { - SearchAds360Link responsesElement = SearchAds360Link.newBuilder().build(); - ListSearchAds360LinksResponse expectedResponse = - ListSearchAds360LinksResponse.newBuilder() - .setNextPageToken("") - .addAllSearchAds360Links(Arrays.asList(responsesElement)) - .build(); + public void deleteAccessBindingTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-2024"; - - ListSearchAds360LinksPagedResponse pagedListResponse = client.listSearchAds360Links(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + String name = "accounts/account-3488/accessBindings/accessBinding-3488"; - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getSearchAds360LinksList().get(0), resources.get(0)); + client.deleteAccessBinding(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -7338,15 +7408,15 @@ public void listSearchAds360LinksTest2() throws Exception { } @Test - public void listSearchAds360LinksExceptionTest2() throws Exception { + public void deleteAccessBindingExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - client.listSearchAds360Links(parent); + String name = "accounts/account-3488/accessBindings/accessBinding-3488"; + client.deleteAccessBinding(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7354,24 +7424,23 @@ public void listSearchAds360LinksExceptionTest2() throws Exception { } @Test - public void createSearchAds360LinkTest() throws Exception { - SearchAds360Link expectedResponse = - SearchAds360Link.newBuilder() - .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) - .setAdvertiserId("advertiserId550061990") - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) + public void listAccessBindingsTest() throws Exception { + AccessBinding responsesElement = AccessBinding.newBuilder().build(); + ListAccessBindingsResponse expectedResponse = + ListAccessBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllAccessBindings(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); + AccountName parent = AccountName.of("[ACCOUNT]"); - SearchAds360Link actualResponse = client.createSearchAds360Link(parent, searchAds360Link); - Assert.assertEquals(expectedResponse, actualResponse); + ListAccessBindingsPagedResponse pagedListResponse = client.listAccessBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessBindingsList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -7389,16 +7458,15 @@ public void createSearchAds360LinkTest() throws Exception { } @Test - public void createSearchAds360LinkExceptionTest() throws Exception { + public void listAccessBindingsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); - client.createSearchAds360Link(parent, searchAds360Link); + AccountName parent = AccountName.of("[ACCOUNT]"); + client.listAccessBindings(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7406,24 +7474,23 @@ public void createSearchAds360LinkExceptionTest() throws Exception { } @Test - public void createSearchAds360LinkTest2() throws Exception { - SearchAds360Link expectedResponse = - SearchAds360Link.newBuilder() - .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) - .setAdvertiserId("advertiserId550061990") - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) + public void listAccessBindingsTest2() throws Exception { + AccessBinding responsesElement = AccessBinding.newBuilder().build(); + ListAccessBindingsResponse expectedResponse = + ListAccessBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllAccessBindings(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-2024"; - SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); + PropertyName parent = PropertyName.of("[PROPERTY]"); - SearchAds360Link actualResponse = client.createSearchAds360Link(parent, searchAds360Link); - Assert.assertEquals(expectedResponse, actualResponse); + ListAccessBindingsPagedResponse pagedListResponse = client.listAccessBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessBindingsList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -7441,16 +7508,15 @@ public void createSearchAds360LinkTest2() throws Exception { } @Test - public void createSearchAds360LinkExceptionTest2() throws Exception { + public void listAccessBindingsExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); - client.createSearchAds360Link(parent, searchAds360Link); + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listAccessBindings(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7458,13 +7524,23 @@ public void createSearchAds360LinkExceptionTest2() throws Exception { } @Test - public void deleteSearchAds360LinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void listAccessBindingsTest3() throws Exception { + AccessBinding responsesElement = AccessBinding.newBuilder().build(); + ListAccessBindingsResponse expectedResponse = + ListAccessBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllAccessBindings(Arrays.asList(responsesElement)) + .build(); mockService.addResponse(expectedResponse); - SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]"); + String parent = "accounts/account-4811"; - client.deleteSearchAds360Link(name); + ListAccessBindingsPagedResponse pagedListResponse = client.listAccessBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessBindingsList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -7482,15 +7558,15 @@ public void deleteSearchAds360LinkTest() throws Exception { } @Test - public void deleteSearchAds360LinkExceptionTest() throws Exception { + public void listAccessBindingsExceptionTest3() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]"); - client.deleteSearchAds360Link(name); + String parent = "accounts/account-4811"; + client.listAccessBindings(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7498,13 +7574,21 @@ public void deleteSearchAds360LinkExceptionTest() throws Exception { } @Test - public void deleteSearchAds360LinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void batchCreateAccessBindingsTest() throws Exception { + BatchCreateAccessBindingsResponse expectedResponse = + BatchCreateAccessBindingsResponse.newBuilder() + .addAllAccessBindings(new ArrayList()) + .build(); mockService.addResponse(expectedResponse); - String name = "properties/propertie-3689/searchAds360Links/searchAds360Link-3689"; + BatchCreateAccessBindingsRequest request = + BatchCreateAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); - client.deleteSearchAds360Link(name); + BatchCreateAccessBindingsResponse actualResponse = client.batchCreateAccessBindings(request); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -7522,15 +7606,19 @@ public void deleteSearchAds360LinkTest2() throws Exception { } @Test - public void deleteSearchAds360LinkExceptionTest2() throws Exception { + public void batchCreateAccessBindingsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-3689/searchAds360Links/searchAds360Link-3689"; - client.deleteSearchAds360Link(name); + BatchCreateAccessBindingsRequest request = + BatchCreateAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + client.batchCreateAccessBindings(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7538,32 +7626,20 @@ public void deleteSearchAds360LinkExceptionTest2() throws Exception { } @Test - public void updateSearchAds360LinkTest() throws Exception { - SearchAds360Link expectedResponse = - SearchAds360Link.newBuilder() - .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) - .setAdvertiserId("advertiserId550061990") - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) + public void batchGetAccessBindingsTest() throws Exception { + BatchGetAccessBindingsResponse expectedResponse = + BatchGetAccessBindingsResponse.newBuilder() + .addAllAccessBindings(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - SearchAds360Link searchAds360Link = - SearchAds360Link.newBuilder() - .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) - .setAdvertiserId("advertiserId550061990") - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) + BatchGetAccessBindingsRequest request = + BatchGetAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllNames(new ArrayList()) .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - SearchAds360Link actualResponse = client.updateSearchAds360Link(searchAds360Link, updateMask); + BatchGetAccessBindingsResponse actualResponse = client.batchGetAccessBindings(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -7582,25 +7658,19 @@ public void updateSearchAds360LinkTest() throws Exception { } @Test - public void updateSearchAds360LinkExceptionTest() throws Exception { + public void batchGetAccessBindingsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - SearchAds360Link searchAds360Link = - SearchAds360Link.newBuilder() - .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) - .setAdvertiserId("advertiserId550061990") - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) + BatchGetAccessBindingsRequest request = + BatchGetAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllNames(new ArrayList()) .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateSearchAds360Link(searchAds360Link, updateMask); + client.batchGetAccessBindings(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7608,16 +7678,20 @@ public void updateSearchAds360LinkExceptionTest() throws Exception { } @Test - public void getAttributionSettingsTest() throws Exception { - AttributionSettings expectedResponse = - AttributionSettings.newBuilder() - .setName(AttributionSettingsName.of("[PROPERTY]").toString()) + public void batchUpdateAccessBindingsTest() throws Exception { + BatchUpdateAccessBindingsResponse expectedResponse = + BatchUpdateAccessBindingsResponse.newBuilder() + .addAllAccessBindings(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - AttributionSettingsName name = AttributionSettingsName.of("[PROPERTY]"); + BatchUpdateAccessBindingsRequest request = + BatchUpdateAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); - AttributionSettings actualResponse = client.getAttributionSettings(name); + BatchUpdateAccessBindingsResponse actualResponse = client.batchUpdateAccessBindings(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -7636,15 +7710,19 @@ public void getAttributionSettingsTest() throws Exception { } @Test - public void getAttributionSettingsExceptionTest() throws Exception { + public void batchUpdateAccessBindingsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - AttributionSettingsName name = AttributionSettingsName.of("[PROPERTY]"); - client.getAttributionSettings(name); + BatchUpdateAccessBindingsRequest request = + BatchUpdateAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + client.batchUpdateAccessBindings(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7652,17 +7730,17 @@ public void getAttributionSettingsExceptionTest() throws Exception { } @Test - public void getAttributionSettingsTest2() throws Exception { - AttributionSettings expectedResponse = - AttributionSettings.newBuilder() - .setName(AttributionSettingsName.of("[PROPERTY]").toString()) - .build(); + public void batchDeleteAccessBindingsTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - String name = "properties/propertie-492/attributionSettings"; + BatchDeleteAccessBindingsRequest request = + BatchDeleteAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); - AttributionSettings actualResponse = client.getAttributionSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); + client.batchDeleteAccessBindings(request); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -7680,15 +7758,19 @@ public void getAttributionSettingsTest2() throws Exception { } @Test - public void getAttributionSettingsExceptionTest2() throws Exception { + public void batchDeleteAccessBindingsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-492/attributionSettings"; - client.getAttributionSettings(name); + BatchDeleteAccessBindingsRequest request = + BatchDeleteAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + client.batchDeleteAccessBindings(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7696,21 +7778,22 @@ public void getAttributionSettingsExceptionTest2() throws Exception { } @Test - public void updateAttributionSettingsTest() throws Exception { - AttributionSettings expectedResponse = - AttributionSettings.newBuilder() - .setName(AttributionSettingsName.of("[PROPERTY]").toString()) + public void getExpandedDataSetTest() throws Exception { + ExpandedDataSet expectedResponse = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - AttributionSettings attributionSettings = - AttributionSettings.newBuilder() - .setName(AttributionSettingsName.of("[PROPERTY]").toString()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); - AttributionSettings actualResponse = - client.updateAttributionSettings(attributionSettings, updateMask); + ExpandedDataSet actualResponse = client.getExpandedDataSet(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -7729,19 +7812,15 @@ public void updateAttributionSettingsTest() throws Exception { } @Test - public void updateAttributionSettingsExceptionTest() throws Exception { + public void getExpandedDataSetExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - AttributionSettings attributionSettings = - AttributionSettings.newBuilder() - .setName(AttributionSettingsName.of("[PROPERTY]").toString()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateAttributionSettings(attributionSettings, updateMask); + ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); + client.getExpandedDataSet(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7749,33 +7828,22 @@ public void updateAttributionSettingsExceptionTest() throws Exception { } @Test - public void runAccessReportTest() throws Exception { - RunAccessReportResponse expectedResponse = - RunAccessReportResponse.newBuilder() - .addAllDimensionHeaders(new ArrayList()) - .addAllMetricHeaders(new ArrayList()) - .addAllRows(new ArrayList()) - .setRowCount(1340416618) - .setQuota(AccessQuota.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - RunAccessReportRequest request = - RunAccessReportRequest.newBuilder() - .setEntity("properties/propertie-4993") - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .addAllDateRanges(new ArrayList()) - .setDimensionFilter(AccessFilterExpression.newBuilder().build()) - .setMetricFilter(AccessFilterExpression.newBuilder().build()) - .setOffset(-1019779949) - .setLimit(102976443) - .setTimeZone("timeZone-2077180903") - .addAllOrderBys(new ArrayList()) - .setReturnEntityQuota(true) + public void getExpandedDataSetTest2() throws Exception { + ExpandedDataSet expectedResponse = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) .build(); + mockService.addResponse(expectedResponse); - RunAccessReportResponse actualResponse = client.runAccessReport(request); + String name = "properties/propertie-4725/expandedDataSets/expandedDataSet-4725"; + + ExpandedDataSet actualResponse = client.getExpandedDataSet(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -7794,28 +7862,15 @@ public void runAccessReportTest() throws Exception { } @Test - public void runAccessReportExceptionTest() throws Exception { + public void getExpandedDataSetExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - RunAccessReportRequest request = - RunAccessReportRequest.newBuilder() - .setEntity("properties/propertie-4993") - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .addAllDateRanges(new ArrayList()) - .setDimensionFilter(AccessFilterExpression.newBuilder().build()) - .setMetricFilter(AccessFilterExpression.newBuilder().build()) - .setOffset(-1019779949) - .setLimit(102976443) - .setTimeZone("timeZone-2077180903") - .addAllOrderBys(new ArrayList()) - .setReturnEntityQuota(true) - .build(); - client.runAccessReport(request); + String name = "properties/propertie-4725/expandedDataSets/expandedDataSet-4725"; + client.getExpandedDataSet(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7823,21 +7878,23 @@ public void runAccessReportExceptionTest() throws Exception { } @Test - public void createAccessBindingTest() throws Exception { - AccessBinding expectedResponse = - AccessBinding.newBuilder() - .setName( - AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") - .toString()) - .addAllRoles(new ArrayList()) + public void listExpandedDataSetsTest() throws Exception { + ExpandedDataSet responsesElement = ExpandedDataSet.newBuilder().build(); + ListExpandedDataSetsResponse expectedResponse = + ListExpandedDataSetsResponse.newBuilder() + .setNextPageToken("") + .addAllExpandedDataSets(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - AccountName parent = AccountName.of("[ACCOUNT]"); - AccessBinding accessBinding = AccessBinding.newBuilder().build(); + PropertyName parent = PropertyName.of("[PROPERTY]"); - AccessBinding actualResponse = client.createAccessBinding(parent, accessBinding); - Assert.assertEquals(expectedResponse, actualResponse); + ListExpandedDataSetsPagedResponse pagedListResponse = client.listExpandedDataSets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExpandedDataSetsList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -7855,16 +7912,15 @@ public void createAccessBindingTest() throws Exception { } @Test - public void createAccessBindingExceptionTest() throws Exception { + public void listExpandedDataSetsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - AccountName parent = AccountName.of("[ACCOUNT]"); - AccessBinding accessBinding = AccessBinding.newBuilder().build(); - client.createAccessBinding(parent, accessBinding); + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listExpandedDataSets(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7872,21 +7928,23 @@ public void createAccessBindingExceptionTest() throws Exception { } @Test - public void createAccessBindingTest2() throws Exception { - AccessBinding expectedResponse = - AccessBinding.newBuilder() - .setName( - AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") - .toString()) - .addAllRoles(new ArrayList()) + public void listExpandedDataSetsTest2() throws Exception { + ExpandedDataSet responsesElement = ExpandedDataSet.newBuilder().build(); + ListExpandedDataSetsResponse expectedResponse = + ListExpandedDataSetsResponse.newBuilder() + .setNextPageToken("") + .addAllExpandedDataSets(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - AccessBinding accessBinding = AccessBinding.newBuilder().build(); + String parent = "properties/propertie-2024"; - AccessBinding actualResponse = client.createAccessBinding(parent, accessBinding); - Assert.assertEquals(expectedResponse, actualResponse); + ListExpandedDataSetsPagedResponse pagedListResponse = client.listExpandedDataSets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExpandedDataSetsList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -7904,16 +7962,15 @@ public void createAccessBindingTest2() throws Exception { } @Test - public void createAccessBindingExceptionTest2() throws Exception { + public void listExpandedDataSetsExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - AccessBinding accessBinding = AccessBinding.newBuilder().build(); - client.createAccessBinding(parent, accessBinding); + String parent = "properties/propertie-2024"; + client.listExpandedDataSets(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7921,20 +7978,23 @@ public void createAccessBindingExceptionTest2() throws Exception { } @Test - public void createAccessBindingTest3() throws Exception { - AccessBinding expectedResponse = - AccessBinding.newBuilder() - .setName( - AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") - .toString()) - .addAllRoles(new ArrayList()) + public void createExpandedDataSetTest() throws Exception { + ExpandedDataSet expectedResponse = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - String parent = "accounts/account-4811"; - AccessBinding accessBinding = AccessBinding.newBuilder().build(); + PropertyName parent = PropertyName.of("[PROPERTY]"); + ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); - AccessBinding actualResponse = client.createAccessBinding(parent, accessBinding); + ExpandedDataSet actualResponse = client.createExpandedDataSet(parent, expandedDataSet); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -7953,16 +8013,16 @@ public void createAccessBindingTest3() throws Exception { } @Test - public void createAccessBindingExceptionTest3() throws Exception { + public void createExpandedDataSetExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "accounts/account-4811"; - AccessBinding accessBinding = AccessBinding.newBuilder().build(); - client.createAccessBinding(parent, accessBinding); + PropertyName parent = PropertyName.of("[PROPERTY]"); + ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + client.createExpandedDataSet(parent, expandedDataSet); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7970,20 +8030,23 @@ public void createAccessBindingExceptionTest3() throws Exception { } @Test - public void getAccessBindingTest() throws Exception { - AccessBinding expectedResponse = - AccessBinding.newBuilder() - .setName( - AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") - .toString()) - .addAllRoles(new ArrayList()) + public void createExpandedDataSetTest2() throws Exception { + ExpandedDataSet expectedResponse = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - AccessBindingName name = - AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); + String parent = "properties/propertie-2024"; + ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); - AccessBinding actualResponse = client.getAccessBinding(name); + ExpandedDataSet actualResponse = client.createExpandedDataSet(parent, expandedDataSet); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -8002,16 +8065,16 @@ public void getAccessBindingTest() throws Exception { } @Test - public void getAccessBindingExceptionTest() throws Exception { + public void createExpandedDataSetExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - AccessBindingName name = - AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); - client.getAccessBinding(name); + String parent = "properties/propertie-2024"; + ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + client.createExpandedDataSet(parent, expandedDataSet); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8019,19 +8082,32 @@ public void getAccessBindingExceptionTest() throws Exception { } @Test - public void getAccessBindingTest2() throws Exception { - AccessBinding expectedResponse = - AccessBinding.newBuilder() - .setName( - AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") - .toString()) - .addAllRoles(new ArrayList()) + public void updateExpandedDataSetTest() throws Exception { + ExpandedDataSet expectedResponse = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - String name = "accounts/account-3488/accessBindings/accessBinding-3488"; + ExpandedDataSet expandedDataSet = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - AccessBinding actualResponse = client.getAccessBinding(name); + ExpandedDataSet actualResponse = client.updateExpandedDataSet(expandedDataSet, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -8050,15 +8126,25 @@ public void getAccessBindingTest2() throws Exception { } @Test - public void getAccessBindingExceptionTest2() throws Exception { + public void updateExpandedDataSetExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "accounts/account-3488/accessBindings/accessBinding-3488"; - client.getAccessBinding(name); + ExpandedDataSet expandedDataSet = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateExpandedDataSet(expandedDataSet, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8066,26 +8152,13 @@ public void getAccessBindingExceptionTest2() throws Exception { } @Test - public void updateAccessBindingTest() throws Exception { - AccessBinding expectedResponse = - AccessBinding.newBuilder() - .setName( - AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") - .toString()) - .addAllRoles(new ArrayList()) - .build(); + public void deleteExpandedDataSetTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - AccessBinding accessBinding = - AccessBinding.newBuilder() - .setName( - AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") - .toString()) - .addAllRoles(new ArrayList()) - .build(); + ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); - AccessBinding actualResponse = client.updateAccessBinding(accessBinding); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteExpandedDataSet(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -8103,21 +8176,15 @@ public void updateAccessBindingTest() throws Exception { } @Test - public void updateAccessBindingExceptionTest() throws Exception { + public void deleteExpandedDataSetExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - AccessBinding accessBinding = - AccessBinding.newBuilder() - .setName( - AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") - .toString()) - .addAllRoles(new ArrayList()) - .build(); - client.updateAccessBinding(accessBinding); + ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); + client.deleteExpandedDataSet(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8125,14 +8192,13 @@ public void updateAccessBindingExceptionTest() throws Exception { } @Test - public void deleteAccessBindingTest() throws Exception { + public void deleteExpandedDataSetTest2() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - AccessBindingName name = - AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); + String name = "properties/propertie-4725/expandedDataSets/expandedDataSet-4725"; - client.deleteAccessBinding(name); + client.deleteExpandedDataSet(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -8150,16 +8216,15 @@ public void deleteAccessBindingTest() throws Exception { } @Test - public void deleteAccessBindingExceptionTest() throws Exception { + public void deleteExpandedDataSetExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - AccessBindingName name = - AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); - client.deleteAccessBinding(name); + String name = "properties/propertie-4725/expandedDataSets/expandedDataSet-4725"; + client.deleteExpandedDataSet(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8167,13 +8232,21 @@ public void deleteAccessBindingExceptionTest() throws Exception { } @Test - public void deleteAccessBindingTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getChannelGroupTest() throws Exception { + ChannelGroup expectedResponse = + ChannelGroup.newBuilder() + .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllGroupingRule(new ArrayList()) + .setSystemDefined(true) + .build(); mockService.addResponse(expectedResponse); - String name = "accounts/account-3488/accessBindings/accessBinding-3488"; + ChannelGroupName name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]"); - client.deleteAccessBinding(name); + ChannelGroup actualResponse = client.getChannelGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -8191,15 +8264,15 @@ public void deleteAccessBindingTest2() throws Exception { } @Test - public void deleteAccessBindingExceptionTest2() throws Exception { + public void getChannelGroupExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "accounts/account-3488/accessBindings/accessBinding-3488"; - client.deleteAccessBinding(name); + ChannelGroupName name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]"); + client.getChannelGroup(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8207,23 +8280,21 @@ public void deleteAccessBindingExceptionTest2() throws Exception { } @Test - public void listAccessBindingsTest() throws Exception { - AccessBinding responsesElement = AccessBinding.newBuilder().build(); - ListAccessBindingsResponse expectedResponse = - ListAccessBindingsResponse.newBuilder() - .setNextPageToken("") - .addAllAccessBindings(Arrays.asList(responsesElement)) + public void getChannelGroupTest2() throws Exception { + ChannelGroup expectedResponse = + ChannelGroup.newBuilder() + .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllGroupingRule(new ArrayList()) + .setSystemDefined(true) .build(); mockService.addResponse(expectedResponse); - AccountName parent = AccountName.of("[ACCOUNT]"); - - ListAccessBindingsPagedResponse pagedListResponse = client.listAccessBindings(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + String name = "properties/propertie-836/channelGroups/channelGroup-836"; - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAccessBindingsList().get(0), resources.get(0)); + ChannelGroup actualResponse = client.getChannelGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -8241,15 +8312,15 @@ public void listAccessBindingsTest() throws Exception { } @Test - public void listAccessBindingsExceptionTest() throws Exception { + public void getChannelGroupExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - AccountName parent = AccountName.of("[ACCOUNT]"); - client.listAccessBindings(parent); + String name = "properties/propertie-836/channelGroups/channelGroup-836"; + client.getChannelGroup(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8257,23 +8328,23 @@ public void listAccessBindingsExceptionTest() throws Exception { } @Test - public void listAccessBindingsTest2() throws Exception { - AccessBinding responsesElement = AccessBinding.newBuilder().build(); - ListAccessBindingsResponse expectedResponse = - ListAccessBindingsResponse.newBuilder() + public void listChannelGroupsTest() throws Exception { + ChannelGroup responsesElement = ChannelGroup.newBuilder().build(); + ListChannelGroupsResponse expectedResponse = + ListChannelGroupsResponse.newBuilder() .setNextPageToken("") - .addAllAccessBindings(Arrays.asList(responsesElement)) + .addAllChannelGroups(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); PropertyName parent = PropertyName.of("[PROPERTY]"); - ListAccessBindingsPagedResponse pagedListResponse = client.listAccessBindings(parent); + ListChannelGroupsPagedResponse pagedListResponse = client.listChannelGroups(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAccessBindingsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getChannelGroupsList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -8291,7 +8362,7 @@ public void listAccessBindingsTest2() throws Exception { } @Test - public void listAccessBindingsExceptionTest2() throws Exception { + public void listChannelGroupsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -8299,7 +8370,7 @@ public void listAccessBindingsExceptionTest2() throws Exception { try { PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listAccessBindings(parent); + client.listChannelGroups(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8307,23 +8378,23 @@ public void listAccessBindingsExceptionTest2() throws Exception { } @Test - public void listAccessBindingsTest3() throws Exception { - AccessBinding responsesElement = AccessBinding.newBuilder().build(); - ListAccessBindingsResponse expectedResponse = - ListAccessBindingsResponse.newBuilder() + public void listChannelGroupsTest2() throws Exception { + ChannelGroup responsesElement = ChannelGroup.newBuilder().build(); + ListChannelGroupsResponse expectedResponse = + ListChannelGroupsResponse.newBuilder() .setNextPageToken("") - .addAllAccessBindings(Arrays.asList(responsesElement)) + .addAllChannelGroups(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - String parent = "accounts/account-4811"; + String parent = "properties/propertie-2024"; - ListAccessBindingsPagedResponse pagedListResponse = client.listAccessBindings(parent); + ListChannelGroupsPagedResponse pagedListResponse = client.listChannelGroups(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAccessBindingsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getChannelGroupsList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -8341,15 +8412,15 @@ public void listAccessBindingsTest3() throws Exception { } @Test - public void listAccessBindingsExceptionTest3() throws Exception { + public void listChannelGroupsExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "accounts/account-4811"; - client.listAccessBindings(parent); + String parent = "properties/propertie-2024"; + client.listChannelGroups(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8357,20 +8428,21 @@ public void listAccessBindingsExceptionTest3() throws Exception { } @Test - public void batchCreateAccessBindingsTest() throws Exception { - BatchCreateAccessBindingsResponse expectedResponse = - BatchCreateAccessBindingsResponse.newBuilder() - .addAllAccessBindings(new ArrayList()) + public void createChannelGroupTest() throws Exception { + ChannelGroup expectedResponse = + ChannelGroup.newBuilder() + .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllGroupingRule(new ArrayList()) + .setSystemDefined(true) .build(); mockService.addResponse(expectedResponse); - BatchCreateAccessBindingsRequest request = - BatchCreateAccessBindingsRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); + PropertyName parent = PropertyName.of("[PROPERTY]"); + ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); - BatchCreateAccessBindingsResponse actualResponse = client.batchCreateAccessBindings(request); + ChannelGroup actualResponse = client.createChannelGroup(parent, channelGroup); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -8389,19 +8461,16 @@ public void batchCreateAccessBindingsTest() throws Exception { } @Test - public void batchCreateAccessBindingsExceptionTest() throws Exception { + public void createChannelGroupExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - BatchCreateAccessBindingsRequest request = - BatchCreateAccessBindingsRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); - client.batchCreateAccessBindings(request); + PropertyName parent = PropertyName.of("[PROPERTY]"); + ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); + client.createChannelGroup(parent, channelGroup); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8409,20 +8478,21 @@ public void batchCreateAccessBindingsExceptionTest() throws Exception { } @Test - public void batchGetAccessBindingsTest() throws Exception { - BatchGetAccessBindingsResponse expectedResponse = - BatchGetAccessBindingsResponse.newBuilder() - .addAllAccessBindings(new ArrayList()) + public void createChannelGroupTest2() throws Exception { + ChannelGroup expectedResponse = + ChannelGroup.newBuilder() + .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllGroupingRule(new ArrayList()) + .setSystemDefined(true) .build(); mockService.addResponse(expectedResponse); - BatchGetAccessBindingsRequest request = - BatchGetAccessBindingsRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllNames(new ArrayList()) - .build(); + String parent = "properties/propertie-2024"; + ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); - BatchGetAccessBindingsResponse actualResponse = client.batchGetAccessBindings(request); + ChannelGroup actualResponse = client.createChannelGroup(parent, channelGroup); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -8441,19 +8511,16 @@ public void batchGetAccessBindingsTest() throws Exception { } @Test - public void batchGetAccessBindingsExceptionTest() throws Exception { + public void createChannelGroupExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - BatchGetAccessBindingsRequest request = - BatchGetAccessBindingsRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllNames(new ArrayList()) - .build(); - client.batchGetAccessBindings(request); + String parent = "properties/propertie-2024"; + ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); + client.createChannelGroup(parent, channelGroup); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8461,20 +8528,28 @@ public void batchGetAccessBindingsExceptionTest() throws Exception { } @Test - public void batchUpdateAccessBindingsTest() throws Exception { - BatchUpdateAccessBindingsResponse expectedResponse = - BatchUpdateAccessBindingsResponse.newBuilder() - .addAllAccessBindings(new ArrayList()) + public void updateChannelGroupTest() throws Exception { + ChannelGroup expectedResponse = + ChannelGroup.newBuilder() + .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllGroupingRule(new ArrayList()) + .setSystemDefined(true) .build(); mockService.addResponse(expectedResponse); - BatchUpdateAccessBindingsRequest request = - BatchUpdateAccessBindingsRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) + ChannelGroup channelGroup = + ChannelGroup.newBuilder() + .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllGroupingRule(new ArrayList()) + .setSystemDefined(true) .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - BatchUpdateAccessBindingsResponse actualResponse = client.batchUpdateAccessBindings(request); + ChannelGroup actualResponse = client.updateChannelGroup(channelGroup, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -8493,19 +8568,23 @@ public void batchUpdateAccessBindingsTest() throws Exception { } @Test - public void batchUpdateAccessBindingsExceptionTest() throws Exception { + public void updateChannelGroupExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - BatchUpdateAccessBindingsRequest request = - BatchUpdateAccessBindingsRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) + ChannelGroup channelGroup = + ChannelGroup.newBuilder() + .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllGroupingRule(new ArrayList()) + .setSystemDefined(true) .build(); - client.batchUpdateAccessBindings(request); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateChannelGroup(channelGroup, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8513,17 +8592,13 @@ public void batchUpdateAccessBindingsExceptionTest() throws Exception { } @Test - public void batchDeleteAccessBindingsTest() throws Exception { + public void deleteChannelGroupTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - BatchDeleteAccessBindingsRequest request = - BatchDeleteAccessBindingsRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); + ChannelGroupName name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]"); - client.batchDeleteAccessBindings(request); + client.deleteChannelGroup(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -8541,19 +8616,15 @@ public void batchDeleteAccessBindingsTest() throws Exception { } @Test - public void batchDeleteAccessBindingsExceptionTest() throws Exception { + public void deleteChannelGroupExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - BatchDeleteAccessBindingsRequest request = - BatchDeleteAccessBindingsRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); - client.batchDeleteAccessBindings(request); + ChannelGroupName name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]"); + client.deleteChannelGroup(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8561,23 +8632,13 @@ public void batchDeleteAccessBindingsExceptionTest() throws Exception { } @Test - public void getExpandedDataSetTest() throws Exception { - ExpandedDataSet expectedResponse = - ExpandedDataSet.newBuilder() - .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllDimensionNames(new ArrayList()) - .addAllMetricNames(new ArrayList()) - .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) - .setDataCollectionStartTime(Timestamp.newBuilder().build()) - .build(); + public void deleteChannelGroupTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); + String name = "properties/propertie-836/channelGroups/channelGroup-836"; - ExpandedDataSet actualResponse = client.getExpandedDataSet(name); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteChannelGroup(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -8595,15 +8656,15 @@ public void getExpandedDataSetTest() throws Exception { } @Test - public void getExpandedDataSetExceptionTest() throws Exception { + public void deleteChannelGroupExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); - client.getExpandedDataSet(name); + String name = "properties/propertie-836/channelGroups/channelGroup-836"; + client.deleteChannelGroup(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8611,22 +8672,19 @@ public void getExpandedDataSetExceptionTest() throws Exception { } @Test - public void getExpandedDataSetTest2() throws Exception { - ExpandedDataSet expectedResponse = - ExpandedDataSet.newBuilder() - .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllDimensionNames(new ArrayList()) - .addAllMetricNames(new ArrayList()) - .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) - .setDataCollectionStartTime(Timestamp.newBuilder().build()) - .build(); + public void setAutomatedGa4ConfigurationOptOutTest() throws Exception { + SetAutomatedGa4ConfigurationOptOutResponse expectedResponse = + SetAutomatedGa4ConfigurationOptOutResponse.newBuilder().build(); mockService.addResponse(expectedResponse); - String name = "properties/propertie-4725/expandedDataSets/expandedDataSet-4725"; + SetAutomatedGa4ConfigurationOptOutRequest request = + SetAutomatedGa4ConfigurationOptOutRequest.newBuilder() + .setProperty("property-993141291") + .setOptOut(true) + .build(); - ExpandedDataSet actualResponse = client.getExpandedDataSet(name); + SetAutomatedGa4ConfigurationOptOutResponse actualResponse = + client.setAutomatedGa4ConfigurationOptOut(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -8645,15 +8703,19 @@ public void getExpandedDataSetTest2() throws Exception { } @Test - public void getExpandedDataSetExceptionTest2() throws Exception { + public void setAutomatedGa4ConfigurationOptOutExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-4725/expandedDataSets/expandedDataSet-4725"; - client.getExpandedDataSet(name); + SetAutomatedGa4ConfigurationOptOutRequest request = + SetAutomatedGa4ConfigurationOptOutRequest.newBuilder() + .setProperty("property-993141291") + .setOptOut(true) + .build(); + client.setAutomatedGa4ConfigurationOptOut(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8661,23 +8723,19 @@ public void getExpandedDataSetExceptionTest2() throws Exception { } @Test - public void listExpandedDataSetsTest() throws Exception { - ExpandedDataSet responsesElement = ExpandedDataSet.newBuilder().build(); - ListExpandedDataSetsResponse expectedResponse = - ListExpandedDataSetsResponse.newBuilder() - .setNextPageToken("") - .addAllExpandedDataSets(Arrays.asList(responsesElement)) - .build(); + public void fetchAutomatedGa4ConfigurationOptOutTest() throws Exception { + FetchAutomatedGa4ConfigurationOptOutResponse expectedResponse = + FetchAutomatedGa4ConfigurationOptOutResponse.newBuilder().setOptOut(true).build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListExpandedDataSetsPagedResponse pagedListResponse = client.listExpandedDataSets(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + FetchAutomatedGa4ConfigurationOptOutRequest request = + FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder() + .setProperty("property-993141291") + .build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getExpandedDataSetsList().get(0), resources.get(0)); + FetchAutomatedGa4ConfigurationOptOutResponse actualResponse = + client.fetchAutomatedGa4ConfigurationOptOut(request); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -8695,15 +8753,18 @@ public void listExpandedDataSetsTest() throws Exception { } @Test - public void listExpandedDataSetsExceptionTest() throws Exception { + public void fetchAutomatedGa4ConfigurationOptOutExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listExpandedDataSets(parent); + FetchAutomatedGa4ConfigurationOptOutRequest request = + FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder() + .setProperty("property-993141291") + .build(); + client.fetchAutomatedGa4ConfigurationOptOut(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8711,23 +8772,25 @@ public void listExpandedDataSetsExceptionTest() throws Exception { } @Test - public void listExpandedDataSetsTest2() throws Exception { - ExpandedDataSet responsesElement = ExpandedDataSet.newBuilder().build(); - ListExpandedDataSetsResponse expectedResponse = - ListExpandedDataSetsResponse.newBuilder() - .setNextPageToken("") - .addAllExpandedDataSets(Arrays.asList(responsesElement)) + public void getBigQueryLinkTest() throws Exception { + BigQueryLink expectedResponse = + BigQueryLink.newBuilder() + .setName(BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString()) + .setProject("project-309310695") + .setCreateTime(Timestamp.newBuilder().build()) + .setDailyExportEnabled(true) + .setStreamingExportEnabled(true) + .setFreshDailyExportEnabled(true) + .setIncludeAdvertisingId(true) + .addAllExportStreams(new ArrayList()) + .addAllExcludedEvents(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-2024"; - - ListExpandedDataSetsPagedResponse pagedListResponse = client.listExpandedDataSets(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + BigQueryLinkName name = BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getExpandedDataSetsList().get(0), resources.get(0)); + BigQueryLink actualResponse = client.getBigQueryLink(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -8745,15 +8808,15 @@ public void listExpandedDataSetsTest2() throws Exception { } @Test - public void listExpandedDataSetsExceptionTest2() throws Exception { + public void getBigQueryLinkExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - client.listExpandedDataSets(parent); + BigQueryLinkName name = BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]"); + client.getBigQueryLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8761,23 +8824,24 @@ public void listExpandedDataSetsExceptionTest2() throws Exception { } @Test - public void createExpandedDataSetTest() throws Exception { - ExpandedDataSet expectedResponse = - ExpandedDataSet.newBuilder() - .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllDimensionNames(new ArrayList()) - .addAllMetricNames(new ArrayList()) - .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) - .setDataCollectionStartTime(Timestamp.newBuilder().build()) + public void getBigQueryLinkTest2() throws Exception { + BigQueryLink expectedResponse = + BigQueryLink.newBuilder() + .setName(BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString()) + .setProject("project-309310695") + .setCreateTime(Timestamp.newBuilder().build()) + .setDailyExportEnabled(true) + .setStreamingExportEnabled(true) + .setFreshDailyExportEnabled(true) + .setIncludeAdvertisingId(true) + .addAllExportStreams(new ArrayList()) + .addAllExcludedEvents(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + String name = "properties/propertie-7430/bigQueryLinks/bigQueryLink-7430"; - ExpandedDataSet actualResponse = client.createExpandedDataSet(parent, expandedDataSet); + BigQueryLink actualResponse = client.getBigQueryLink(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -8796,16 +8860,15 @@ public void createExpandedDataSetTest() throws Exception { } @Test - public void createExpandedDataSetExceptionTest() throws Exception { + public void getBigQueryLinkExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); - client.createExpandedDataSet(parent, expandedDataSet); + String name = "properties/propertie-7430/bigQueryLinks/bigQueryLink-7430"; + client.getBigQueryLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8813,24 +8876,23 @@ public void createExpandedDataSetExceptionTest() throws Exception { } @Test - public void createExpandedDataSetTest2() throws Exception { - ExpandedDataSet expectedResponse = - ExpandedDataSet.newBuilder() - .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllDimensionNames(new ArrayList()) - .addAllMetricNames(new ArrayList()) - .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) - .setDataCollectionStartTime(Timestamp.newBuilder().build()) + public void listBigQueryLinksTest() throws Exception { + BigQueryLink responsesElement = BigQueryLink.newBuilder().build(); + ListBigQueryLinksResponse expectedResponse = + ListBigQueryLinksResponse.newBuilder() + .setNextPageToken("") + .addAllBigqueryLinks(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-2024"; - ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + PropertyName parent = PropertyName.of("[PROPERTY]"); - ExpandedDataSet actualResponse = client.createExpandedDataSet(parent, expandedDataSet); - Assert.assertEquals(expectedResponse, actualResponse); + ListBigQueryLinksPagedResponse pagedListResponse = client.listBigQueryLinks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBigqueryLinksList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -8848,16 +8910,15 @@ public void createExpandedDataSetTest2() throws Exception { } @Test - public void createExpandedDataSetExceptionTest2() throws Exception { + public void listBigQueryLinksExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); - client.createExpandedDataSet(parent, expandedDataSet); + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listBigQueryLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8865,33 +8926,23 @@ public void createExpandedDataSetExceptionTest2() throws Exception { } @Test - public void updateExpandedDataSetTest() throws Exception { - ExpandedDataSet expectedResponse = - ExpandedDataSet.newBuilder() - .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllDimensionNames(new ArrayList()) - .addAllMetricNames(new ArrayList()) - .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) - .setDataCollectionStartTime(Timestamp.newBuilder().build()) + public void listBigQueryLinksTest2() throws Exception { + BigQueryLink responsesElement = BigQueryLink.newBuilder().build(); + ListBigQueryLinksResponse expectedResponse = + ListBigQueryLinksResponse.newBuilder() + .setNextPageToken("") + .addAllBigqueryLinks(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - ExpandedDataSet expandedDataSet = - ExpandedDataSet.newBuilder() - .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllDimensionNames(new ArrayList()) - .addAllMetricNames(new ArrayList()) - .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) - .setDataCollectionStartTime(Timestamp.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + String parent = "properties/propertie-2024"; - ExpandedDataSet actualResponse = client.updateExpandedDataSet(expandedDataSet, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); + ListBigQueryLinksPagedResponse pagedListResponse = client.listBigQueryLinks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBigqueryLinksList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -8909,25 +8960,15 @@ public void updateExpandedDataSetTest() throws Exception { } @Test - public void updateExpandedDataSetExceptionTest() throws Exception { + public void listBigQueryLinksExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - ExpandedDataSet expandedDataSet = - ExpandedDataSet.newBuilder() - .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllDimensionNames(new ArrayList()) - .addAllMetricNames(new ArrayList()) - .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) - .setDataCollectionStartTime(Timestamp.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateExpandedDataSet(expandedDataSet, updateMask); + String parent = "properties/propertie-2024"; + client.listBigQueryLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8935,13 +8976,28 @@ public void updateExpandedDataSetExceptionTest() throws Exception { } @Test - public void deleteExpandedDataSetTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getEnhancedMeasurementSettingsTest() throws Exception { + EnhancedMeasurementSettings expectedResponse = + EnhancedMeasurementSettings.newBuilder() + .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setStreamEnabled(true) + .setScrollsEnabled(true) + .setOutboundClicksEnabled(true) + .setSiteSearchEnabled(true) + .setVideoEngagementEnabled(true) + .setFileDownloadsEnabled(true) + .setPageChangesEnabled(true) + .setFormInteractionsEnabled(true) + .setSearchQueryParameter("searchQueryParameter-2012788855") + .setUriQueryParameter("uriQueryParameter1580843085") + .build(); mockService.addResponse(expectedResponse); - ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); + EnhancedMeasurementSettingsName name = + EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]"); - client.deleteExpandedDataSet(name); + EnhancedMeasurementSettings actualResponse = client.getEnhancedMeasurementSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -8959,15 +9015,16 @@ public void deleteExpandedDataSetTest() throws Exception { } @Test - public void deleteExpandedDataSetExceptionTest() throws Exception { + public void getEnhancedMeasurementSettingsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); - client.deleteExpandedDataSet(name); + EnhancedMeasurementSettingsName name = + EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]"); + client.getEnhancedMeasurementSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8975,13 +9032,28 @@ public void deleteExpandedDataSetExceptionTest() throws Exception { } @Test - public void deleteExpandedDataSetTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getEnhancedMeasurementSettingsTest2() throws Exception { + EnhancedMeasurementSettings expectedResponse = + EnhancedMeasurementSettings.newBuilder() + .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setStreamEnabled(true) + .setScrollsEnabled(true) + .setOutboundClicksEnabled(true) + .setSiteSearchEnabled(true) + .setVideoEngagementEnabled(true) + .setFileDownloadsEnabled(true) + .setPageChangesEnabled(true) + .setFormInteractionsEnabled(true) + .setSearchQueryParameter("searchQueryParameter-2012788855") + .setUriQueryParameter("uriQueryParameter1580843085") + .build(); mockService.addResponse(expectedResponse); - String name = "properties/propertie-4725/expandedDataSets/expandedDataSet-4725"; + String name = + "properties/propertie-5816/dataStreams/dataStream-5816/enhancedMeasurementSettings"; - client.deleteExpandedDataSet(name); + EnhancedMeasurementSettings actualResponse = client.getEnhancedMeasurementSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -8999,15 +9071,16 @@ public void deleteExpandedDataSetTest2() throws Exception { } @Test - public void deleteExpandedDataSetExceptionTest2() throws Exception { + public void getEnhancedMeasurementSettingsExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-4725/expandedDataSets/expandedDataSet-4725"; - client.deleteExpandedDataSet(name); + String name = + "properties/propertie-5816/dataStreams/dataStream-5816/enhancedMeasurementSettings"; + client.getEnhancedMeasurementSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9015,20 +9088,41 @@ public void deleteExpandedDataSetExceptionTest2() throws Exception { } @Test - public void getChannelGroupTest() throws Exception { - ChannelGroup expectedResponse = - ChannelGroup.newBuilder() - .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllGroupingRule(new ArrayList()) - .setSystemDefined(true) + public void updateEnhancedMeasurementSettingsTest() throws Exception { + EnhancedMeasurementSettings expectedResponse = + EnhancedMeasurementSettings.newBuilder() + .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setStreamEnabled(true) + .setScrollsEnabled(true) + .setOutboundClicksEnabled(true) + .setSiteSearchEnabled(true) + .setVideoEngagementEnabled(true) + .setFileDownloadsEnabled(true) + .setPageChangesEnabled(true) + .setFormInteractionsEnabled(true) + .setSearchQueryParameter("searchQueryParameter-2012788855") + .setUriQueryParameter("uriQueryParameter1580843085") .build(); mockService.addResponse(expectedResponse); - ChannelGroupName name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]"); + EnhancedMeasurementSettings enhancedMeasurementSettings = + EnhancedMeasurementSettings.newBuilder() + .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setStreamEnabled(true) + .setScrollsEnabled(true) + .setOutboundClicksEnabled(true) + .setSiteSearchEnabled(true) + .setVideoEngagementEnabled(true) + .setFileDownloadsEnabled(true) + .setPageChangesEnabled(true) + .setFormInteractionsEnabled(true) + .setSearchQueryParameter("searchQueryParameter-2012788855") + .setUriQueryParameter("uriQueryParameter1580843085") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - ChannelGroup actualResponse = client.getChannelGroup(name); + EnhancedMeasurementSettings actualResponse = + client.updateEnhancedMeasurementSettings(enhancedMeasurementSettings, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -9047,15 +9141,29 @@ public void getChannelGroupTest() throws Exception { } @Test - public void getChannelGroupExceptionTest() throws Exception { + public void updateEnhancedMeasurementSettingsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - ChannelGroupName name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]"); - client.getChannelGroup(name); + EnhancedMeasurementSettings enhancedMeasurementSettings = + EnhancedMeasurementSettings.newBuilder() + .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setStreamEnabled(true) + .setScrollsEnabled(true) + .setOutboundClicksEnabled(true) + .setSiteSearchEnabled(true) + .setVideoEngagementEnabled(true) + .setFileDownloadsEnabled(true) + .setPageChangesEnabled(true) + .setFormInteractionsEnabled(true) + .setSearchQueryParameter("searchQueryParameter-2012788855") + .setUriQueryParameter("uriQueryParameter1580843085") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateEnhancedMeasurementSettings(enhancedMeasurementSettings, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9063,20 +9171,18 @@ public void getChannelGroupExceptionTest() throws Exception { } @Test - public void getChannelGroupTest2() throws Exception { - ChannelGroup expectedResponse = - ChannelGroup.newBuilder() - .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllGroupingRule(new ArrayList()) - .setSystemDefined(true) - .build(); + public void createConnectedSiteTagTest() throws Exception { + CreateConnectedSiteTagResponse expectedResponse = + CreateConnectedSiteTagResponse.newBuilder().build(); mockService.addResponse(expectedResponse); - String name = "properties/propertie-836/channelGroups/channelGroup-836"; + CreateConnectedSiteTagRequest request = + CreateConnectedSiteTagRequest.newBuilder() + .setProperty("property-993141291") + .setConnectedSiteTag(ConnectedSiteTag.newBuilder().build()) + .build(); - ChannelGroup actualResponse = client.getChannelGroup(name); + CreateConnectedSiteTagResponse actualResponse = client.createConnectedSiteTag(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -9095,15 +9201,19 @@ public void getChannelGroupTest2() throws Exception { } @Test - public void getChannelGroupExceptionTest2() throws Exception { + public void createConnectedSiteTagExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-836/channelGroups/channelGroup-836"; - client.getChannelGroup(name); + CreateConnectedSiteTagRequest request = + CreateConnectedSiteTagRequest.newBuilder() + .setProperty("property-993141291") + .setConnectedSiteTag(ConnectedSiteTag.newBuilder().build()) + .build(); + client.createConnectedSiteTag(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9111,23 +9221,17 @@ public void getChannelGroupExceptionTest2() throws Exception { } @Test - public void listChannelGroupsTest() throws Exception { - ChannelGroup responsesElement = ChannelGroup.newBuilder().build(); - ListChannelGroupsResponse expectedResponse = - ListChannelGroupsResponse.newBuilder() - .setNextPageToken("") - .addAllChannelGroups(Arrays.asList(responsesElement)) - .build(); + public void deleteConnectedSiteTagTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListChannelGroupsPagedResponse pagedListResponse = client.listChannelGroups(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + DeleteConnectedSiteTagRequest request = + DeleteConnectedSiteTagRequest.newBuilder() + .setProperty("property-993141291") + .setTagId("tagId110119509") + .build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getChannelGroupsList().get(0), resources.get(0)); + client.deleteConnectedSiteTag(request); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -9145,15 +9249,19 @@ public void listChannelGroupsTest() throws Exception { } @Test - public void listChannelGroupsExceptionTest() throws Exception { + public void deleteConnectedSiteTagExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listChannelGroups(parent); + DeleteConnectedSiteTagRequest request = + DeleteConnectedSiteTagRequest.newBuilder() + .setProperty("property-993141291") + .setTagId("tagId110119509") + .build(); + client.deleteConnectedSiteTag(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9161,23 +9269,18 @@ public void listChannelGroupsExceptionTest() throws Exception { } @Test - public void listChannelGroupsTest2() throws Exception { - ChannelGroup responsesElement = ChannelGroup.newBuilder().build(); - ListChannelGroupsResponse expectedResponse = - ListChannelGroupsResponse.newBuilder() - .setNextPageToken("") - .addAllChannelGroups(Arrays.asList(responsesElement)) + public void listConnectedSiteTagsTest() throws Exception { + ListConnectedSiteTagsResponse expectedResponse = + ListConnectedSiteTagsResponse.newBuilder() + .addAllConnectedSiteTags(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-2024"; - - ListChannelGroupsPagedResponse pagedListResponse = client.listChannelGroups(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + ListConnectedSiteTagsRequest request = + ListConnectedSiteTagsRequest.newBuilder().setProperty("property-993141291").build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getChannelGroupsList().get(0), resources.get(0)); + ListConnectedSiteTagsResponse actualResponse = client.listConnectedSiteTags(request); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -9195,15 +9298,16 @@ public void listChannelGroupsTest2() throws Exception { } @Test - public void listChannelGroupsExceptionTest2() throws Exception { + public void listConnectedSiteTagsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - client.listChannelGroups(parent); + ListConnectedSiteTagsRequest request = + ListConnectedSiteTagsRequest.newBuilder().setProperty("property-993141291").build(); + client.listConnectedSiteTags(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9211,21 +9315,19 @@ public void listChannelGroupsExceptionTest2() throws Exception { } @Test - public void createChannelGroupTest() throws Exception { - ChannelGroup expectedResponse = - ChannelGroup.newBuilder() - .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllGroupingRule(new ArrayList()) - .setSystemDefined(true) + public void fetchConnectedGa4PropertyTest() throws Exception { + FetchConnectedGa4PropertyResponse expectedResponse = + FetchConnectedGa4PropertyResponse.newBuilder() + .setProperty(PropertyName.of("[PROPERTY]").toString()) .build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); + FetchConnectedGa4PropertyRequest request = + FetchConnectedGa4PropertyRequest.newBuilder() + .setProperty(PropertyName.of("[PROPERTY]").toString()) + .build(); - ChannelGroup actualResponse = client.createChannelGroup(parent, channelGroup); + FetchConnectedGa4PropertyResponse actualResponse = client.fetchConnectedGa4Property(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -9244,16 +9346,18 @@ public void createChannelGroupTest() throws Exception { } @Test - public void createChannelGroupExceptionTest() throws Exception { + public void fetchConnectedGa4PropertyExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); - client.createChannelGroup(parent, channelGroup); + FetchConnectedGa4PropertyRequest request = + FetchConnectedGa4PropertyRequest.newBuilder() + .setProperty(PropertyName.of("[PROPERTY]").toString()) + .build(); + client.fetchConnectedGa4Property(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9261,21 +9365,17 @@ public void createChannelGroupExceptionTest() throws Exception { } @Test - public void createChannelGroupTest2() throws Exception { - ChannelGroup expectedResponse = - ChannelGroup.newBuilder() - .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllGroupingRule(new ArrayList()) - .setSystemDefined(true) + public void getAdSenseLinkTest() throws Exception { + AdSenseLink expectedResponse = + AdSenseLink.newBuilder() + .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) + .setAdClientCode("adClientCode-869953317") .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-2024"; - ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); + AdSenseLinkName name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]"); - ChannelGroup actualResponse = client.createChannelGroup(parent, channelGroup); + AdSenseLink actualResponse = client.getAdSenseLink(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -9294,16 +9394,15 @@ public void createChannelGroupTest2() throws Exception { } @Test - public void createChannelGroupExceptionTest2() throws Exception { + public void getAdSenseLinkExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); - client.createChannelGroup(parent, channelGroup); + AdSenseLinkName name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]"); + client.getAdSenseLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9311,28 +9410,17 @@ public void createChannelGroupExceptionTest2() throws Exception { } @Test - public void updateChannelGroupTest() throws Exception { - ChannelGroup expectedResponse = - ChannelGroup.newBuilder() - .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllGroupingRule(new ArrayList()) - .setSystemDefined(true) + public void getAdSenseLinkTest2() throws Exception { + AdSenseLink expectedResponse = + AdSenseLink.newBuilder() + .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) + .setAdClientCode("adClientCode-869953317") .build(); mockService.addResponse(expectedResponse); - ChannelGroup channelGroup = - ChannelGroup.newBuilder() - .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllGroupingRule(new ArrayList()) - .setSystemDefined(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + String name = "properties/propertie-9633/adSenseLinks/adSenseLink-9633"; - ChannelGroup actualResponse = client.updateChannelGroup(channelGroup, updateMask); + AdSenseLink actualResponse = client.getAdSenseLink(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -9351,23 +9439,15 @@ public void updateChannelGroupTest() throws Exception { } @Test - public void updateChannelGroupExceptionTest() throws Exception { + public void getAdSenseLinkExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - ChannelGroup channelGroup = - ChannelGroup.newBuilder() - .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllGroupingRule(new ArrayList()) - .setSystemDefined(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateChannelGroup(channelGroup, updateMask); + String name = "properties/propertie-9633/adSenseLinks/adSenseLink-9633"; + client.getAdSenseLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9375,13 +9455,19 @@ public void updateChannelGroupExceptionTest() throws Exception { } @Test - public void deleteChannelGroupTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void createAdSenseLinkTest() throws Exception { + AdSenseLink expectedResponse = + AdSenseLink.newBuilder() + .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) + .setAdClientCode("adClientCode-869953317") + .build(); mockService.addResponse(expectedResponse); - ChannelGroupName name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]"); + PropertyName parent = PropertyName.of("[PROPERTY]"); + AdSenseLink adsenseLink = AdSenseLink.newBuilder().build(); - client.deleteChannelGroup(name); + AdSenseLink actualResponse = client.createAdSenseLink(parent, adsenseLink); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -9399,15 +9485,16 @@ public void deleteChannelGroupTest() throws Exception { } @Test - public void deleteChannelGroupExceptionTest() throws Exception { + public void createAdSenseLinkExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - ChannelGroupName name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]"); - client.deleteChannelGroup(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + AdSenseLink adsenseLink = AdSenseLink.newBuilder().build(); + client.createAdSenseLink(parent, adsenseLink); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9415,13 +9502,19 @@ public void deleteChannelGroupExceptionTest() throws Exception { } @Test - public void deleteChannelGroupTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void createAdSenseLinkTest2() throws Exception { + AdSenseLink expectedResponse = + AdSenseLink.newBuilder() + .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) + .setAdClientCode("adClientCode-869953317") + .build(); mockService.addResponse(expectedResponse); - String name = "properties/propertie-836/channelGroups/channelGroup-836"; + String parent = "properties/propertie-2024"; + AdSenseLink adsenseLink = AdSenseLink.newBuilder().build(); - client.deleteChannelGroup(name); + AdSenseLink actualResponse = client.createAdSenseLink(parent, adsenseLink); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -9439,15 +9532,16 @@ public void deleteChannelGroupTest2() throws Exception { } @Test - public void deleteChannelGroupExceptionTest2() throws Exception { + public void createAdSenseLinkExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-836/channelGroups/channelGroup-836"; - client.deleteChannelGroup(name); + String parent = "properties/propertie-2024"; + AdSenseLink adsenseLink = AdSenseLink.newBuilder().build(); + client.createAdSenseLink(parent, adsenseLink); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9455,20 +9549,13 @@ public void deleteChannelGroupExceptionTest2() throws Exception { } @Test - public void setAutomatedGa4ConfigurationOptOutTest() throws Exception { - SetAutomatedGa4ConfigurationOptOutResponse expectedResponse = - SetAutomatedGa4ConfigurationOptOutResponse.newBuilder().build(); + public void deleteAdSenseLinkTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - SetAutomatedGa4ConfigurationOptOutRequest request = - SetAutomatedGa4ConfigurationOptOutRequest.newBuilder() - .setProperty("property-993141291") - .setOptOut(true) - .build(); + AdSenseLinkName name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]"); - SetAutomatedGa4ConfigurationOptOutResponse actualResponse = - client.setAutomatedGa4ConfigurationOptOut(request); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteAdSenseLink(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -9486,19 +9573,15 @@ public void setAutomatedGa4ConfigurationOptOutTest() throws Exception { } @Test - public void setAutomatedGa4ConfigurationOptOutExceptionTest() throws Exception { + public void deleteAdSenseLinkExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - SetAutomatedGa4ConfigurationOptOutRequest request = - SetAutomatedGa4ConfigurationOptOutRequest.newBuilder() - .setProperty("property-993141291") - .setOptOut(true) - .build(); - client.setAutomatedGa4ConfigurationOptOut(request); + AdSenseLinkName name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]"); + client.deleteAdSenseLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9506,19 +9589,13 @@ public void setAutomatedGa4ConfigurationOptOutExceptionTest() throws Exception { } @Test - public void fetchAutomatedGa4ConfigurationOptOutTest() throws Exception { - FetchAutomatedGa4ConfigurationOptOutResponse expectedResponse = - FetchAutomatedGa4ConfigurationOptOutResponse.newBuilder().setOptOut(true).build(); + public void deleteAdSenseLinkTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - FetchAutomatedGa4ConfigurationOptOutRequest request = - FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder() - .setProperty("property-993141291") - .build(); + String name = "properties/propertie-9633/adSenseLinks/adSenseLink-9633"; - FetchAutomatedGa4ConfigurationOptOutResponse actualResponse = - client.fetchAutomatedGa4ConfigurationOptOut(request); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteAdSenseLink(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -9536,18 +9613,15 @@ public void fetchAutomatedGa4ConfigurationOptOutTest() throws Exception { } @Test - public void fetchAutomatedGa4ConfigurationOptOutExceptionTest() throws Exception { + public void deleteAdSenseLinkExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - FetchAutomatedGa4ConfigurationOptOutRequest request = - FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder() - .setProperty("property-993141291") - .build(); - client.fetchAutomatedGa4ConfigurationOptOut(request); + String name = "properties/propertie-9633/adSenseLinks/adSenseLink-9633"; + client.deleteAdSenseLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9555,25 +9629,23 @@ public void fetchAutomatedGa4ConfigurationOptOutExceptionTest() throws Exception } @Test - public void getBigQueryLinkTest() throws Exception { - BigQueryLink expectedResponse = - BigQueryLink.newBuilder() - .setName(BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString()) - .setProject("project-309310695") - .setCreateTime(Timestamp.newBuilder().build()) - .setDailyExportEnabled(true) - .setStreamingExportEnabled(true) - .setFreshDailyExportEnabled(true) - .setIncludeAdvertisingId(true) - .addAllExportStreams(new ArrayList()) - .addAllExcludedEvents(new ArrayList()) + public void listAdSenseLinksTest() throws Exception { + AdSenseLink responsesElement = AdSenseLink.newBuilder().build(); + ListAdSenseLinksResponse expectedResponse = + ListAdSenseLinksResponse.newBuilder() + .setNextPageToken("") + .addAllAdsenseLinks(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - BigQueryLinkName name = BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]"); + PropertyName parent = PropertyName.of("[PROPERTY]"); - BigQueryLink actualResponse = client.getBigQueryLink(name); - Assert.assertEquals(expectedResponse, actualResponse); + ListAdSenseLinksPagedResponse pagedListResponse = client.listAdSenseLinks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAdsenseLinksList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -9591,15 +9663,15 @@ public void getBigQueryLinkTest() throws Exception { } @Test - public void getBigQueryLinkExceptionTest() throws Exception { + public void listAdSenseLinksExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - BigQueryLinkName name = BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]"); - client.getBigQueryLink(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listAdSenseLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9607,25 +9679,23 @@ public void getBigQueryLinkExceptionTest() throws Exception { } @Test - public void getBigQueryLinkTest2() throws Exception { - BigQueryLink expectedResponse = - BigQueryLink.newBuilder() - .setName(BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString()) - .setProject("project-309310695") - .setCreateTime(Timestamp.newBuilder().build()) - .setDailyExportEnabled(true) - .setStreamingExportEnabled(true) - .setFreshDailyExportEnabled(true) - .setIncludeAdvertisingId(true) - .addAllExportStreams(new ArrayList()) - .addAllExcludedEvents(new ArrayList()) + public void listAdSenseLinksTest2() throws Exception { + AdSenseLink responsesElement = AdSenseLink.newBuilder().build(); + ListAdSenseLinksResponse expectedResponse = + ListAdSenseLinksResponse.newBuilder() + .setNextPageToken("") + .addAllAdsenseLinks(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - String name = "properties/propertie-7430/bigQueryLinks/bigQueryLink-7430"; + String parent = "properties/propertie-2024"; - BigQueryLink actualResponse = client.getBigQueryLink(name); - Assert.assertEquals(expectedResponse, actualResponse); + ListAdSenseLinksPagedResponse pagedListResponse = client.listAdSenseLinks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAdsenseLinksList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -9643,15 +9713,15 @@ public void getBigQueryLinkTest2() throws Exception { } @Test - public void getBigQueryLinkExceptionTest2() throws Exception { + public void listAdSenseLinksExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-7430/bigQueryLinks/bigQueryLink-7430"; - client.getBigQueryLink(name); + String parent = "properties/propertie-2024"; + client.listAdSenseLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9659,23 +9729,24 @@ public void getBigQueryLinkExceptionTest2() throws Exception { } @Test - public void listBigQueryLinksTest() throws Exception { - BigQueryLink responsesElement = BigQueryLink.newBuilder().build(); - ListBigQueryLinksResponse expectedResponse = - ListBigQueryLinksResponse.newBuilder() - .setNextPageToken("") - .addAllBigqueryLinks(Arrays.asList(responsesElement)) + public void getEventCreateRuleTest() throws Exception { + EventCreateRule expectedResponse = + EventCreateRule.newBuilder() + .setName( + EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") + .toString()) + .setDestinationEvent("destinationEvent1181456172") + .addAllEventConditions(new ArrayList()) + .setSourceCopyParameters(true) + .addAllParameterMutations(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListBigQueryLinksPagedResponse pagedListResponse = client.listBigQueryLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + EventCreateRuleName name = + EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBigqueryLinksList().get(0), resources.get(0)); + EventCreateRule actualResponse = client.getEventCreateRule(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -9693,15 +9764,16 @@ public void listBigQueryLinksTest() throws Exception { } @Test - public void listBigQueryLinksExceptionTest() throws Exception { + public void getEventCreateRuleExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listBigQueryLinks(parent); + EventCreateRuleName name = + EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]"); + client.getEventCreateRule(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9709,23 +9781,24 @@ public void listBigQueryLinksExceptionTest() throws Exception { } @Test - public void listBigQueryLinksTest2() throws Exception { - BigQueryLink responsesElement = BigQueryLink.newBuilder().build(); - ListBigQueryLinksResponse expectedResponse = - ListBigQueryLinksResponse.newBuilder() - .setNextPageToken("") - .addAllBigqueryLinks(Arrays.asList(responsesElement)) + public void getEventCreateRuleTest2() throws Exception { + EventCreateRule expectedResponse = + EventCreateRule.newBuilder() + .setName( + EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") + .toString()) + .setDestinationEvent("destinationEvent1181456172") + .addAllEventConditions(new ArrayList()) + .setSourceCopyParameters(true) + .addAllParameterMutations(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-2024"; - - ListBigQueryLinksPagedResponse pagedListResponse = client.listBigQueryLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + String name = + "properties/propertie-8819/dataStreams/dataStream-8819/eventCreateRules/eventCreateRule-8819"; - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBigqueryLinksList().get(0), resources.get(0)); + EventCreateRule actualResponse = client.getEventCreateRule(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -9743,15 +9816,16 @@ public void listBigQueryLinksTest2() throws Exception { } @Test - public void listBigQueryLinksExceptionTest2() throws Exception { + public void getEventCreateRuleExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - client.listBigQueryLinks(parent); + String name = + "properties/propertie-8819/dataStreams/dataStream-8819/eventCreateRules/eventCreateRule-8819"; + client.getEventCreateRule(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9759,28 +9833,23 @@ public void listBigQueryLinksExceptionTest2() throws Exception { } @Test - public void getEnhancedMeasurementSettingsTest() throws Exception { - EnhancedMeasurementSettings expectedResponse = - EnhancedMeasurementSettings.newBuilder() - .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setStreamEnabled(true) - .setScrollsEnabled(true) - .setOutboundClicksEnabled(true) - .setSiteSearchEnabled(true) - .setVideoEngagementEnabled(true) - .setFileDownloadsEnabled(true) - .setPageChangesEnabled(true) - .setFormInteractionsEnabled(true) - .setSearchQueryParameter("searchQueryParameter-2012788855") - .setUriQueryParameter("uriQueryParameter1580843085") + public void listEventCreateRulesTest() throws Exception { + EventCreateRule responsesElement = EventCreateRule.newBuilder().build(); + ListEventCreateRulesResponse expectedResponse = + ListEventCreateRulesResponse.newBuilder() + .setNextPageToken("") + .addAllEventCreateRules(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - EnhancedMeasurementSettingsName name = - EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]"); + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - EnhancedMeasurementSettings actualResponse = client.getEnhancedMeasurementSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); + ListEventCreateRulesPagedResponse pagedListResponse = client.listEventCreateRules(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEventCreateRulesList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -9798,16 +9867,15 @@ public void getEnhancedMeasurementSettingsTest() throws Exception { } @Test - public void getEnhancedMeasurementSettingsExceptionTest() throws Exception { + public void listEventCreateRulesExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); - - try { - EnhancedMeasurementSettingsName name = - EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]"); - client.getEnhancedMeasurementSettings(name); + + try { + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + client.listEventCreateRules(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9815,28 +9883,23 @@ public void getEnhancedMeasurementSettingsExceptionTest() throws Exception { } @Test - public void getEnhancedMeasurementSettingsTest2() throws Exception { - EnhancedMeasurementSettings expectedResponse = - EnhancedMeasurementSettings.newBuilder() - .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setStreamEnabled(true) - .setScrollsEnabled(true) - .setOutboundClicksEnabled(true) - .setSiteSearchEnabled(true) - .setVideoEngagementEnabled(true) - .setFileDownloadsEnabled(true) - .setPageChangesEnabled(true) - .setFormInteractionsEnabled(true) - .setSearchQueryParameter("searchQueryParameter-2012788855") - .setUriQueryParameter("uriQueryParameter1580843085") + public void listEventCreateRulesTest2() throws Exception { + EventCreateRule responsesElement = EventCreateRule.newBuilder().build(); + ListEventCreateRulesResponse expectedResponse = + ListEventCreateRulesResponse.newBuilder() + .setNextPageToken("") + .addAllEventCreateRules(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); - String name = - "properties/propertie-5816/dataStreams/dataStream-5816/enhancedMeasurementSettings"; + String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; - EnhancedMeasurementSettings actualResponse = client.getEnhancedMeasurementSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); + ListEventCreateRulesPagedResponse pagedListResponse = client.listEventCreateRules(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEventCreateRulesList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -9854,16 +9917,15 @@ public void getEnhancedMeasurementSettingsTest2() throws Exception { } @Test - public void getEnhancedMeasurementSettingsExceptionTest2() throws Exception { + public void listEventCreateRulesExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = - "properties/propertie-5816/dataStreams/dataStream-5816/enhancedMeasurementSettings"; - client.getEnhancedMeasurementSettings(name); + String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; + client.listEventCreateRules(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9871,41 +9933,23 @@ public void getEnhancedMeasurementSettingsExceptionTest2() throws Exception { } @Test - public void updateEnhancedMeasurementSettingsTest() throws Exception { - EnhancedMeasurementSettings expectedResponse = - EnhancedMeasurementSettings.newBuilder() - .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setStreamEnabled(true) - .setScrollsEnabled(true) - .setOutboundClicksEnabled(true) - .setSiteSearchEnabled(true) - .setVideoEngagementEnabled(true) - .setFileDownloadsEnabled(true) - .setPageChangesEnabled(true) - .setFormInteractionsEnabled(true) - .setSearchQueryParameter("searchQueryParameter-2012788855") - .setUriQueryParameter("uriQueryParameter1580843085") + public void createEventCreateRuleTest() throws Exception { + EventCreateRule expectedResponse = + EventCreateRule.newBuilder() + .setName( + EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") + .toString()) + .setDestinationEvent("destinationEvent1181456172") + .addAllEventConditions(new ArrayList()) + .setSourceCopyParameters(true) + .addAllParameterMutations(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - EnhancedMeasurementSettings enhancedMeasurementSettings = - EnhancedMeasurementSettings.newBuilder() - .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setStreamEnabled(true) - .setScrollsEnabled(true) - .setOutboundClicksEnabled(true) - .setSiteSearchEnabled(true) - .setVideoEngagementEnabled(true) - .setFileDownloadsEnabled(true) - .setPageChangesEnabled(true) - .setFormInteractionsEnabled(true) - .setSearchQueryParameter("searchQueryParameter-2012788855") - .setUriQueryParameter("uriQueryParameter1580843085") - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); - EnhancedMeasurementSettings actualResponse = - client.updateEnhancedMeasurementSettings(enhancedMeasurementSettings, updateMask); + EventCreateRule actualResponse = client.createEventCreateRule(parent, eventCreateRule); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -9924,29 +9968,16 @@ public void updateEnhancedMeasurementSettingsTest() throws Exception { } @Test - public void updateEnhancedMeasurementSettingsExceptionTest() throws Exception { + public void createEventCreateRuleExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - EnhancedMeasurementSettings enhancedMeasurementSettings = - EnhancedMeasurementSettings.newBuilder() - .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setStreamEnabled(true) - .setScrollsEnabled(true) - .setOutboundClicksEnabled(true) - .setSiteSearchEnabled(true) - .setVideoEngagementEnabled(true) - .setFileDownloadsEnabled(true) - .setPageChangesEnabled(true) - .setFormInteractionsEnabled(true) - .setSearchQueryParameter("searchQueryParameter-2012788855") - .setUriQueryParameter("uriQueryParameter1580843085") - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateEnhancedMeasurementSettings(enhancedMeasurementSettings, updateMask); + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); + client.createEventCreateRule(parent, eventCreateRule); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9954,18 +9985,23 @@ public void updateEnhancedMeasurementSettingsExceptionTest() throws Exception { } @Test - public void createConnectedSiteTagTest() throws Exception { - CreateConnectedSiteTagResponse expectedResponse = - CreateConnectedSiteTagResponse.newBuilder().build(); + public void createEventCreateRuleTest2() throws Exception { + EventCreateRule expectedResponse = + EventCreateRule.newBuilder() + .setName( + EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") + .toString()) + .setDestinationEvent("destinationEvent1181456172") + .addAllEventConditions(new ArrayList()) + .setSourceCopyParameters(true) + .addAllParameterMutations(new ArrayList()) + .build(); mockService.addResponse(expectedResponse); - CreateConnectedSiteTagRequest request = - CreateConnectedSiteTagRequest.newBuilder() - .setProperty("property-993141291") - .setConnectedSiteTag(ConnectedSiteTag.newBuilder().build()) - .build(); + String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; + EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); - CreateConnectedSiteTagResponse actualResponse = client.createConnectedSiteTag(request); + EventCreateRule actualResponse = client.createEventCreateRule(parent, eventCreateRule); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -9984,19 +10020,16 @@ public void createConnectedSiteTagTest() throws Exception { } @Test - public void createConnectedSiteTagExceptionTest() throws Exception { + public void createEventCreateRuleExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - CreateConnectedSiteTagRequest request = - CreateConnectedSiteTagRequest.newBuilder() - .setProperty("property-993141291") - .setConnectedSiteTag(ConnectedSiteTag.newBuilder().build()) - .build(); - client.createConnectedSiteTag(request); + String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; + EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); + client.createEventCreateRule(parent, eventCreateRule); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -10004,17 +10037,33 @@ public void createConnectedSiteTagExceptionTest() throws Exception { } @Test - public void deleteConnectedSiteTagTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void updateEventCreateRuleTest() throws Exception { + EventCreateRule expectedResponse = + EventCreateRule.newBuilder() + .setName( + EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") + .toString()) + .setDestinationEvent("destinationEvent1181456172") + .addAllEventConditions(new ArrayList()) + .setSourceCopyParameters(true) + .addAllParameterMutations(new ArrayList()) + .build(); mockService.addResponse(expectedResponse); - DeleteConnectedSiteTagRequest request = - DeleteConnectedSiteTagRequest.newBuilder() - .setProperty("property-993141291") - .setTagId("tagId110119509") + EventCreateRule eventCreateRule = + EventCreateRule.newBuilder() + .setName( + EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") + .toString()) + .setDestinationEvent("destinationEvent1181456172") + .addAllEventConditions(new ArrayList()) + .setSourceCopyParameters(true) + .addAllParameterMutations(new ArrayList()) .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - client.deleteConnectedSiteTag(request); + EventCreateRule actualResponse = client.updateEventCreateRule(eventCreateRule, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -10032,19 +10081,25 @@ public void deleteConnectedSiteTagTest() throws Exception { } @Test - public void deleteConnectedSiteTagExceptionTest() throws Exception { + public void updateEventCreateRuleExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - DeleteConnectedSiteTagRequest request = - DeleteConnectedSiteTagRequest.newBuilder() - .setProperty("property-993141291") - .setTagId("tagId110119509") + EventCreateRule eventCreateRule = + EventCreateRule.newBuilder() + .setName( + EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") + .toString()) + .setDestinationEvent("destinationEvent1181456172") + .addAllEventConditions(new ArrayList()) + .setSourceCopyParameters(true) + .addAllParameterMutations(new ArrayList()) .build(); - client.deleteConnectedSiteTag(request); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateEventCreateRule(eventCreateRule, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -10052,18 +10107,14 @@ public void deleteConnectedSiteTagExceptionTest() throws Exception { } @Test - public void listConnectedSiteTagsTest() throws Exception { - ListConnectedSiteTagsResponse expectedResponse = - ListConnectedSiteTagsResponse.newBuilder() - .addAllConnectedSiteTags(new ArrayList()) - .build(); + public void deleteEventCreateRuleTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - ListConnectedSiteTagsRequest request = - ListConnectedSiteTagsRequest.newBuilder().setProperty("property-993141291").build(); + EventCreateRuleName name = + EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]"); - ListConnectedSiteTagsResponse actualResponse = client.listConnectedSiteTags(request); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteEventCreateRule(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -10081,16 +10132,16 @@ public void listConnectedSiteTagsTest() throws Exception { } @Test - public void listConnectedSiteTagsExceptionTest() throws Exception { + public void deleteEventCreateRuleExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - ListConnectedSiteTagsRequest request = - ListConnectedSiteTagsRequest.newBuilder().setProperty("property-993141291").build(); - client.listConnectedSiteTags(request); + EventCreateRuleName name = + EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]"); + client.deleteEventCreateRule(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -10098,20 +10149,14 @@ public void listConnectedSiteTagsExceptionTest() throws Exception { } @Test - public void fetchConnectedGa4PropertyTest() throws Exception { - FetchConnectedGa4PropertyResponse expectedResponse = - FetchConnectedGa4PropertyResponse.newBuilder() - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .build(); + public void deleteEventCreateRuleTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - FetchConnectedGa4PropertyRequest request = - FetchConnectedGa4PropertyRequest.newBuilder() - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .build(); + String name = + "properties/propertie-8819/dataStreams/dataStream-8819/eventCreateRules/eventCreateRule-8819"; - FetchConnectedGa4PropertyResponse actualResponse = client.fetchConnectedGa4Property(request); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteEventCreateRule(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -10129,18 +10174,16 @@ public void fetchConnectedGa4PropertyTest() throws Exception { } @Test - public void fetchConnectedGa4PropertyExceptionTest() throws Exception { + public void deleteEventCreateRuleExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - FetchConnectedGa4PropertyRequest request = - FetchConnectedGa4PropertyRequest.newBuilder() - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .build(); - client.fetchConnectedGa4Property(request); + String name = + "properties/propertie-8819/dataStreams/dataStream-8819/eventCreateRules/eventCreateRule-8819"; + client.deleteEventCreateRule(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -10148,17 +10191,27 @@ public void fetchConnectedGa4PropertyExceptionTest() throws Exception { } @Test - public void getAdSenseLinkTest() throws Exception { - AdSenseLink expectedResponse = - AdSenseLink.newBuilder() - .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) - .setAdClientCode("adClientCode-869953317") + public void updateDataRedactionSettingsTest() throws Exception { + DataRedactionSettings expectedResponse = + DataRedactionSettings.newBuilder() + .setName(DataRedactionSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setEmailRedactionEnabled(true) + .setQueryParameterRedactionEnabled(true) + .addAllQueryParameterKeys(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - AdSenseLinkName name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]"); + DataRedactionSettings dataRedactionSettings = + DataRedactionSettings.newBuilder() + .setName(DataRedactionSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setEmailRedactionEnabled(true) + .setQueryParameterRedactionEnabled(true) + .addAllQueryParameterKeys(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - AdSenseLink actualResponse = client.getAdSenseLink(name); + DataRedactionSettings actualResponse = + client.updateDataRedactionSettings(dataRedactionSettings, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -10177,15 +10230,22 @@ public void getAdSenseLinkTest() throws Exception { } @Test - public void getAdSenseLinkExceptionTest() throws Exception { + public void updateDataRedactionSettingsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - AdSenseLinkName name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]"); - client.getAdSenseLink(name); + DataRedactionSettings dataRedactionSettings = + DataRedactionSettings.newBuilder() + .setName(DataRedactionSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setEmailRedactionEnabled(true) + .setQueryParameterRedactionEnabled(true) + .addAllQueryParameterKeys(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDataRedactionSettings(dataRedactionSettings, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -10193,17 +10253,19 @@ public void getAdSenseLinkExceptionTest() throws Exception { } @Test - public void getAdSenseLinkTest2() throws Exception { - AdSenseLink expectedResponse = - AdSenseLink.newBuilder() - .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) - .setAdClientCode("adClientCode-869953317") + public void getDataRedactionSettingsTest() throws Exception { + DataRedactionSettings expectedResponse = + DataRedactionSettings.newBuilder() + .setName(DataRedactionSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setEmailRedactionEnabled(true) + .setQueryParameterRedactionEnabled(true) + .addAllQueryParameterKeys(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - String name = "properties/propertie-9633/adSenseLinks/adSenseLink-9633"; + DataRedactionSettingsName name = DataRedactionSettingsName.of("[PROPERTY]", "[DATA_STREAM]"); - AdSenseLink actualResponse = client.getAdSenseLink(name); + DataRedactionSettings actualResponse = client.getDataRedactionSettings(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -10222,15 +10284,15 @@ public void getAdSenseLinkTest2() throws Exception { } @Test - public void getAdSenseLinkExceptionTest2() throws Exception { + public void getDataRedactionSettingsExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-9633/adSenseLinks/adSenseLink-9633"; - client.getAdSenseLink(name); + DataRedactionSettingsName name = DataRedactionSettingsName.of("[PROPERTY]", "[DATA_STREAM]"); + client.getDataRedactionSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -10238,18 +10300,19 @@ public void getAdSenseLinkExceptionTest2() throws Exception { } @Test - public void createAdSenseLinkTest() throws Exception { - AdSenseLink expectedResponse = - AdSenseLink.newBuilder() - .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) - .setAdClientCode("adClientCode-869953317") + public void getDataRedactionSettingsTest2() throws Exception { + DataRedactionSettings expectedResponse = + DataRedactionSettings.newBuilder() + .setName(DataRedactionSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setEmailRedactionEnabled(true) + .setQueryParameterRedactionEnabled(true) + .addAllQueryParameterKeys(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - AdSenseLink adsenseLink = AdSenseLink.newBuilder().build(); + String name = "properties/propertie-6817/dataStreams/dataStream-6817/dataRedactionSettings"; - AdSenseLink actualResponse = client.createAdSenseLink(parent, adsenseLink); + DataRedactionSettings actualResponse = client.getDataRedactionSettings(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -10268,16 +10331,15 @@ public void createAdSenseLinkTest() throws Exception { } @Test - public void createAdSenseLinkExceptionTest() throws Exception { + public void getDataRedactionSettingsExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - AdSenseLink adsenseLink = AdSenseLink.newBuilder().build(); - client.createAdSenseLink(parent, adsenseLink); + String name = "properties/propertie-6817/dataStreams/dataStream-6817/dataRedactionSettings"; + client.getDataRedactionSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -10285,18 +10347,21 @@ public void createAdSenseLinkExceptionTest() throws Exception { } @Test - public void createAdSenseLinkTest2() throws Exception { - AdSenseLink expectedResponse = - AdSenseLink.newBuilder() - .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) - .setAdClientCode("adClientCode-869953317") + public void createRollupPropertyTest() throws Exception { + CreateRollupPropertyResponse expectedResponse = + CreateRollupPropertyResponse.newBuilder() + .setRollupProperty(Property.newBuilder().build()) + .addAllRollupPropertySourceLinks(new ArrayList()) .build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-2024"; - AdSenseLink adsenseLink = AdSenseLink.newBuilder().build(); + CreateRollupPropertyRequest request = + CreateRollupPropertyRequest.newBuilder() + .setRollupProperty(Property.newBuilder().build()) + .addAllSourceProperties(new ArrayList()) + .build(); - AdSenseLink actualResponse = client.createAdSenseLink(parent, adsenseLink); + CreateRollupPropertyResponse actualResponse = client.createRollupProperty(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -10315,16 +10380,19 @@ public void createAdSenseLinkTest2() throws Exception { } @Test - public void createAdSenseLinkExceptionTest2() throws Exception { + public void createRollupPropertyExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - AdSenseLink adsenseLink = AdSenseLink.newBuilder().build(); - client.createAdSenseLink(parent, adsenseLink); + CreateRollupPropertyRequest request = + CreateRollupPropertyRequest.newBuilder() + .setRollupProperty(Property.newBuilder().build()) + .addAllSourceProperties(new ArrayList()) + .build(); + client.createRollupProperty(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -10332,13 +10400,21 @@ public void createAdSenseLinkExceptionTest2() throws Exception { } @Test - public void deleteAdSenseLinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getRollupPropertySourceLinkTest() throws Exception { + RollupPropertySourceLink expectedResponse = + RollupPropertySourceLink.newBuilder() + .setName( + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]") + .toString()) + .setSourceProperty("sourceProperty1938317072") + .build(); mockService.addResponse(expectedResponse); - AdSenseLinkName name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]"); + RollupPropertySourceLinkName name = + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]"); - client.deleteAdSenseLink(name); + RollupPropertySourceLink actualResponse = client.getRollupPropertySourceLink(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -10356,15 +10432,16 @@ public void deleteAdSenseLinkTest() throws Exception { } @Test - public void deleteAdSenseLinkExceptionTest() throws Exception { + public void getRollupPropertySourceLinkExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - AdSenseLinkName name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]"); - client.deleteAdSenseLink(name); + RollupPropertySourceLinkName name = + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]"); + client.getRollupPropertySourceLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -10372,13 +10449,21 @@ public void deleteAdSenseLinkExceptionTest() throws Exception { } @Test - public void deleteAdSenseLinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getRollupPropertySourceLinkTest2() throws Exception { + RollupPropertySourceLink expectedResponse = + RollupPropertySourceLink.newBuilder() + .setName( + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]") + .toString()) + .setSourceProperty("sourceProperty1938317072") + .build(); mockService.addResponse(expectedResponse); - String name = "properties/propertie-9633/adSenseLinks/adSenseLink-9633"; + String name = + "properties/propertie-3766/rollupPropertySourceLinks/rollupPropertySourceLink-3766"; - client.deleteAdSenseLink(name); + RollupPropertySourceLink actualResponse = client.getRollupPropertySourceLink(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -10396,15 +10481,16 @@ public void deleteAdSenseLinkTest2() throws Exception { } @Test - public void deleteAdSenseLinkExceptionTest2() throws Exception { + public void getRollupPropertySourceLinkExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "properties/propertie-9633/adSenseLinks/adSenseLink-9633"; - client.deleteAdSenseLink(name); + String name = + "properties/propertie-3766/rollupPropertySourceLinks/rollupPropertySourceLink-3766"; + client.getRollupPropertySourceLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -10412,23 +10498,25 @@ public void deleteAdSenseLinkExceptionTest2() throws Exception { } @Test - public void listAdSenseLinksTest() throws Exception { - AdSenseLink responsesElement = AdSenseLink.newBuilder().build(); - ListAdSenseLinksResponse expectedResponse = - ListAdSenseLinksResponse.newBuilder() + public void listRollupPropertySourceLinksTest() throws Exception { + RollupPropertySourceLink responsesElement = RollupPropertySourceLink.newBuilder().build(); + ListRollupPropertySourceLinksResponse expectedResponse = + ListRollupPropertySourceLinksResponse.newBuilder() .setNextPageToken("") - .addAllAdsenseLinks(Arrays.asList(responsesElement)) + .addAllRollupPropertySourceLinks(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); PropertyName parent = PropertyName.of("[PROPERTY]"); - ListAdSenseLinksPagedResponse pagedListResponse = client.listAdSenseLinks(parent); + ListRollupPropertySourceLinksPagedResponse pagedListResponse = + client.listRollupPropertySourceLinks(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAdsenseLinksList().get(0), resources.get(0)); + Assert.assertEquals( + expectedResponse.getRollupPropertySourceLinksList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -10446,7 +10534,7 @@ public void listAdSenseLinksTest() throws Exception { } @Test - public void listAdSenseLinksExceptionTest() throws Exception { + public void listRollupPropertySourceLinksExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -10454,7 +10542,7 @@ public void listAdSenseLinksExceptionTest() throws Exception { try { PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listAdSenseLinks(parent); + client.listRollupPropertySourceLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -10462,23 +10550,25 @@ public void listAdSenseLinksExceptionTest() throws Exception { } @Test - public void listAdSenseLinksTest2() throws Exception { - AdSenseLink responsesElement = AdSenseLink.newBuilder().build(); - ListAdSenseLinksResponse expectedResponse = - ListAdSenseLinksResponse.newBuilder() + public void listRollupPropertySourceLinksTest2() throws Exception { + RollupPropertySourceLink responsesElement = RollupPropertySourceLink.newBuilder().build(); + ListRollupPropertySourceLinksResponse expectedResponse = + ListRollupPropertySourceLinksResponse.newBuilder() .setNextPageToken("") - .addAllAdsenseLinks(Arrays.asList(responsesElement)) + .addAllRollupPropertySourceLinks(Arrays.asList(responsesElement)) .build(); mockService.addResponse(expectedResponse); String parent = "properties/propertie-2024"; - ListAdSenseLinksPagedResponse pagedListResponse = client.listAdSenseLinks(parent); + ListRollupPropertySourceLinksPagedResponse pagedListResponse = + client.listRollupPropertySourceLinks(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAdsenseLinksList().get(0), resources.get(0)); + Assert.assertEquals( + expectedResponse.getRollupPropertySourceLinksList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -10496,7 +10586,7 @@ public void listAdSenseLinksTest2() throws Exception { } @Test - public void listAdSenseLinksExceptionTest2() throws Exception { + public void listRollupPropertySourceLinksExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -10504,7 +10594,7 @@ public void listAdSenseLinksExceptionTest2() throws Exception { try { String parent = "properties/propertie-2024"; - client.listAdSenseLinks(parent); + client.listRollupPropertySourceLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -10512,23 +10602,22 @@ public void listAdSenseLinksExceptionTest2() throws Exception { } @Test - public void getEventCreateRuleTest() throws Exception { - EventCreateRule expectedResponse = - EventCreateRule.newBuilder() + public void createRollupPropertySourceLinkTest() throws Exception { + RollupPropertySourceLink expectedResponse = + RollupPropertySourceLink.newBuilder() .setName( - EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]") .toString()) - .setDestinationEvent("destinationEvent1181456172") - .addAllEventConditions(new ArrayList()) - .setSourceCopyParameters(true) - .addAllParameterMutations(new ArrayList()) + .setSourceProperty("sourceProperty1938317072") .build(); mockService.addResponse(expectedResponse); - EventCreateRuleName name = - EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]"); + PropertyName parent = PropertyName.of("[PROPERTY]"); + RollupPropertySourceLink rollupPropertySourceLink = + RollupPropertySourceLink.newBuilder().build(); - EventCreateRule actualResponse = client.getEventCreateRule(name); + RollupPropertySourceLink actualResponse = + client.createRollupPropertySourceLink(parent, rollupPropertySourceLink); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -10547,16 +10636,17 @@ public void getEventCreateRuleTest() throws Exception { } @Test - public void getEventCreateRuleExceptionTest() throws Exception { + public void createRollupPropertySourceLinkExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - EventCreateRuleName name = - EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]"); - client.getEventCreateRule(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + RollupPropertySourceLink rollupPropertySourceLink = + RollupPropertySourceLink.newBuilder().build(); + client.createRollupPropertySourceLink(parent, rollupPropertySourceLink); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -10564,23 +10654,22 @@ public void getEventCreateRuleExceptionTest() throws Exception { } @Test - public void getEventCreateRuleTest2() throws Exception { - EventCreateRule expectedResponse = - EventCreateRule.newBuilder() + public void createRollupPropertySourceLinkTest2() throws Exception { + RollupPropertySourceLink expectedResponse = + RollupPropertySourceLink.newBuilder() .setName( - EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]") .toString()) - .setDestinationEvent("destinationEvent1181456172") - .addAllEventConditions(new ArrayList()) - .setSourceCopyParameters(true) - .addAllParameterMutations(new ArrayList()) + .setSourceProperty("sourceProperty1938317072") .build(); mockService.addResponse(expectedResponse); - String name = - "properties/propertie-8819/dataStreams/dataStream-8819/eventCreateRules/eventCreateRule-8819"; + String parent = "properties/propertie-2024"; + RollupPropertySourceLink rollupPropertySourceLink = + RollupPropertySourceLink.newBuilder().build(); - EventCreateRule actualResponse = client.getEventCreateRule(name); + RollupPropertySourceLink actualResponse = + client.createRollupPropertySourceLink(parent, rollupPropertySourceLink); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -10599,16 +10688,17 @@ public void getEventCreateRuleTest2() throws Exception { } @Test - public void getEventCreateRuleExceptionTest2() throws Exception { + public void createRollupPropertySourceLinkExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = - "properties/propertie-8819/dataStreams/dataStream-8819/eventCreateRules/eventCreateRule-8819"; - client.getEventCreateRule(name); + String parent = "properties/propertie-2024"; + RollupPropertySourceLink rollupPropertySourceLink = + RollupPropertySourceLink.newBuilder().build(); + client.createRollupPropertySourceLink(parent, rollupPropertySourceLink); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -10616,23 +10706,14 @@ public void getEventCreateRuleExceptionTest2() throws Exception { } @Test - public void listEventCreateRulesTest() throws Exception { - EventCreateRule responsesElement = EventCreateRule.newBuilder().build(); - ListEventCreateRulesResponse expectedResponse = - ListEventCreateRulesResponse.newBuilder() - .setNextPageToken("") - .addAllEventCreateRules(Arrays.asList(responsesElement)) - .build(); + public void deleteRollupPropertySourceLinkTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - - ListEventCreateRulesPagedResponse pagedListResponse = client.listEventCreateRules(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + RollupPropertySourceLinkName name = + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getEventCreateRulesList().get(0), resources.get(0)); + client.deleteRollupPropertySourceLink(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -10650,15 +10731,16 @@ public void listEventCreateRulesTest() throws Exception { } @Test - public void listEventCreateRulesExceptionTest() throws Exception { + public void deleteRollupPropertySourceLinkExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.listEventCreateRules(parent); + RollupPropertySourceLinkName name = + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]"); + client.deleteRollupPropertySourceLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -10666,23 +10748,14 @@ public void listEventCreateRulesExceptionTest() throws Exception { } @Test - public void listEventCreateRulesTest2() throws Exception { - EventCreateRule responsesElement = EventCreateRule.newBuilder().build(); - ListEventCreateRulesResponse expectedResponse = - ListEventCreateRulesResponse.newBuilder() - .setNextPageToken("") - .addAllEventCreateRules(Arrays.asList(responsesElement)) - .build(); + public void deleteRollupPropertySourceLinkTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; - - ListEventCreateRulesPagedResponse pagedListResponse = client.listEventCreateRules(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + String name = + "properties/propertie-3766/rollupPropertySourceLinks/rollupPropertySourceLink-3766"; - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getEventCreateRulesList().get(0), resources.get(0)); + client.deleteRollupPropertySourceLink(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -10700,15 +10773,16 @@ public void listEventCreateRulesTest2() throws Exception { } @Test - public void listEventCreateRulesExceptionTest2() throws Exception { + public void deleteRollupPropertySourceLinkExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; - client.listEventCreateRules(parent); + String name = + "properties/propertie-3766/rollupPropertySourceLinks/rollupPropertySourceLink-3766"; + client.deleteRollupPropertySourceLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -10716,23 +10790,22 @@ public void listEventCreateRulesExceptionTest2() throws Exception { } @Test - public void createEventCreateRuleTest() throws Exception { - EventCreateRule expectedResponse = - EventCreateRule.newBuilder() - .setName( - EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") - .toString()) - .setDestinationEvent("destinationEvent1181456172") - .addAllEventConditions(new ArrayList()) - .setSourceCopyParameters(true) - .addAllParameterMutations(new ArrayList()) + public void createSubpropertyTest() throws Exception { + CreateSubpropertyResponse expectedResponse = + CreateSubpropertyResponse.newBuilder() + .setSubproperty(Property.newBuilder().build()) + .setSubpropertyEventFilter(SubpropertyEventFilter.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); + CreateSubpropertyRequest request = + CreateSubpropertyRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) + .setSubproperty(Property.newBuilder().build()) + .setSubpropertyEventFilter(SubpropertyEventFilter.newBuilder().build()) + .build(); - EventCreateRule actualResponse = client.createEventCreateRule(parent, eventCreateRule); + CreateSubpropertyResponse actualResponse = client.createSubproperty(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -10751,16 +10824,20 @@ public void createEventCreateRuleTest() throws Exception { } @Test - public void createEventCreateRuleExceptionTest() throws Exception { + public void createSubpropertyExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); - client.createEventCreateRule(parent, eventCreateRule); + CreateSubpropertyRequest request = + CreateSubpropertyRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) + .setSubproperty(Property.newBuilder().build()) + .setSubpropertyEventFilter(SubpropertyEventFilter.newBuilder().build()) + .build(); + client.createSubproperty(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -10768,24 +10845,14 @@ public void createEventCreateRuleExceptionTest() throws Exception { } @Test - public void createEventCreateRuleTest2() throws Exception { - EventCreateRule expectedResponse = - EventCreateRule.newBuilder() - .setName( - EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") - .toString()) - .setDestinationEvent("destinationEvent1181456172") - .addAllEventConditions(new ArrayList()) - .setSourceCopyParameters(true) - .addAllParameterMutations(new ArrayList()) - .build(); + public void deleteSubpropertyEventFilterTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; - EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); + SubpropertyEventFilterName name = + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]"); - EventCreateRule actualResponse = client.createEventCreateRule(parent, eventCreateRule); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteSubpropertyEventFilter(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -10803,16 +10870,16 @@ public void createEventCreateRuleTest2() throws Exception { } @Test - public void createEventCreateRuleExceptionTest2() throws Exception { + public void deleteSubpropertyEventFilterExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-9651/dataStreams/dataStream-9651"; - EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); - client.createEventCreateRule(parent, eventCreateRule); + SubpropertyEventFilterName name = + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]"); + client.deleteSubpropertyEventFilter(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -10820,33 +10887,13 @@ public void createEventCreateRuleExceptionTest2() throws Exception { } @Test - public void updateEventCreateRuleTest() throws Exception { - EventCreateRule expectedResponse = - EventCreateRule.newBuilder() - .setName( - EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") - .toString()) - .setDestinationEvent("destinationEvent1181456172") - .addAllEventConditions(new ArrayList()) - .setSourceCopyParameters(true) - .addAllParameterMutations(new ArrayList()) - .build(); + public void deleteSubpropertyEventFilterTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - EventCreateRule eventCreateRule = - EventCreateRule.newBuilder() - .setName( - EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") - .toString()) - .setDestinationEvent("destinationEvent1181456172") - .addAllEventConditions(new ArrayList()) - .setSourceCopyParameters(true) - .addAllParameterMutations(new ArrayList()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + String name = "properties/propertie-6725/subpropertyEventFilters/subpropertyEventFilter-6725"; - EventCreateRule actualResponse = client.updateEventCreateRule(eventCreateRule, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteSubpropertyEventFilter(name); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -10864,25 +10911,15 @@ public void updateEventCreateRuleTest() throws Exception { } @Test - public void updateEventCreateRuleExceptionTest() throws Exception { + public void deleteSubpropertyEventFilterExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - EventCreateRule eventCreateRule = - EventCreateRule.newBuilder() - .setName( - EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") - .toString()) - .setDestinationEvent("destinationEvent1181456172") - .addAllEventConditions(new ArrayList()) - .setSourceCopyParameters(true) - .addAllParameterMutations(new ArrayList()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateEventCreateRule(eventCreateRule, updateMask); + String name = "properties/propertie-6725/subpropertyEventFilters/subpropertyEventFilter-6725"; + client.deleteSubpropertyEventFilter(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -10890,14 +10927,23 @@ public void updateEventCreateRuleExceptionTest() throws Exception { } @Test - public void deleteEventCreateRuleTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void createSubpropertyEventFilterTest() throws Exception { + SubpropertyEventFilter expectedResponse = + SubpropertyEventFilter.newBuilder() + .setName( + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]") + .toString()) + .setApplyToProperty("applyToProperty267785086") + .addAllFilterClauses(new ArrayList()) + .build(); mockService.addResponse(expectedResponse); - EventCreateRuleName name = - EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]"); + PropertyName parent = PropertyName.of("[PROPERTY]"); + SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); - client.deleteEventCreateRule(name); + SubpropertyEventFilter actualResponse = + client.createSubpropertyEventFilter(parent, subpropertyEventFilter); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -10915,16 +10961,16 @@ public void deleteEventCreateRuleTest() throws Exception { } @Test - public void deleteEventCreateRuleExceptionTest() throws Exception { + public void createSubpropertyEventFilterExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - EventCreateRuleName name = - EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]"); - client.deleteEventCreateRule(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); + client.createSubpropertyEventFilter(parent, subpropertyEventFilter); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -10932,14 +10978,23 @@ public void deleteEventCreateRuleExceptionTest() throws Exception { } @Test - public void deleteEventCreateRuleTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void createSubpropertyEventFilterTest2() throws Exception { + SubpropertyEventFilter expectedResponse = + SubpropertyEventFilter.newBuilder() + .setName( + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]") + .toString()) + .setApplyToProperty("applyToProperty267785086") + .addAllFilterClauses(new ArrayList()) + .build(); mockService.addResponse(expectedResponse); - String name = - "properties/propertie-8819/dataStreams/dataStream-8819/eventCreateRules/eventCreateRule-8819"; + String parent = "properties/propertie-2024"; + SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); - client.deleteEventCreateRule(name); + SubpropertyEventFilter actualResponse = + client.createSubpropertyEventFilter(parent, subpropertyEventFilter); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -10957,16 +11012,16 @@ public void deleteEventCreateRuleTest2() throws Exception { } @Test - public void deleteEventCreateRuleExceptionTest2() throws Exception { + public void createSubpropertyEventFilterExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = - "properties/propertie-8819/dataStreams/dataStream-8819/eventCreateRules/eventCreateRule-8819"; - client.deleteEventCreateRule(name); + String parent = "properties/propertie-2024"; + SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); + client.createSubpropertyEventFilter(parent, subpropertyEventFilter); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java index 3629c686be81..a0ac148b36a6 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java @@ -16,7 +16,6 @@ package com.google.analytics.admin.v1alpha; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.AuditUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; @@ -36,9 +35,9 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; 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.ListRollupPropertySourceLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListSKAdNetworkConversionValueSchemasPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListSearchAds360LinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -828,25 +827,27 @@ public void updatePropertyExceptionTest() throws Exception { } @Test - public void getUserLinkTest() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) + public void createFirebaseLinkTest() throws Exception { + FirebaseLink expectedResponse = + FirebaseLink.newBuilder() + .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString()) + .setProject("project-309310695") + .setCreateTime(Timestamp.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]"); + PropertyName parent = PropertyName.of("[PROPERTY]"); + FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - UserLink actualResponse = client.getUserLink(name); + FirebaseLink actualResponse = client.createFirebaseLink(parent, firebaseLink); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetUserLinkRequest actualRequest = ((GetUserLinkRequest) actualRequests.get(0)); + CreateFirebaseLinkRequest actualRequest = ((CreateFirebaseLinkRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(firebaseLink, actualRequest.getFirebaseLink()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -854,13 +855,14 @@ public void getUserLinkTest() throws Exception { } @Test - public void getUserLinkExceptionTest() throws Exception { + public void createFirebaseLinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]"); - client.getUserLink(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); + client.createFirebaseLink(parent, firebaseLink); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -868,25 +870,27 @@ public void getUserLinkExceptionTest() throws Exception { } @Test - public void getUserLinkTest2() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) + public void createFirebaseLinkTest2() throws Exception { + FirebaseLink expectedResponse = + FirebaseLink.newBuilder() + .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString()) + .setProject("project-309310695") + .setCreateTime(Timestamp.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + String parent = "parent-995424086"; + FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - UserLink actualResponse = client.getUserLink(name); + FirebaseLink actualResponse = client.createFirebaseLink(parent, firebaseLink); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetUserLinkRequest actualRequest = ((GetUserLinkRequest) actualRequests.get(0)); + CreateFirebaseLinkRequest actualRequest = ((CreateFirebaseLinkRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(firebaseLink, actualRequest.getFirebaseLink()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -894,13 +898,14 @@ public void getUserLinkTest2() throws Exception { } @Test - public void getUserLinkExceptionTest2() throws Exception { + public void createFirebaseLinkExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.getUserLink(name); + String parent = "parent-995424086"; + FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); + client.createFirebaseLink(parent, firebaseLink); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -908,26 +913,19 @@ public void getUserLinkExceptionTest2() throws Exception { } @Test - public void batchGetUserLinksTest() throws Exception { - BatchGetUserLinksResponse expectedResponse = - BatchGetUserLinksResponse.newBuilder().addAllUserLinks(new ArrayList()).build(); + public void deleteFirebaseLinkTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - BatchGetUserLinksRequest request = - BatchGetUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllNames(new ArrayList()) - .build(); + FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]"); - BatchGetUserLinksResponse actualResponse = client.batchGetUserLinks(request); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteFirebaseLink(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - BatchGetUserLinksRequest actualRequest = ((BatchGetUserLinksRequest) actualRequests.get(0)); + DeleteFirebaseLinkRequest actualRequest = ((DeleteFirebaseLinkRequest) actualRequests.get(0)); - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getNamesList(), actualRequest.getNamesList()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -935,17 +933,13 @@ public void batchGetUserLinksTest() throws Exception { } @Test - public void batchGetUserLinksExceptionTest() throws Exception { + public void deleteFirebaseLinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - BatchGetUserLinksRequest request = - BatchGetUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllNames(new ArrayList()) - .build(); - client.batchGetUserLinks(request); + FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]"); + client.deleteFirebaseLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -953,29 +947,19 @@ public void batchGetUserLinksExceptionTest() throws Exception { } @Test - public void listUserLinksTest() throws Exception { - UserLink responsesElement = UserLink.newBuilder().build(); - ListUserLinksResponse expectedResponse = - ListUserLinksResponse.newBuilder() - .setNextPageToken("") - .addAllUserLinks(Arrays.asList(responsesElement)) - .build(); + public void deleteFirebaseLinkTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - AccountName parent = AccountName.of("[ACCOUNT]"); - - ListUserLinksPagedResponse pagedListResponse = client.listUserLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + String name = "name3373707"; - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getUserLinksList().get(0), resources.get(0)); + client.deleteFirebaseLink(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListUserLinksRequest actualRequest = ((ListUserLinksRequest) actualRequests.get(0)); + DeleteFirebaseLinkRequest actualRequest = ((DeleteFirebaseLinkRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -983,13 +967,13 @@ public void listUserLinksTest() throws Exception { } @Test - public void listUserLinksExceptionTest() throws Exception { + public void deleteFirebaseLinkExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - AccountName parent = AccountName.of("[ACCOUNT]"); - client.listUserLinks(parent); + String name = "name3373707"; + client.deleteFirebaseLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -997,27 +981,27 @@ public void listUserLinksExceptionTest() throws Exception { } @Test - public void listUserLinksTest2() throws Exception { - UserLink responsesElement = UserLink.newBuilder().build(); - ListUserLinksResponse expectedResponse = - ListUserLinksResponse.newBuilder() + public void listFirebaseLinksTest() throws Exception { + FirebaseLink responsesElement = FirebaseLink.newBuilder().build(); + ListFirebaseLinksResponse expectedResponse = + ListFirebaseLinksResponse.newBuilder() .setNextPageToken("") - .addAllUserLinks(Arrays.asList(responsesElement)) + .addAllFirebaseLinks(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); PropertyName parent = PropertyName.of("[PROPERTY]"); - ListUserLinksPagedResponse pagedListResponse = client.listUserLinks(parent); + ListFirebaseLinksPagedResponse pagedListResponse = client.listFirebaseLinks(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getUserLinksList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getFirebaseLinksList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListUserLinksRequest actualRequest = ((ListUserLinksRequest) actualRequests.get(0)); + ListFirebaseLinksRequest actualRequest = ((ListFirebaseLinksRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( @@ -1027,13 +1011,13 @@ public void listUserLinksTest2() throws Exception { } @Test - public void listUserLinksExceptionTest2() throws Exception { + public void listFirebaseLinksExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listUserLinks(parent); + client.listFirebaseLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1041,27 +1025,27 @@ public void listUserLinksExceptionTest2() throws Exception { } @Test - public void listUserLinksTest3() throws Exception { - UserLink responsesElement = UserLink.newBuilder().build(); - ListUserLinksResponse expectedResponse = - ListUserLinksResponse.newBuilder() + public void listFirebaseLinksTest2() throws Exception { + FirebaseLink responsesElement = FirebaseLink.newBuilder().build(); + ListFirebaseLinksResponse expectedResponse = + ListFirebaseLinksResponse.newBuilder() .setNextPageToken("") - .addAllUserLinks(Arrays.asList(responsesElement)) + .addAllFirebaseLinks(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); String parent = "parent-995424086"; - ListUserLinksPagedResponse pagedListResponse = client.listUserLinks(parent); + ListFirebaseLinksPagedResponse pagedListResponse = client.listFirebaseLinks(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getUserLinksList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getFirebaseLinksList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListUserLinksRequest actualRequest = ((ListUserLinksRequest) actualRequests.get(0)); + ListFirebaseLinksRequest actualRequest = ((ListFirebaseLinksRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( @@ -1071,13 +1055,13 @@ public void listUserLinksTest3() throws Exception { } @Test - public void listUserLinksExceptionTest3() throws Exception { + public void listFirebaseLinksExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { String parent = "parent-995424086"; - client.listUserLinks(parent); + client.listFirebaseLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1085,36 +1069,24 @@ public void listUserLinksExceptionTest3() throws Exception { } @Test - public void auditUserLinksTest() throws Exception { - AuditUserLink responsesElement = AuditUserLink.newBuilder().build(); - AuditUserLinksResponse expectedResponse = - AuditUserLinksResponse.newBuilder() - .setNextPageToken("") - .addAllUserLinks(Arrays.asList(responsesElement)) + public void getGlobalSiteTagTest() throws Exception { + GlobalSiteTag expectedResponse = + GlobalSiteTag.newBuilder() + .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setSnippet("snippet-2061635299") .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - AuditUserLinksRequest request = - AuditUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - AuditUserLinksPagedResponse pagedListResponse = client.auditUserLinks(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getUserLinksList().get(0), resources.get(0)); + GlobalSiteTag actualResponse = client.getGlobalSiteTag(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - AuditUserLinksRequest actualRequest = ((AuditUserLinksRequest) actualRequests.get(0)); + GetGlobalSiteTagRequest actualRequest = ((GetGlobalSiteTagRequest) actualRequests.get(0)); - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1122,18 +1094,13 @@ public void auditUserLinksTest() throws Exception { } @Test - public void auditUserLinksExceptionTest() throws Exception { + public void getGlobalSiteTagExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - AuditUserLinksRequest request = - AuditUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.auditUserLinks(request); + GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]"); + client.getGlobalSiteTag(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1141,27 +1108,24 @@ public void auditUserLinksExceptionTest() throws Exception { } @Test - public void createUserLinkTest() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) + public void getGlobalSiteTagTest2() throws Exception { + GlobalSiteTag expectedResponse = + GlobalSiteTag.newBuilder() + .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setSnippet("snippet-2061635299") .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - AccountName parent = AccountName.of("[ACCOUNT]"); - UserLink userLink = UserLink.newBuilder().build(); + String name = "name3373707"; - UserLink actualResponse = client.createUserLink(parent, userLink); + GlobalSiteTag actualResponse = client.getGlobalSiteTag(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateUserLinkRequest actualRequest = ((CreateUserLinkRequest) actualRequests.get(0)); + GetGlobalSiteTagRequest actualRequest = ((GetGlobalSiteTagRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(userLink, actualRequest.getUserLink()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1169,14 +1133,13 @@ public void createUserLinkTest() throws Exception { } @Test - public void createUserLinkExceptionTest() throws Exception { + public void getGlobalSiteTagExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - AccountName parent = AccountName.of("[ACCOUNT]"); - UserLink userLink = UserLink.newBuilder().build(); - client.createUserLink(parent, userLink); + String name = "name3373707"; + client.getGlobalSiteTag(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1184,27 +1147,31 @@ public void createUserLinkExceptionTest() throws Exception { } @Test - public void createUserLinkTest2() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) + public void createGoogleAdsLinkTest() throws Exception { + GoogleAdsLink expectedResponse = + GoogleAdsLink.newBuilder() + .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) + .setCustomerId("customerId-1581184615") + .setCanManageClients(true) + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreatorEmailAddress("creatorEmailAddress67752708") .build(); mockAnalyticsAdminService.addResponse(expectedResponse); PropertyName parent = PropertyName.of("[PROPERTY]"); - UserLink userLink = UserLink.newBuilder().build(); + GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - UserLink actualResponse = client.createUserLink(parent, userLink); + GoogleAdsLink actualResponse = client.createGoogleAdsLink(parent, googleAdsLink); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateUserLinkRequest actualRequest = ((CreateUserLinkRequest) actualRequests.get(0)); + CreateGoogleAdsLinkRequest actualRequest = ((CreateGoogleAdsLinkRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(userLink, actualRequest.getUserLink()); + Assert.assertEquals(googleAdsLink, actualRequest.getGoogleAdsLink()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1212,14 +1179,14 @@ public void createUserLinkTest2() throws Exception { } @Test - public void createUserLinkExceptionTest2() throws Exception { + public void createGoogleAdsLinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { PropertyName parent = PropertyName.of("[PROPERTY]"); - UserLink userLink = UserLink.newBuilder().build(); - client.createUserLink(parent, userLink); + GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); + client.createGoogleAdsLink(parent, googleAdsLink); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1227,27 +1194,31 @@ public void createUserLinkExceptionTest2() throws Exception { } @Test - public void createUserLinkTest3() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) + public void createGoogleAdsLinkTest2() throws Exception { + GoogleAdsLink expectedResponse = + GoogleAdsLink.newBuilder() + .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) + .setCustomerId("customerId-1581184615") + .setCanManageClients(true) + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreatorEmailAddress("creatorEmailAddress67752708") .build(); mockAnalyticsAdminService.addResponse(expectedResponse); String parent = "parent-995424086"; - UserLink userLink = UserLink.newBuilder().build(); + GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - UserLink actualResponse = client.createUserLink(parent, userLink); + GoogleAdsLink actualResponse = client.createGoogleAdsLink(parent, googleAdsLink); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateUserLinkRequest actualRequest = ((CreateUserLinkRequest) actualRequests.get(0)); + CreateGoogleAdsLinkRequest actualRequest = ((CreateGoogleAdsLinkRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(userLink, actualRequest.getUserLink()); + Assert.assertEquals(googleAdsLink, actualRequest.getGoogleAdsLink()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1255,14 +1226,14 @@ public void createUserLinkTest3() throws Exception { } @Test - public void createUserLinkExceptionTest3() throws Exception { + public void createGoogleAdsLinkExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { String parent = "parent-995424086"; - UserLink userLink = UserLink.newBuilder().build(); - client.createUserLink(parent, userLink); + GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); + client.createGoogleAdsLink(parent, googleAdsLink); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1270,31 +1241,31 @@ public void createUserLinkExceptionTest3() throws Exception { } @Test - public void batchCreateUserLinksTest() throws Exception { - BatchCreateUserLinksResponse expectedResponse = - BatchCreateUserLinksResponse.newBuilder() - .addAllUserLinks(new ArrayList()) + public void updateGoogleAdsLinkTest() throws Exception { + GoogleAdsLink expectedResponse = + GoogleAdsLink.newBuilder() + .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) + .setCustomerId("customerId-1581184615") + .setCanManageClients(true) + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setCreatorEmailAddress("creatorEmailAddress67752708") .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - BatchCreateUserLinksRequest request = - BatchCreateUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .setNotifyNewUsers(true) - .addAllRequests(new ArrayList()) - .build(); + GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - BatchCreateUserLinksResponse actualResponse = client.batchCreateUserLinks(request); + GoogleAdsLink actualResponse = client.updateGoogleAdsLink(googleAdsLink, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - BatchCreateUserLinksRequest actualRequest = - ((BatchCreateUserLinksRequest) actualRequests.get(0)); + UpdateGoogleAdsLinkRequest actualRequest = ((UpdateGoogleAdsLinkRequest) actualRequests.get(0)); - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getNotifyNewUsers(), actualRequest.getNotifyNewUsers()); - Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); + Assert.assertEquals(googleAdsLink, actualRequest.getGoogleAdsLink()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1302,18 +1273,14 @@ public void batchCreateUserLinksTest() throws Exception { } @Test - public void batchCreateUserLinksExceptionTest() throws Exception { + public void updateGoogleAdsLinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - BatchCreateUserLinksRequest request = - BatchCreateUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .setNotifyNewUsers(true) - .addAllRequests(new ArrayList()) - .build(); - client.batchCreateUserLinks(request); + GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateGoogleAdsLink(googleAdsLink, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1321,25 +1288,19 @@ public void batchCreateUserLinksExceptionTest() throws Exception { } @Test - public void updateUserLinkTest() throws Exception { - UserLink expectedResponse = - UserLink.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .setEmailAddress("emailAddress-1070931784") - .addAllDirectRoles(new ArrayList()) - .build(); + public void deleteGoogleAdsLinkTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - UserLink userLink = UserLink.newBuilder().build(); + GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]"); - UserLink actualResponse = client.updateUserLink(userLink); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteGoogleAdsLink(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateUserLinkRequest actualRequest = ((UpdateUserLinkRequest) actualRequests.get(0)); + DeleteGoogleAdsLinkRequest actualRequest = ((DeleteGoogleAdsLinkRequest) actualRequests.get(0)); - Assert.assertEquals(userLink, actualRequest.getUserLink()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1347,13 +1308,13 @@ public void updateUserLinkTest() throws Exception { } @Test - public void updateUserLinkExceptionTest() throws Exception { + public void deleteGoogleAdsLinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - UserLink userLink = UserLink.newBuilder().build(); - client.updateUserLink(userLink); + GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]"); + client.deleteGoogleAdsLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1361,29 +1322,19 @@ public void updateUserLinkExceptionTest() throws Exception { } @Test - public void batchUpdateUserLinksTest() throws Exception { - BatchUpdateUserLinksResponse expectedResponse = - BatchUpdateUserLinksResponse.newBuilder() - .addAllUserLinks(new ArrayList()) - .build(); + public void deleteGoogleAdsLinkTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - BatchUpdateUserLinksRequest request = - BatchUpdateUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); + String name = "name3373707"; - BatchUpdateUserLinksResponse actualResponse = client.batchUpdateUserLinks(request); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteGoogleAdsLink(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - BatchUpdateUserLinksRequest actualRequest = - ((BatchUpdateUserLinksRequest) actualRequests.get(0)); + DeleteGoogleAdsLinkRequest actualRequest = ((DeleteGoogleAdsLinkRequest) actualRequests.get(0)); - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1391,17 +1342,13 @@ public void batchUpdateUserLinksTest() throws Exception { } @Test - public void batchUpdateUserLinksExceptionTest() throws Exception { + public void deleteGoogleAdsLinkExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - BatchUpdateUserLinksRequest request = - BatchUpdateUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); - client.batchUpdateUserLinks(request); + String name = "name3373707"; + client.deleteGoogleAdsLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1409,19 +1356,29 @@ public void batchUpdateUserLinksExceptionTest() throws Exception { } @Test - public void deleteUserLinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void listGoogleAdsLinksTest() throws Exception { + GoogleAdsLink responsesElement = GoogleAdsLink.newBuilder().build(); + ListGoogleAdsLinksResponse expectedResponse = + ListGoogleAdsLinksResponse.newBuilder() + .setNextPageToken("") + .addAllGoogleAdsLinks(Arrays.asList(responsesElement)) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]"); + PropertyName parent = PropertyName.of("[PROPERTY]"); + + ListGoogleAdsLinksPagedResponse pagedListResponse = client.listGoogleAdsLinks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - client.deleteUserLink(name); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGoogleAdsLinksList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteUserLinkRequest actualRequest = ((DeleteUserLinkRequest) actualRequests.get(0)); + ListGoogleAdsLinksRequest actualRequest = ((ListGoogleAdsLinksRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1429,13 +1386,13 @@ public void deleteUserLinkTest() throws Exception { } @Test - public void deleteUserLinkExceptionTest() throws Exception { + public void listGoogleAdsLinksExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]"); - client.deleteUserLink(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listGoogleAdsLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1443,59 +1400,29 @@ public void deleteUserLinkExceptionTest() throws Exception { } @Test - public void deleteUserLinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void listGoogleAdsLinksTest2() throws Exception { + GoogleAdsLink responsesElement = GoogleAdsLink.newBuilder().build(); + ListGoogleAdsLinksResponse expectedResponse = + ListGoogleAdsLinksResponse.newBuilder() + .setNextPageToken("") + .addAllGoogleAdsLinks(Arrays.asList(responsesElement)) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + String parent = "parent-995424086"; - client.deleteUserLink(name); + ListGoogleAdsLinksPagedResponse pagedListResponse = client.listGoogleAdsLinks(parent); - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteUserLinkRequest actualRequest = ((DeleteUserLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteUserLinkExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String name = "name3373707"; - client.deleteUserLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchDeleteUserLinksTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - BatchDeleteUserLinksRequest request = - BatchDeleteUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - client.batchDeleteUserLinks(request); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getGoogleAdsLinksList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - BatchDeleteUserLinksRequest actualRequest = - ((BatchDeleteUserLinksRequest) actualRequests.get(0)); + ListGoogleAdsLinksRequest actualRequest = ((ListGoogleAdsLinksRequest) actualRequests.get(0)); - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); + Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1503,17 +1430,13 @@ public void batchDeleteUserLinksTest() throws Exception { } @Test - public void batchDeleteUserLinksExceptionTest() throws Exception { + public void listGoogleAdsLinksExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - BatchDeleteUserLinksRequest request = - BatchDeleteUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); - client.batchDeleteUserLinks(request); + String parent = "parent-995424086"; + client.listGoogleAdsLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1521,27 +1444,29 @@ public void batchDeleteUserLinksExceptionTest() throws Exception { } @Test - public void createFirebaseLinkTest() throws Exception { - FirebaseLink expectedResponse = - FirebaseLink.newBuilder() - .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString()) - .setProject("project-309310695") - .setCreateTime(Timestamp.newBuilder().build()) + public void getDataSharingSettingsTest() throws Exception { + DataSharingSettings expectedResponse = + DataSharingSettings.newBuilder() + .setName(DataSharingSettingsName.of("[ACCOUNT]").toString()) + .setSharingWithGoogleSupportEnabled(true) + .setSharingWithGoogleAssignedSalesEnabled(true) + .setSharingWithGoogleAnySalesEnabled(true) + .setSharingWithGoogleProductsEnabled(true) + .setSharingWithOthersEnabled(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); + DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]"); - FirebaseLink actualResponse = client.createFirebaseLink(parent, firebaseLink); + DataSharingSettings actualResponse = client.getDataSharingSettings(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateFirebaseLinkRequest actualRequest = ((CreateFirebaseLinkRequest) actualRequests.get(0)); + GetDataSharingSettingsRequest actualRequest = + ((GetDataSharingSettingsRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(firebaseLink, actualRequest.getFirebaseLink()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1549,14 +1474,13 @@ public void createFirebaseLinkTest() throws Exception { } @Test - public void createFirebaseLinkExceptionTest() throws Exception { + public void getDataSharingSettingsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - client.createFirebaseLink(parent, firebaseLink); + DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]"); + client.getDataSharingSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1564,27 +1488,29 @@ public void createFirebaseLinkExceptionTest() throws Exception { } @Test - public void createFirebaseLinkTest2() throws Exception { - FirebaseLink expectedResponse = - FirebaseLink.newBuilder() - .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString()) - .setProject("project-309310695") - .setCreateTime(Timestamp.newBuilder().build()) + public void getDataSharingSettingsTest2() throws Exception { + DataSharingSettings expectedResponse = + DataSharingSettings.newBuilder() + .setName(DataSharingSettingsName.of("[ACCOUNT]").toString()) + .setSharingWithGoogleSupportEnabled(true) + .setSharingWithGoogleAssignedSalesEnabled(true) + .setSharingWithGoogleAnySalesEnabled(true) + .setSharingWithGoogleProductsEnabled(true) + .setSharingWithOthersEnabled(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); + String name = "name3373707"; - FirebaseLink actualResponse = client.createFirebaseLink(parent, firebaseLink); + DataSharingSettings actualResponse = client.getDataSharingSettings(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateFirebaseLinkRequest actualRequest = ((CreateFirebaseLinkRequest) actualRequests.get(0)); + GetDataSharingSettingsRequest actualRequest = + ((GetDataSharingSettingsRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(firebaseLink, actualRequest.getFirebaseLink()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1592,14 +1518,13 @@ public void createFirebaseLinkTest2() throws Exception { } @Test - public void createFirebaseLinkExceptionTest2() throws Exception { + public void getDataSharingSettingsExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - client.createFirebaseLink(parent, firebaseLink); + String name = "name3373707"; + client.getDataSharingSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1607,17 +1532,29 @@ public void createFirebaseLinkExceptionTest2() throws Exception { } @Test - public void deleteFirebaseLinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getMeasurementProtocolSecretTest() throws Exception { + MeasurementProtocolSecret expectedResponse = + MeasurementProtocolSecret.newBuilder() + .setName( + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + .toString()) + .setDisplayName("displayName1714148973") + .setSecretValue("secretValue-2044460895") + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]"); + MeasurementProtocolSecretName name = + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - client.deleteFirebaseLink(name); + MeasurementProtocolSecret actualResponse = client.getMeasurementProtocolSecret(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteFirebaseLinkRequest actualRequest = ((DeleteFirebaseLinkRequest) actualRequests.get(0)); + GetMeasurementProtocolSecretRequest actualRequest = + ((GetMeasurementProtocolSecretRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -1627,13 +1564,15 @@ public void deleteFirebaseLinkTest() throws Exception { } @Test - public void deleteFirebaseLinkExceptionTest() throws Exception { + public void getMeasurementProtocolSecretExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]"); - client.deleteFirebaseLink(name); + MeasurementProtocolSecretName name = + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + client.getMeasurementProtocolSecret(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1641,17 +1580,27 @@ public void deleteFirebaseLinkExceptionTest() throws Exception { } @Test - public void deleteFirebaseLinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getMeasurementProtocolSecretTest2() throws Exception { + MeasurementProtocolSecret expectedResponse = + MeasurementProtocolSecret.newBuilder() + .setName( + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + .toString()) + .setDisplayName("displayName1714148973") + .setSecretValue("secretValue-2044460895") + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); String name = "name3373707"; - client.deleteFirebaseLink(name); + MeasurementProtocolSecret actualResponse = client.getMeasurementProtocolSecret(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteFirebaseLinkRequest actualRequest = ((DeleteFirebaseLinkRequest) actualRequests.get(0)); + GetMeasurementProtocolSecretRequest actualRequest = + ((GetMeasurementProtocolSecretRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -1661,13 +1610,13 @@ public void deleteFirebaseLinkTest2() throws Exception { } @Test - public void deleteFirebaseLinkExceptionTest2() throws Exception { + public void getMeasurementProtocolSecretExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { String name = "name3373707"; - client.deleteFirebaseLink(name); + client.getMeasurementProtocolSecret(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1675,27 +1624,30 @@ public void deleteFirebaseLinkExceptionTest2() throws Exception { } @Test - public void listFirebaseLinksTest() throws Exception { - FirebaseLink responsesElement = FirebaseLink.newBuilder().build(); - ListFirebaseLinksResponse expectedResponse = - ListFirebaseLinksResponse.newBuilder() + public void listMeasurementProtocolSecretsTest() throws Exception { + MeasurementProtocolSecret responsesElement = MeasurementProtocolSecret.newBuilder().build(); + ListMeasurementProtocolSecretsResponse expectedResponse = + ListMeasurementProtocolSecretsResponse.newBuilder() .setNextPageToken("") - .addAllFirebaseLinks(Arrays.asList(responsesElement)) + .addAllMeasurementProtocolSecrets(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - ListFirebaseLinksPagedResponse pagedListResponse = client.listFirebaseLinks(parent); + ListMeasurementProtocolSecretsPagedResponse pagedListResponse = + client.listMeasurementProtocolSecrets(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getFirebaseLinksList().get(0), resources.get(0)); + Assert.assertEquals( + expectedResponse.getMeasurementProtocolSecretsList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListFirebaseLinksRequest actualRequest = ((ListFirebaseLinksRequest) actualRequests.get(0)); + ListMeasurementProtocolSecretsRequest actualRequest = + ((ListMeasurementProtocolSecretsRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( @@ -1705,13 +1657,13 @@ public void listFirebaseLinksTest() throws Exception { } @Test - public void listFirebaseLinksExceptionTest() throws Exception { + public void listMeasurementProtocolSecretsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listFirebaseLinks(parent); + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + client.listMeasurementProtocolSecrets(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1719,27 +1671,30 @@ public void listFirebaseLinksExceptionTest() throws Exception { } @Test - public void listFirebaseLinksTest2() throws Exception { - FirebaseLink responsesElement = FirebaseLink.newBuilder().build(); - ListFirebaseLinksResponse expectedResponse = - ListFirebaseLinksResponse.newBuilder() + public void listMeasurementProtocolSecretsTest2() throws Exception { + MeasurementProtocolSecret responsesElement = MeasurementProtocolSecret.newBuilder().build(); + ListMeasurementProtocolSecretsResponse expectedResponse = + ListMeasurementProtocolSecretsResponse.newBuilder() .setNextPageToken("") - .addAllFirebaseLinks(Arrays.asList(responsesElement)) + .addAllMeasurementProtocolSecrets(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); String parent = "parent-995424086"; - ListFirebaseLinksPagedResponse pagedListResponse = client.listFirebaseLinks(parent); + ListMeasurementProtocolSecretsPagedResponse pagedListResponse = + client.listMeasurementProtocolSecrets(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getFirebaseLinksList().get(0), resources.get(0)); + Assert.assertEquals( + expectedResponse.getMeasurementProtocolSecretsList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListFirebaseLinksRequest actualRequest = ((ListFirebaseLinksRequest) actualRequests.get(0)); + ListMeasurementProtocolSecretsRequest actualRequest = + ((ListMeasurementProtocolSecretsRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( @@ -1749,13 +1704,13 @@ public void listFirebaseLinksTest2() throws Exception { } @Test - public void listFirebaseLinksExceptionTest2() throws Exception { + public void listMeasurementProtocolSecretsExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { String parent = "parent-995424086"; - client.listFirebaseLinks(parent); + client.listMeasurementProtocolSecrets(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1763,24 +1718,33 @@ public void listFirebaseLinksExceptionTest2() throws Exception { } @Test - public void getGlobalSiteTagTest() throws Exception { - GlobalSiteTag expectedResponse = - GlobalSiteTag.newBuilder() - .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setSnippet("snippet-2061635299") + public void createMeasurementProtocolSecretTest() throws Exception { + MeasurementProtocolSecret expectedResponse = + MeasurementProtocolSecret.newBuilder() + .setName( + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + .toString()) + .setDisplayName("displayName1714148973") + .setSecretValue("secretValue-2044460895") .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]"); + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + MeasurementProtocolSecret measurementProtocolSecret = + MeasurementProtocolSecret.newBuilder().build(); - GlobalSiteTag actualResponse = client.getGlobalSiteTag(name); + MeasurementProtocolSecret actualResponse = + client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetGlobalSiteTagRequest actualRequest = ((GetGlobalSiteTagRequest) actualRequests.get(0)); + CreateMeasurementProtocolSecretRequest actualRequest = + ((CreateMeasurementProtocolSecretRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(measurementProtocolSecret, actualRequest.getMeasurementProtocolSecret()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1788,13 +1752,15 @@ public void getGlobalSiteTagTest() throws Exception { } @Test - public void getGlobalSiteTagExceptionTest() throws Exception { + public void createMeasurementProtocolSecretExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]"); - client.getGlobalSiteTag(name); + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + MeasurementProtocolSecret measurementProtocolSecret = + MeasurementProtocolSecret.newBuilder().build(); + client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1802,24 +1768,33 @@ public void getGlobalSiteTagExceptionTest() throws Exception { } @Test - public void getGlobalSiteTagTest2() throws Exception { - GlobalSiteTag expectedResponse = - GlobalSiteTag.newBuilder() - .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setSnippet("snippet-2061635299") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String name = "name3373707"; + public void createMeasurementProtocolSecretTest2() throws Exception { + MeasurementProtocolSecret expectedResponse = + MeasurementProtocolSecret.newBuilder() + .setName( + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + .toString()) + .setDisplayName("displayName1714148973") + .setSecretValue("secretValue-2044460895") + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); - GlobalSiteTag actualResponse = client.getGlobalSiteTag(name); + 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()); - GetGlobalSiteTagRequest actualRequest = ((GetGlobalSiteTagRequest) actualRequests.get(0)); + CreateMeasurementProtocolSecretRequest actualRequest = + ((CreateMeasurementProtocolSecretRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(measurementProtocolSecret, actualRequest.getMeasurementProtocolSecret()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1827,13 +1802,15 @@ public void getGlobalSiteTagTest2() throws Exception { } @Test - public void getGlobalSiteTagExceptionTest2() throws Exception { + public void createMeasurementProtocolSecretExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.getGlobalSiteTag(name); + String parent = "parent-995424086"; + MeasurementProtocolSecret measurementProtocolSecret = + MeasurementProtocolSecret.newBuilder().build(); + client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1841,31 +1818,22 @@ public void getGlobalSiteTagExceptionTest2() throws Exception { } @Test - public void createGoogleAdsLinkTest() throws Exception { - GoogleAdsLink expectedResponse = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") - .build(); + public void deleteMeasurementProtocolSecretTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); + MeasurementProtocolSecretName name = + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - GoogleAdsLink actualResponse = client.createGoogleAdsLink(parent, googleAdsLink); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteMeasurementProtocolSecret(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateGoogleAdsLinkRequest actualRequest = ((CreateGoogleAdsLinkRequest) actualRequests.get(0)); + DeleteMeasurementProtocolSecretRequest actualRequest = + ((DeleteMeasurementProtocolSecretRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(googleAdsLink, actualRequest.getGoogleAdsLink()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1873,14 +1841,15 @@ public void createGoogleAdsLinkTest() throws Exception { } @Test - public void createGoogleAdsLinkExceptionTest() throws Exception { + public void deleteMeasurementProtocolSecretExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - client.createGoogleAdsLink(parent, googleAdsLink); + MeasurementProtocolSecretName name = + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + client.deleteMeasurementProtocolSecret(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1888,31 +1857,20 @@ public void createGoogleAdsLinkExceptionTest() throws Exception { } @Test - public void createGoogleAdsLinkTest2() throws Exception { - GoogleAdsLink expectedResponse = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") - .build(); + public void deleteMeasurementProtocolSecretTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); + String name = "name3373707"; - GoogleAdsLink actualResponse = client.createGoogleAdsLink(parent, googleAdsLink); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteMeasurementProtocolSecret(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateGoogleAdsLinkRequest actualRequest = ((CreateGoogleAdsLinkRequest) actualRequests.get(0)); + DeleteMeasurementProtocolSecretRequest actualRequest = + ((DeleteMeasurementProtocolSecretRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(googleAdsLink, actualRequest.getGoogleAdsLink()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1920,14 +1878,13 @@ public void createGoogleAdsLinkTest2() throws Exception { } @Test - public void createGoogleAdsLinkExceptionTest2() throws Exception { + public void deleteMeasurementProtocolSecretExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); - client.createGoogleAdsLink(parent, googleAdsLink); + String name = "name3373707"; + client.deleteMeasurementProtocolSecret(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1935,30 +1892,32 @@ public void createGoogleAdsLinkExceptionTest2() throws Exception { } @Test - public void updateGoogleAdsLinkTest() throws Exception { - GoogleAdsLink expectedResponse = - GoogleAdsLink.newBuilder() - .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString()) - .setCustomerId("customerId-1581184615") - .setCanManageClients(true) - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCreatorEmailAddress("creatorEmailAddress67752708") + public void updateMeasurementProtocolSecretTest() throws Exception { + MeasurementProtocolSecret expectedResponse = + MeasurementProtocolSecret.newBuilder() + .setName( + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + .toString()) + .setDisplayName("displayName1714148973") + .setSecretValue("secretValue-2044460895") .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); + MeasurementProtocolSecret measurementProtocolSecret = + MeasurementProtocolSecret.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); - GoogleAdsLink actualResponse = client.updateGoogleAdsLink(googleAdsLink, updateMask); + MeasurementProtocolSecret actualResponse = + client.updateMeasurementProtocolSecret(measurementProtocolSecret, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateGoogleAdsLinkRequest actualRequest = ((UpdateGoogleAdsLinkRequest) actualRequests.get(0)); + UpdateMeasurementProtocolSecretRequest actualRequest = + ((UpdateMeasurementProtocolSecretRequest) actualRequests.get(0)); - Assert.assertEquals(googleAdsLink, actualRequest.getGoogleAdsLink()); + Assert.assertEquals(measurementProtocolSecret, actualRequest.getMeasurementProtocolSecret()); Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -1967,14 +1926,15 @@ public void updateGoogleAdsLinkTest() throws Exception { } @Test - public void updateGoogleAdsLinkExceptionTest() throws Exception { + public void updateMeasurementProtocolSecretExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build(); + MeasurementProtocolSecret measurementProtocolSecret = + MeasurementProtocolSecret.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateGoogleAdsLink(googleAdsLink, updateMask); + client.updateMeasurementProtocolSecret(measurementProtocolSecret, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -1982,19 +1942,28 @@ public void updateGoogleAdsLinkExceptionTest() throws Exception { } @Test - public void deleteGoogleAdsLinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void acknowledgeUserDataCollectionTest() throws Exception { + AcknowledgeUserDataCollectionResponse expectedResponse = + AcknowledgeUserDataCollectionResponse.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]"); + AcknowledgeUserDataCollectionRequest request = + AcknowledgeUserDataCollectionRequest.newBuilder() + .setProperty(PropertyName.of("[PROPERTY]").toString()) + .setAcknowledgement("acknowledgement1769490938") + .build(); - client.deleteGoogleAdsLink(name); + AcknowledgeUserDataCollectionResponse actualResponse = + client.acknowledgeUserDataCollection(request); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteGoogleAdsLinkRequest actualRequest = ((DeleteGoogleAdsLinkRequest) actualRequests.get(0)); + AcknowledgeUserDataCollectionRequest actualRequest = + ((AcknowledgeUserDataCollectionRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); + Assert.assertEquals(request.getAcknowledgement(), actualRequest.getAcknowledgement()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2002,13 +1971,17 @@ public void deleteGoogleAdsLinkTest() throws Exception { } @Test - public void deleteGoogleAdsLinkExceptionTest() throws Exception { + public void acknowledgeUserDataCollectionExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]"); - client.deleteGoogleAdsLink(name); + AcknowledgeUserDataCollectionRequest request = + AcknowledgeUserDataCollectionRequest.newBuilder() + .setProperty(PropertyName.of("[PROPERTY]").toString()) + .setAcknowledgement("acknowledgement1769490938") + .build(); + client.acknowledgeUserDataCollection(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2016,19 +1989,34 @@ public void deleteGoogleAdsLinkExceptionTest() throws Exception { } @Test - public void deleteGoogleAdsLinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getSKAdNetworkConversionValueSchemaTest() throws Exception { + SKAdNetworkConversionValueSchema expectedResponse = + SKAdNetworkConversionValueSchema.newBuilder() + .setName( + SKAdNetworkConversionValueSchemaName.of( + "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") + .toString()) + .setPostbackWindowOne(PostbackWindow.newBuilder().build()) + .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) + .setPostbackWindowThree(PostbackWindow.newBuilder().build()) + .setApplyConversionValues(true) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + SKAdNetworkConversionValueSchemaName name = + SKAdNetworkConversionValueSchemaName.of( + "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]"); - client.deleteGoogleAdsLink(name); + SKAdNetworkConversionValueSchema actualResponse = + client.getSKAdNetworkConversionValueSchema(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteGoogleAdsLinkRequest actualRequest = ((DeleteGoogleAdsLinkRequest) actualRequests.get(0)); + GetSKAdNetworkConversionValueSchemaRequest actualRequest = + ((GetSKAdNetworkConversionValueSchemaRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2036,13 +2024,15 @@ public void deleteGoogleAdsLinkTest2() throws Exception { } @Test - public void deleteGoogleAdsLinkExceptionTest2() throws Exception { + public void getSKAdNetworkConversionValueSchemaExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.deleteGoogleAdsLink(name); + SKAdNetworkConversionValueSchemaName name = + SKAdNetworkConversionValueSchemaName.of( + "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]"); + client.getSKAdNetworkConversionValueSchema(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2050,29 +2040,32 @@ public void deleteGoogleAdsLinkExceptionTest2() throws Exception { } @Test - public void listGoogleAdsLinksTest() throws Exception { - GoogleAdsLink responsesElement = GoogleAdsLink.newBuilder().build(); - ListGoogleAdsLinksResponse expectedResponse = - ListGoogleAdsLinksResponse.newBuilder() - .setNextPageToken("") - .addAllGoogleAdsLinks(Arrays.asList(responsesElement)) + public void getSKAdNetworkConversionValueSchemaTest2() throws Exception { + SKAdNetworkConversionValueSchema expectedResponse = + SKAdNetworkConversionValueSchema.newBuilder() + .setName( + SKAdNetworkConversionValueSchemaName.of( + "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") + .toString()) + .setPostbackWindowOne(PostbackWindow.newBuilder().build()) + .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) + .setPostbackWindowThree(PostbackWindow.newBuilder().build()) + .setApplyConversionValues(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListGoogleAdsLinksPagedResponse pagedListResponse = client.listGoogleAdsLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + String name = "name3373707"; - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGoogleAdsLinksList().get(0), resources.get(0)); + SKAdNetworkConversionValueSchema actualResponse = + client.getSKAdNetworkConversionValueSchema(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListGoogleAdsLinksRequest actualRequest = ((ListGoogleAdsLinksRequest) actualRequests.get(0)); + GetSKAdNetworkConversionValueSchemaRequest actualRequest = + ((GetSKAdNetworkConversionValueSchemaRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2080,13 +2073,13 @@ public void listGoogleAdsLinksTest() throws Exception { } @Test - public void listGoogleAdsLinksExceptionTest() throws Exception { + public void getSKAdNetworkConversionValueSchemaExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listGoogleAdsLinks(parent); + String name = "name3373707"; + client.getSKAdNetworkConversionValueSchema(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2094,29 +2087,36 @@ public void listGoogleAdsLinksExceptionTest() throws Exception { } @Test - public void listGoogleAdsLinksTest2() throws Exception { - GoogleAdsLink responsesElement = GoogleAdsLink.newBuilder().build(); - ListGoogleAdsLinksResponse expectedResponse = - ListGoogleAdsLinksResponse.newBuilder() - .setNextPageToken("") - .addAllGoogleAdsLinks(Arrays.asList(responsesElement)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListGoogleAdsLinksPagedResponse pagedListResponse = client.listGoogleAdsLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + public void createSKAdNetworkConversionValueSchemaTest() throws Exception { + SKAdNetworkConversionValueSchema expectedResponse = + SKAdNetworkConversionValueSchema.newBuilder() + .setName( + SKAdNetworkConversionValueSchemaName.of( + "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") + .toString()) + .setPostbackWindowOne(PostbackWindow.newBuilder().build()) + .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) + .setPostbackWindowThree(PostbackWindow.newBuilder().build()) + .setApplyConversionValues(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getGoogleAdsLinksList().get(0), resources.get(0)); + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = + SKAdNetworkConversionValueSchema.newBuilder().build(); + + SKAdNetworkConversionValueSchema actualResponse = + client.createSKAdNetworkConversionValueSchema(parent, skadnetworkConversionValueSchema); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListGoogleAdsLinksRequest actualRequest = ((ListGoogleAdsLinksRequest) actualRequests.get(0)); + CreateSKAdNetworkConversionValueSchemaRequest actualRequest = + ((CreateSKAdNetworkConversionValueSchemaRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals( + skadnetworkConversionValueSchema, actualRequest.getSkadnetworkConversionValueSchema()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2124,13 +2124,15 @@ public void listGoogleAdsLinksTest2() throws Exception { } @Test - public void listGoogleAdsLinksExceptionTest2() throws Exception { + public void createSKAdNetworkConversionValueSchemaExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - client.listGoogleAdsLinks(parent); + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = + SKAdNetworkConversionValueSchema.newBuilder().build(); + client.createSKAdNetworkConversionValueSchema(parent, skadnetworkConversionValueSchema); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2138,29 +2140,36 @@ public void listGoogleAdsLinksExceptionTest2() throws Exception { } @Test - public void getDataSharingSettingsTest() throws Exception { - DataSharingSettings expectedResponse = - DataSharingSettings.newBuilder() - .setName(DataSharingSettingsName.of("[ACCOUNT]").toString()) - .setSharingWithGoogleSupportEnabled(true) - .setSharingWithGoogleAssignedSalesEnabled(true) - .setSharingWithGoogleAnySalesEnabled(true) - .setSharingWithGoogleProductsEnabled(true) - .setSharingWithOthersEnabled(true) + public void createSKAdNetworkConversionValueSchemaTest2() throws Exception { + SKAdNetworkConversionValueSchema expectedResponse = + SKAdNetworkConversionValueSchema.newBuilder() + .setName( + SKAdNetworkConversionValueSchemaName.of( + "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") + .toString()) + .setPostbackWindowOne(PostbackWindow.newBuilder().build()) + .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) + .setPostbackWindowThree(PostbackWindow.newBuilder().build()) + .setApplyConversionValues(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]"); + String parent = "parent-995424086"; + SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = + SKAdNetworkConversionValueSchema.newBuilder().build(); - DataSharingSettings actualResponse = client.getDataSharingSettings(name); + SKAdNetworkConversionValueSchema actualResponse = + client.createSKAdNetworkConversionValueSchema(parent, skadnetworkConversionValueSchema); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetDataSharingSettingsRequest actualRequest = - ((GetDataSharingSettingsRequest) actualRequests.get(0)); + CreateSKAdNetworkConversionValueSchemaRequest actualRequest = + ((CreateSKAdNetworkConversionValueSchemaRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals( + skadnetworkConversionValueSchema, actualRequest.getSkadnetworkConversionValueSchema()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2168,13 +2177,15 @@ public void getDataSharingSettingsTest() throws Exception { } @Test - public void getDataSharingSettingsExceptionTest() throws Exception { + public void createSKAdNetworkConversionValueSchemaExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]"); - client.getDataSharingSettings(name); + String parent = "parent-995424086"; + SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = + SKAdNetworkConversionValueSchema.newBuilder().build(); + client.createSKAdNetworkConversionValueSchema(parent, skadnetworkConversionValueSchema); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2182,29 +2193,22 @@ public void getDataSharingSettingsExceptionTest() throws Exception { } @Test - public void getDataSharingSettingsTest2() throws Exception { - DataSharingSettings expectedResponse = - DataSharingSettings.newBuilder() - .setName(DataSharingSettingsName.of("[ACCOUNT]").toString()) - .setSharingWithGoogleSupportEnabled(true) - .setSharingWithGoogleAssignedSalesEnabled(true) - .setSharingWithGoogleAnySalesEnabled(true) - .setSharingWithGoogleProductsEnabled(true) - .setSharingWithOthersEnabled(true) - .build(); + public void deleteSKAdNetworkConversionValueSchemaTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + SKAdNetworkConversionValueSchemaName name = + SKAdNetworkConversionValueSchemaName.of( + "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]"); - DataSharingSettings actualResponse = client.getDataSharingSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteSKAdNetworkConversionValueSchema(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetDataSharingSettingsRequest actualRequest = - ((GetDataSharingSettingsRequest) actualRequests.get(0)); + DeleteSKAdNetworkConversionValueSchemaRequest actualRequest = + ((DeleteSKAdNetworkConversionValueSchemaRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2212,13 +2216,15 @@ public void getDataSharingSettingsTest2() throws Exception { } @Test - public void getDataSharingSettingsExceptionTest2() throws Exception { + public void deleteSKAdNetworkConversionValueSchemaExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.getDataSharingSettings(name); + SKAdNetworkConversionValueSchemaName name = + SKAdNetworkConversionValueSchemaName.of( + "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]"); + client.deleteSKAdNetworkConversionValueSchema(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2226,31 +2232,20 @@ public void getDataSharingSettingsExceptionTest2() throws Exception { } @Test - public void getMeasurementProtocolSecretTest() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") - .build(); + public void deleteSKAdNetworkConversionValueSchemaTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + String name = "name3373707"; - MeasurementProtocolSecret actualResponse = client.getMeasurementProtocolSecret(name); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteSKAdNetworkConversionValueSchema(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetMeasurementProtocolSecretRequest actualRequest = - ((GetMeasurementProtocolSecretRequest) actualRequests.get(0)); + DeleteSKAdNetworkConversionValueSchemaRequest actualRequest = + ((DeleteSKAdNetworkConversionValueSchemaRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2258,15 +2253,13 @@ public void getMeasurementProtocolSecretTest() throws Exception { } @Test - public void getMeasurementProtocolSecretExceptionTest() throws Exception { + public void deleteSKAdNetworkConversionValueSchemaExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - client.getMeasurementProtocolSecret(name); + String name = "name3373707"; + client.deleteSKAdNetworkConversionValueSchema(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2274,29 +2267,36 @@ public void getMeasurementProtocolSecretExceptionTest() throws Exception { } @Test - public void getMeasurementProtocolSecretTest2() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() + public void updateSKAdNetworkConversionValueSchemaTest() throws Exception { + SKAdNetworkConversionValueSchema expectedResponse = + SKAdNetworkConversionValueSchema.newBuilder() .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + SKAdNetworkConversionValueSchemaName.of( + "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") + .setPostbackWindowOne(PostbackWindow.newBuilder().build()) + .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) + .setPostbackWindowThree(PostbackWindow.newBuilder().build()) + .setApplyConversionValues(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = + SKAdNetworkConversionValueSchema.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - MeasurementProtocolSecret actualResponse = client.getMeasurementProtocolSecret(name); + SKAdNetworkConversionValueSchema actualResponse = + client.updateSKAdNetworkConversionValueSchema(skadnetworkConversionValueSchema, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetMeasurementProtocolSecretRequest actualRequest = - ((GetMeasurementProtocolSecretRequest) actualRequests.get(0)); + UpdateSKAdNetworkConversionValueSchemaRequest actualRequest = + ((UpdateSKAdNetworkConversionValueSchemaRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals( + skadnetworkConversionValueSchema, actualRequest.getSkadnetworkConversionValueSchema()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2304,13 +2304,15 @@ public void getMeasurementProtocolSecretTest2() throws Exception { } @Test - public void getMeasurementProtocolSecretExceptionTest2() throws Exception { + public void updateSKAdNetworkConversionValueSchemaExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.getMeasurementProtocolSecret(name); + SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = + SKAdNetworkConversionValueSchema.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSKAdNetworkConversionValueSchema(skadnetworkConversionValueSchema, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2318,30 +2320,32 @@ public void getMeasurementProtocolSecretExceptionTest2() throws Exception { } @Test - public void listMeasurementProtocolSecretsTest() throws Exception { - MeasurementProtocolSecret responsesElement = MeasurementProtocolSecret.newBuilder().build(); - ListMeasurementProtocolSecretsResponse expectedResponse = - ListMeasurementProtocolSecretsResponse.newBuilder() + public void listSKAdNetworkConversionValueSchemasTest() throws Exception { + SKAdNetworkConversionValueSchema responsesElement = + SKAdNetworkConversionValueSchema.newBuilder().build(); + ListSKAdNetworkConversionValueSchemasResponse expectedResponse = + ListSKAdNetworkConversionValueSchemasResponse.newBuilder() .setNextPageToken("") - .addAllMeasurementProtocolSecrets(Arrays.asList(responsesElement)) + .addAllSkadnetworkConversionValueSchemas(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - ListMeasurementProtocolSecretsPagedResponse pagedListResponse = - client.listMeasurementProtocolSecrets(parent); + ListSKAdNetworkConversionValueSchemasPagedResponse pagedListResponse = + client.listSKAdNetworkConversionValueSchemas(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); Assert.assertEquals( - expectedResponse.getMeasurementProtocolSecretsList().get(0), resources.get(0)); + expectedResponse.getSkadnetworkConversionValueSchemasList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListMeasurementProtocolSecretsRequest actualRequest = - ((ListMeasurementProtocolSecretsRequest) actualRequests.get(0)); + ListSKAdNetworkConversionValueSchemasRequest actualRequest = + ((ListSKAdNetworkConversionValueSchemasRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( @@ -2351,13 +2355,13 @@ public void listMeasurementProtocolSecretsTest() throws Exception { } @Test - public void listMeasurementProtocolSecretsExceptionTest() throws Exception { + public void listSKAdNetworkConversionValueSchemasExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.listMeasurementProtocolSecrets(parent); + client.listSKAdNetworkConversionValueSchemas(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2365,30 +2369,32 @@ public void listMeasurementProtocolSecretsExceptionTest() throws Exception { } @Test - public void listMeasurementProtocolSecretsTest2() throws Exception { - MeasurementProtocolSecret responsesElement = MeasurementProtocolSecret.newBuilder().build(); - ListMeasurementProtocolSecretsResponse expectedResponse = - ListMeasurementProtocolSecretsResponse.newBuilder() + public void listSKAdNetworkConversionValueSchemasTest2() throws Exception { + SKAdNetworkConversionValueSchema responsesElement = + SKAdNetworkConversionValueSchema.newBuilder().build(); + ListSKAdNetworkConversionValueSchemasResponse expectedResponse = + ListSKAdNetworkConversionValueSchemasResponse.newBuilder() .setNextPageToken("") - .addAllMeasurementProtocolSecrets(Arrays.asList(responsesElement)) + .addAllSkadnetworkConversionValueSchemas(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); String parent = "parent-995424086"; - ListMeasurementProtocolSecretsPagedResponse pagedListResponse = - client.listMeasurementProtocolSecrets(parent); + ListSKAdNetworkConversionValueSchemasPagedResponse pagedListResponse = + client.listSKAdNetworkConversionValueSchemas(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); Assert.assertEquals( - expectedResponse.getMeasurementProtocolSecretsList().get(0), resources.get(0)); + expectedResponse.getSkadnetworkConversionValueSchemasList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListMeasurementProtocolSecretsRequest actualRequest = - ((ListMeasurementProtocolSecretsRequest) actualRequests.get(0)); + ListSKAdNetworkConversionValueSchemasRequest actualRequest = + ((ListSKAdNetworkConversionValueSchemasRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( @@ -2398,13 +2404,13 @@ public void listMeasurementProtocolSecretsTest2() throws Exception { } @Test - public void listMeasurementProtocolSecretsExceptionTest2() throws Exception { + public void listSKAdNetworkConversionValueSchemasExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { String parent = "parent-995424086"; - client.listMeasurementProtocolSecrets(parent); + client.listSKAdNetworkConversionValueSchemas(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2412,33 +2418,50 @@ public void listMeasurementProtocolSecretsExceptionTest2() throws Exception { } @Test - public void createMeasurementProtocolSecretTest() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") + public void searchChangeHistoryEventsTest() throws Exception { + ChangeHistoryEvent responsesElement = ChangeHistoryEvent.newBuilder().build(); + SearchChangeHistoryEventsResponse expectedResponse = + SearchChangeHistoryEventsResponse.newBuilder() + .setNextPageToken("") + .addAllChangeHistoryEvents(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); + 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(); - MeasurementProtocolSecret actualResponse = - client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); - Assert.assertEquals(expectedResponse, actualResponse); + 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()); - CreateMeasurementProtocolSecretRequest actualRequest = - ((CreateMeasurementProtocolSecretRequest) actualRequests.get(0)); + SearchChangeHistoryEventsRequest actualRequest = + ((SearchChangeHistoryEventsRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(measurementProtocolSecret, actualRequest.getMeasurementProtocolSecret()); + 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(), @@ -2446,15 +2469,24 @@ public void createMeasurementProtocolSecretTest() throws Exception { } @Test - public void createMeasurementProtocolSecretExceptionTest() throws Exception { + public void searchChangeHistoryEventsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); + 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. @@ -2462,33 +2494,26 @@ public void createMeasurementProtocolSecretExceptionTest() throws Exception { } @Test - public void createMeasurementProtocolSecretTest2() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") + 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); - String parent = "parent-995424086"; - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); + GoogleSignalsSettingsName name = GoogleSignalsSettingsName.of("[PROPERTY]"); - MeasurementProtocolSecret actualResponse = - client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); + GoogleSignalsSettings actualResponse = client.getGoogleSignalsSettings(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateMeasurementProtocolSecretRequest actualRequest = - ((CreateMeasurementProtocolSecretRequest) actualRequests.get(0)); + GetGoogleSignalsSettingsRequest actualRequest = + ((GetGoogleSignalsSettingsRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(measurementProtocolSecret, actualRequest.getMeasurementProtocolSecret()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2496,15 +2521,13 @@ public void createMeasurementProtocolSecretTest2() throws Exception { } @Test - public void createMeasurementProtocolSecretExceptionTest2() throws Exception { + public void getGoogleSignalsSettingsExceptionTest() 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); + GoogleSignalsSettingsName name = GoogleSignalsSettingsName.of("[PROPERTY]"); + client.getGoogleSignalsSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2512,22 +2535,26 @@ public void createMeasurementProtocolSecretExceptionTest2() throws Exception { } @Test - public void deleteMeasurementProtocolSecretTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + 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); - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + String name = "name3373707"; - client.deleteMeasurementProtocolSecret(name); + GoogleSignalsSettings actualResponse = client.getGoogleSignalsSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteMeasurementProtocolSecretRequest actualRequest = - ((DeleteMeasurementProtocolSecretRequest) actualRequests.get(0)); + GetGoogleSignalsSettingsRequest actualRequest = + ((GetGoogleSignalsSettingsRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2535,15 +2562,13 @@ public void deleteMeasurementProtocolSecretTest() throws Exception { } @Test - public void deleteMeasurementProtocolSecretExceptionTest() throws Exception { + public void getGoogleSignalsSettingsExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - MeasurementProtocolSecretName name = - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); - client.deleteMeasurementProtocolSecret(name); + String name = "name3373707"; + client.getGoogleSignalsSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2551,20 +2576,29 @@ public void deleteMeasurementProtocolSecretExceptionTest() throws Exception { } @Test - public void deleteMeasurementProtocolSecretTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + 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); - String name = "name3373707"; + GoogleSignalsSettings googleSignalsSettings = GoogleSignalsSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - client.deleteMeasurementProtocolSecret(name); + GoogleSignalsSettings actualResponse = + client.updateGoogleSignalsSettings(googleSignalsSettings, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteMeasurementProtocolSecretRequest actualRequest = - ((DeleteMeasurementProtocolSecretRequest) actualRequests.get(0)); + UpdateGoogleSignalsSettingsRequest actualRequest = + ((UpdateGoogleSignalsSettingsRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(googleSignalsSettings, actualRequest.getGoogleSignalsSettings()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2572,13 +2606,14 @@ public void deleteMeasurementProtocolSecretTest2() throws Exception { } @Test - public void deleteMeasurementProtocolSecretExceptionTest2() throws Exception { + public void updateGoogleSignalsSettingsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.deleteMeasurementProtocolSecret(name); + GoogleSignalsSettings googleSignalsSettings = GoogleSignalsSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateGoogleSignalsSettings(googleSignalsSettings, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2586,33 +2621,30 @@ public void deleteMeasurementProtocolSecretExceptionTest2() throws Exception { } @Test - public void updateMeasurementProtocolSecretTest() throws Exception { - MeasurementProtocolSecret expectedResponse = - MeasurementProtocolSecret.newBuilder() - .setName( - MeasurementProtocolSecretName.of( - "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") - .toString()) - .setDisplayName("displayName1714148973") - .setSecretValue("secretValue-2044460895") + public void createConversionEventTest() throws Exception { + ConversionEvent expectedResponse = + ConversionEvent.newBuilder() + .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - MeasurementProtocolSecret measurementProtocolSecret = - MeasurementProtocolSecret.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + PropertyName parent = PropertyName.of("[PROPERTY]"); + ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - MeasurementProtocolSecret actualResponse = - client.updateMeasurementProtocolSecret(measurementProtocolSecret, updateMask); + ConversionEvent actualResponse = client.createConversionEvent(parent, conversionEvent); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateMeasurementProtocolSecretRequest actualRequest = - ((UpdateMeasurementProtocolSecretRequest) actualRequests.get(0)); + CreateConversionEventRequest actualRequest = + ((CreateConversionEventRequest) actualRequests.get(0)); - Assert.assertEquals(measurementProtocolSecret, actualRequest.getMeasurementProtocolSecret()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(conversionEvent, actualRequest.getConversionEvent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2620,15 +2652,14 @@ public void updateMeasurementProtocolSecretTest() throws Exception { } @Test - public void updateMeasurementProtocolSecretExceptionTest() throws Exception { + public void createConversionEventExceptionTest() 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); + PropertyName parent = PropertyName.of("[PROPERTY]"); + ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); + client.createConversionEvent(parent, conversionEvent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2636,28 +2667,76 @@ public void updateMeasurementProtocolSecretExceptionTest() throws Exception { } @Test - public void acknowledgeUserDataCollectionTest() throws Exception { - AcknowledgeUserDataCollectionResponse expectedResponse = - AcknowledgeUserDataCollectionResponse.newBuilder().build(); + public void createConversionEventTest2() throws Exception { + ConversionEvent expectedResponse = + ConversionEvent.newBuilder() + .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - AcknowledgeUserDataCollectionRequest request = - AcknowledgeUserDataCollectionRequest.newBuilder() - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .setAcknowledgement("acknowledgement1769490938") + 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 updateConversionEventTest() throws Exception { + ConversionEvent expectedResponse = + ConversionEvent.newBuilder() + .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); - AcknowledgeUserDataCollectionResponse actualResponse = - client.acknowledgeUserDataCollection(request); + ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ConversionEvent actualResponse = client.updateConversionEvent(conversionEvent, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - AcknowledgeUserDataCollectionRequest actualRequest = - ((AcknowledgeUserDataCollectionRequest) actualRequests.get(0)); + UpdateConversionEventRequest actualRequest = + ((UpdateConversionEventRequest) actualRequests.get(0)); - Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); - Assert.assertEquals(request.getAcknowledgement(), actualRequest.getAcknowledgement()); + Assert.assertEquals(conversionEvent, actualRequest.getConversionEvent()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2665,17 +2744,14 @@ public void acknowledgeUserDataCollectionTest() throws Exception { } @Test - public void acknowledgeUserDataCollectionExceptionTest() throws Exception { + public void updateConversionEventExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - AcknowledgeUserDataCollectionRequest request = - AcknowledgeUserDataCollectionRequest.newBuilder() - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .setAcknowledgement("acknowledgement1769490938") - .build(); - client.acknowledgeUserDataCollection(request); + ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateConversionEvent(conversionEvent, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2683,32 +2759,25 @@ public void acknowledgeUserDataCollectionExceptionTest() throws Exception { } @Test - public void getSKAdNetworkConversionValueSchemaTest() throws Exception { - SKAdNetworkConversionValueSchema expectedResponse = - SKAdNetworkConversionValueSchema.newBuilder() - .setName( - SKAdNetworkConversionValueSchemaName.of( - "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") - .toString()) - .setPostbackWindowOne(PostbackWindow.newBuilder().build()) - .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) - .setPostbackWindowThree(PostbackWindow.newBuilder().build()) - .setApplyConversionValues(true) + public void getConversionEventTest() throws Exception { + ConversionEvent expectedResponse = + ConversionEvent.newBuilder() + .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - SKAdNetworkConversionValueSchemaName name = - SKAdNetworkConversionValueSchemaName.of( - "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]"); + ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); - SKAdNetworkConversionValueSchema actualResponse = - client.getSKAdNetworkConversionValueSchema(name); + ConversionEvent actualResponse = client.getConversionEvent(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetSKAdNetworkConversionValueSchemaRequest actualRequest = - ((GetSKAdNetworkConversionValueSchemaRequest) actualRequests.get(0)); + GetConversionEventRequest actualRequest = ((GetConversionEventRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -2718,15 +2787,13 @@ public void getSKAdNetworkConversionValueSchemaTest() throws Exception { } @Test - public void getSKAdNetworkConversionValueSchemaExceptionTest() throws Exception { + public void getConversionEventExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - SKAdNetworkConversionValueSchemaName name = - SKAdNetworkConversionValueSchemaName.of( - "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]"); - client.getSKAdNetworkConversionValueSchema(name); + ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); + client.getConversionEvent(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2734,30 +2801,25 @@ public void getSKAdNetworkConversionValueSchemaExceptionTest() throws Exception } @Test - public void getSKAdNetworkConversionValueSchemaTest2() throws Exception { - SKAdNetworkConversionValueSchema expectedResponse = - SKAdNetworkConversionValueSchema.newBuilder() - .setName( - SKAdNetworkConversionValueSchemaName.of( - "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") - .toString()) - .setPostbackWindowOne(PostbackWindow.newBuilder().build()) - .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) - .setPostbackWindowThree(PostbackWindow.newBuilder().build()) - .setApplyConversionValues(true) + public void getConversionEventTest2() throws Exception { + ConversionEvent expectedResponse = + ConversionEvent.newBuilder() + .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setDeletable(true) + .setCustom(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); String name = "name3373707"; - SKAdNetworkConversionValueSchema actualResponse = - client.getSKAdNetworkConversionValueSchema(name); + ConversionEvent actualResponse = client.getConversionEvent(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetSKAdNetworkConversionValueSchemaRequest actualRequest = - ((GetSKAdNetworkConversionValueSchemaRequest) actualRequests.get(0)); + GetConversionEventRequest actualRequest = ((GetConversionEventRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -2767,13 +2829,13 @@ public void getSKAdNetworkConversionValueSchemaTest2() throws Exception { } @Test - public void getSKAdNetworkConversionValueSchemaExceptionTest2() throws Exception { + public void getConversionEventExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { String name = "name3373707"; - client.getSKAdNetworkConversionValueSchema(name); + client.getConversionEvent(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2781,36 +2843,100 @@ public void getSKAdNetworkConversionValueSchemaExceptionTest2() throws Exception } @Test - public void createSKAdNetworkConversionValueSchemaTest() throws Exception { - SKAdNetworkConversionValueSchema expectedResponse = - SKAdNetworkConversionValueSchema.newBuilder() - .setName( - SKAdNetworkConversionValueSchemaName.of( - "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") - .toString()) - .setPostbackWindowOne(PostbackWindow.newBuilder().build()) - .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) - .setPostbackWindowThree(PostbackWindow.newBuilder().build()) - .setApplyConversionValues(true) + 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); - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = - SKAdNetworkConversionValueSchema.newBuilder().build(); + PropertyName parent = PropertyName.of("[PROPERTY]"); - SKAdNetworkConversionValueSchema actualResponse = - client.createSKAdNetworkConversionValueSchema(parent, skadnetworkConversionValueSchema); - Assert.assertEquals(expectedResponse, actualResponse); + 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()); - CreateSKAdNetworkConversionValueSchemaRequest actualRequest = - ((CreateSKAdNetworkConversionValueSchemaRequest) actualRequests.get(0)); + ListConversionEventsRequest actualRequest = + ((ListConversionEventsRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals( - skadnetworkConversionValueSchema, actualRequest.getSkadnetworkConversionValueSchema()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2818,15 +2944,13 @@ public void createSKAdNetworkConversionValueSchemaTest() throws Exception { } @Test - public void createSKAdNetworkConversionValueSchemaExceptionTest() throws Exception { + public void listConversionEventsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = - SKAdNetworkConversionValueSchema.newBuilder().build(); - client.createSKAdNetworkConversionValueSchema(parent, skadnetworkConversionValueSchema); + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listConversionEvents(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2834,36 +2958,30 @@ public void createSKAdNetworkConversionValueSchemaExceptionTest() throws Excepti } @Test - public void createSKAdNetworkConversionValueSchemaTest2() throws Exception { - SKAdNetworkConversionValueSchema expectedResponse = - SKAdNetworkConversionValueSchema.newBuilder() - .setName( - SKAdNetworkConversionValueSchemaName.of( - "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") - .toString()) - .setPostbackWindowOne(PostbackWindow.newBuilder().build()) - .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) - .setPostbackWindowThree(PostbackWindow.newBuilder().build()) - .setApplyConversionValues(true) + 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"; - SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = - SKAdNetworkConversionValueSchema.newBuilder().build(); - SKAdNetworkConversionValueSchema actualResponse = - client.createSKAdNetworkConversionValueSchema(parent, skadnetworkConversionValueSchema); - Assert.assertEquals(expectedResponse, actualResponse); + 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()); - CreateSKAdNetworkConversionValueSchemaRequest actualRequest = - ((CreateSKAdNetworkConversionValueSchemaRequest) actualRequests.get(0)); + ListConversionEventsRequest actualRequest = + ((ListConversionEventsRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals( - skadnetworkConversionValueSchema, actualRequest.getSkadnetworkConversionValueSchema()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2871,15 +2989,13 @@ public void createSKAdNetworkConversionValueSchemaTest2() throws Exception { } @Test - public void createSKAdNetworkConversionValueSchemaExceptionTest2() throws Exception { + public void listConversionEventsExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { String parent = "parent-995424086"; - SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = - SKAdNetworkConversionValueSchema.newBuilder().build(); - client.createSKAdNetworkConversionValueSchema(parent, skadnetworkConversionValueSchema); + client.listConversionEvents(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2887,20 +3003,31 @@ public void createSKAdNetworkConversionValueSchemaExceptionTest2() throws Except } @Test - public void deleteSKAdNetworkConversionValueSchemaTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getDisplayVideo360AdvertiserLinkTest() throws Exception { + DisplayVideo360AdvertiserLink expectedResponse = + DisplayVideo360AdvertiserLink.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - SKAdNetworkConversionValueSchemaName name = - SKAdNetworkConversionValueSchemaName.of( - "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]"); + DisplayVideo360AdvertiserLinkName name = + DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); - client.deleteSKAdNetworkConversionValueSchema(name); + DisplayVideo360AdvertiserLink actualResponse = client.getDisplayVideo360AdvertiserLink(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteSKAdNetworkConversionValueSchemaRequest actualRequest = - ((DeleteSKAdNetworkConversionValueSchemaRequest) actualRequests.get(0)); + GetDisplayVideo360AdvertiserLinkRequest actualRequest = + ((GetDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -2910,15 +3037,14 @@ public void deleteSKAdNetworkConversionValueSchemaTest() throws Exception { } @Test - public void deleteSKAdNetworkConversionValueSchemaExceptionTest() throws Exception { + public void getDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - SKAdNetworkConversionValueSchemaName name = - SKAdNetworkConversionValueSchemaName.of( - "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]"); - client.deleteSKAdNetworkConversionValueSchema(name); + DisplayVideo360AdvertiserLinkName name = + DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); + client.getDisplayVideo360AdvertiserLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2926,18 +3052,30 @@ public void deleteSKAdNetworkConversionValueSchemaExceptionTest() throws Excepti } @Test - public void deleteSKAdNetworkConversionValueSchemaTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getDisplayVideo360AdvertiserLinkTest2() throws Exception { + DisplayVideo360AdvertiserLink expectedResponse = + DisplayVideo360AdvertiserLink.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); String name = "name3373707"; - client.deleteSKAdNetworkConversionValueSchema(name); + DisplayVideo360AdvertiserLink actualResponse = client.getDisplayVideo360AdvertiserLink(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteSKAdNetworkConversionValueSchemaRequest actualRequest = - ((DeleteSKAdNetworkConversionValueSchemaRequest) actualRequests.get(0)); + GetDisplayVideo360AdvertiserLinkRequest actualRequest = + ((GetDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -2947,13 +3085,13 @@ public void deleteSKAdNetworkConversionValueSchemaTest2() throws Exception { } @Test - public void deleteSKAdNetworkConversionValueSchemaExceptionTest2() throws Exception { + public void getDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { String name = "name3373707"; - client.deleteSKAdNetworkConversionValueSchema(name); + client.getDisplayVideo360AdvertiserLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -2961,36 +3099,34 @@ public void deleteSKAdNetworkConversionValueSchemaExceptionTest2() throws Except } @Test - public void updateSKAdNetworkConversionValueSchemaTest() throws Exception { - SKAdNetworkConversionValueSchema expectedResponse = - SKAdNetworkConversionValueSchema.newBuilder() - .setName( - SKAdNetworkConversionValueSchemaName.of( - "[PROPERTY]", "[DATA_STREAM]", "[SKADNETWORK_CONVERSION_VALUE_SCHEMA]") - .toString()) - .setPostbackWindowOne(PostbackWindow.newBuilder().build()) - .setPostbackWindowTwo(PostbackWindow.newBuilder().build()) - .setPostbackWindowThree(PostbackWindow.newBuilder().build()) - .setApplyConversionValues(true) + public void listDisplayVideo360AdvertiserLinksTest() throws Exception { + DisplayVideo360AdvertiserLink responsesElement = + DisplayVideo360AdvertiserLink.newBuilder().build(); + ListDisplayVideo360AdvertiserLinksResponse expectedResponse = + ListDisplayVideo360AdvertiserLinksResponse.newBuilder() + .setNextPageToken("") + .addAllDisplayVideo360AdvertiserLinks(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = - SKAdNetworkConversionValueSchema.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + PropertyName parent = PropertyName.of("[PROPERTY]"); - SKAdNetworkConversionValueSchema actualResponse = - client.updateSKAdNetworkConversionValueSchema(skadnetworkConversionValueSchema, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); + ListDisplayVideo360AdvertiserLinksPagedResponse pagedListResponse = + client.listDisplayVideo360AdvertiserLinks(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getDisplayVideo360AdvertiserLinksList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateSKAdNetworkConversionValueSchemaRequest actualRequest = - ((UpdateSKAdNetworkConversionValueSchemaRequest) actualRequests.get(0)); + ListDisplayVideo360AdvertiserLinksRequest actualRequest = + ((ListDisplayVideo360AdvertiserLinksRequest) actualRequests.get(0)); - Assert.assertEquals( - skadnetworkConversionValueSchema, actualRequest.getSkadnetworkConversionValueSchema()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -2998,15 +3134,13 @@ public void updateSKAdNetworkConversionValueSchemaTest() throws Exception { } @Test - public void updateSKAdNetworkConversionValueSchemaExceptionTest() throws Exception { + public void listDisplayVideo360AdvertiserLinksExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema = - SKAdNetworkConversionValueSchema.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateSKAdNetworkConversionValueSchema(skadnetworkConversionValueSchema, updateMask); + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listDisplayVideo360AdvertiserLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3014,34 +3148,34 @@ public void updateSKAdNetworkConversionValueSchemaExceptionTest() throws Excepti } @Test - public void listSKAdNetworkConversionValueSchemasTest() throws Exception { - SKAdNetworkConversionValueSchema responsesElement = - SKAdNetworkConversionValueSchema.newBuilder().build(); - ListSKAdNetworkConversionValueSchemasResponse expectedResponse = - ListSKAdNetworkConversionValueSchemasResponse.newBuilder() + public void listDisplayVideo360AdvertiserLinksTest2() throws Exception { + DisplayVideo360AdvertiserLink responsesElement = + DisplayVideo360AdvertiserLink.newBuilder().build(); + ListDisplayVideo360AdvertiserLinksResponse expectedResponse = + ListDisplayVideo360AdvertiserLinksResponse.newBuilder() .setNextPageToken("") - .addAllSkadnetworkConversionValueSchemas(Arrays.asList(responsesElement)) + .addAllDisplayVideo360AdvertiserLinks(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + String parent = "parent-995424086"; - ListSKAdNetworkConversionValueSchemasPagedResponse pagedListResponse = - client.listSKAdNetworkConversionValueSchemas(parent); + ListDisplayVideo360AdvertiserLinksPagedResponse pagedListResponse = + client.listDisplayVideo360AdvertiserLinks(parent); - List resources = + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); Assert.assertEquals( - expectedResponse.getSkadnetworkConversionValueSchemasList().get(0), resources.get(0)); + expectedResponse.getDisplayVideo360AdvertiserLinksList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListSKAdNetworkConversionValueSchemasRequest actualRequest = - ((ListSKAdNetworkConversionValueSchemasRequest) actualRequests.get(0)); + ListDisplayVideo360AdvertiserLinksRequest actualRequest = + ((ListDisplayVideo360AdvertiserLinksRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3049,13 +3183,13 @@ public void listSKAdNetworkConversionValueSchemasTest() throws Exception { } @Test - public void listSKAdNetworkConversionValueSchemasExceptionTest() throws Exception { + public void listDisplayVideo360AdvertiserLinksExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.listSKAdNetworkConversionValueSchemas(parent); + String parent = "parent-995424086"; + client.listDisplayVideo360AdvertiserLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3063,34 +3197,37 @@ public void listSKAdNetworkConversionValueSchemasExceptionTest() throws Exceptio } @Test - public void listSKAdNetworkConversionValueSchemasTest2() throws Exception { - SKAdNetworkConversionValueSchema responsesElement = - SKAdNetworkConversionValueSchema.newBuilder().build(); - ListSKAdNetworkConversionValueSchemasResponse expectedResponse = - ListSKAdNetworkConversionValueSchemasResponse.newBuilder() - .setNextPageToken("") - .addAllSkadnetworkConversionValueSchemas(Arrays.asList(responsesElement)) + public void createDisplayVideo360AdvertiserLinkTest() throws Exception { + DisplayVideo360AdvertiserLink expectedResponse = + DisplayVideo360AdvertiserLink.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - - ListSKAdNetworkConversionValueSchemasPagedResponse pagedListResponse = - client.listSKAdNetworkConversionValueSchemas(parent); - - List resources = - Lists.newArrayList(pagedListResponse.iterateAll()); + PropertyName parent = PropertyName.of("[PROPERTY]"); + DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = + DisplayVideo360AdvertiserLink.newBuilder().build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getSkadnetworkConversionValueSchemasList().get(0), resources.get(0)); + DisplayVideo360AdvertiserLink actualResponse = + client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListSKAdNetworkConversionValueSchemasRequest actualRequest = - ((ListSKAdNetworkConversionValueSchemasRequest) actualRequests.get(0)); + CreateDisplayVideo360AdvertiserLinkRequest actualRequest = + ((CreateDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals( + displayVideo360AdvertiserLink, actualRequest.getDisplayVideo360AdvertiserLink()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3098,13 +3235,15 @@ public void listSKAdNetworkConversionValueSchemasTest2() throws Exception { } @Test - public void listSKAdNetworkConversionValueSchemasExceptionTest2() throws Exception { + public void createDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - client.listSKAdNetworkConversionValueSchemas(parent); + PropertyName parent = PropertyName.of("[PROPERTY]"); + DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = + DisplayVideo360AdvertiserLink.newBuilder().build(); + client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3112,50 +3251,37 @@ public void listSKAdNetworkConversionValueSchemasExceptionTest2() throws Excepti } @Test - public void searchChangeHistoryEventsTest() throws Exception { - ChangeHistoryEvent responsesElement = ChangeHistoryEvent.newBuilder().build(); - SearchChangeHistoryEventsResponse expectedResponse = - SearchChangeHistoryEventsResponse.newBuilder() - .setNextPageToken("") - .addAllChangeHistoryEvents(Arrays.asList(responsesElement)) + public void createDisplayVideo360AdvertiserLinkTest2() throws Exception { + DisplayVideo360AdvertiserLink expectedResponse = + DisplayVideo360AdvertiserLink.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - 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()); + String parent = "parent-995424086"; + DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = + DisplayVideo360AdvertiserLink.newBuilder().build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getChangeHistoryEventsList().get(0), resources.get(0)); + DisplayVideo360AdvertiserLink actualResponse = + client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - SearchChangeHistoryEventsRequest actualRequest = - ((SearchChangeHistoryEventsRequest) actualRequests.get(0)); + CreateDisplayVideo360AdvertiserLinkRequest actualRequest = + ((CreateDisplayVideo360AdvertiserLinkRequest) 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.assertEquals( + displayVideo360AdvertiserLink, actualRequest.getDisplayVideo360AdvertiserLink()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3163,24 +3289,15 @@ public void searchChangeHistoryEventsTest() throws Exception { } @Test - public void searchChangeHistoryEventsExceptionTest() throws Exception { + public void createDisplayVideo360AdvertiserLinkExceptionTest2() 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"; + DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = + DisplayVideo360AdvertiserLink.newBuilder().build(); + client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3188,24 +3305,19 @@ public void searchChangeHistoryEventsExceptionTest() throws 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(); + public void deleteDisplayVideo360AdvertiserLinkTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - GoogleSignalsSettingsName name = GoogleSignalsSettingsName.of("[PROPERTY]"); + DisplayVideo360AdvertiserLinkName name = + DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); - GoogleSignalsSettings actualResponse = client.getGoogleSignalsSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteDisplayVideo360AdvertiserLink(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetGoogleSignalsSettingsRequest actualRequest = - ((GetGoogleSignalsSettingsRequest) actualRequests.get(0)); + DeleteDisplayVideo360AdvertiserLinkRequest actualRequest = + ((DeleteDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -3215,13 +3327,14 @@ public void getGoogleSignalsSettingsTest() throws Exception { } @Test - public void getGoogleSignalsSettingsExceptionTest() throws Exception { + public void deleteDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - GoogleSignalsSettingsName name = GoogleSignalsSettingsName.of("[PROPERTY]"); - client.getGoogleSignalsSettings(name); + DisplayVideo360AdvertiserLinkName name = + DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); + client.deleteDisplayVideo360AdvertiserLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3229,24 +3342,18 @@ public void getGoogleSignalsSettingsExceptionTest() throws 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(); + public void deleteDisplayVideo360AdvertiserLinkTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); String name = "name3373707"; - GoogleSignalsSettings actualResponse = client.getGoogleSignalsSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteDisplayVideo360AdvertiserLink(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetGoogleSignalsSettingsRequest actualRequest = - ((GetGoogleSignalsSettingsRequest) actualRequests.get(0)); + DeleteDisplayVideo360AdvertiserLinkRequest actualRequest = + ((DeleteDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -3256,13 +3363,13 @@ public void getGoogleSignalsSettingsTest2() throws Exception { } @Test - public void getGoogleSignalsSettingsExceptionTest2() throws Exception { + public void deleteDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { String name = "name3373707"; - client.getGoogleSignalsSettings(name); + client.deleteDisplayVideo360AdvertiserLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3270,28 +3377,36 @@ public void getGoogleSignalsSettingsExceptionTest2() throws Exception { } @Test - public void updateGoogleSignalsSettingsTest() throws Exception { - GoogleSignalsSettings expectedResponse = - GoogleSignalsSettings.newBuilder() - .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) - .setState(GoogleSignalsState.forNumber(0)) - .setConsent(GoogleSignalsConsent.forNumber(0)) + public void updateDisplayVideo360AdvertiserLinkTest() throws Exception { + DisplayVideo360AdvertiserLink expectedResponse = + DisplayVideo360AdvertiserLink.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - GoogleSignalsSettings googleSignalsSettings = GoogleSignalsSettings.newBuilder().build(); + DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = + DisplayVideo360AdvertiserLink.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); - GoogleSignalsSettings actualResponse = - client.updateGoogleSignalsSettings(googleSignalsSettings, updateMask); + DisplayVideo360AdvertiserLink actualResponse = + client.updateDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateGoogleSignalsSettingsRequest actualRequest = - ((UpdateGoogleSignalsSettingsRequest) actualRequests.get(0)); + UpdateDisplayVideo360AdvertiserLinkRequest actualRequest = + ((UpdateDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); - Assert.assertEquals(googleSignalsSettings, actualRequest.getGoogleSignalsSettings()); + Assert.assertEquals( + displayVideo360AdvertiserLink, actualRequest.getDisplayVideo360AdvertiserLink()); Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -3300,14 +3415,15 @@ public void updateGoogleSignalsSettingsTest() throws Exception { } @Test - public void updateGoogleSignalsSettingsExceptionTest() throws Exception { + public void updateDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - GoogleSignalsSettings googleSignalsSettings = GoogleSignalsSettings.newBuilder().build(); + DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = + DisplayVideo360AdvertiserLink.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateGoogleSignalsSettings(googleSignalsSettings, updateMask); + client.updateDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3315,30 +3431,37 @@ public void updateGoogleSignalsSettingsExceptionTest() throws Exception { } @Test - public void createConversionEventTest() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) + public void getDisplayVideo360AdvertiserLinkProposalTest() throws Exception { + DisplayVideo360AdvertiserLinkProposal expectedResponse = + DisplayVideo360AdvertiserLinkProposal.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setValidationEmail("validationEmail-94407005") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); + DisplayVideo360AdvertiserLinkProposalName name = + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); - ConversionEvent actualResponse = client.createConversionEvent(parent, conversionEvent); + DisplayVideo360AdvertiserLinkProposal actualResponse = + client.getDisplayVideo360AdvertiserLinkProposal(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateConversionEventRequest actualRequest = - ((CreateConversionEventRequest) actualRequests.get(0)); + GetDisplayVideo360AdvertiserLinkProposalRequest actualRequest = + ((GetDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(conversionEvent, actualRequest.getConversionEvent()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3346,14 +3469,15 @@ public void createConversionEventTest() throws Exception { } @Test - public void createConversionEventExceptionTest() throws Exception { + public void getDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - client.createConversionEvent(parent, conversionEvent); + DisplayVideo360AdvertiserLinkProposalName name = + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); + client.getDisplayVideo360AdvertiserLinkProposal(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3361,30 +3485,35 @@ public void createConversionEventExceptionTest() throws Exception { } @Test - public void createConversionEventTest2() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) + public void getDisplayVideo360AdvertiserLinkProposalTest2() throws Exception { + DisplayVideo360AdvertiserLinkProposal expectedResponse = + DisplayVideo360AdvertiserLinkProposal.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setValidationEmail("validationEmail-94407005") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); + String name = "name3373707"; - ConversionEvent actualResponse = client.createConversionEvent(parent, conversionEvent); + DisplayVideo360AdvertiserLinkProposal actualResponse = + client.getDisplayVideo360AdvertiserLinkProposal(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateConversionEventRequest actualRequest = - ((CreateConversionEventRequest) actualRequests.get(0)); + GetDisplayVideo360AdvertiserLinkProposalRequest actualRequest = + ((GetDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(conversionEvent, actualRequest.getConversionEvent()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3392,14 +3521,13 @@ public void createConversionEventTest2() throws Exception { } @Test - public void createConversionEventExceptionTest2() throws Exception { + public void getDisplayVideo360AdvertiserLinkProposalExceptionTest2() 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); + String name = "name3373707"; + client.getDisplayVideo360AdvertiserLinkProposal(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3407,30 +3535,34 @@ public void createConversionEventExceptionTest2() throws Exception { } @Test - public void updateConversionEventTest() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) + public void listDisplayVideo360AdvertiserLinkProposalsTest() throws Exception { + DisplayVideo360AdvertiserLinkProposal responsesElement = + DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); + ListDisplayVideo360AdvertiserLinkProposalsResponse expectedResponse = + ListDisplayVideo360AdvertiserLinkProposalsResponse.newBuilder() + .setNextPageToken("") + .addAllDisplayVideo360AdvertiserLinkProposals(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + PropertyName parent = PropertyName.of("[PROPERTY]"); - ConversionEvent actualResponse = client.updateConversionEvent(conversionEvent, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); + ListDisplayVideo360AdvertiserLinkProposalsPagedResponse pagedListResponse = + client.listDisplayVideo360AdvertiserLinkProposals(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getDisplayVideo360AdvertiserLinkProposalsList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateConversionEventRequest actualRequest = - ((UpdateConversionEventRequest) actualRequests.get(0)); + ListDisplayVideo360AdvertiserLinkProposalsRequest actualRequest = + ((ListDisplayVideo360AdvertiserLinkProposalsRequest) actualRequests.get(0)); - Assert.assertEquals(conversionEvent, actualRequest.getConversionEvent()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3438,14 +3570,13 @@ public void updateConversionEventTest() throws Exception { } @Test - public void updateConversionEventExceptionTest() throws Exception { + public void listDisplayVideo360AdvertiserLinkProposalsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateConversionEvent(conversionEvent, updateMask); + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listDisplayVideo360AdvertiserLinkProposals(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3453,27 +3584,34 @@ public void updateConversionEventExceptionTest() throws Exception { } @Test - public void getConversionEventTest() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) + public void listDisplayVideo360AdvertiserLinkProposalsTest2() throws Exception { + DisplayVideo360AdvertiserLinkProposal responsesElement = + DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); + ListDisplayVideo360AdvertiserLinkProposalsResponse expectedResponse = + ListDisplayVideo360AdvertiserLinkProposalsResponse.newBuilder() + .setNextPageToken("") + .addAllDisplayVideo360AdvertiserLinkProposals(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); + String parent = "parent-995424086"; - ConversionEvent actualResponse = client.getConversionEvent(name); - Assert.assertEquals(expectedResponse, actualResponse); + ListDisplayVideo360AdvertiserLinkProposalsPagedResponse pagedListResponse = + client.listDisplayVideo360AdvertiserLinkProposals(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getDisplayVideo360AdvertiserLinkProposalsList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetConversionEventRequest actualRequest = ((GetConversionEventRequest) actualRequests.get(0)); + ListDisplayVideo360AdvertiserLinkProposalsRequest actualRequest = + ((ListDisplayVideo360AdvertiserLinkProposalsRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3481,13 +3619,13 @@ public void getConversionEventTest() throws Exception { } @Test - public void getConversionEventExceptionTest() throws Exception { + public void listDisplayVideo360AdvertiserLinkProposalsExceptionTest2() 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); + String parent = "parent-995424086"; + client.listDisplayVideo360AdvertiserLinkProposals(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3495,27 +3633,41 @@ public void getConversionEventExceptionTest() throws Exception { } @Test - public void getConversionEventTest2() throws Exception { - ConversionEvent expectedResponse = - ConversionEvent.newBuilder() - .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) - .setEventName("eventName31228997") - .setCreateTime(Timestamp.newBuilder().build()) - .setDeletable(true) - .setCustom(true) + public void createDisplayVideo360AdvertiserLinkProposalTest() throws Exception { + DisplayVideo360AdvertiserLinkProposal expectedResponse = + DisplayVideo360AdvertiserLinkProposal.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setValidationEmail("validationEmail-94407005") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + PropertyName parent = PropertyName.of("[PROPERTY]"); + DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = + DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - ConversionEvent actualResponse = client.getConversionEvent(name); + DisplayVideo360AdvertiserLinkProposal actualResponse = + client.createDisplayVideo360AdvertiserLinkProposal( + parent, displayVideo360AdvertiserLinkProposal); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetConversionEventRequest actualRequest = ((GetConversionEventRequest) actualRequests.get(0)); + CreateDisplayVideo360AdvertiserLinkProposalRequest actualRequest = + ((CreateDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals( + displayVideo360AdvertiserLinkProposal, + actualRequest.getDisplayVideo360AdvertiserLinkProposal()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3523,13 +3675,16 @@ public void getConversionEventTest2() throws Exception { } @Test - public void getConversionEventExceptionTest2() throws Exception { + public void createDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.getConversionEvent(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = + DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); + client.createDisplayVideo360AdvertiserLinkProposal( + parent, displayVideo360AdvertiserLinkProposal); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3537,20 +3692,41 @@ public void getConversionEventExceptionTest2() throws Exception { } @Test - public void deleteConversionEventTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void createDisplayVideo360AdvertiserLinkProposalTest2() throws Exception { + DisplayVideo360AdvertiserLinkProposal expectedResponse = + DisplayVideo360AdvertiserLinkProposal.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setValidationEmail("validationEmail-94407005") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); + String parent = "parent-995424086"; + DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = + DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - client.deleteConversionEvent(name); + DisplayVideo360AdvertiserLinkProposal actualResponse = + client.createDisplayVideo360AdvertiserLinkProposal( + parent, displayVideo360AdvertiserLinkProposal); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteConversionEventRequest actualRequest = - ((DeleteConversionEventRequest) actualRequests.get(0)); + CreateDisplayVideo360AdvertiserLinkProposalRequest actualRequest = + ((CreateDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals( + displayVideo360AdvertiserLinkProposal, + actualRequest.getDisplayVideo360AdvertiserLinkProposal()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3558,13 +3734,16 @@ public void deleteConversionEventTest() throws Exception { } @Test - public void deleteConversionEventExceptionTest() throws Exception { + public void createDisplayVideo360AdvertiserLinkProposalExceptionTest2() 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); + String parent = "parent-995424086"; + DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = + DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); + client.createDisplayVideo360AdvertiserLinkProposal( + parent, displayVideo360AdvertiserLinkProposal); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3572,20 +3751,22 @@ public void deleteConversionEventExceptionTest() throws Exception { } @Test - public void deleteConversionEventTest2() throws Exception { + public void deleteDisplayVideo360AdvertiserLinkProposalTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + DisplayVideo360AdvertiserLinkProposalName name = + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); - client.deleteConversionEvent(name); + client.deleteDisplayVideo360AdvertiserLinkProposal(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteConversionEventRequest actualRequest = - ((DeleteConversionEventRequest) actualRequests.get(0)); + DeleteDisplayVideo360AdvertiserLinkProposalRequest actualRequest = + ((DeleteDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3593,13 +3774,15 @@ public void deleteConversionEventTest2() throws Exception { } @Test - public void deleteConversionEventExceptionTest2() throws Exception { + public void deleteDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.deleteConversionEvent(name); + DisplayVideo360AdvertiserLinkProposalName name = + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); + client.deleteDisplayVideo360AdvertiserLinkProposal(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3607,30 +3790,20 @@ public void deleteConversionEventExceptionTest2() throws Exception { } @Test - public void listConversionEventsTest() throws Exception { - ConversionEvent responsesElement = ConversionEvent.newBuilder().build(); - ListConversionEventsResponse expectedResponse = - ListConversionEventsResponse.newBuilder() - .setNextPageToken("") - .addAllConversionEvents(Arrays.asList(responsesElement)) - .build(); + public void deleteDisplayVideo360AdvertiserLinkProposalTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListConversionEventsPagedResponse pagedListResponse = client.listConversionEvents(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + String name = "name3373707"; - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getConversionEventsList().get(0), resources.get(0)); + client.deleteDisplayVideo360AdvertiserLinkProposal(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListConversionEventsRequest actualRequest = - ((ListConversionEventsRequest) actualRequests.get(0)); + DeleteDisplayVideo360AdvertiserLinkProposalRequest actualRequest = + ((DeleteDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3638,13 +3811,13 @@ public void listConversionEventsTest() throws Exception { } @Test - public void listConversionEventsExceptionTest() throws Exception { + public void deleteDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listConversionEvents(parent); + String name = "name3373707"; + client.deleteDisplayVideo360AdvertiserLinkProposal(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3652,30 +3825,31 @@ public void listConversionEventsExceptionTest() throws Exception { } @Test - public void listConversionEventsTest2() throws Exception { - ConversionEvent responsesElement = ConversionEvent.newBuilder().build(); - ListConversionEventsResponse expectedResponse = - ListConversionEventsResponse.newBuilder() - .setNextPageToken("") - .addAllConversionEvents(Arrays.asList(responsesElement)) + public void approveDisplayVideo360AdvertiserLinkProposalTest() throws Exception { + ApproveDisplayVideo360AdvertiserLinkProposalResponse expectedResponse = + ApproveDisplayVideo360AdvertiserLinkProposalResponse.newBuilder() + .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - - ListConversionEventsPagedResponse pagedListResponse = client.listConversionEvents(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + ApproveDisplayVideo360AdvertiserLinkProposalRequest request = + ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getConversionEventsList().get(0), resources.get(0)); + ApproveDisplayVideo360AdvertiserLinkProposalResponse actualResponse = + client.approveDisplayVideo360AdvertiserLinkProposal(request); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListConversionEventsRequest actualRequest = - ((ListConversionEventsRequest) actualRequests.get(0)); + ApproveDisplayVideo360AdvertiserLinkProposalRequest actualRequest = + ((ApproveDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(request.getName(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3683,13 +3857,19 @@ public void listConversionEventsTest2() throws Exception { } @Test - public void listConversionEventsExceptionTest2() throws Exception { + public void approveDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - client.listConversionEvents(parent); + ApproveDisplayVideo360AdvertiserLinkProposalRequest request = + ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .build(); + client.approveDisplayVideo360AdvertiserLinkProposal(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3697,33 +3877,41 @@ public void listConversionEventsExceptionTest2() throws Exception { } @Test - public void getDisplayVideo360AdvertiserLinkTest() throws Exception { - DisplayVideo360AdvertiserLink expectedResponse = - DisplayVideo360AdvertiserLink.newBuilder() + public void cancelDisplayVideo360AdvertiserLinkProposalTest() throws Exception { + DisplayVideo360AdvertiserLinkProposal expectedResponse = + DisplayVideo360AdvertiserLinkProposal.newBuilder() .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") .toString()) .setAdvertiserId("advertiserId550061990") + .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setValidationEmail("validationEmail-94407005") .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) .setCostDataSharingEnabled(BoolValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - DisplayVideo360AdvertiserLinkName name = - DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); + CancelDisplayVideo360AdvertiserLinkProposalRequest request = + CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .build(); - DisplayVideo360AdvertiserLink actualResponse = client.getDisplayVideo360AdvertiserLink(name); + DisplayVideo360AdvertiserLinkProposal actualResponse = + client.cancelDisplayVideo360AdvertiserLinkProposal(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetDisplayVideo360AdvertiserLinkRequest actualRequest = - ((GetDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); + CancelDisplayVideo360AdvertiserLinkProposalRequest actualRequest = + ((CancelDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(request.getName(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3731,14 +3919,19 @@ public void getDisplayVideo360AdvertiserLinkTest() throws Exception { } @Test - public void getDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { + public void cancelDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - DisplayVideo360AdvertiserLinkName name = - DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); - client.getDisplayVideo360AdvertiserLink(name); + CancelDisplayVideo360AdvertiserLinkProposalRequest request = + CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .build(); + client.cancelDisplayVideo360AdvertiserLinkProposal(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3746,32 +3939,30 @@ public void getDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { } @Test - public void getDisplayVideo360AdvertiserLinkTest2() throws Exception { - DisplayVideo360AdvertiserLink expectedResponse = - DisplayVideo360AdvertiserLink.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + public void createCustomDimensionTest() throws Exception { + CustomDimension expectedResponse = + CustomDimension.newBuilder() + .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDisallowAdsPersonalization(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + PropertyName parent = PropertyName.of("[PROPERTY]"); + CustomDimension customDimension = CustomDimension.newBuilder().build(); - DisplayVideo360AdvertiserLink actualResponse = client.getDisplayVideo360AdvertiserLink(name); + CustomDimension actualResponse = client.createCustomDimension(parent, customDimension); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetDisplayVideo360AdvertiserLinkRequest actualRequest = - ((GetDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); + CreateCustomDimensionRequest actualRequest = + ((CreateCustomDimensionRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(customDimension, actualRequest.getCustomDimension()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3779,13 +3970,14 @@ public void getDisplayVideo360AdvertiserLinkTest2() throws Exception { } @Test - public void getDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception { + public void createCustomDimensionExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.getDisplayVideo360AdvertiserLink(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + CustomDimension customDimension = CustomDimension.newBuilder().build(); + client.createCustomDimension(parent, customDimension); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3793,34 +3985,30 @@ public void getDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception { } @Test - public void listDisplayVideo360AdvertiserLinksTest() throws Exception { - DisplayVideo360AdvertiserLink responsesElement = - DisplayVideo360AdvertiserLink.newBuilder().build(); - ListDisplayVideo360AdvertiserLinksResponse expectedResponse = - ListDisplayVideo360AdvertiserLinksResponse.newBuilder() - .setNextPageToken("") - .addAllDisplayVideo360AdvertiserLinks(Arrays.asList(responsesElement)) + public void createCustomDimensionTest2() throws Exception { + CustomDimension expectedResponse = + CustomDimension.newBuilder() + .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDisallowAdsPersonalization(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListDisplayVideo360AdvertiserLinksPagedResponse pagedListResponse = - client.listDisplayVideo360AdvertiserLinks(parent); - - List resources = - Lists.newArrayList(pagedListResponse.iterateAll()); + String parent = "parent-995424086"; + CustomDimension customDimension = CustomDimension.newBuilder().build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getDisplayVideo360AdvertiserLinksList().get(0), resources.get(0)); + CustomDimension actualResponse = client.createCustomDimension(parent, customDimension); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListDisplayVideo360AdvertiserLinksRequest actualRequest = - ((ListDisplayVideo360AdvertiserLinksRequest) actualRequests.get(0)); + CreateCustomDimensionRequest actualRequest = + ((CreateCustomDimensionRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(customDimension, actualRequest.getCustomDimension()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3828,13 +4016,14 @@ public void listDisplayVideo360AdvertiserLinksTest() throws Exception { } @Test - public void listDisplayVideo360AdvertiserLinksExceptionTest() throws Exception { + public void createCustomDimensionExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listDisplayVideo360AdvertiserLinks(parent); + String parent = "parent-995424086"; + CustomDimension customDimension = CustomDimension.newBuilder().build(); + client.createCustomDimension(parent, customDimension); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3842,34 +4031,30 @@ public void listDisplayVideo360AdvertiserLinksExceptionTest() throws Exception { } @Test - public void listDisplayVideo360AdvertiserLinksTest2() throws Exception { - DisplayVideo360AdvertiserLink responsesElement = - DisplayVideo360AdvertiserLink.newBuilder().build(); - ListDisplayVideo360AdvertiserLinksResponse expectedResponse = - ListDisplayVideo360AdvertiserLinksResponse.newBuilder() - .setNextPageToken("") - .addAllDisplayVideo360AdvertiserLinks(Arrays.asList(responsesElement)) + public void updateCustomDimensionTest() throws Exception { + CustomDimension expectedResponse = + CustomDimension.newBuilder() + .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDisallowAdsPersonalization(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - - ListDisplayVideo360AdvertiserLinksPagedResponse pagedListResponse = - client.listDisplayVideo360AdvertiserLinks(parent); - - List resources = - Lists.newArrayList(pagedListResponse.iterateAll()); + CustomDimension customDimension = CustomDimension.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getDisplayVideo360AdvertiserLinksList().get(0), resources.get(0)); + CustomDimension actualResponse = client.updateCustomDimension(customDimension, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListDisplayVideo360AdvertiserLinksRequest actualRequest = - ((ListDisplayVideo360AdvertiserLinksRequest) actualRequests.get(0)); + UpdateCustomDimensionRequest actualRequest = + ((UpdateCustomDimensionRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(customDimension, actualRequest.getCustomDimension()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3877,13 +4062,14 @@ public void listDisplayVideo360AdvertiserLinksTest2() throws Exception { } @Test - public void listDisplayVideo360AdvertiserLinksExceptionTest2() throws Exception { + public void updateCustomDimensionExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - client.listDisplayVideo360AdvertiserLinks(parent); + CustomDimension customDimension = CustomDimension.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCustomDimension(customDimension, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3891,37 +4077,30 @@ public void listDisplayVideo360AdvertiserLinksExceptionTest2() throws Exception } @Test - public void createDisplayVideo360AdvertiserLinkTest() throws Exception { - DisplayVideo360AdvertiserLink expectedResponse = - DisplayVideo360AdvertiserLink.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + 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]"); - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder().build(); - DisplayVideo360AdvertiserLink actualResponse = - client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); - Assert.assertEquals(expectedResponse, actualResponse); + 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()); - CreateDisplayVideo360AdvertiserLinkRequest actualRequest = - ((CreateDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); + ListCustomDimensionsRequest actualRequest = + ((ListCustomDimensionsRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals( - displayVideo360AdvertiserLink, actualRequest.getDisplayVideo360AdvertiserLink()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3929,15 +4108,13 @@ public void createDisplayVideo360AdvertiserLinkTest() throws Exception { } @Test - public void createDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { + public void listCustomDimensionsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { PropertyName parent = PropertyName.of("[PROPERTY]"); - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder().build(); - client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); + client.listCustomDimensions(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3945,37 +4122,30 @@ public void createDisplayVideo360AdvertiserLinkExceptionTest() throws Exception } @Test - public void createDisplayVideo360AdvertiserLinkTest2() throws Exception { - DisplayVideo360AdvertiserLink expectedResponse = - DisplayVideo360AdvertiserLink.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + 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"; - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder().build(); + String parent = "parent-995424086"; + + ListCustomDimensionsPagedResponse pagedListResponse = client.listCustomDimensions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - DisplayVideo360AdvertiserLink actualResponse = - client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); - Assert.assertEquals(expectedResponse, actualResponse); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCustomDimensionsList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateDisplayVideo360AdvertiserLinkRequest actualRequest = - ((CreateDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); + ListCustomDimensionsRequest actualRequest = + ((ListCustomDimensionsRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals( - displayVideo360AdvertiserLink, actualRequest.getDisplayVideo360AdvertiserLink()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3983,15 +4153,13 @@ public void createDisplayVideo360AdvertiserLinkTest2() throws Exception { } @Test - public void createDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception { + public void listCustomDimensionsExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { String parent = "parent-995424086"; - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder().build(); - client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); + client.listCustomDimensions(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -3999,19 +4167,18 @@ public void createDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception } @Test - public void deleteDisplayVideo360AdvertiserLinkTest() throws Exception { + public void archiveCustomDimensionTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - DisplayVideo360AdvertiserLinkName name = - DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); + CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - client.deleteDisplayVideo360AdvertiserLink(name); + client.archiveCustomDimension(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteDisplayVideo360AdvertiserLinkRequest actualRequest = - ((DeleteDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); + ArchiveCustomDimensionRequest actualRequest = + ((ArchiveCustomDimensionRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -4021,14 +4188,13 @@ public void deleteDisplayVideo360AdvertiserLinkTest() throws Exception { } @Test - public void deleteDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { + public void archiveCustomDimensionExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - DisplayVideo360AdvertiserLinkName name = - DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); - client.deleteDisplayVideo360AdvertiserLink(name); + CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); + client.archiveCustomDimension(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4036,18 +4202,18 @@ public void deleteDisplayVideo360AdvertiserLinkExceptionTest() throws Exception } @Test - public void deleteDisplayVideo360AdvertiserLinkTest2() throws Exception { + public void archiveCustomDimensionTest2() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); String name = "name3373707"; - client.deleteDisplayVideo360AdvertiserLink(name); + client.archiveCustomDimension(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteDisplayVideo360AdvertiserLinkRequest actualRequest = - ((DeleteDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); + ArchiveCustomDimensionRequest actualRequest = + ((ArchiveCustomDimensionRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -4057,13 +4223,13 @@ public void deleteDisplayVideo360AdvertiserLinkTest2() throws Exception { } @Test - public void deleteDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception { + public void archiveCustomDimensionExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { String name = "name3373707"; - client.deleteDisplayVideo360AdvertiserLink(name); + client.archiveCustomDimension(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4071,37 +4237,27 @@ public void deleteDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception } @Test - public void updateDisplayVideo360AdvertiserLinkTest() throws Exception { - DisplayVideo360AdvertiserLink expectedResponse = - DisplayVideo360AdvertiserLink.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + public void getCustomDimensionTest() throws Exception { + CustomDimension expectedResponse = + CustomDimension.newBuilder() + .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDisallowAdsPersonalization(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - DisplayVideo360AdvertiserLink actualResponse = - client.updateDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink, updateMask); + CustomDimension actualResponse = client.getCustomDimension(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateDisplayVideo360AdvertiserLinkRequest actualRequest = - ((UpdateDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); + GetCustomDimensionRequest actualRequest = ((GetCustomDimensionRequest) actualRequests.get(0)); - Assert.assertEquals( - displayVideo360AdvertiserLink, actualRequest.getDisplayVideo360AdvertiserLink()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4109,15 +4265,13 @@ public void updateDisplayVideo360AdvertiserLinkTest() throws Exception { } @Test - public void updateDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { + public void getCustomDimensionExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = - DisplayVideo360AdvertiserLink.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink, updateMask); + CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); + client.getCustomDimension(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4125,37 +4279,27 @@ public void updateDisplayVideo360AdvertiserLinkExceptionTest() throws Exception } @Test - public void getDisplayVideo360AdvertiserLinkProposalTest() throws Exception { - DisplayVideo360AdvertiserLinkProposal expectedResponse = - DisplayVideo360AdvertiserLinkProposal.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setValidationEmail("validationEmail-94407005") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + public void getCustomDimensionTest2() throws Exception { + CustomDimension expectedResponse = + CustomDimension.newBuilder() + .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDisallowAdsPersonalization(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - DisplayVideo360AdvertiserLinkProposalName name = - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); + String name = "name3373707"; - DisplayVideo360AdvertiserLinkProposal actualResponse = - client.getDisplayVideo360AdvertiserLinkProposal(name); + CustomDimension actualResponse = client.getCustomDimension(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetDisplayVideo360AdvertiserLinkProposalRequest actualRequest = - ((GetDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); + GetCustomDimensionRequest actualRequest = ((GetCustomDimensionRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4163,15 +4307,13 @@ public void getDisplayVideo360AdvertiserLinkProposalTest() throws Exception { } @Test - public void getDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { + public void getCustomDimensionExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - DisplayVideo360AdvertiserLinkProposalName name = - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); - client.getDisplayVideo360AdvertiserLinkProposal(name); + String name = "name3373707"; + client.getCustomDimension(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4179,35 +4321,29 @@ public void getDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Excep } @Test - public void getDisplayVideo360AdvertiserLinkProposalTest2() throws Exception { - DisplayVideo360AdvertiserLinkProposal expectedResponse = - DisplayVideo360AdvertiserLinkProposal.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setValidationEmail("validationEmail-94407005") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + public void createCustomMetricTest() throws Exception { + CustomMetric expectedResponse = + CustomMetric.newBuilder() + .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllRestrictedMetricType(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + PropertyName parent = PropertyName.of("[PROPERTY]"); + CustomMetric customMetric = CustomMetric.newBuilder().build(); - DisplayVideo360AdvertiserLinkProposal actualResponse = - client.getDisplayVideo360AdvertiserLinkProposal(name); + CustomMetric actualResponse = client.createCustomMetric(parent, customMetric); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetDisplayVideo360AdvertiserLinkProposalRequest actualRequest = - ((GetDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); + CreateCustomMetricRequest actualRequest = ((CreateCustomMetricRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(customMetric, actualRequest.getCustomMetric()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4215,13 +4351,14 @@ public void getDisplayVideo360AdvertiserLinkProposalTest2() throws Exception { } @Test - public void getDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exception { + public void createCustomMetricExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.getDisplayVideo360AdvertiserLinkProposal(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + CustomMetric customMetric = CustomMetric.newBuilder().build(); + client.createCustomMetric(parent, customMetric); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4229,34 +4366,29 @@ public void getDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exce } @Test - public void listDisplayVideo360AdvertiserLinkProposalsTest() throws Exception { - DisplayVideo360AdvertiserLinkProposal responsesElement = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - ListDisplayVideo360AdvertiserLinkProposalsResponse expectedResponse = - ListDisplayVideo360AdvertiserLinkProposalsResponse.newBuilder() - .setNextPageToken("") - .addAllDisplayVideo360AdvertiserLinkProposals(Arrays.asList(responsesElement)) + public void createCustomMetricTest2() throws Exception { + CustomMetric expectedResponse = + CustomMetric.newBuilder() + .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllRestrictedMetricType(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListDisplayVideo360AdvertiserLinkProposalsPagedResponse pagedListResponse = - client.listDisplayVideo360AdvertiserLinkProposals(parent); - - List resources = - Lists.newArrayList(pagedListResponse.iterateAll()); + String parent = "parent-995424086"; + CustomMetric customMetric = CustomMetric.newBuilder().build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getDisplayVideo360AdvertiserLinkProposalsList().get(0), resources.get(0)); + CustomMetric actualResponse = client.createCustomMetric(parent, customMetric); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListDisplayVideo360AdvertiserLinkProposalsRequest actualRequest = - ((ListDisplayVideo360AdvertiserLinkProposalsRequest) actualRequests.get(0)); + CreateCustomMetricRequest actualRequest = ((CreateCustomMetricRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(customMetric, actualRequest.getCustomMetric()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4264,13 +4396,14 @@ public void listDisplayVideo360AdvertiserLinkProposalsTest() throws Exception { } @Test - public void listDisplayVideo360AdvertiserLinkProposalsExceptionTest() throws Exception { + public void createCustomMetricExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listDisplayVideo360AdvertiserLinkProposals(parent); + String parent = "parent-995424086"; + CustomMetric customMetric = CustomMetric.newBuilder().build(); + client.createCustomMetric(parent, customMetric); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4278,34 +4411,29 @@ public void listDisplayVideo360AdvertiserLinkProposalsExceptionTest() throws Exc } @Test - public void listDisplayVideo360AdvertiserLinkProposalsTest2() throws Exception { - DisplayVideo360AdvertiserLinkProposal responsesElement = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - ListDisplayVideo360AdvertiserLinkProposalsResponse expectedResponse = - ListDisplayVideo360AdvertiserLinkProposalsResponse.newBuilder() - .setNextPageToken("") - .addAllDisplayVideo360AdvertiserLinkProposals(Arrays.asList(responsesElement)) + public void updateCustomMetricTest() throws Exception { + CustomMetric expectedResponse = + CustomMetric.newBuilder() + .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllRestrictedMetricType(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - - ListDisplayVideo360AdvertiserLinkProposalsPagedResponse pagedListResponse = - client.listDisplayVideo360AdvertiserLinkProposals(parent); - - List resources = - Lists.newArrayList(pagedListResponse.iterateAll()); + CustomMetric customMetric = CustomMetric.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals( - expectedResponse.getDisplayVideo360AdvertiserLinkProposalsList().get(0), resources.get(0)); + CustomMetric actualResponse = client.updateCustomMetric(customMetric, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListDisplayVideo360AdvertiserLinkProposalsRequest actualRequest = - ((ListDisplayVideo360AdvertiserLinkProposalsRequest) actualRequests.get(0)); + UpdateCustomMetricRequest actualRequest = ((UpdateCustomMetricRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(customMetric, actualRequest.getCustomMetric()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4313,13 +4441,14 @@ public void listDisplayVideo360AdvertiserLinkProposalsTest2() throws Exception { } @Test - public void listDisplayVideo360AdvertiserLinkProposalsExceptionTest2() throws Exception { + public void updateCustomMetricExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - client.listDisplayVideo360AdvertiserLinkProposals(parent); + CustomMetric customMetric = CustomMetric.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCustomMetric(customMetric, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4327,41 +4456,29 @@ public void listDisplayVideo360AdvertiserLinkProposalsExceptionTest2() throws Ex } @Test - public void createDisplayVideo360AdvertiserLinkProposalTest() throws Exception { - DisplayVideo360AdvertiserLinkProposal expectedResponse = - DisplayVideo360AdvertiserLinkProposal.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setValidationEmail("validationEmail-94407005") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + public void listCustomMetricsTest() throws Exception { + CustomMetric responsesElement = CustomMetric.newBuilder().build(); + ListCustomMetricsResponse expectedResponse = + ListCustomMetricsResponse.newBuilder() + .setNextPageToken("") + .addAllCustomMetrics(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); PropertyName parent = PropertyName.of("[PROPERTY]"); - DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - DisplayVideo360AdvertiserLinkProposal actualResponse = - client.createDisplayVideo360AdvertiserLinkProposal( - parent, displayVideo360AdvertiserLinkProposal); - Assert.assertEquals(expectedResponse, actualResponse); + 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()); - CreateDisplayVideo360AdvertiserLinkProposalRequest actualRequest = - ((CreateDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); + ListCustomMetricsRequest actualRequest = ((ListCustomMetricsRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals( - displayVideo360AdvertiserLinkProposal, - actualRequest.getDisplayVideo360AdvertiserLinkProposal()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4369,16 +4486,13 @@ public void createDisplayVideo360AdvertiserLinkProposalTest() throws Exception { } @Test - public void createDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { + public void listCustomMetricsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { PropertyName parent = PropertyName.of("[PROPERTY]"); - DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - client.createDisplayVideo360AdvertiserLinkProposal( - parent, displayVideo360AdvertiserLinkProposal); + client.listCustomMetrics(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4386,41 +4500,29 @@ public void createDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Ex } @Test - public void createDisplayVideo360AdvertiserLinkProposalTest2() throws Exception { - DisplayVideo360AdvertiserLinkProposal expectedResponse = - DisplayVideo360AdvertiserLinkProposal.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setValidationEmail("validationEmail-94407005") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + public void listCustomMetricsTest2() throws Exception { + CustomMetric responsesElement = CustomMetric.newBuilder().build(); + ListCustomMetricsResponse expectedResponse = + ListCustomMetricsResponse.newBuilder() + .setNextPageToken("") + .addAllCustomMetrics(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); String parent = "parent-995424086"; - DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - DisplayVideo360AdvertiserLinkProposal actualResponse = - client.createDisplayVideo360AdvertiserLinkProposal( - parent, displayVideo360AdvertiserLinkProposal); - Assert.assertEquals(expectedResponse, actualResponse); + 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()); - CreateDisplayVideo360AdvertiserLinkProposalRequest actualRequest = - ((CreateDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); + ListCustomMetricsRequest actualRequest = ((ListCustomMetricsRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals( - displayVideo360AdvertiserLinkProposal, - actualRequest.getDisplayVideo360AdvertiserLinkProposal()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4428,16 +4530,13 @@ public void createDisplayVideo360AdvertiserLinkProposalTest2() throws Exception } @Test - public void createDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exception { + public void listCustomMetricsExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { String parent = "parent-995424086"; - DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = - DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); - client.createDisplayVideo360AdvertiserLinkProposal( - parent, displayVideo360AdvertiserLinkProposal); + client.listCustomMetrics(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4445,20 +4544,17 @@ public void createDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws E } @Test - public void deleteDisplayVideo360AdvertiserLinkProposalTest() throws Exception { + public void archiveCustomMetricTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - DisplayVideo360AdvertiserLinkProposalName name = - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); + CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - client.deleteDisplayVideo360AdvertiserLinkProposal(name); + client.archiveCustomMetric(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteDisplayVideo360AdvertiserLinkProposalRequest actualRequest = - ((DeleteDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); + ArchiveCustomMetricRequest actualRequest = ((ArchiveCustomMetricRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -4468,15 +4564,13 @@ public void deleteDisplayVideo360AdvertiserLinkProposalTest() throws Exception { } @Test - public void deleteDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { + public void archiveCustomMetricExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - DisplayVideo360AdvertiserLinkProposalName name = - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); - client.deleteDisplayVideo360AdvertiserLinkProposal(name); + CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); + client.archiveCustomMetric(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4484,18 +4578,17 @@ public void deleteDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Ex } @Test - public void deleteDisplayVideo360AdvertiserLinkProposalTest2() throws Exception { + public void archiveCustomMetricTest2() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); String name = "name3373707"; - client.deleteDisplayVideo360AdvertiserLinkProposal(name); + client.archiveCustomMetric(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteDisplayVideo360AdvertiserLinkProposalRequest actualRequest = - ((DeleteDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); + ArchiveCustomMetricRequest actualRequest = ((ArchiveCustomMetricRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -4505,13 +4598,13 @@ public void deleteDisplayVideo360AdvertiserLinkProposalTest2() throws Exception } @Test - public void deleteDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exception { + public void archiveCustomMetricExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { String name = "name3373707"; - client.deleteDisplayVideo360AdvertiserLinkProposal(name); + client.archiveCustomMetric(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4519,31 +4612,27 @@ public void deleteDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws E } @Test - public void approveDisplayVideo360AdvertiserLinkProposalTest() throws Exception { - ApproveDisplayVideo360AdvertiserLinkProposalResponse expectedResponse = - ApproveDisplayVideo360AdvertiserLinkProposalResponse.newBuilder() - .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build()) + public void getCustomMetricTest() throws Exception { + CustomMetric expectedResponse = + CustomMetric.newBuilder() + .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllRestrictedMetricType(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - ApproveDisplayVideo360AdvertiserLinkProposalRequest request = - ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .build(); + CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - ApproveDisplayVideo360AdvertiserLinkProposalResponse actualResponse = - client.approveDisplayVideo360AdvertiserLinkProposal(request); + CustomMetric actualResponse = client.getCustomMetric(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ApproveDisplayVideo360AdvertiserLinkProposalRequest actualRequest = - ((ApproveDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); + GetCustomMetricRequest actualRequest = ((GetCustomMetricRequest) actualRequests.get(0)); - Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4551,19 +4640,13 @@ public void approveDisplayVideo360AdvertiserLinkProposalTest() throws Exception } @Test - public void approveDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { + public void getCustomMetricExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - ApproveDisplayVideo360AdvertiserLinkProposalRequest request = - ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .build(); - client.approveDisplayVideo360AdvertiserLinkProposal(request); + CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); + client.getCustomMetric(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4571,41 +4654,27 @@ public void approveDisplayVideo360AdvertiserLinkProposalExceptionTest() throws E } @Test - public void cancelDisplayVideo360AdvertiserLinkProposalTest() throws Exception { - DisplayVideo360AdvertiserLinkProposal expectedResponse = - DisplayVideo360AdvertiserLinkProposal.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .setAdvertiserId("advertiserId550061990") - .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setValidationEmail("validationEmail-94407005") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + public void getCustomMetricTest2() throws Exception { + CustomMetric expectedResponse = + CustomMetric.newBuilder() + .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllRestrictedMetricType(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - CancelDisplayVideo360AdvertiserLinkProposalRequest request = - CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .build(); + String name = "name3373707"; - DisplayVideo360AdvertiserLinkProposal actualResponse = - client.cancelDisplayVideo360AdvertiserLinkProposal(request); + CustomMetric actualResponse = client.getCustomMetric(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CancelDisplayVideo360AdvertiserLinkProposalRequest actualRequest = - ((CancelDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); + GetCustomMetricRequest actualRequest = ((GetCustomMetricRequest) actualRequests.get(0)); - Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4613,19 +4682,13 @@ public void cancelDisplayVideo360AdvertiserLinkProposalTest() throws Exception { } @Test - public void cancelDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { + public void getCustomMetricExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - CancelDisplayVideo360AdvertiserLinkProposalRequest request = - CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - .setName( - DisplayVideo360AdvertiserLinkProposalName.of( - "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") - .toString()) - .build(); - client.cancelDisplayVideo360AdvertiserLinkProposal(request); + String name = "name3373707"; + client.getCustomMetric(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4633,30 +4696,25 @@ public void cancelDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Ex } @Test - public void createCustomDimensionTest() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) + public void getDataRetentionSettingsTest() throws Exception { + DataRetentionSettings expectedResponse = + DataRetentionSettings.newBuilder() + .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) + .setResetUserDataOnNewActivity(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomDimension customDimension = CustomDimension.newBuilder().build(); + DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]"); - CustomDimension actualResponse = client.createCustomDimension(parent, customDimension); + DataRetentionSettings actualResponse = client.getDataRetentionSettings(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateCustomDimensionRequest actualRequest = - ((CreateCustomDimensionRequest) actualRequests.get(0)); + GetDataRetentionSettingsRequest actualRequest = + ((GetDataRetentionSettingsRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(customDimension, actualRequest.getCustomDimension()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4664,14 +4722,13 @@ public void createCustomDimensionTest() throws Exception { } @Test - public void createCustomDimensionExceptionTest() throws Exception { + public void getDataRetentionSettingsExceptionTest() 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); + DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]"); + client.getDataRetentionSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4679,30 +4736,25 @@ public void createCustomDimensionExceptionTest() throws Exception { } @Test - public void createCustomDimensionTest2() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) + public void getDataRetentionSettingsTest2() throws Exception { + DataRetentionSettings expectedResponse = + DataRetentionSettings.newBuilder() + .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) + .setResetUserDataOnNewActivity(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - CustomDimension customDimension = CustomDimension.newBuilder().build(); + String name = "name3373707"; - CustomDimension actualResponse = client.createCustomDimension(parent, customDimension); + DataRetentionSettings actualResponse = client.getDataRetentionSettings(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateCustomDimensionRequest actualRequest = - ((CreateCustomDimensionRequest) actualRequests.get(0)); + GetDataRetentionSettingsRequest actualRequest = + ((GetDataRetentionSettingsRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(customDimension, actualRequest.getCustomDimension()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4710,14 +4762,13 @@ public void createCustomDimensionTest2() throws Exception { } @Test - public void createCustomDimensionExceptionTest2() throws Exception { + public void getDataRetentionSettingsExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - CustomDimension customDimension = CustomDimension.newBuilder().build(); - client.createCustomDimension(parent, customDimension); + String name = "name3373707"; + client.getDataRetentionSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4725,29 +4776,27 @@ public void createCustomDimensionExceptionTest2() throws Exception { } @Test - public void updateCustomDimensionTest() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) + public void updateDataRetentionSettingsTest() throws Exception { + DataRetentionSettings expectedResponse = + DataRetentionSettings.newBuilder() + .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) + .setResetUserDataOnNewActivity(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - CustomDimension customDimension = CustomDimension.newBuilder().build(); + DataRetentionSettings dataRetentionSettings = DataRetentionSettings.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); - CustomDimension actualResponse = client.updateCustomDimension(customDimension, updateMask); + DataRetentionSettings actualResponse = + client.updateDataRetentionSettings(dataRetentionSettings, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateCustomDimensionRequest actualRequest = - ((UpdateCustomDimensionRequest) actualRequests.get(0)); + UpdateDataRetentionSettingsRequest actualRequest = + ((UpdateDataRetentionSettingsRequest) actualRequests.get(0)); - Assert.assertEquals(customDimension, actualRequest.getCustomDimension()); + Assert.assertEquals(dataRetentionSettings, actualRequest.getDataRetentionSettings()); Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -4756,14 +4805,14 @@ public void updateCustomDimensionTest() throws Exception { } @Test - public void updateCustomDimensionExceptionTest() throws Exception { + public void updateDataRetentionSettingsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - CustomDimension customDimension = CustomDimension.newBuilder().build(); + DataRetentionSettings dataRetentionSettings = DataRetentionSettings.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateCustomDimension(customDimension, updateMask); + client.updateDataRetentionSettings(dataRetentionSettings, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4771,30 +4820,28 @@ public void updateCustomDimensionExceptionTest() throws Exception { } @Test - public void listCustomDimensionsTest() throws Exception { - CustomDimension responsesElement = CustomDimension.newBuilder().build(); - ListCustomDimensionsResponse expectedResponse = - ListCustomDimensionsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomDimensions(Arrays.asList(responsesElement)) + public void createDataStreamTest() throws Exception { + DataStream expectedResponse = + DataStream.newBuilder() + .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); PropertyName parent = PropertyName.of("[PROPERTY]"); + DataStream dataStream = DataStream.newBuilder().build(); - 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)); + DataStream actualResponse = client.createDataStream(parent, dataStream); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListCustomDimensionsRequest actualRequest = - ((ListCustomDimensionsRequest) actualRequests.get(0)); + CreateDataStreamRequest actualRequest = ((CreateDataStreamRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(dataStream, actualRequest.getDataStream()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4802,13 +4849,14 @@ public void listCustomDimensionsTest() throws Exception { } @Test - public void listCustomDimensionsExceptionTest() throws Exception { + public void createDataStreamExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listCustomDimensions(parent); + DataStream dataStream = DataStream.newBuilder().build(); + client.createDataStream(parent, dataStream); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4816,30 +4864,28 @@ public void listCustomDimensionsExceptionTest() throws Exception { } @Test - public void listCustomDimensionsTest2() throws Exception { - CustomDimension responsesElement = CustomDimension.newBuilder().build(); - ListCustomDimensionsResponse expectedResponse = - ListCustomDimensionsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomDimensions(Arrays.asList(responsesElement)) + public void createDataStreamTest2() throws Exception { + DataStream expectedResponse = + DataStream.newBuilder() + .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); String parent = "parent-995424086"; + DataStream dataStream = DataStream.newBuilder().build(); - 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)); + DataStream actualResponse = client.createDataStream(parent, dataStream); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListCustomDimensionsRequest actualRequest = - ((ListCustomDimensionsRequest) actualRequests.get(0)); + CreateDataStreamRequest actualRequest = ((CreateDataStreamRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(dataStream, actualRequest.getDataStream()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4847,13 +4893,14 @@ public void listCustomDimensionsTest2() throws Exception { } @Test - public void listCustomDimensionsExceptionTest2() throws Exception { + public void createDataStreamExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { String parent = "parent-995424086"; - client.listCustomDimensions(parent); + DataStream dataStream = DataStream.newBuilder().build(); + client.createDataStream(parent, dataStream); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4861,18 +4908,17 @@ public void listCustomDimensionsExceptionTest2() throws Exception { } @Test - public void archiveCustomDimensionTest() throws Exception { + public void deleteDataStreamTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); + DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.archiveCustomDimension(name); + client.deleteDataStream(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ArchiveCustomDimensionRequest actualRequest = - ((ArchiveCustomDimensionRequest) actualRequests.get(0)); + DeleteDataStreamRequest actualRequest = ((DeleteDataStreamRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -4882,13 +4928,13 @@ public void archiveCustomDimensionTest() throws Exception { } @Test - public void archiveCustomDimensionExceptionTest() throws Exception { + public void deleteDataStreamExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - client.archiveCustomDimension(name); + DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + client.deleteDataStream(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4896,18 +4942,17 @@ public void archiveCustomDimensionExceptionTest() throws Exception { } @Test - public void archiveCustomDimensionTest2() throws Exception { + public void deleteDataStreamTest2() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); String name = "name3373707"; - client.archiveCustomDimension(name); + client.deleteDataStream(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ArchiveCustomDimensionRequest actualRequest = - ((ArchiveCustomDimensionRequest) actualRequests.get(0)); + DeleteDataStreamRequest actualRequest = ((DeleteDataStreamRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -4917,13 +4962,13 @@ public void archiveCustomDimensionTest2() throws Exception { } @Test - public void archiveCustomDimensionExceptionTest2() throws Exception { + public void deleteDataStreamExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { String name = "name3373707"; - client.archiveCustomDimension(name); + client.deleteDataStream(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4931,27 +4976,28 @@ public void archiveCustomDimensionExceptionTest2() throws Exception { } @Test - public void getCustomDimensionTest() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") + public void updateDataStreamTest() throws Exception { + DataStream expectedResponse = + DataStream.newBuilder() + .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); + DataStream dataStream = DataStream.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - CustomDimension actualResponse = client.getCustomDimension(name); + DataStream actualResponse = client.updateDataStream(dataStream, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetCustomDimensionRequest actualRequest = ((GetCustomDimensionRequest) actualRequests.get(0)); + UpdateDataStreamRequest actualRequest = ((UpdateDataStreamRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(dataStream, actualRequest.getDataStream()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4959,13 +5005,14 @@ public void getCustomDimensionTest() throws Exception { } @Test - public void getCustomDimensionExceptionTest() throws Exception { + public void updateDataStreamExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]"); - client.getCustomDimension(name); + DataStream dataStream = DataStream.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDataStream(dataStream, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4973,71 +5020,29 @@ public void getCustomDimensionExceptionTest() throws Exception { } @Test - public void getCustomDimensionTest2() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) + public void listDataStreamsTest() throws Exception { + DataStream responsesElement = DataStream.newBuilder().build(); + ListDataStreamsResponse expectedResponse = + ListDataStreamsResponse.newBuilder() + .setNextPageToken("") + .addAllDataStreams(Arrays.asList(responsesElement)) .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. - } - } + PropertyName parent = PropertyName.of("[PROPERTY]"); - @Test - public void createCustomMetricTest() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); + ListDataStreamsPagedResponse pagedListResponse = client.listDataStreams(parent); - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomMetric customMetric = CustomMetric.newBuilder().build(); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - CustomMetric actualResponse = client.createCustomMetric(parent, customMetric); - Assert.assertEquals(expectedResponse, actualResponse); + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataStreamsList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateCustomMetricRequest actualRequest = ((CreateCustomMetricRequest) actualRequests.get(0)); + ListDataStreamsRequest actualRequest = ((ListDataStreamsRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(customMetric, actualRequest.getCustomMetric()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -5045,44 +5050,43 @@ public void createCustomMetricTest() throws Exception { } @Test - public void createCustomMetricExceptionTest() throws Exception { + public void listDataStreamsExceptionTest() 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); + client.listDataStreams(parent); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createCustomMetricTest2() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDataStreamsTest2() throws Exception { + DataStream responsesElement = DataStream.newBuilder().build(); + ListDataStreamsResponse expectedResponse = + ListDataStreamsResponse.newBuilder() + .setNextPageToken("") + .addAllDataStreams(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); String parent = "parent-995424086"; - CustomMetric customMetric = CustomMetric.newBuilder().build(); - CustomMetric actualResponse = client.createCustomMetric(parent, customMetric); - Assert.assertEquals(expectedResponse, actualResponse); + ListDataStreamsPagedResponse pagedListResponse = client.listDataStreams(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getDataStreamsList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateCustomMetricRequest actualRequest = ((CreateCustomMetricRequest) actualRequests.get(0)); + ListDataStreamsRequest actualRequest = ((ListDataStreamsRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(customMetric, actualRequest.getCustomMetric()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -5090,14 +5094,13 @@ public void createCustomMetricTest2() throws Exception { } @Test - public void createCustomMetricExceptionTest2() throws Exception { + public void listDataStreamsExceptionTest2() 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); + client.listDataStreams(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5105,29 +5108,26 @@ public void createCustomMetricExceptionTest2() throws Exception { } @Test - public void updateCustomMetricTest() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") + public void getDataStreamTest() throws Exception { + DataStream expectedResponse = + DataStream.newBuilder() + .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - CustomMetric customMetric = CustomMetric.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - CustomMetric actualResponse = client.updateCustomMetric(customMetric, updateMask); + DataStream actualResponse = client.getDataStream(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateCustomMetricRequest actualRequest = ((UpdateCustomMetricRequest) actualRequests.get(0)); + GetDataStreamRequest actualRequest = ((GetDataStreamRequest) actualRequests.get(0)); - Assert.assertEquals(customMetric, actualRequest.getCustomMetric()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -5135,14 +5135,13 @@ public void updateCustomMetricTest() throws Exception { } @Test - public void updateCustomMetricExceptionTest() throws Exception { + public void getDataStreamExceptionTest() 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); + DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + client.getDataStream(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5150,29 +5149,26 @@ public void updateCustomMetricExceptionTest() throws Exception { } @Test - public void listCustomMetricsTest() throws Exception { - CustomMetric responsesElement = CustomMetric.newBuilder().build(); - ListCustomMetricsResponse expectedResponse = - ListCustomMetricsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomMetrics(Arrays.asList(responsesElement)) + public void getDataStreamTest2() throws Exception { + DataStream expectedResponse = + DataStream.newBuilder() + .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setDisplayName("displayName1714148973") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListCustomMetricsPagedResponse pagedListResponse = client.listCustomMetrics(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + String name = "name3373707"; - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomMetricsList().get(0), resources.get(0)); + DataStream actualResponse = client.getDataStream(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListCustomMetricsRequest actualRequest = ((ListCustomMetricsRequest) actualRequests.get(0)); + GetDataStreamRequest actualRequest = ((GetDataStreamRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -5180,13 +5176,13 @@ public void listCustomMetricsTest() throws Exception { } @Test - public void listCustomMetricsExceptionTest() throws Exception { + public void getDataStreamExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listCustomMetrics(parent); + String name = "name3373707"; + client.getDataStream(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5194,29 +5190,29 @@ public void listCustomMetricsExceptionTest() throws Exception { } @Test - public void listCustomMetricsTest2() throws Exception { - CustomMetric responsesElement = CustomMetric.newBuilder().build(); - ListCustomMetricsResponse expectedResponse = - ListCustomMetricsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomMetrics(Arrays.asList(responsesElement)) + public void getAudienceTest() throws Exception { + Audience expectedResponse = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - - ListCustomMetricsPagedResponse pagedListResponse = client.listCustomMetrics(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + AudienceName name = AudienceName.of("[PROPERTY]", "[AUDIENCE]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomMetricsList().get(0), resources.get(0)); + Audience actualResponse = client.getAudience(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListCustomMetricsRequest actualRequest = ((ListCustomMetricsRequest) actualRequests.get(0)); + GetAudienceRequest actualRequest = ((GetAudienceRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -5224,13 +5220,13 @@ public void listCustomMetricsTest2() throws Exception { } @Test - public void listCustomMetricsExceptionTest2() throws Exception { + public void getAudienceExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - client.listCustomMetrics(parent); + AudienceName name = AudienceName.of("[PROPERTY]", "[AUDIENCE]"); + client.getAudience(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5238,19 +5234,29 @@ public void listCustomMetricsExceptionTest2() throws Exception { } @Test - public void archiveCustomMetricTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getAudienceTest2() throws Exception { + Audience expectedResponse = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); + String name = "name3373707"; - client.archiveCustomMetric(name); + Audience actualResponse = client.getAudience(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ArchiveCustomMetricRequest actualRequest = ((ArchiveCustomMetricRequest) actualRequests.get(0)); + GetAudienceRequest actualRequest = ((GetAudienceRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -5258,13 +5264,13 @@ public void archiveCustomMetricTest() throws Exception { } @Test - public void archiveCustomMetricExceptionTest() throws Exception { + public void getAudienceExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - client.archiveCustomMetric(name); + String name = "name3373707"; + client.getAudience(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5272,19 +5278,29 @@ public void archiveCustomMetricExceptionTest() throws Exception { } @Test - public void archiveCustomMetricTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void listAudiencesTest() throws Exception { + Audience responsesElement = Audience.newBuilder().build(); + ListAudiencesResponse expectedResponse = + ListAudiencesResponse.newBuilder() + .setNextPageToken("") + .addAllAudiences(Arrays.asList(responsesElement)) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + PropertyName parent = PropertyName.of("[PROPERTY]"); - client.archiveCustomMetric(name); + ListAudiencesPagedResponse pagedListResponse = client.listAudiences(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAudiencesList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ArchiveCustomMetricRequest actualRequest = ((ArchiveCustomMetricRequest) actualRequests.get(0)); + ListAudiencesRequest actualRequest = ((ListAudiencesRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -5292,13 +5308,13 @@ public void archiveCustomMetricTest2() throws Exception { } @Test - public void archiveCustomMetricExceptionTest2() throws Exception { + public void listAudiencesExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.archiveCustomMetric(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listAudiences(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5306,27 +5322,29 @@ public void archiveCustomMetricExceptionTest2() throws Exception { } @Test - public void getCustomMetricTest() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) + public void listAudiencesTest2() throws Exception { + Audience responsesElement = Audience.newBuilder().build(); + ListAudiencesResponse expectedResponse = + ListAudiencesResponse.newBuilder() + .setNextPageToken("") + .addAllAudiences(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); + String parent = "parent-995424086"; - CustomMetric actualResponse = client.getCustomMetric(name); - Assert.assertEquals(expectedResponse, actualResponse); + ListAudiencesPagedResponse pagedListResponse = client.listAudiences(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAudiencesList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetCustomMetricRequest actualRequest = ((GetCustomMetricRequest) actualRequests.get(0)); + ListAudiencesRequest actualRequest = ((ListAudiencesRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -5334,13 +5352,13 @@ public void getCustomMetricTest() throws Exception { } @Test - public void getCustomMetricExceptionTest() throws Exception { + public void listAudiencesExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]"); - client.getCustomMetric(name); + String parent = "parent-995424086"; + client.listAudiences(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5348,27 +5366,31 @@ public void getCustomMetricExceptionTest() throws Exception { } @Test - public void getCustomMetricTest2() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString()) - .setParameterName("parameterName-379607596") + public void createAudienceTest() throws Exception { + Audience expectedResponse = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") - .addAllRestrictedMetricType(new ArrayList()) + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + PropertyName parent = PropertyName.of("[PROPERTY]"); + Audience audience = Audience.newBuilder().build(); - CustomMetric actualResponse = client.getCustomMetric(name); + Audience actualResponse = client.createAudience(parent, audience); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetCustomMetricRequest actualRequest = ((GetCustomMetricRequest) actualRequests.get(0)); + CreateAudienceRequest actualRequest = ((CreateAudienceRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(audience, actualRequest.getAudience()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -5376,13 +5398,14 @@ public void getCustomMetricTest2() throws Exception { } @Test - public void getCustomMetricExceptionTest2() throws Exception { + public void createAudienceExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.getCustomMetric(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + Audience audience = Audience.newBuilder().build(); + client.createAudience(parent, audience); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5390,25 +5413,31 @@ public void getCustomMetricExceptionTest2() throws Exception { } @Test - public void getDataRetentionSettingsTest() throws Exception { - DataRetentionSettings expectedResponse = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) + public void createAudienceTest2() throws Exception { + Audience expectedResponse = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]"); + String parent = "parent-995424086"; + Audience audience = Audience.newBuilder().build(); - DataRetentionSettings actualResponse = client.getDataRetentionSettings(name); + Audience actualResponse = client.createAudience(parent, audience); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetDataRetentionSettingsRequest actualRequest = - ((GetDataRetentionSettingsRequest) actualRequests.get(0)); + CreateAudienceRequest actualRequest = ((CreateAudienceRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(audience, actualRequest.getAudience()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -5416,13 +5445,14 @@ public void getDataRetentionSettingsTest() throws Exception { } @Test - public void getDataRetentionSettingsExceptionTest() throws Exception { + public void createAudienceExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]"); - client.getDataRetentionSettings(name); + String parent = "parent-995424086"; + Audience audience = Audience.newBuilder().build(); + client.createAudience(parent, audience); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5430,25 +5460,31 @@ public void getDataRetentionSettingsExceptionTest() throws Exception { } @Test - public void getDataRetentionSettingsTest2() throws Exception { - DataRetentionSettings expectedResponse = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) + public void updateAudienceTest() throws Exception { + Audience expectedResponse = + Audience.newBuilder() + .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setMembershipDurationDays(1702404985) + .setAdsPersonalizationEnabled(true) + .setEventTrigger(AudienceEventTrigger.newBuilder().build()) + .addAllFilterClauses(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + Audience audience = Audience.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - DataRetentionSettings actualResponse = client.getDataRetentionSettings(name); + Audience actualResponse = client.updateAudience(audience, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetDataRetentionSettingsRequest actualRequest = - ((GetDataRetentionSettingsRequest) actualRequests.get(0)); + UpdateAudienceRequest actualRequest = ((UpdateAudienceRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(audience, actualRequest.getAudience()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -5456,13 +5492,14 @@ public void getDataRetentionSettingsTest2() throws Exception { } @Test - public void getDataRetentionSettingsExceptionTest2() throws Exception { + public void updateAudienceExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.getDataRetentionSettings(name); + Audience audience = Audience.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAudience(audience, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5470,28 +5507,22 @@ public void getDataRetentionSettingsExceptionTest2() throws Exception { } @Test - public void updateDataRetentionSettingsTest() throws Exception { - DataRetentionSettings expectedResponse = - DataRetentionSettings.newBuilder() - .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) - .setResetUserDataOnNewActivity(true) - .build(); + public void archiveAudienceTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - DataRetentionSettings dataRetentionSettings = DataRetentionSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + ArchiveAudienceRequest request = + ArchiveAudienceRequest.newBuilder() + .setName(PropertyName.of("[PROPERTY]").toString()) + .build(); - DataRetentionSettings actualResponse = - client.updateDataRetentionSettings(dataRetentionSettings, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); + client.archiveAudience(request); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateDataRetentionSettingsRequest actualRequest = - ((UpdateDataRetentionSettingsRequest) actualRequests.get(0)); + ArchiveAudienceRequest actualRequest = ((ArchiveAudienceRequest) actualRequests.get(0)); - Assert.assertEquals(dataRetentionSettings, actualRequest.getDataRetentionSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(request.getName(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -5499,14 +5530,16 @@ public void updateDataRetentionSettingsTest() throws Exception { } @Test - public void updateDataRetentionSettingsExceptionTest() throws Exception { + public void archiveAudienceExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - DataRetentionSettings dataRetentionSettings = DataRetentionSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateDataRetentionSettings(dataRetentionSettings, updateMask); + ArchiveAudienceRequest request = + ArchiveAudienceRequest.newBuilder() + .setName(PropertyName.of("[PROPERTY]").toString()) + .build(); + client.archiveAudience(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5514,28 +5547,29 @@ public void updateDataRetentionSettingsExceptionTest() throws Exception { } @Test - public void createDataStreamTest() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) + public void getSearchAds360LinkTest() throws Exception { + SearchAds360Link expectedResponse = + SearchAds360Link.newBuilder() + .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) + .setAdvertiserId("advertiserId550061990") + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - DataStream dataStream = DataStream.newBuilder().build(); + SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]"); - DataStream actualResponse = client.createDataStream(parent, dataStream); + SearchAds360Link actualResponse = client.getSearchAds360Link(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateDataStreamRequest actualRequest = ((CreateDataStreamRequest) actualRequests.get(0)); + GetSearchAds360LinkRequest actualRequest = ((GetSearchAds360LinkRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(dataStream, actualRequest.getDataStream()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -5543,14 +5577,13 @@ public void createDataStreamTest() throws Exception { } @Test - public void createDataStreamExceptionTest() throws Exception { + public void getSearchAds360LinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - DataStream dataStream = DataStream.newBuilder().build(); - client.createDataStream(parent, dataStream); + SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]"); + client.getSearchAds360Link(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5558,28 +5591,29 @@ public void createDataStreamExceptionTest() throws Exception { } @Test - public void createDataStreamTest2() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) + public void getSearchAds360LinkTest2() throws Exception { + SearchAds360Link expectedResponse = + SearchAds360Link.newBuilder() + .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) + .setAdvertiserId("advertiserId550061990") + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - DataStream dataStream = DataStream.newBuilder().build(); + String name = "name3373707"; - DataStream actualResponse = client.createDataStream(parent, dataStream); + SearchAds360Link actualResponse = client.getSearchAds360Link(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateDataStreamRequest actualRequest = ((CreateDataStreamRequest) actualRequests.get(0)); + GetSearchAds360LinkRequest actualRequest = ((GetSearchAds360LinkRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(dataStream, actualRequest.getDataStream()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -5587,14 +5621,13 @@ public void createDataStreamTest2() throws Exception { } @Test - public void createDataStreamExceptionTest2() throws Exception { + public void getSearchAds360LinkExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - DataStream dataStream = DataStream.newBuilder().build(); - client.createDataStream(parent, dataStream); + String name = "name3373707"; + client.getSearchAds360Link(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5602,19 +5635,30 @@ public void createDataStreamExceptionTest2() throws Exception { } @Test - public void deleteDataStreamTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void listSearchAds360LinksTest() throws Exception { + SearchAds360Link responsesElement = SearchAds360Link.newBuilder().build(); + ListSearchAds360LinksResponse expectedResponse = + ListSearchAds360LinksResponse.newBuilder() + .setNextPageToken("") + .addAllSearchAds360Links(Arrays.asList(responsesElement)) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + PropertyName parent = PropertyName.of("[PROPERTY]"); - client.deleteDataStream(name); + ListSearchAds360LinksPagedResponse pagedListResponse = client.listSearchAds360Links(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSearchAds360LinksList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteDataStreamRequest actualRequest = ((DeleteDataStreamRequest) actualRequests.get(0)); + ListSearchAds360LinksRequest actualRequest = + ((ListSearchAds360LinksRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -5622,13 +5666,13 @@ public void deleteDataStreamTest() throws Exception { } @Test - public void deleteDataStreamExceptionTest() throws Exception { + public void listSearchAds360LinksExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.deleteDataStream(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listSearchAds360Links(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5636,19 +5680,30 @@ public void deleteDataStreamExceptionTest() throws Exception { } @Test - public void deleteDataStreamTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void listSearchAds360LinksTest2() throws Exception { + SearchAds360Link responsesElement = SearchAds360Link.newBuilder().build(); + ListSearchAds360LinksResponse expectedResponse = + ListSearchAds360LinksResponse.newBuilder() + .setNextPageToken("") + .addAllSearchAds360Links(Arrays.asList(responsesElement)) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + String parent = "parent-995424086"; - client.deleteDataStream(name); + ListSearchAds360LinksPagedResponse pagedListResponse = client.listSearchAds360Links(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSearchAds360LinksList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteDataStreamRequest actualRequest = ((DeleteDataStreamRequest) actualRequests.get(0)); + ListSearchAds360LinksRequest actualRequest = + ((ListSearchAds360LinksRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -5656,13 +5711,13 @@ public void deleteDataStreamTest2() throws Exception { } @Test - public void deleteDataStreamExceptionTest2() throws Exception { + public void listSearchAds360LinksExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.deleteDataStream(name); + String parent = "parent-995424086"; + client.listSearchAds360Links(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5670,28 +5725,32 @@ public void deleteDataStreamExceptionTest2() throws Exception { } @Test - public void updateDataStreamTest() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) + public void createSearchAds360LinkTest() throws Exception { + SearchAds360Link expectedResponse = + SearchAds360Link.newBuilder() + .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) + .setAdvertiserId("advertiserId550061990") + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - DataStream dataStream = DataStream.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + PropertyName parent = PropertyName.of("[PROPERTY]"); + SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); - DataStream actualResponse = client.updateDataStream(dataStream, updateMask); + SearchAds360Link actualResponse = client.createSearchAds360Link(parent, searchAds360Link); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateDataStreamRequest actualRequest = ((UpdateDataStreamRequest) actualRequests.get(0)); + CreateSearchAds360LinkRequest actualRequest = + ((CreateSearchAds360LinkRequest) actualRequests.get(0)); - Assert.assertEquals(dataStream, actualRequest.getDataStream()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(searchAds360Link, actualRequest.getSearchAds360Link()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -5699,14 +5758,14 @@ public void updateDataStreamTest() throws Exception { } @Test - public void updateDataStreamExceptionTest() throws Exception { + public void createSearchAds360LinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); - - try { - DataStream dataStream = DataStream.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateDataStream(dataStream, updateMask); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); + client.createSearchAds360Link(parent, searchAds360Link); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5714,29 +5773,32 @@ public void updateDataStreamExceptionTest() throws Exception { } @Test - public void listDataStreamsTest() throws Exception { - DataStream responsesElement = DataStream.newBuilder().build(); - ListDataStreamsResponse expectedResponse = - ListDataStreamsResponse.newBuilder() - .setNextPageToken("") - .addAllDataStreams(Arrays.asList(responsesElement)) + public void createSearchAds360LinkTest2() throws Exception { + SearchAds360Link expectedResponse = + SearchAds360Link.newBuilder() + .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) + .setAdvertiserId("advertiserId550061990") + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListDataStreamsPagedResponse pagedListResponse = client.listDataStreams(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + String parent = "parent-995424086"; + SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDataStreamsList().get(0), resources.get(0)); + SearchAds360Link actualResponse = client.createSearchAds360Link(parent, searchAds360Link); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListDataStreamsRequest actualRequest = ((ListDataStreamsRequest) actualRequests.get(0)); + CreateSearchAds360LinkRequest actualRequest = + ((CreateSearchAds360LinkRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(searchAds360Link, actualRequest.getSearchAds360Link()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -5744,13 +5806,14 @@ public void listDataStreamsTest() throws Exception { } @Test - public void listDataStreamsExceptionTest() throws Exception { + public void createSearchAds360LinkExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listDataStreams(parent); + String parent = "parent-995424086"; + SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); + client.createSearchAds360Link(parent, searchAds360Link); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5758,29 +5821,20 @@ public void listDataStreamsExceptionTest() throws Exception { } @Test - public void listDataStreamsTest2() throws Exception { - DataStream responsesElement = DataStream.newBuilder().build(); - ListDataStreamsResponse expectedResponse = - ListDataStreamsResponse.newBuilder() - .setNextPageToken("") - .addAllDataStreams(Arrays.asList(responsesElement)) - .build(); + public void deleteSearchAds360LinkTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - - ListDataStreamsPagedResponse pagedListResponse = client.listDataStreams(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDataStreamsList().get(0), resources.get(0)); + client.deleteSearchAds360Link(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListDataStreamsRequest actualRequest = ((ListDataStreamsRequest) actualRequests.get(0)); + DeleteSearchAds360LinkRequest actualRequest = + ((DeleteSearchAds360LinkRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -5788,13 +5842,13 @@ public void listDataStreamsTest2() throws Exception { } @Test - public void listDataStreamsExceptionTest2() throws Exception { + public void deleteSearchAds360LinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - client.listDataStreams(parent); + SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]"); + client.deleteSearchAds360Link(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5802,26 +5856,20 @@ public void listDataStreamsExceptionTest2() throws Exception { } @Test - public void getDataStreamTest() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); + public void deleteSearchAds360LinkTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + String name = "name3373707"; - DataStream actualResponse = client.getDataStream(name); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteSearchAds360Link(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetDataStreamRequest actualRequest = ((GetDataStreamRequest) actualRequests.get(0)); + DeleteSearchAds360LinkRequest actualRequest = + ((DeleteSearchAds360LinkRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -5829,13 +5877,13 @@ public void getDataStreamTest() throws Exception { } @Test - public void getDataStreamExceptionTest() throws Exception { + public void deleteSearchAds360LinkExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.getDataStream(name); + String name = "name3373707"; + client.deleteSearchAds360Link(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5843,26 +5891,32 @@ public void getDataStreamExceptionTest() throws Exception { } @Test - public void getDataStreamTest2() throws Exception { - DataStream expectedResponse = - DataStream.newBuilder() - .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setDisplayName("displayName1714148973") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) + public void updateSearchAds360LinkTest() throws Exception { + SearchAds360Link expectedResponse = + SearchAds360Link.newBuilder() + .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) + .setAdvertiserId("advertiserId550061990") + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - DataStream actualResponse = client.getDataStream(name); + SearchAds360Link actualResponse = client.updateSearchAds360Link(searchAds360Link, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetDataStreamRequest actualRequest = ((GetDataStreamRequest) actualRequests.get(0)); + UpdateSearchAds360LinkRequest actualRequest = + ((UpdateSearchAds360LinkRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(searchAds360Link, actualRequest.getSearchAds360Link()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -5870,13 +5924,14 @@ public void getDataStreamTest2() throws Exception { } @Test - public void getDataStreamExceptionTest2() throws Exception { + public void updateSearchAds360LinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.getDataStream(name); + SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSearchAds360Link(searchAds360Link, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5884,27 +5939,22 @@ public void getDataStreamExceptionTest2() throws Exception { } @Test - public void getAudienceTest() throws Exception { - Audience expectedResponse = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) + public void getAttributionSettingsTest() throws Exception { + AttributionSettings expectedResponse = + AttributionSettings.newBuilder() + .setName(AttributionSettingsName.of("[PROPERTY]").toString()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - AudienceName name = AudienceName.of("[PROPERTY]", "[AUDIENCE]"); + AttributionSettingsName name = AttributionSettingsName.of("[PROPERTY]"); - Audience actualResponse = client.getAudience(name); + AttributionSettings actualResponse = client.getAttributionSettings(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetAudienceRequest actualRequest = ((GetAudienceRequest) actualRequests.get(0)); + GetAttributionSettingsRequest actualRequest = + ((GetAttributionSettingsRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -5914,13 +5964,13 @@ public void getAudienceTest() throws Exception { } @Test - public void getAudienceExceptionTest() throws Exception { + public void getAttributionSettingsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - AudienceName name = AudienceName.of("[PROPERTY]", "[AUDIENCE]"); - client.getAudience(name); + AttributionSettingsName name = AttributionSettingsName.of("[PROPERTY]"); + client.getAttributionSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5928,27 +5978,22 @@ public void getAudienceExceptionTest() throws Exception { } @Test - public void getAudienceTest2() throws Exception { - Audience expectedResponse = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) + public void getAttributionSettingsTest2() throws Exception { + AttributionSettings expectedResponse = + AttributionSettings.newBuilder() + .setName(AttributionSettingsName.of("[PROPERTY]").toString()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); String name = "name3373707"; - Audience actualResponse = client.getAudience(name); + AttributionSettings actualResponse = client.getAttributionSettings(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetAudienceRequest actualRequest = ((GetAudienceRequest) actualRequests.get(0)); + GetAttributionSettingsRequest actualRequest = + ((GetAttributionSettingsRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -5958,13 +6003,13 @@ public void getAudienceTest2() throws Exception { } @Test - public void getAudienceExceptionTest2() throws Exception { + public void getAttributionSettingsExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { String name = "name3373707"; - client.getAudience(name); + client.getAttributionSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5972,29 +6017,27 @@ public void getAudienceExceptionTest2() throws Exception { } @Test - public void listAudiencesTest() throws Exception { - Audience responsesElement = Audience.newBuilder().build(); - ListAudiencesResponse expectedResponse = - ListAudiencesResponse.newBuilder() - .setNextPageToken("") - .addAllAudiences(Arrays.asList(responsesElement)) + public void updateAttributionSettingsTest() throws Exception { + AttributionSettings expectedResponse = + AttributionSettings.newBuilder() + .setName(AttributionSettingsName.of("[PROPERTY]").toString()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListAudiencesPagedResponse pagedListResponse = client.listAudiences(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + AttributionSettings attributionSettings = AttributionSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAudiencesList().get(0), resources.get(0)); + AttributionSettings actualResponse = + client.updateAttributionSettings(attributionSettings, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListAudiencesRequest actualRequest = ((ListAudiencesRequest) actualRequests.get(0)); + UpdateAttributionSettingsRequest actualRequest = + ((UpdateAttributionSettingsRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(attributionSettings, actualRequest.getAttributionSettings()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -6002,13 +6045,14 @@ public void listAudiencesTest() throws Exception { } @Test - public void listAudiencesExceptionTest() throws Exception { + public void updateAttributionSettingsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listAudiences(parent); + AttributionSettings attributionSettings = AttributionSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAttributionSettings(attributionSettings, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6016,29 +6060,54 @@ public void listAudiencesExceptionTest() throws Exception { } @Test - public void listAudiencesTest2() throws Exception { - Audience responsesElement = Audience.newBuilder().build(); - ListAudiencesResponse expectedResponse = - ListAudiencesResponse.newBuilder() - .setNextPageToken("") - .addAllAudiences(Arrays.asList(responsesElement)) + public void runAccessReportTest() throws Exception { + RunAccessReportResponse expectedResponse = + RunAccessReportResponse.newBuilder() + .addAllDimensionHeaders(new ArrayList()) + .addAllMetricHeaders(new ArrayList()) + .addAllRows(new ArrayList()) + .setRowCount(1340416618) + .setQuota(AccessQuota.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - - ListAudiencesPagedResponse pagedListResponse = client.listAudiences(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAudiencesList().get(0), resources.get(0)); + RunAccessReportRequest request = + RunAccessReportRequest.newBuilder() + .setEntity("entity-1298275357") + .addAllDimensions(new ArrayList()) + .addAllMetrics(new ArrayList()) + .addAllDateRanges(new ArrayList()) + .setDimensionFilter(AccessFilterExpression.newBuilder().build()) + .setMetricFilter(AccessFilterExpression.newBuilder().build()) + .setOffset(-1019779949) + .setLimit(102976443) + .setTimeZone("timeZone-2077180903") + .addAllOrderBys(new ArrayList()) + .setReturnEntityQuota(true) + .setIncludeAllUsers(true) + .setExpandGroups(true) + .build(); + + RunAccessReportResponse actualResponse = client.runAccessReport(request); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListAudiencesRequest actualRequest = ((ListAudiencesRequest) actualRequests.get(0)); + RunAccessReportRequest actualRequest = ((RunAccessReportRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(request.getEntity(), actualRequest.getEntity()); + Assert.assertEquals(request.getDimensionsList(), actualRequest.getDimensionsList()); + Assert.assertEquals(request.getMetricsList(), actualRequest.getMetricsList()); + Assert.assertEquals(request.getDateRangesList(), actualRequest.getDateRangesList()); + Assert.assertEquals(request.getDimensionFilter(), actualRequest.getDimensionFilter()); + Assert.assertEquals(request.getMetricFilter(), actualRequest.getMetricFilter()); + Assert.assertEquals(request.getOffset(), actualRequest.getOffset()); + Assert.assertEquals(request.getLimit(), actualRequest.getLimit()); + Assert.assertEquals(request.getTimeZone(), actualRequest.getTimeZone()); + Assert.assertEquals(request.getOrderBysList(), actualRequest.getOrderBysList()); + Assert.assertEquals(request.getReturnEntityQuota(), actualRequest.getReturnEntityQuota()); + Assert.assertEquals(request.getIncludeAllUsers(), actualRequest.getIncludeAllUsers()); + Assert.assertEquals(request.getExpandGroups(), actualRequest.getExpandGroups()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -6046,13 +6115,28 @@ public void listAudiencesTest2() throws Exception { } @Test - public void listAudiencesExceptionTest2() throws Exception { + public void runAccessReportExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - client.listAudiences(parent); + RunAccessReportRequest request = + RunAccessReportRequest.newBuilder() + .setEntity("entity-1298275357") + .addAllDimensions(new ArrayList()) + .addAllMetrics(new ArrayList()) + .addAllDateRanges(new ArrayList()) + .setDimensionFilter(AccessFilterExpression.newBuilder().build()) + .setMetricFilter(AccessFilterExpression.newBuilder().build()) + .setOffset(-1019779949) + .setLimit(102976443) + .setTimeZone("timeZone-2077180903") + .addAllOrderBys(new ArrayList()) + .setReturnEntityQuota(true) + .setIncludeAllUsers(true) + .setExpandGroups(true) + .build(); + client.runAccessReport(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6060,31 +6144,28 @@ public void listAudiencesExceptionTest2() throws Exception { } @Test - public void createAudienceTest() throws Exception { - Audience expectedResponse = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) + public void createAccessBindingTest() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - Audience audience = Audience.newBuilder().build(); + AccountName parent = AccountName.of("[ACCOUNT]"); + AccessBinding accessBinding = AccessBinding.newBuilder().build(); - Audience actualResponse = client.createAudience(parent, audience); + AccessBinding actualResponse = client.createAccessBinding(parent, accessBinding); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateAudienceRequest actualRequest = ((CreateAudienceRequest) actualRequests.get(0)); + CreateAccessBindingRequest actualRequest = ((CreateAccessBindingRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(audience, actualRequest.getAudience()); + Assert.assertEquals(accessBinding, actualRequest.getAccessBinding()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -6092,14 +6173,14 @@ public void createAudienceTest() throws Exception { } @Test - public void createAudienceExceptionTest() throws Exception { + public void createAccessBindingExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - Audience audience = Audience.newBuilder().build(); - client.createAudience(parent, audience); + AccountName parent = AccountName.of("[ACCOUNT]"); + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + client.createAccessBinding(parent, accessBinding); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6107,31 +6188,28 @@ public void createAudienceExceptionTest() throws Exception { } @Test - public void createAudienceTest2() throws Exception { - Audience expectedResponse = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) + public void createAccessBindingTest2() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - Audience audience = Audience.newBuilder().build(); + PropertyName parent = PropertyName.of("[PROPERTY]"); + AccessBinding accessBinding = AccessBinding.newBuilder().build(); - Audience actualResponse = client.createAudience(parent, audience); + AccessBinding actualResponse = client.createAccessBinding(parent, accessBinding); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateAudienceRequest actualRequest = ((CreateAudienceRequest) actualRequests.get(0)); + CreateAccessBindingRequest actualRequest = ((CreateAccessBindingRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(audience, actualRequest.getAudience()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(accessBinding, actualRequest.getAccessBinding()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -6139,14 +6217,14 @@ public void createAudienceTest2() throws Exception { } @Test - public void createAudienceExceptionTest2() throws Exception { + public void createAccessBindingExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - Audience audience = Audience.newBuilder().build(); - client.createAudience(parent, audience); + PropertyName parent = PropertyName.of("[PROPERTY]"); + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + client.createAccessBinding(parent, accessBinding); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6154,31 +6232,28 @@ public void createAudienceExceptionTest2() throws Exception { } @Test - public void updateAudienceTest() throws Exception { - Audience expectedResponse = - Audience.newBuilder() - .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setMembershipDurationDays(1702404985) - .setAdsPersonalizationEnabled(true) - .setEventTrigger(AudienceEventTrigger.newBuilder().build()) - .addAllFilterClauses(new ArrayList()) + public void createAccessBindingTest3() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - Audience audience = Audience.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + String parent = "parent-995424086"; + AccessBinding accessBinding = AccessBinding.newBuilder().build(); - Audience actualResponse = client.updateAudience(audience, updateMask); + AccessBinding actualResponse = client.createAccessBinding(parent, accessBinding); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateAudienceRequest actualRequest = ((UpdateAudienceRequest) actualRequests.get(0)); + CreateAccessBindingRequest actualRequest = ((CreateAccessBindingRequest) actualRequests.get(0)); - Assert.assertEquals(audience, actualRequest.getAudience()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(accessBinding, actualRequest.getAccessBinding()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -6186,14 +6261,14 @@ public void updateAudienceTest() throws Exception { } @Test - public void updateAudienceExceptionTest() throws Exception { + public void createAccessBindingExceptionTest3() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - Audience audience = Audience.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateAudience(audience, updateMask); + String parent = "parent-995424086"; + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + client.createAccessBinding(parent, accessBinding); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6201,22 +6276,27 @@ public void updateAudienceExceptionTest() throws Exception { } @Test - public void archiveAudienceTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getAccessBindingTest() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - ArchiveAudienceRequest request = - ArchiveAudienceRequest.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .build(); + AccessBindingName name = + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); - client.archiveAudience(request); + AccessBinding actualResponse = client.getAccessBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ArchiveAudienceRequest actualRequest = ((ArchiveAudienceRequest) actualRequests.get(0)); + GetAccessBindingRequest actualRequest = ((GetAccessBindingRequest) actualRequests.get(0)); - Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -6224,16 +6304,14 @@ public void archiveAudienceTest() throws Exception { } @Test - public void archiveAudienceExceptionTest() throws Exception { + public void getAccessBindingExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - ArchiveAudienceRequest request = - ArchiveAudienceRequest.newBuilder() - .setName(PropertyName.of("[PROPERTY]").toString()) - .build(); - client.archiveAudience(request); + AccessBindingName name = + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); + client.getAccessBinding(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6241,29 +6319,26 @@ public void archiveAudienceExceptionTest() throws Exception { } @Test - public void getSearchAds360LinkTest() throws Exception { - SearchAds360Link expectedResponse = - SearchAds360Link.newBuilder() - .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) - .setAdvertiserId("advertiserId550061990") - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) + public void getAccessBindingTest2() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]"); + String name = "name3373707"; - SearchAds360Link actualResponse = client.getSearchAds360Link(name); + AccessBinding actualResponse = client.getAccessBinding(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetSearchAds360LinkRequest actualRequest = ((GetSearchAds360LinkRequest) actualRequests.get(0)); + GetAccessBindingRequest actualRequest = ((GetAccessBindingRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -6271,13 +6346,13 @@ public void getSearchAds360LinkTest() throws Exception { } @Test - public void getSearchAds360LinkExceptionTest() throws Exception { + public void getAccessBindingExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]"); - client.getSearchAds360Link(name); + String name = "name3373707"; + client.getAccessBinding(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6285,29 +6360,26 @@ public void getSearchAds360LinkExceptionTest() throws Exception { } @Test - public void getSearchAds360LinkTest2() throws Exception { - SearchAds360Link expectedResponse = - SearchAds360Link.newBuilder() - .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) - .setAdvertiserId("advertiserId550061990") - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) + public void updateAccessBindingTest() throws Exception { + AccessBinding expectedResponse = + AccessBinding.newBuilder() + .setName( + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") + .toString()) + .addAllRoles(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + AccessBinding accessBinding = AccessBinding.newBuilder().build(); - SearchAds360Link actualResponse = client.getSearchAds360Link(name); + AccessBinding actualResponse = client.updateAccessBinding(accessBinding); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetSearchAds360LinkRequest actualRequest = ((GetSearchAds360LinkRequest) actualRequests.get(0)); + UpdateAccessBindingRequest actualRequest = ((UpdateAccessBindingRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(accessBinding, actualRequest.getAccessBinding()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -6315,13 +6387,13 @@ public void getSearchAds360LinkTest2() throws Exception { } @Test - public void getSearchAds360LinkExceptionTest2() throws Exception { + public void updateAccessBindingExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.getSearchAds360Link(name); + AccessBinding accessBinding = AccessBinding.newBuilder().build(); + client.updateAccessBinding(accessBinding); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6329,30 +6401,20 @@ public void getSearchAds360LinkExceptionTest2() throws Exception { } @Test - public void listSearchAds360LinksTest() throws Exception { - SearchAds360Link responsesElement = SearchAds360Link.newBuilder().build(); - ListSearchAds360LinksResponse expectedResponse = - ListSearchAds360LinksResponse.newBuilder() - .setNextPageToken("") - .addAllSearchAds360Links(Arrays.asList(responsesElement)) - .build(); + public void deleteAccessBindingTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListSearchAds360LinksPagedResponse pagedListResponse = client.listSearchAds360Links(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + AccessBindingName name = + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getSearchAds360LinksList().get(0), resources.get(0)); + client.deleteAccessBinding(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListSearchAds360LinksRequest actualRequest = - ((ListSearchAds360LinksRequest) actualRequests.get(0)); + DeleteAccessBindingRequest actualRequest = ((DeleteAccessBindingRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -6360,13 +6422,14 @@ public void listSearchAds360LinksTest() throws Exception { } @Test - public void listSearchAds360LinksExceptionTest() throws Exception { + public void deleteAccessBindingExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listSearchAds360Links(parent); + AccessBindingName name = + AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); + client.deleteAccessBinding(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6374,30 +6437,19 @@ public void listSearchAds360LinksExceptionTest() throws Exception { } @Test - public void listSearchAds360LinksTest2() throws Exception { - SearchAds360Link responsesElement = SearchAds360Link.newBuilder().build(); - ListSearchAds360LinksResponse expectedResponse = - ListSearchAds360LinksResponse.newBuilder() - .setNextPageToken("") - .addAllSearchAds360Links(Arrays.asList(responsesElement)) - .build(); + public void deleteAccessBindingTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - - ListSearchAds360LinksPagedResponse pagedListResponse = client.listSearchAds360Links(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + String name = "name3373707"; - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getSearchAds360LinksList().get(0), resources.get(0)); + client.deleteAccessBinding(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListSearchAds360LinksRequest actualRequest = - ((ListSearchAds360LinksRequest) actualRequests.get(0)); + DeleteAccessBindingRequest actualRequest = ((DeleteAccessBindingRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -6405,13 +6457,13 @@ public void listSearchAds360LinksTest2() throws Exception { } @Test - public void listSearchAds360LinksExceptionTest2() throws Exception { + public void deleteAccessBindingExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - client.listSearchAds360Links(parent); + String name = "name3373707"; + client.deleteAccessBinding(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6419,32 +6471,29 @@ public void listSearchAds360LinksExceptionTest2() throws Exception { } @Test - public void createSearchAds360LinkTest() throws Exception { - SearchAds360Link expectedResponse = - SearchAds360Link.newBuilder() - .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) - .setAdvertiserId("advertiserId550061990") - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) + public void listAccessBindingsTest() throws Exception { + AccessBinding responsesElement = AccessBinding.newBuilder().build(); + ListAccessBindingsResponse expectedResponse = + ListAccessBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllAccessBindings(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); + AccountName parent = AccountName.of("[ACCOUNT]"); - SearchAds360Link actualResponse = client.createSearchAds360Link(parent, searchAds360Link); - Assert.assertEquals(expectedResponse, actualResponse); + ListAccessBindingsPagedResponse pagedListResponse = client.listAccessBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessBindingsList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateSearchAds360LinkRequest actualRequest = - ((CreateSearchAds360LinkRequest) actualRequests.get(0)); + ListAccessBindingsRequest actualRequest = ((ListAccessBindingsRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(searchAds360Link, actualRequest.getSearchAds360Link()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -6452,14 +6501,13 @@ public void createSearchAds360LinkTest() throws Exception { } @Test - public void createSearchAds360LinkExceptionTest() throws Exception { + public void listAccessBindingsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); - client.createSearchAds360Link(parent, searchAds360Link); + AccountName parent = AccountName.of("[ACCOUNT]"); + client.listAccessBindings(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6467,32 +6515,29 @@ public void createSearchAds360LinkExceptionTest() throws Exception { } @Test - public void createSearchAds360LinkTest2() throws Exception { - SearchAds360Link expectedResponse = - SearchAds360Link.newBuilder() - .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) - .setAdvertiserId("advertiserId550061990") - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) + public void listAccessBindingsTest2() throws Exception { + AccessBinding responsesElement = AccessBinding.newBuilder().build(); + ListAccessBindingsResponse expectedResponse = + ListAccessBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllAccessBindings(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); + PropertyName parent = PropertyName.of("[PROPERTY]"); - SearchAds360Link actualResponse = client.createSearchAds360Link(parent, searchAds360Link); - Assert.assertEquals(expectedResponse, actualResponse); + ListAccessBindingsPagedResponse pagedListResponse = client.listAccessBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessBindingsList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateSearchAds360LinkRequest actualRequest = - ((CreateSearchAds360LinkRequest) actualRequests.get(0)); + ListAccessBindingsRequest actualRequest = ((ListAccessBindingsRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(searchAds360Link, actualRequest.getSearchAds360Link()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -6500,14 +6545,13 @@ public void createSearchAds360LinkTest2() throws Exception { } @Test - public void createSearchAds360LinkExceptionTest2() throws Exception { + public void listAccessBindingsExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); - client.createSearchAds360Link(parent, searchAds360Link); + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listAccessBindings(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6515,20 +6559,29 @@ public void createSearchAds360LinkExceptionTest2() throws Exception { } @Test - public void deleteSearchAds360LinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void listAccessBindingsTest3() throws Exception { + AccessBinding responsesElement = AccessBinding.newBuilder().build(); + ListAccessBindingsResponse expectedResponse = + ListAccessBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllAccessBindings(Arrays.asList(responsesElement)) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]"); + String parent = "parent-995424086"; - client.deleteSearchAds360Link(name); + ListAccessBindingsPagedResponse pagedListResponse = client.listAccessBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessBindingsList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteSearchAds360LinkRequest actualRequest = - ((DeleteSearchAds360LinkRequest) actualRequests.get(0)); + ListAccessBindingsRequest actualRequest = ((ListAccessBindingsRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -6536,13 +6589,13 @@ public void deleteSearchAds360LinkTest() throws Exception { } @Test - public void deleteSearchAds360LinkExceptionTest() throws Exception { + public void listAccessBindingsExceptionTest3() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]"); - client.deleteSearchAds360Link(name); + String parent = "parent-995424086"; + client.listAccessBindings(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6550,20 +6603,29 @@ public void deleteSearchAds360LinkExceptionTest() throws Exception { } @Test - public void deleteSearchAds360LinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void batchCreateAccessBindingsTest() throws Exception { + BatchCreateAccessBindingsResponse expectedResponse = + BatchCreateAccessBindingsResponse.newBuilder() + .addAllAccessBindings(new ArrayList()) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + BatchCreateAccessBindingsRequest request = + BatchCreateAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); - client.deleteSearchAds360Link(name); + BatchCreateAccessBindingsResponse actualResponse = client.batchCreateAccessBindings(request); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteSearchAds360LinkRequest actualRequest = - ((DeleteSearchAds360LinkRequest) actualRequests.get(0)); + BatchCreateAccessBindingsRequest actualRequest = + ((BatchCreateAccessBindingsRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -6571,13 +6633,17 @@ public void deleteSearchAds360LinkTest2() throws Exception { } @Test - public void deleteSearchAds360LinkExceptionTest2() throws Exception { + public void batchCreateAccessBindingsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.deleteSearchAds360Link(name); + BatchCreateAccessBindingsRequest request = + BatchCreateAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + client.batchCreateAccessBindings(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6585,32 +6651,29 @@ public void deleteSearchAds360LinkExceptionTest2() throws Exception { } @Test - public void updateSearchAds360LinkTest() throws Exception { - SearchAds360Link expectedResponse = - SearchAds360Link.newBuilder() - .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString()) - .setAdvertiserId("advertiserId550061990") - .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) - .setCostDataSharingEnabled(BoolValue.newBuilder().build()) - .setAdvertiserDisplayName("advertiserDisplayName1594116162") - .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setSiteStatsSharingEnabled(BoolValue.newBuilder().build()) + public void batchGetAccessBindingsTest() throws Exception { + BatchGetAccessBindingsResponse expectedResponse = + BatchGetAccessBindingsResponse.newBuilder() + .addAllAccessBindings(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + BatchGetAccessBindingsRequest request = + BatchGetAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllNames(new ArrayList()) + .build(); - SearchAds360Link actualResponse = client.updateSearchAds360Link(searchAds360Link, updateMask); + BatchGetAccessBindingsResponse actualResponse = client.batchGetAccessBindings(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateSearchAds360LinkRequest actualRequest = - ((UpdateSearchAds360LinkRequest) actualRequests.get(0)); + BatchGetAccessBindingsRequest actualRequest = + ((BatchGetAccessBindingsRequest) actualRequests.get(0)); - Assert.assertEquals(searchAds360Link, actualRequest.getSearchAds360Link()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getNamesList(), actualRequest.getNamesList()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -6618,14 +6681,17 @@ public void updateSearchAds360LinkTest() throws Exception { } @Test - public void updateSearchAds360LinkExceptionTest() throws Exception { + public void batchGetAccessBindingsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateSearchAds360Link(searchAds360Link, updateMask); + BatchGetAccessBindingsRequest request = + BatchGetAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllNames(new ArrayList()) + .build(); + client.batchGetAccessBindings(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6633,24 +6699,29 @@ public void updateSearchAds360LinkExceptionTest() throws Exception { } @Test - public void getAttributionSettingsTest() throws Exception { - AttributionSettings expectedResponse = - AttributionSettings.newBuilder() - .setName(AttributionSettingsName.of("[PROPERTY]").toString()) + public void batchUpdateAccessBindingsTest() throws Exception { + BatchUpdateAccessBindingsResponse expectedResponse = + BatchUpdateAccessBindingsResponse.newBuilder() + .addAllAccessBindings(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - AttributionSettingsName name = AttributionSettingsName.of("[PROPERTY]"); + BatchUpdateAccessBindingsRequest request = + BatchUpdateAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); - AttributionSettings actualResponse = client.getAttributionSettings(name); + BatchUpdateAccessBindingsResponse actualResponse = client.batchUpdateAccessBindings(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetAttributionSettingsRequest actualRequest = - ((GetAttributionSettingsRequest) actualRequests.get(0)); + BatchUpdateAccessBindingsRequest actualRequest = + ((BatchUpdateAccessBindingsRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -6658,13 +6729,17 @@ public void getAttributionSettingsTest() throws Exception { } @Test - public void getAttributionSettingsExceptionTest() throws Exception { + public void batchUpdateAccessBindingsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - AttributionSettingsName name = AttributionSettingsName.of("[PROPERTY]"); - client.getAttributionSettings(name); + BatchUpdateAccessBindingsRequest request = + BatchUpdateAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + client.batchUpdateAccessBindings(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6672,24 +6747,25 @@ public void getAttributionSettingsExceptionTest() throws Exception { } @Test - public void getAttributionSettingsTest2() throws Exception { - AttributionSettings expectedResponse = - AttributionSettings.newBuilder() - .setName(AttributionSettingsName.of("[PROPERTY]").toString()) - .build(); + public void batchDeleteAccessBindingsTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + BatchDeleteAccessBindingsRequest request = + BatchDeleteAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); - AttributionSettings actualResponse = client.getAttributionSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); + client.batchDeleteAccessBindings(request); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetAttributionSettingsRequest actualRequest = - ((GetAttributionSettingsRequest) actualRequests.get(0)); + BatchDeleteAccessBindingsRequest actualRequest = + ((BatchDeleteAccessBindingsRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -6697,13 +6773,17 @@ public void getAttributionSettingsTest2() throws Exception { } @Test - public void getAttributionSettingsExceptionTest2() throws Exception { + public void batchDeleteAccessBindingsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.getAttributionSettings(name); + BatchDeleteAccessBindingsRequest request = + BatchDeleteAccessBindingsRequest.newBuilder() + .setParent(AccountName.of("[ACCOUNT]").toString()) + .addAllRequests(new ArrayList()) + .build(); + client.batchDeleteAccessBindings(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6711,27 +6791,29 @@ public void getAttributionSettingsExceptionTest2() throws Exception { } @Test - public void updateAttributionSettingsTest() throws Exception { - AttributionSettings expectedResponse = - AttributionSettings.newBuilder() - .setName(AttributionSettingsName.of("[PROPERTY]").toString()) + public void getExpandedDataSetTest() throws Exception { + ExpandedDataSet expectedResponse = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - AttributionSettings attributionSettings = AttributionSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); - AttributionSettings actualResponse = - client.updateAttributionSettings(attributionSettings, updateMask); + ExpandedDataSet actualResponse = client.getExpandedDataSet(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateAttributionSettingsRequest actualRequest = - ((UpdateAttributionSettingsRequest) actualRequests.get(0)); + GetExpandedDataSetRequest actualRequest = ((GetExpandedDataSetRequest) actualRequests.get(0)); - Assert.assertEquals(attributionSettings, actualRequest.getAttributionSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -6739,14 +6821,13 @@ public void updateAttributionSettingsTest() throws Exception { } @Test - public void updateAttributionSettingsExceptionTest() throws Exception { + public void getExpandedDataSetExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - AttributionSettings attributionSettings = AttributionSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateAttributionSettings(attributionSettings, updateMask); + ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); + client.getExpandedDataSet(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6754,50 +6835,29 @@ public void updateAttributionSettingsExceptionTest() throws Exception { } @Test - public void runAccessReportTest() throws Exception { - RunAccessReportResponse expectedResponse = - RunAccessReportResponse.newBuilder() - .addAllDimensionHeaders(new ArrayList()) - .addAllMetricHeaders(new ArrayList()) - .addAllRows(new ArrayList()) - .setRowCount(1340416618) - .setQuota(AccessQuota.newBuilder().build()) + public void getExpandedDataSetTest2() throws Exception { + ExpandedDataSet expectedResponse = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - RunAccessReportRequest request = - RunAccessReportRequest.newBuilder() - .setEntity("entity-1298275357") - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .addAllDateRanges(new ArrayList()) - .setDimensionFilter(AccessFilterExpression.newBuilder().build()) - .setMetricFilter(AccessFilterExpression.newBuilder().build()) - .setOffset(-1019779949) - .setLimit(102976443) - .setTimeZone("timeZone-2077180903") - .addAllOrderBys(new ArrayList()) - .setReturnEntityQuota(true) - .build(); + String name = "name3373707"; - RunAccessReportResponse actualResponse = client.runAccessReport(request); + ExpandedDataSet actualResponse = client.getExpandedDataSet(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - RunAccessReportRequest actualRequest = ((RunAccessReportRequest) actualRequests.get(0)); + GetExpandedDataSetRequest actualRequest = ((GetExpandedDataSetRequest) actualRequests.get(0)); - Assert.assertEquals(request.getEntity(), actualRequest.getEntity()); - Assert.assertEquals(request.getDimensionsList(), actualRequest.getDimensionsList()); - Assert.assertEquals(request.getMetricsList(), actualRequest.getMetricsList()); - Assert.assertEquals(request.getDateRangesList(), actualRequest.getDateRangesList()); - Assert.assertEquals(request.getDimensionFilter(), actualRequest.getDimensionFilter()); - Assert.assertEquals(request.getMetricFilter(), actualRequest.getMetricFilter()); - Assert.assertEquals(request.getOffset(), actualRequest.getOffset()); - Assert.assertEquals(request.getLimit(), actualRequest.getLimit()); - Assert.assertEquals(request.getTimeZone(), actualRequest.getTimeZone()); - Assert.assertEquals(request.getOrderBysList(), actualRequest.getOrderBysList()); - Assert.assertEquals(request.getReturnEntityQuota(), actualRequest.getReturnEntityQuota()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -6805,26 +6865,13 @@ public void runAccessReportTest() throws Exception { } @Test - public void runAccessReportExceptionTest() throws Exception { + public void getExpandedDataSetExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - RunAccessReportRequest request = - RunAccessReportRequest.newBuilder() - .setEntity("entity-1298275357") - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .addAllDateRanges(new ArrayList()) - .setDimensionFilter(AccessFilterExpression.newBuilder().build()) - .setMetricFilter(AccessFilterExpression.newBuilder().build()) - .setOffset(-1019779949) - .setLimit(102976443) - .setTimeZone("timeZone-2077180903") - .addAllOrderBys(new ArrayList()) - .setReturnEntityQuota(true) - .build(); - client.runAccessReport(request); + String name = "name3373707"; + client.getExpandedDataSet(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6832,28 +6879,30 @@ public void runAccessReportExceptionTest() throws Exception { } @Test - public void createAccessBindingTest() throws Exception { - AccessBinding expectedResponse = - AccessBinding.newBuilder() - .setName( - AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") - .toString()) - .addAllRoles(new ArrayList()) + public void listExpandedDataSetsTest() throws Exception { + ExpandedDataSet responsesElement = ExpandedDataSet.newBuilder().build(); + ListExpandedDataSetsResponse expectedResponse = + ListExpandedDataSetsResponse.newBuilder() + .setNextPageToken("") + .addAllExpandedDataSets(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - AccountName parent = AccountName.of("[ACCOUNT]"); - AccessBinding accessBinding = AccessBinding.newBuilder().build(); + PropertyName parent = PropertyName.of("[PROPERTY]"); - AccessBinding actualResponse = client.createAccessBinding(parent, accessBinding); - Assert.assertEquals(expectedResponse, actualResponse); + ListExpandedDataSetsPagedResponse pagedListResponse = client.listExpandedDataSets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExpandedDataSetsList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateAccessBindingRequest actualRequest = ((CreateAccessBindingRequest) actualRequests.get(0)); + ListExpandedDataSetsRequest actualRequest = + ((ListExpandedDataSetsRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(accessBinding, actualRequest.getAccessBinding()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -6861,14 +6910,13 @@ public void createAccessBindingTest() throws Exception { } @Test - public void createAccessBindingExceptionTest() throws Exception { + public void listExpandedDataSetsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - AccountName parent = AccountName.of("[ACCOUNT]"); - AccessBinding accessBinding = AccessBinding.newBuilder().build(); - client.createAccessBinding(parent, accessBinding); + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listExpandedDataSets(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6876,28 +6924,30 @@ public void createAccessBindingExceptionTest() throws Exception { } @Test - public void createAccessBindingTest2() throws Exception { - AccessBinding expectedResponse = - AccessBinding.newBuilder() - .setName( - AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") - .toString()) - .addAllRoles(new ArrayList()) + public void listExpandedDataSetsTest2() throws Exception { + ExpandedDataSet responsesElement = ExpandedDataSet.newBuilder().build(); + ListExpandedDataSetsResponse expectedResponse = + ListExpandedDataSetsResponse.newBuilder() + .setNextPageToken("") + .addAllExpandedDataSets(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - AccessBinding accessBinding = AccessBinding.newBuilder().build(); + String parent = "parent-995424086"; - AccessBinding actualResponse = client.createAccessBinding(parent, accessBinding); - Assert.assertEquals(expectedResponse, actualResponse); + ListExpandedDataSetsPagedResponse pagedListResponse = client.listExpandedDataSets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getExpandedDataSetsList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateAccessBindingRequest actualRequest = ((CreateAccessBindingRequest) actualRequests.get(0)); + ListExpandedDataSetsRequest actualRequest = + ((ListExpandedDataSetsRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(accessBinding, actualRequest.getAccessBinding()); + Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -6905,14 +6955,13 @@ public void createAccessBindingTest2() throws Exception { } @Test - public void createAccessBindingExceptionTest2() throws Exception { + public void listExpandedDataSetsExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - AccessBinding accessBinding = AccessBinding.newBuilder().build(); - client.createAccessBinding(parent, accessBinding); + String parent = "parent-995424086"; + client.listExpandedDataSets(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -6920,28 +6969,32 @@ public void createAccessBindingExceptionTest2() throws Exception { } @Test - public void createAccessBindingTest3() throws Exception { - AccessBinding expectedResponse = - AccessBinding.newBuilder() - .setName( - AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") - .toString()) - .addAllRoles(new ArrayList()) + public void createExpandedDataSetTest() throws Exception { + ExpandedDataSet expectedResponse = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - AccessBinding accessBinding = AccessBinding.newBuilder().build(); + PropertyName parent = PropertyName.of("[PROPERTY]"); + ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); - AccessBinding actualResponse = client.createAccessBinding(parent, accessBinding); + ExpandedDataSet actualResponse = client.createExpandedDataSet(parent, expandedDataSet); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateAccessBindingRequest actualRequest = ((CreateAccessBindingRequest) actualRequests.get(0)); + CreateExpandedDataSetRequest actualRequest = + ((CreateExpandedDataSetRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(accessBinding, actualRequest.getAccessBinding()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(expandedDataSet, actualRequest.getExpandedDataSet()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -6949,42 +7002,47 @@ public void createAccessBindingTest3() throws Exception { } @Test - public void createAccessBindingExceptionTest3() throws Exception { + public void createExpandedDataSetExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - AccessBinding accessBinding = AccessBinding.newBuilder().build(); - client.createAccessBinding(parent, accessBinding); + PropertyName parent = PropertyName.of("[PROPERTY]"); + ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + client.createExpandedDataSet(parent, expandedDataSet); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. } } - - @Test - public void getAccessBindingTest() throws Exception { - AccessBinding expectedResponse = - AccessBinding.newBuilder() - .setName( - AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") - .toString()) - .addAllRoles(new ArrayList()) + + @Test + public void createExpandedDataSetTest2() throws Exception { + ExpandedDataSet expectedResponse = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - AccessBindingName name = - AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); + String parent = "parent-995424086"; + ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); - AccessBinding actualResponse = client.getAccessBinding(name); + ExpandedDataSet actualResponse = client.createExpandedDataSet(parent, expandedDataSet); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetAccessBindingRequest actualRequest = ((GetAccessBindingRequest) actualRequests.get(0)); + CreateExpandedDataSetRequest actualRequest = + ((CreateExpandedDataSetRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(expandedDataSet, actualRequest.getExpandedDataSet()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -6992,14 +7050,14 @@ public void getAccessBindingTest() throws Exception { } @Test - public void getAccessBindingExceptionTest() throws Exception { + public void createExpandedDataSetExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - AccessBindingName name = - AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); - client.getAccessBinding(name); + String parent = "parent-995424086"; + ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + client.createExpandedDataSet(parent, expandedDataSet); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7007,26 +7065,32 @@ public void getAccessBindingExceptionTest() throws Exception { } @Test - public void getAccessBindingTest2() throws Exception { - AccessBinding expectedResponse = - AccessBinding.newBuilder() - .setName( - AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") - .toString()) - .addAllRoles(new ArrayList()) + public void updateExpandedDataSetTest() throws Exception { + ExpandedDataSet expectedResponse = + ExpandedDataSet.newBuilder() + .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllDimensionNames(new ArrayList()) + .addAllMetricNames(new ArrayList()) + .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) + .setDataCollectionStartTime(Timestamp.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - AccessBinding actualResponse = client.getAccessBinding(name); + ExpandedDataSet actualResponse = client.updateExpandedDataSet(expandedDataSet, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetAccessBindingRequest actualRequest = ((GetAccessBindingRequest) actualRequests.get(0)); + UpdateExpandedDataSetRequest actualRequest = + ((UpdateExpandedDataSetRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(expandedDataSet, actualRequest.getExpandedDataSet()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -7034,13 +7098,14 @@ public void getAccessBindingTest2() throws Exception { } @Test - public void getAccessBindingExceptionTest2() throws Exception { + public void updateExpandedDataSetExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.getAccessBinding(name); + ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateExpandedDataSet(expandedDataSet, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7048,26 +7113,20 @@ public void getAccessBindingExceptionTest2() throws Exception { } @Test - public void updateAccessBindingTest() throws Exception { - AccessBinding expectedResponse = - AccessBinding.newBuilder() - .setName( - AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]") - .toString()) - .addAllRoles(new ArrayList()) - .build(); + public void deleteExpandedDataSetTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - AccessBinding accessBinding = AccessBinding.newBuilder().build(); + ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); - AccessBinding actualResponse = client.updateAccessBinding(accessBinding); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteExpandedDataSet(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateAccessBindingRequest actualRequest = ((UpdateAccessBindingRequest) actualRequests.get(0)); + DeleteExpandedDataSetRequest actualRequest = + ((DeleteExpandedDataSetRequest) actualRequests.get(0)); - Assert.assertEquals(accessBinding, actualRequest.getAccessBinding()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -7075,13 +7134,13 @@ public void updateAccessBindingTest() throws Exception { } @Test - public void updateAccessBindingExceptionTest() throws Exception { + public void deleteExpandedDataSetExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - AccessBinding accessBinding = AccessBinding.newBuilder().build(); - client.updateAccessBinding(accessBinding); + ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); + client.deleteExpandedDataSet(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7089,20 +7148,20 @@ public void updateAccessBindingExceptionTest() throws Exception { } @Test - public void deleteAccessBindingTest() throws Exception { + public void deleteExpandedDataSetTest2() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - AccessBindingName name = - AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); + String name = "name3373707"; - client.deleteAccessBinding(name); + client.deleteExpandedDataSet(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteAccessBindingRequest actualRequest = ((DeleteAccessBindingRequest) actualRequests.get(0)); + DeleteExpandedDataSetRequest actualRequest = + ((DeleteExpandedDataSetRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -7110,14 +7169,13 @@ public void deleteAccessBindingTest() throws Exception { } @Test - public void deleteAccessBindingExceptionTest() throws Exception { + public void deleteExpandedDataSetExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - AccessBindingName name = - AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]"); - client.deleteAccessBinding(name); + String name = "name3373707"; + client.deleteExpandedDataSet(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7125,19 +7183,27 @@ public void deleteAccessBindingExceptionTest() throws Exception { } @Test - public void deleteAccessBindingTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getChannelGroupTest() throws Exception { + ChannelGroup expectedResponse = + ChannelGroup.newBuilder() + .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllGroupingRule(new ArrayList()) + .setSystemDefined(true) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + ChannelGroupName name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]"); - client.deleteAccessBinding(name); + ChannelGroup actualResponse = client.getChannelGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteAccessBindingRequest actualRequest = ((DeleteAccessBindingRequest) actualRequests.get(0)); + GetChannelGroupRequest actualRequest = ((GetChannelGroupRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -7145,13 +7211,13 @@ public void deleteAccessBindingTest2() throws Exception { } @Test - public void deleteAccessBindingExceptionTest2() throws Exception { + public void getChannelGroupExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.deleteAccessBinding(name); + ChannelGroupName name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]"); + client.getChannelGroup(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7159,29 +7225,27 @@ public void deleteAccessBindingExceptionTest2() throws Exception { } @Test - public void listAccessBindingsTest() throws Exception { - AccessBinding responsesElement = AccessBinding.newBuilder().build(); - ListAccessBindingsResponse expectedResponse = - ListAccessBindingsResponse.newBuilder() - .setNextPageToken("") - .addAllAccessBindings(Arrays.asList(responsesElement)) + public void getChannelGroupTest2() throws Exception { + ChannelGroup expectedResponse = + ChannelGroup.newBuilder() + .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllGroupingRule(new ArrayList()) + .setSystemDefined(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - AccountName parent = AccountName.of("[ACCOUNT]"); - - ListAccessBindingsPagedResponse pagedListResponse = client.listAccessBindings(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + String name = "name3373707"; - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAccessBindingsList().get(0), resources.get(0)); + ChannelGroup actualResponse = client.getChannelGroup(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListAccessBindingsRequest actualRequest = ((ListAccessBindingsRequest) actualRequests.get(0)); + GetChannelGroupRequest actualRequest = ((GetChannelGroupRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -7189,13 +7253,13 @@ public void listAccessBindingsTest() throws Exception { } @Test - public void listAccessBindingsExceptionTest() throws Exception { + public void getChannelGroupExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - AccountName parent = AccountName.of("[ACCOUNT]"); - client.listAccessBindings(parent); + String name = "name3373707"; + client.getChannelGroup(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7203,27 +7267,27 @@ public void listAccessBindingsExceptionTest() throws Exception { } @Test - public void listAccessBindingsTest2() throws Exception { - AccessBinding responsesElement = AccessBinding.newBuilder().build(); - ListAccessBindingsResponse expectedResponse = - ListAccessBindingsResponse.newBuilder() + public void listChannelGroupsTest() throws Exception { + ChannelGroup responsesElement = ChannelGroup.newBuilder().build(); + ListChannelGroupsResponse expectedResponse = + ListChannelGroupsResponse.newBuilder() .setNextPageToken("") - .addAllAccessBindings(Arrays.asList(responsesElement)) + .addAllChannelGroups(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); PropertyName parent = PropertyName.of("[PROPERTY]"); - ListAccessBindingsPagedResponse pagedListResponse = client.listAccessBindings(parent); + ListChannelGroupsPagedResponse pagedListResponse = client.listChannelGroups(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAccessBindingsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getChannelGroupsList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListAccessBindingsRequest actualRequest = ((ListAccessBindingsRequest) actualRequests.get(0)); + ListChannelGroupsRequest actualRequest = ((ListChannelGroupsRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( @@ -7233,13 +7297,13 @@ public void listAccessBindingsTest2() throws Exception { } @Test - public void listAccessBindingsExceptionTest2() throws Exception { + public void listChannelGroupsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listAccessBindings(parent); + client.listChannelGroups(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7247,27 +7311,27 @@ public void listAccessBindingsExceptionTest2() throws Exception { } @Test - public void listAccessBindingsTest3() throws Exception { - AccessBinding responsesElement = AccessBinding.newBuilder().build(); - ListAccessBindingsResponse expectedResponse = - ListAccessBindingsResponse.newBuilder() + public void listChannelGroupsTest2() throws Exception { + ChannelGroup responsesElement = ChannelGroup.newBuilder().build(); + ListChannelGroupsResponse expectedResponse = + ListChannelGroupsResponse.newBuilder() .setNextPageToken("") - .addAllAccessBindings(Arrays.asList(responsesElement)) + .addAllChannelGroups(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); String parent = "parent-995424086"; - ListAccessBindingsPagedResponse pagedListResponse = client.listAccessBindings(parent); + ListChannelGroupsPagedResponse pagedListResponse = client.listChannelGroups(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAccessBindingsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getChannelGroupsList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListAccessBindingsRequest actualRequest = ((ListAccessBindingsRequest) actualRequests.get(0)); + ListChannelGroupsRequest actualRequest = ((ListChannelGroupsRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( @@ -7277,13 +7341,13 @@ public void listAccessBindingsTest3() throws Exception { } @Test - public void listAccessBindingsExceptionTest3() throws Exception { + public void listChannelGroupsExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { String parent = "parent-995424086"; - client.listAccessBindings(parent); + client.listChannelGroups(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7291,29 +7355,29 @@ public void listAccessBindingsExceptionTest3() throws Exception { } @Test - public void batchCreateAccessBindingsTest() throws Exception { - BatchCreateAccessBindingsResponse expectedResponse = - BatchCreateAccessBindingsResponse.newBuilder() - .addAllAccessBindings(new ArrayList()) + public void createChannelGroupTest() throws Exception { + ChannelGroup expectedResponse = + ChannelGroup.newBuilder() + .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllGroupingRule(new ArrayList()) + .setSystemDefined(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - BatchCreateAccessBindingsRequest request = - BatchCreateAccessBindingsRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); + PropertyName parent = PropertyName.of("[PROPERTY]"); + ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); - BatchCreateAccessBindingsResponse actualResponse = client.batchCreateAccessBindings(request); + ChannelGroup actualResponse = client.createChannelGroup(parent, channelGroup); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - BatchCreateAccessBindingsRequest actualRequest = - ((BatchCreateAccessBindingsRequest) actualRequests.get(0)); + CreateChannelGroupRequest actualRequest = ((CreateChannelGroupRequest) actualRequests.get(0)); - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(channelGroup, actualRequest.getChannelGroup()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -7321,17 +7385,14 @@ public void batchCreateAccessBindingsTest() throws Exception { } @Test - public void batchCreateAccessBindingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - BatchCreateAccessBindingsRequest request = - BatchCreateAccessBindingsRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); - client.batchCreateAccessBindings(request); + public void createChannelGroupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); + client.createChannelGroup(parent, channelGroup); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7339,29 +7400,29 @@ public void batchCreateAccessBindingsExceptionTest() throws Exception { } @Test - public void batchGetAccessBindingsTest() throws Exception { - BatchGetAccessBindingsResponse expectedResponse = - BatchGetAccessBindingsResponse.newBuilder() - .addAllAccessBindings(new ArrayList()) + public void createChannelGroupTest2() throws Exception { + ChannelGroup expectedResponse = + ChannelGroup.newBuilder() + .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllGroupingRule(new ArrayList()) + .setSystemDefined(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - BatchGetAccessBindingsRequest request = - BatchGetAccessBindingsRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllNames(new ArrayList()) - .build(); + String parent = "parent-995424086"; + ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); - BatchGetAccessBindingsResponse actualResponse = client.batchGetAccessBindings(request); + ChannelGroup actualResponse = client.createChannelGroup(parent, channelGroup); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - BatchGetAccessBindingsRequest actualRequest = - ((BatchGetAccessBindingsRequest) actualRequests.get(0)); + CreateChannelGroupRequest actualRequest = ((CreateChannelGroupRequest) actualRequests.get(0)); - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getNamesList(), actualRequest.getNamesList()); + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(channelGroup, actualRequest.getChannelGroup()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -7369,17 +7430,14 @@ public void batchGetAccessBindingsTest() throws Exception { } @Test - public void batchGetAccessBindingsExceptionTest() throws Exception { + public void createChannelGroupExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - BatchGetAccessBindingsRequest request = - BatchGetAccessBindingsRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllNames(new ArrayList()) - .build(); - client.batchGetAccessBindings(request); + String parent = "parent-995424086"; + ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); + client.createChannelGroup(parent, channelGroup); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7387,29 +7445,29 @@ public void batchGetAccessBindingsExceptionTest() throws Exception { } @Test - public void batchUpdateAccessBindingsTest() throws Exception { - BatchUpdateAccessBindingsResponse expectedResponse = - BatchUpdateAccessBindingsResponse.newBuilder() - .addAllAccessBindings(new ArrayList()) + public void updateChannelGroupTest() throws Exception { + ChannelGroup expectedResponse = + ChannelGroup.newBuilder() + .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllGroupingRule(new ArrayList()) + .setSystemDefined(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - BatchUpdateAccessBindingsRequest request = - BatchUpdateAccessBindingsRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); + ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - BatchUpdateAccessBindingsResponse actualResponse = client.batchUpdateAccessBindings(request); + ChannelGroup actualResponse = client.updateChannelGroup(channelGroup, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - BatchUpdateAccessBindingsRequest actualRequest = - ((BatchUpdateAccessBindingsRequest) actualRequests.get(0)); + UpdateChannelGroupRequest actualRequest = ((UpdateChannelGroupRequest) actualRequests.get(0)); - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); + Assert.assertEquals(channelGroup, actualRequest.getChannelGroup()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -7417,17 +7475,14 @@ public void batchUpdateAccessBindingsTest() throws Exception { } @Test - public void batchUpdateAccessBindingsExceptionTest() throws Exception { + public void updateChannelGroupExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - BatchUpdateAccessBindingsRequest request = - BatchUpdateAccessBindingsRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); - client.batchUpdateAccessBindings(request); + ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateChannelGroup(channelGroup, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7435,25 +7490,19 @@ public void batchUpdateAccessBindingsExceptionTest() throws Exception { } @Test - public void batchDeleteAccessBindingsTest() throws Exception { + public void deleteChannelGroupTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - BatchDeleteAccessBindingsRequest request = - BatchDeleteAccessBindingsRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); + ChannelGroupName name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]"); - client.batchDeleteAccessBindings(request); + client.deleteChannelGroup(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - BatchDeleteAccessBindingsRequest actualRequest = - ((BatchDeleteAccessBindingsRequest) actualRequests.get(0)); + DeleteChannelGroupRequest actualRequest = ((DeleteChannelGroupRequest) actualRequests.get(0)); - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -7461,17 +7510,13 @@ public void batchDeleteAccessBindingsTest() throws Exception { } @Test - public void batchDeleteAccessBindingsExceptionTest() throws Exception { + public void deleteChannelGroupExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - BatchDeleteAccessBindingsRequest request = - BatchDeleteAccessBindingsRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); - client.batchDeleteAccessBindings(request); + ChannelGroupName name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]"); + client.deleteChannelGroup(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7479,29 +7524,19 @@ public void batchDeleteAccessBindingsExceptionTest() throws Exception { } @Test - public void getExpandedDataSetTest() throws Exception { - ExpandedDataSet expectedResponse = - ExpandedDataSet.newBuilder() - .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllDimensionNames(new ArrayList()) - .addAllMetricNames(new ArrayList()) - .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) - .setDataCollectionStartTime(Timestamp.newBuilder().build()) - .build(); + public void deleteChannelGroupTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); + String name = "name3373707"; - ExpandedDataSet actualResponse = client.getExpandedDataSet(name); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteChannelGroup(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetExpandedDataSetRequest actualRequest = ((GetExpandedDataSetRequest) actualRequests.get(0)); + DeleteChannelGroupRequest actualRequest = ((DeleteChannelGroupRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -7509,13 +7544,13 @@ public void getExpandedDataSetTest() throws Exception { } @Test - public void getExpandedDataSetExceptionTest() throws Exception { + public void deleteChannelGroupExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); - client.getExpandedDataSet(name); + String name = "name3373707"; + client.deleteChannelGroup(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7523,29 +7558,28 @@ public void getExpandedDataSetExceptionTest() throws Exception { } @Test - public void getExpandedDataSetTest2() throws Exception { - ExpandedDataSet expectedResponse = - ExpandedDataSet.newBuilder() - .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllDimensionNames(new ArrayList()) - .addAllMetricNames(new ArrayList()) - .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) - .setDataCollectionStartTime(Timestamp.newBuilder().build()) - .build(); + public void setAutomatedGa4ConfigurationOptOutTest() throws Exception { + SetAutomatedGa4ConfigurationOptOutResponse expectedResponse = + SetAutomatedGa4ConfigurationOptOutResponse.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + SetAutomatedGa4ConfigurationOptOutRequest request = + SetAutomatedGa4ConfigurationOptOutRequest.newBuilder() + .setProperty("property-993141291") + .setOptOut(true) + .build(); - ExpandedDataSet actualResponse = client.getExpandedDataSet(name); + SetAutomatedGa4ConfigurationOptOutResponse actualResponse = + client.setAutomatedGa4ConfigurationOptOut(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetExpandedDataSetRequest actualRequest = ((GetExpandedDataSetRequest) actualRequests.get(0)); + SetAutomatedGa4ConfigurationOptOutRequest actualRequest = + ((SetAutomatedGa4ConfigurationOptOutRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); + Assert.assertEquals(request.getOptOut(), actualRequest.getOptOut()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -7553,13 +7587,17 @@ public void getExpandedDataSetTest2() throws Exception { } @Test - public void getExpandedDataSetExceptionTest2() throws Exception { + public void setAutomatedGa4ConfigurationOptOutExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.getExpandedDataSet(name); + SetAutomatedGa4ConfigurationOptOutRequest request = + SetAutomatedGa4ConfigurationOptOutRequest.newBuilder() + .setProperty("property-993141291") + .setOptOut(true) + .build(); + client.setAutomatedGa4ConfigurationOptOut(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7567,30 +7605,26 @@ public void getExpandedDataSetExceptionTest2() throws Exception { } @Test - public void listExpandedDataSetsTest() throws Exception { - ExpandedDataSet responsesElement = ExpandedDataSet.newBuilder().build(); - ListExpandedDataSetsResponse expectedResponse = - ListExpandedDataSetsResponse.newBuilder() - .setNextPageToken("") - .addAllExpandedDataSets(Arrays.asList(responsesElement)) - .build(); + public void fetchAutomatedGa4ConfigurationOptOutTest() throws Exception { + FetchAutomatedGa4ConfigurationOptOutResponse expectedResponse = + FetchAutomatedGa4ConfigurationOptOutResponse.newBuilder().setOptOut(true).build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListExpandedDataSetsPagedResponse pagedListResponse = client.listExpandedDataSets(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + FetchAutomatedGa4ConfigurationOptOutRequest request = + FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder() + .setProperty("property-993141291") + .build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getExpandedDataSetsList().get(0), resources.get(0)); + FetchAutomatedGa4ConfigurationOptOutResponse actualResponse = + client.fetchAutomatedGa4ConfigurationOptOut(request); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListExpandedDataSetsRequest actualRequest = - ((ListExpandedDataSetsRequest) actualRequests.get(0)); + FetchAutomatedGa4ConfigurationOptOutRequest actualRequest = + ((FetchAutomatedGa4ConfigurationOptOutRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -7598,13 +7632,16 @@ public void listExpandedDataSetsTest() throws Exception { } @Test - public void listExpandedDataSetsExceptionTest() throws Exception { + public void fetchAutomatedGa4ConfigurationOptOutExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listExpandedDataSets(parent); + FetchAutomatedGa4ConfigurationOptOutRequest request = + FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder() + .setProperty("property-993141291") + .build(); + client.fetchAutomatedGa4ConfigurationOptOut(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7612,30 +7649,31 @@ public void listExpandedDataSetsExceptionTest() throws Exception { } @Test - public void listExpandedDataSetsTest2() throws Exception { - ExpandedDataSet responsesElement = ExpandedDataSet.newBuilder().build(); - ListExpandedDataSetsResponse expectedResponse = - ListExpandedDataSetsResponse.newBuilder() - .setNextPageToken("") - .addAllExpandedDataSets(Arrays.asList(responsesElement)) + public void getBigQueryLinkTest() throws Exception { + BigQueryLink expectedResponse = + BigQueryLink.newBuilder() + .setName(BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString()) + .setProject("project-309310695") + .setCreateTime(Timestamp.newBuilder().build()) + .setDailyExportEnabled(true) + .setStreamingExportEnabled(true) + .setFreshDailyExportEnabled(true) + .setIncludeAdvertisingId(true) + .addAllExportStreams(new ArrayList()) + .addAllExcludedEvents(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - - ListExpandedDataSetsPagedResponse pagedListResponse = client.listExpandedDataSets(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + BigQueryLinkName name = BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getExpandedDataSetsList().get(0), resources.get(0)); + BigQueryLink actualResponse = client.getBigQueryLink(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListExpandedDataSetsRequest actualRequest = - ((ListExpandedDataSetsRequest) actualRequests.get(0)); + GetBigQueryLinkRequest actualRequest = ((GetBigQueryLinkRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -7643,13 +7681,13 @@ public void listExpandedDataSetsTest2() throws Exception { } @Test - public void listExpandedDataSetsExceptionTest2() throws Exception { + public void getBigQueryLinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - client.listExpandedDataSets(parent); + BigQueryLinkName name = BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]"); + client.getBigQueryLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7657,32 +7695,31 @@ public void listExpandedDataSetsExceptionTest2() throws Exception { } @Test - public void createExpandedDataSetTest() throws Exception { - ExpandedDataSet expectedResponse = - ExpandedDataSet.newBuilder() - .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllDimensionNames(new ArrayList()) - .addAllMetricNames(new ArrayList()) - .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) - .setDataCollectionStartTime(Timestamp.newBuilder().build()) + public void getBigQueryLinkTest2() throws Exception { + BigQueryLink expectedResponse = + BigQueryLink.newBuilder() + .setName(BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString()) + .setProject("project-309310695") + .setCreateTime(Timestamp.newBuilder().build()) + .setDailyExportEnabled(true) + .setStreamingExportEnabled(true) + .setFreshDailyExportEnabled(true) + .setIncludeAdvertisingId(true) + .addAllExportStreams(new ArrayList()) + .addAllExcludedEvents(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + String name = "name3373707"; - ExpandedDataSet actualResponse = client.createExpandedDataSet(parent, expandedDataSet); + BigQueryLink actualResponse = client.getBigQueryLink(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateExpandedDataSetRequest actualRequest = - ((CreateExpandedDataSetRequest) actualRequests.get(0)); + GetBigQueryLinkRequest actualRequest = ((GetBigQueryLinkRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(expandedDataSet, actualRequest.getExpandedDataSet()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -7690,14 +7727,13 @@ public void createExpandedDataSetTest() throws Exception { } @Test - public void createExpandedDataSetExceptionTest() throws Exception { + public void getBigQueryLinkExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); - client.createExpandedDataSet(parent, expandedDataSet); + String name = "name3373707"; + client.getBigQueryLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7705,32 +7741,29 @@ public void createExpandedDataSetExceptionTest() throws Exception { } @Test - public void createExpandedDataSetTest2() throws Exception { - ExpandedDataSet expectedResponse = - ExpandedDataSet.newBuilder() - .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllDimensionNames(new ArrayList()) - .addAllMetricNames(new ArrayList()) - .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) - .setDataCollectionStartTime(Timestamp.newBuilder().build()) + public void listBigQueryLinksTest() throws Exception { + BigQueryLink responsesElement = BigQueryLink.newBuilder().build(); + ListBigQueryLinksResponse expectedResponse = + ListBigQueryLinksResponse.newBuilder() + .setNextPageToken("") + .addAllBigqueryLinks(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); + PropertyName parent = PropertyName.of("[PROPERTY]"); - ExpandedDataSet actualResponse = client.createExpandedDataSet(parent, expandedDataSet); - Assert.assertEquals(expectedResponse, actualResponse); + ListBigQueryLinksPagedResponse pagedListResponse = client.listBigQueryLinks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBigqueryLinksList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateExpandedDataSetRequest actualRequest = - ((CreateExpandedDataSetRequest) actualRequests.get(0)); + ListBigQueryLinksRequest actualRequest = ((ListBigQueryLinksRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(expandedDataSet, actualRequest.getExpandedDataSet()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -7738,14 +7771,13 @@ public void createExpandedDataSetTest2() throws Exception { } @Test - public void createExpandedDataSetExceptionTest2() throws Exception { + public void listBigQueryLinksExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); - client.createExpandedDataSet(parent, expandedDataSet); + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listBigQueryLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7753,32 +7785,29 @@ public void createExpandedDataSetExceptionTest2() throws Exception { } @Test - public void updateExpandedDataSetTest() throws Exception { - ExpandedDataSet expectedResponse = - ExpandedDataSet.newBuilder() - .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllDimensionNames(new ArrayList()) - .addAllMetricNames(new ArrayList()) - .setDimensionFilterExpression(ExpandedDataSetFilterExpression.newBuilder().build()) - .setDataCollectionStartTime(Timestamp.newBuilder().build()) + public void listBigQueryLinksTest2() throws Exception { + BigQueryLink responsesElement = BigQueryLink.newBuilder().build(); + ListBigQueryLinksResponse expectedResponse = + ListBigQueryLinksResponse.newBuilder() + .setNextPageToken("") + .addAllBigqueryLinks(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + String parent = "parent-995424086"; - ExpandedDataSet actualResponse = client.updateExpandedDataSet(expandedDataSet, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); + ListBigQueryLinksPagedResponse pagedListResponse = client.listBigQueryLinks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBigqueryLinksList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateExpandedDataSetRequest actualRequest = - ((UpdateExpandedDataSetRequest) actualRequests.get(0)); + ListBigQueryLinksRequest actualRequest = ((ListBigQueryLinksRequest) actualRequests.get(0)); - Assert.assertEquals(expandedDataSet, actualRequest.getExpandedDataSet()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -7786,14 +7815,13 @@ public void updateExpandedDataSetTest() throws Exception { } @Test - public void updateExpandedDataSetExceptionTest() throws Exception { + public void listBigQueryLinksExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateExpandedDataSet(expandedDataSet, updateMask); + String parent = "parent-995424086"; + client.listBigQueryLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7801,18 +7829,33 @@ public void updateExpandedDataSetExceptionTest() throws Exception { } @Test - public void deleteExpandedDataSetTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getEnhancedMeasurementSettingsTest() throws Exception { + EnhancedMeasurementSettings expectedResponse = + EnhancedMeasurementSettings.newBuilder() + .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setStreamEnabled(true) + .setScrollsEnabled(true) + .setOutboundClicksEnabled(true) + .setSiteSearchEnabled(true) + .setVideoEngagementEnabled(true) + .setFileDownloadsEnabled(true) + .setPageChangesEnabled(true) + .setFormInteractionsEnabled(true) + .setSearchQueryParameter("searchQueryParameter-2012788855") + .setUriQueryParameter("uriQueryParameter1580843085") + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); + EnhancedMeasurementSettingsName name = + EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]"); - client.deleteExpandedDataSet(name); + EnhancedMeasurementSettings actualResponse = client.getEnhancedMeasurementSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteExpandedDataSetRequest actualRequest = - ((DeleteExpandedDataSetRequest) actualRequests.get(0)); + GetEnhancedMeasurementSettingsRequest actualRequest = + ((GetEnhancedMeasurementSettingsRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -7822,13 +7865,14 @@ public void deleteExpandedDataSetTest() throws Exception { } @Test - public void deleteExpandedDataSetExceptionTest() throws Exception { + public void getEnhancedMeasurementSettingsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]"); - client.deleteExpandedDataSet(name); + EnhancedMeasurementSettingsName name = + EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]"); + client.getEnhancedMeasurementSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7836,18 +7880,32 @@ public void deleteExpandedDataSetExceptionTest() throws Exception { } @Test - public void deleteExpandedDataSetTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getEnhancedMeasurementSettingsTest2() throws Exception { + EnhancedMeasurementSettings expectedResponse = + EnhancedMeasurementSettings.newBuilder() + .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setStreamEnabled(true) + .setScrollsEnabled(true) + .setOutboundClicksEnabled(true) + .setSiteSearchEnabled(true) + .setVideoEngagementEnabled(true) + .setFileDownloadsEnabled(true) + .setPageChangesEnabled(true) + .setFormInteractionsEnabled(true) + .setSearchQueryParameter("searchQueryParameter-2012788855") + .setUriQueryParameter("uriQueryParameter1580843085") + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); String name = "name3373707"; - client.deleteExpandedDataSet(name); + EnhancedMeasurementSettings actualResponse = client.getEnhancedMeasurementSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteExpandedDataSetRequest actualRequest = - ((DeleteExpandedDataSetRequest) actualRequests.get(0)); + GetEnhancedMeasurementSettingsRequest actualRequest = + ((GetEnhancedMeasurementSettingsRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -7857,13 +7915,13 @@ public void deleteExpandedDataSetTest2() throws Exception { } @Test - public void deleteExpandedDataSetExceptionTest2() throws Exception { + public void getEnhancedMeasurementSettingsExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { String name = "name3373707"; - client.deleteExpandedDataSet(name); + client.getEnhancedMeasurementSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7871,27 +7929,39 @@ public void deleteExpandedDataSetExceptionTest2() throws Exception { } @Test - public void getChannelGroupTest() throws Exception { - ChannelGroup expectedResponse = - ChannelGroup.newBuilder() - .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllGroupingRule(new ArrayList()) - .setSystemDefined(true) + public void updateEnhancedMeasurementSettingsTest() throws Exception { + EnhancedMeasurementSettings expectedResponse = + EnhancedMeasurementSettings.newBuilder() + .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setStreamEnabled(true) + .setScrollsEnabled(true) + .setOutboundClicksEnabled(true) + .setSiteSearchEnabled(true) + .setVideoEngagementEnabled(true) + .setFileDownloadsEnabled(true) + .setPageChangesEnabled(true) + .setFormInteractionsEnabled(true) + .setSearchQueryParameter("searchQueryParameter-2012788855") + .setUriQueryParameter("uriQueryParameter1580843085") .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - ChannelGroupName name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]"); + EnhancedMeasurementSettings enhancedMeasurementSettings = + EnhancedMeasurementSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - ChannelGroup actualResponse = client.getChannelGroup(name); + EnhancedMeasurementSettings actualResponse = + client.updateEnhancedMeasurementSettings(enhancedMeasurementSettings, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetChannelGroupRequest actualRequest = ((GetChannelGroupRequest) actualRequests.get(0)); + UpdateEnhancedMeasurementSettingsRequest actualRequest = + ((UpdateEnhancedMeasurementSettingsRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals( + enhancedMeasurementSettings, actualRequest.getEnhancedMeasurementSettings()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -7899,13 +7969,15 @@ public void getChannelGroupTest() throws Exception { } @Test - public void getChannelGroupExceptionTest() throws Exception { + public void updateEnhancedMeasurementSettingsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - ChannelGroupName name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]"); - client.getChannelGroup(name); + EnhancedMeasurementSettings enhancedMeasurementSettings = + EnhancedMeasurementSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateEnhancedMeasurementSettings(enhancedMeasurementSettings, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7913,27 +7985,27 @@ public void getChannelGroupExceptionTest() throws Exception { } @Test - public void getChannelGroupTest2() throws Exception { - ChannelGroup expectedResponse = - ChannelGroup.newBuilder() - .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllGroupingRule(new ArrayList()) - .setSystemDefined(true) - .build(); + public void createConnectedSiteTagTest() throws Exception { + CreateConnectedSiteTagResponse expectedResponse = + CreateConnectedSiteTagResponse.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + CreateConnectedSiteTagRequest request = + CreateConnectedSiteTagRequest.newBuilder() + .setProperty("property-993141291") + .setConnectedSiteTag(ConnectedSiteTag.newBuilder().build()) + .build(); - ChannelGroup actualResponse = client.getChannelGroup(name); + CreateConnectedSiteTagResponse actualResponse = client.createConnectedSiteTag(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetChannelGroupRequest actualRequest = ((GetChannelGroupRequest) actualRequests.get(0)); + CreateConnectedSiteTagRequest actualRequest = + ((CreateConnectedSiteTagRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); + Assert.assertEquals(request.getConnectedSiteTag(), actualRequest.getConnectedSiteTag()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -7941,13 +8013,17 @@ public void getChannelGroupTest2() throws Exception { } @Test - public void getChannelGroupExceptionTest2() throws Exception { + public void createConnectedSiteTagExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.getChannelGroup(name); + CreateConnectedSiteTagRequest request = + CreateConnectedSiteTagRequest.newBuilder() + .setProperty("property-993141291") + .setConnectedSiteTag(ConnectedSiteTag.newBuilder().build()) + .build(); + client.createConnectedSiteTag(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7955,29 +8031,25 @@ public void getChannelGroupExceptionTest2() throws Exception { } @Test - public void listChannelGroupsTest() throws Exception { - ChannelGroup responsesElement = ChannelGroup.newBuilder().build(); - ListChannelGroupsResponse expectedResponse = - ListChannelGroupsResponse.newBuilder() - .setNextPageToken("") - .addAllChannelGroups(Arrays.asList(responsesElement)) - .build(); + public void deleteConnectedSiteTagTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListChannelGroupsPagedResponse pagedListResponse = client.listChannelGroups(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + DeleteConnectedSiteTagRequest request = + DeleteConnectedSiteTagRequest.newBuilder() + .setProperty("property-993141291") + .setTagId("tagId110119509") + .build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getChannelGroupsList().get(0), resources.get(0)); + client.deleteConnectedSiteTag(request); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListChannelGroupsRequest actualRequest = ((ListChannelGroupsRequest) actualRequests.get(0)); + DeleteConnectedSiteTagRequest actualRequest = + ((DeleteConnectedSiteTagRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); + Assert.assertEquals(request.getTagId(), actualRequest.getTagId()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -7985,13 +8057,17 @@ public void listChannelGroupsTest() throws Exception { } @Test - public void listChannelGroupsExceptionTest() throws Exception { + public void deleteConnectedSiteTagExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listChannelGroups(parent); + DeleteConnectedSiteTagRequest request = + DeleteConnectedSiteTagRequest.newBuilder() + .setProperty("property-993141291") + .setTagId("tagId110119509") + .build(); + client.deleteConnectedSiteTag(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -7999,29 +8075,25 @@ public void listChannelGroupsExceptionTest() throws Exception { } @Test - public void listChannelGroupsTest2() throws Exception { - ChannelGroup responsesElement = ChannelGroup.newBuilder().build(); - ListChannelGroupsResponse expectedResponse = - ListChannelGroupsResponse.newBuilder() - .setNextPageToken("") - .addAllChannelGroups(Arrays.asList(responsesElement)) + public void listConnectedSiteTagsTest() throws Exception { + ListConnectedSiteTagsResponse expectedResponse = + ListConnectedSiteTagsResponse.newBuilder() + .addAllConnectedSiteTags(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - - ListChannelGroupsPagedResponse pagedListResponse = client.listChannelGroups(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + ListConnectedSiteTagsRequest request = + ListConnectedSiteTagsRequest.newBuilder().setProperty("property-993141291").build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getChannelGroupsList().get(0), resources.get(0)); + ListConnectedSiteTagsResponse actualResponse = client.listConnectedSiteTags(request); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListChannelGroupsRequest actualRequest = ((ListChannelGroupsRequest) actualRequests.get(0)); + ListConnectedSiteTagsRequest actualRequest = + ((ListConnectedSiteTagsRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -8029,13 +8101,14 @@ public void listChannelGroupsTest2() throws Exception { } @Test - public void listChannelGroupsExceptionTest2() throws Exception { + public void listConnectedSiteTagsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - client.listChannelGroups(parent); + ListConnectedSiteTagsRequest request = + ListConnectedSiteTagsRequest.newBuilder().setProperty("property-993141291").build(); + client.listConnectedSiteTags(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8043,29 +8116,27 @@ public void listChannelGroupsExceptionTest2() throws Exception { } @Test - public void createChannelGroupTest() throws Exception { - ChannelGroup expectedResponse = - ChannelGroup.newBuilder() - .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllGroupingRule(new ArrayList()) - .setSystemDefined(true) + public void fetchConnectedGa4PropertyTest() throws Exception { + FetchConnectedGa4PropertyResponse expectedResponse = + FetchConnectedGa4PropertyResponse.newBuilder() + .setProperty(PropertyName.of("[PROPERTY]").toString()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); + FetchConnectedGa4PropertyRequest request = + FetchConnectedGa4PropertyRequest.newBuilder() + .setProperty(PropertyName.of("[PROPERTY]").toString()) + .build(); - ChannelGroup actualResponse = client.createChannelGroup(parent, channelGroup); + FetchConnectedGa4PropertyResponse actualResponse = client.fetchConnectedGa4Property(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateChannelGroupRequest actualRequest = ((CreateChannelGroupRequest) actualRequests.get(0)); + FetchConnectedGa4PropertyRequest actualRequest = + ((FetchConnectedGa4PropertyRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(channelGroup, actualRequest.getChannelGroup()); + Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -8073,14 +8144,16 @@ public void createChannelGroupTest() throws Exception { } @Test - public void createChannelGroupExceptionTest() throws Exception { + public void fetchConnectedGa4PropertyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); - client.createChannelGroup(parent, channelGroup); + FetchConnectedGa4PropertyRequest request = + FetchConnectedGa4PropertyRequest.newBuilder() + .setProperty(PropertyName.of("[PROPERTY]").toString()) + .build(); + client.fetchConnectedGa4Property(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8088,29 +8161,24 @@ public void createChannelGroupExceptionTest() throws Exception { } @Test - public void createChannelGroupTest2() throws Exception { - ChannelGroup expectedResponse = - ChannelGroup.newBuilder() - .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllGroupingRule(new ArrayList()) - .setSystemDefined(true) + public void getAdSenseLinkTest() throws Exception { + AdSenseLink expectedResponse = + AdSenseLink.newBuilder() + .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) + .setAdClientCode("adClientCode-869953317") .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); + AdSenseLinkName name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]"); - ChannelGroup actualResponse = client.createChannelGroup(parent, channelGroup); + AdSenseLink actualResponse = client.getAdSenseLink(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateChannelGroupRequest actualRequest = ((CreateChannelGroupRequest) actualRequests.get(0)); + GetAdSenseLinkRequest actualRequest = ((GetAdSenseLinkRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(channelGroup, actualRequest.getChannelGroup()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -8118,14 +8186,13 @@ public void createChannelGroupTest2() throws Exception { } @Test - public void createChannelGroupExceptionTest2() throws Exception { + public void getAdSenseLinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); - client.createChannelGroup(parent, channelGroup); + AdSenseLinkName name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]"); + client.getAdSenseLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8133,29 +8200,24 @@ public void createChannelGroupExceptionTest2() throws Exception { } @Test - public void updateChannelGroupTest() throws Exception { - ChannelGroup expectedResponse = - ChannelGroup.newBuilder() - .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .addAllGroupingRule(new ArrayList()) - .setSystemDefined(true) + public void getAdSenseLinkTest2() throws Exception { + AdSenseLink expectedResponse = + AdSenseLink.newBuilder() + .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) + .setAdClientCode("adClientCode-869953317") .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + String name = "name3373707"; - ChannelGroup actualResponse = client.updateChannelGroup(channelGroup, updateMask); + AdSenseLink actualResponse = client.getAdSenseLink(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateChannelGroupRequest actualRequest = ((UpdateChannelGroupRequest) actualRequests.get(0)); + GetAdSenseLinkRequest actualRequest = ((GetAdSenseLinkRequest) actualRequests.get(0)); - Assert.assertEquals(channelGroup, actualRequest.getChannelGroup()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -8163,14 +8225,13 @@ public void updateChannelGroupTest() throws Exception { } @Test - public void updateChannelGroupExceptionTest() throws Exception { + public void getAdSenseLinkExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - ChannelGroup channelGroup = ChannelGroup.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateChannelGroup(channelGroup, updateMask); + String name = "name3373707"; + client.getAdSenseLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8178,19 +8239,26 @@ public void updateChannelGroupExceptionTest() throws Exception { } @Test - public void deleteChannelGroupTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void createAdSenseLinkTest() throws Exception { + AdSenseLink expectedResponse = + AdSenseLink.newBuilder() + .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) + .setAdClientCode("adClientCode-869953317") + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - ChannelGroupName name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]"); + PropertyName parent = PropertyName.of("[PROPERTY]"); + AdSenseLink adsenseLink = AdSenseLink.newBuilder().build(); - client.deleteChannelGroup(name); + AdSenseLink actualResponse = client.createAdSenseLink(parent, adsenseLink); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteChannelGroupRequest actualRequest = ((DeleteChannelGroupRequest) actualRequests.get(0)); + CreateAdSenseLinkRequest actualRequest = ((CreateAdSenseLinkRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(adsenseLink, actualRequest.getAdsenseLink()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -8198,13 +8266,14 @@ public void deleteChannelGroupTest() throws Exception { } @Test - public void deleteChannelGroupExceptionTest() throws Exception { + public void createAdSenseLinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - ChannelGroupName name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]"); - client.deleteChannelGroup(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + AdSenseLink adsenseLink = AdSenseLink.newBuilder().build(); + client.createAdSenseLink(parent, adsenseLink); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8212,19 +8281,26 @@ public void deleteChannelGroupExceptionTest() throws Exception { } @Test - public void deleteChannelGroupTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void createAdSenseLinkTest2() throws Exception { + AdSenseLink expectedResponse = + AdSenseLink.newBuilder() + .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) + .setAdClientCode("adClientCode-869953317") + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + String parent = "parent-995424086"; + AdSenseLink adsenseLink = AdSenseLink.newBuilder().build(); - client.deleteChannelGroup(name); + AdSenseLink actualResponse = client.createAdSenseLink(parent, adsenseLink); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteChannelGroupRequest actualRequest = ((DeleteChannelGroupRequest) actualRequests.get(0)); + CreateAdSenseLinkRequest actualRequest = ((CreateAdSenseLinkRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(adsenseLink, actualRequest.getAdsenseLink()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -8232,13 +8308,14 @@ public void deleteChannelGroupTest2() throws Exception { } @Test - public void deleteChannelGroupExceptionTest2() throws Exception { + public void createAdSenseLinkExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.deleteChannelGroup(name); + String parent = "parent-995424086"; + AdSenseLink adsenseLink = AdSenseLink.newBuilder().build(); + client.createAdSenseLink(parent, adsenseLink); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8246,28 +8323,19 @@ public void deleteChannelGroupExceptionTest2() throws Exception { } @Test - public void setAutomatedGa4ConfigurationOptOutTest() throws Exception { - SetAutomatedGa4ConfigurationOptOutResponse expectedResponse = - SetAutomatedGa4ConfigurationOptOutResponse.newBuilder().build(); + public void deleteAdSenseLinkTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - SetAutomatedGa4ConfigurationOptOutRequest request = - SetAutomatedGa4ConfigurationOptOutRequest.newBuilder() - .setProperty("property-993141291") - .setOptOut(true) - .build(); + AdSenseLinkName name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]"); - SetAutomatedGa4ConfigurationOptOutResponse actualResponse = - client.setAutomatedGa4ConfigurationOptOut(request); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteAdSenseLink(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - SetAutomatedGa4ConfigurationOptOutRequest actualRequest = - ((SetAutomatedGa4ConfigurationOptOutRequest) actualRequests.get(0)); + DeleteAdSenseLinkRequest actualRequest = ((DeleteAdSenseLinkRequest) actualRequests.get(0)); - Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); - Assert.assertEquals(request.getOptOut(), actualRequest.getOptOut()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -8275,17 +8343,13 @@ public void setAutomatedGa4ConfigurationOptOutTest() throws Exception { } @Test - public void setAutomatedGa4ConfigurationOptOutExceptionTest() throws Exception { + public void deleteAdSenseLinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); - - try { - SetAutomatedGa4ConfigurationOptOutRequest request = - SetAutomatedGa4ConfigurationOptOutRequest.newBuilder() - .setProperty("property-993141291") - .setOptOut(true) - .build(); - client.setAutomatedGa4ConfigurationOptOut(request); + + try { + AdSenseLinkName name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]"); + client.deleteAdSenseLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8293,26 +8357,19 @@ public void setAutomatedGa4ConfigurationOptOutExceptionTest() throws Exception { } @Test - public void fetchAutomatedGa4ConfigurationOptOutTest() throws Exception { - FetchAutomatedGa4ConfigurationOptOutResponse expectedResponse = - FetchAutomatedGa4ConfigurationOptOutResponse.newBuilder().setOptOut(true).build(); + public void deleteAdSenseLinkTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - FetchAutomatedGa4ConfigurationOptOutRequest request = - FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder() - .setProperty("property-993141291") - .build(); + String name = "name3373707"; - FetchAutomatedGa4ConfigurationOptOutResponse actualResponse = - client.fetchAutomatedGa4ConfigurationOptOut(request); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteAdSenseLink(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - FetchAutomatedGa4ConfigurationOptOutRequest actualRequest = - ((FetchAutomatedGa4ConfigurationOptOutRequest) actualRequests.get(0)); + DeleteAdSenseLinkRequest actualRequest = ((DeleteAdSenseLinkRequest) actualRequests.get(0)); - Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -8320,16 +8377,13 @@ public void fetchAutomatedGa4ConfigurationOptOutTest() throws Exception { } @Test - public void fetchAutomatedGa4ConfigurationOptOutExceptionTest() throws Exception { + public void deleteAdSenseLinkExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - FetchAutomatedGa4ConfigurationOptOutRequest request = - FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder() - .setProperty("property-993141291") - .build(); - client.fetchAutomatedGa4ConfigurationOptOut(request); + String name = "name3373707"; + client.deleteAdSenseLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8337,31 +8391,29 @@ public void fetchAutomatedGa4ConfigurationOptOutExceptionTest() throws Exception } @Test - public void getBigQueryLinkTest() throws Exception { - BigQueryLink expectedResponse = - BigQueryLink.newBuilder() - .setName(BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString()) - .setProject("project-309310695") - .setCreateTime(Timestamp.newBuilder().build()) - .setDailyExportEnabled(true) - .setStreamingExportEnabled(true) - .setFreshDailyExportEnabled(true) - .setIncludeAdvertisingId(true) - .addAllExportStreams(new ArrayList()) - .addAllExcludedEvents(new ArrayList()) + public void listAdSenseLinksTest() throws Exception { + AdSenseLink responsesElement = AdSenseLink.newBuilder().build(); + ListAdSenseLinksResponse expectedResponse = + ListAdSenseLinksResponse.newBuilder() + .setNextPageToken("") + .addAllAdsenseLinks(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - BigQueryLinkName name = BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]"); + PropertyName parent = PropertyName.of("[PROPERTY]"); - BigQueryLink actualResponse = client.getBigQueryLink(name); - Assert.assertEquals(expectedResponse, actualResponse); + ListAdSenseLinksPagedResponse pagedListResponse = client.listAdSenseLinks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAdsenseLinksList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetBigQueryLinkRequest actualRequest = ((GetBigQueryLinkRequest) actualRequests.get(0)); + ListAdSenseLinksRequest actualRequest = ((ListAdSenseLinksRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -8369,13 +8421,13 @@ public void getBigQueryLinkTest() throws Exception { } @Test - public void getBigQueryLinkExceptionTest() throws Exception { + public void listAdSenseLinksExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - BigQueryLinkName name = BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]"); - client.getBigQueryLink(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listAdSenseLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8383,31 +8435,29 @@ public void getBigQueryLinkExceptionTest() throws Exception { } @Test - public void getBigQueryLinkTest2() throws Exception { - BigQueryLink expectedResponse = - BigQueryLink.newBuilder() - .setName(BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString()) - .setProject("project-309310695") - .setCreateTime(Timestamp.newBuilder().build()) - .setDailyExportEnabled(true) - .setStreamingExportEnabled(true) - .setFreshDailyExportEnabled(true) - .setIncludeAdvertisingId(true) - .addAllExportStreams(new ArrayList()) - .addAllExcludedEvents(new ArrayList()) + public void listAdSenseLinksTest2() throws Exception { + AdSenseLink responsesElement = AdSenseLink.newBuilder().build(); + ListAdSenseLinksResponse expectedResponse = + ListAdSenseLinksResponse.newBuilder() + .setNextPageToken("") + .addAllAdsenseLinks(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + String parent = "parent-995424086"; - BigQueryLink actualResponse = client.getBigQueryLink(name); - Assert.assertEquals(expectedResponse, actualResponse); + ListAdSenseLinksPagedResponse pagedListResponse = client.listAdSenseLinks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAdsenseLinksList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetBigQueryLinkRequest actualRequest = ((GetBigQueryLinkRequest) actualRequests.get(0)); + ListAdSenseLinksRequest actualRequest = ((ListAdSenseLinksRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -8415,13 +8465,13 @@ public void getBigQueryLinkTest2() throws Exception { } @Test - public void getBigQueryLinkExceptionTest2() throws Exception { + public void listAdSenseLinksExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.getBigQueryLink(name); + String parent = "parent-995424086"; + client.listAdSenseLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8429,29 +8479,30 @@ public void getBigQueryLinkExceptionTest2() throws Exception { } @Test - public void listBigQueryLinksTest() throws Exception { - BigQueryLink responsesElement = BigQueryLink.newBuilder().build(); - ListBigQueryLinksResponse expectedResponse = - ListBigQueryLinksResponse.newBuilder() - .setNextPageToken("") - .addAllBigqueryLinks(Arrays.asList(responsesElement)) + public void getEventCreateRuleTest() throws Exception { + EventCreateRule expectedResponse = + EventCreateRule.newBuilder() + .setName( + EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") + .toString()) + .setDestinationEvent("destinationEvent1181456172") + .addAllEventConditions(new ArrayList()) + .setSourceCopyParameters(true) + .addAllParameterMutations(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - - ListBigQueryLinksPagedResponse pagedListResponse = client.listBigQueryLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + EventCreateRuleName name = + EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBigqueryLinksList().get(0), resources.get(0)); + EventCreateRule actualResponse = client.getEventCreateRule(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListBigQueryLinksRequest actualRequest = ((ListBigQueryLinksRequest) actualRequests.get(0)); + GetEventCreateRuleRequest actualRequest = ((GetEventCreateRuleRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -8459,13 +8510,14 @@ public void listBigQueryLinksTest() throws Exception { } @Test - public void listBigQueryLinksExceptionTest() throws Exception { + public void getEventCreateRuleExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listBigQueryLinks(parent); + EventCreateRuleName name = + EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]"); + client.getEventCreateRule(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8473,29 +8525,29 @@ public void listBigQueryLinksExceptionTest() throws Exception { } @Test - public void listBigQueryLinksTest2() throws Exception { - BigQueryLink responsesElement = BigQueryLink.newBuilder().build(); - ListBigQueryLinksResponse expectedResponse = - ListBigQueryLinksResponse.newBuilder() - .setNextPageToken("") - .addAllBigqueryLinks(Arrays.asList(responsesElement)) + public void getEventCreateRuleTest2() throws Exception { + EventCreateRule expectedResponse = + EventCreateRule.newBuilder() + .setName( + EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") + .toString()) + .setDestinationEvent("destinationEvent1181456172") + .addAllEventConditions(new ArrayList()) + .setSourceCopyParameters(true) + .addAllParameterMutations(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - - ListBigQueryLinksPagedResponse pagedListResponse = client.listBigQueryLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + String name = "name3373707"; - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBigqueryLinksList().get(0), resources.get(0)); + EventCreateRule actualResponse = client.getEventCreateRule(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListBigQueryLinksRequest actualRequest = ((ListBigQueryLinksRequest) actualRequests.get(0)); + GetEventCreateRuleRequest actualRequest = ((GetEventCreateRuleRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -8503,13 +8555,13 @@ public void listBigQueryLinksTest2() throws Exception { } @Test - public void listBigQueryLinksExceptionTest2() throws Exception { + public void getEventCreateRuleExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - client.listBigQueryLinks(parent); + String name = "name3373707"; + client.getEventCreateRule(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8517,35 +8569,30 @@ public void listBigQueryLinksExceptionTest2() throws Exception { } @Test - public void getEnhancedMeasurementSettingsTest() throws Exception { - EnhancedMeasurementSettings expectedResponse = - EnhancedMeasurementSettings.newBuilder() - .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setStreamEnabled(true) - .setScrollsEnabled(true) - .setOutboundClicksEnabled(true) - .setSiteSearchEnabled(true) - .setVideoEngagementEnabled(true) - .setFileDownloadsEnabled(true) - .setPageChangesEnabled(true) - .setFormInteractionsEnabled(true) - .setSearchQueryParameter("searchQueryParameter-2012788855") - .setUriQueryParameter("uriQueryParameter1580843085") + public void listEventCreateRulesTest() throws Exception { + EventCreateRule responsesElement = EventCreateRule.newBuilder().build(); + ListEventCreateRulesResponse expectedResponse = + ListEventCreateRulesResponse.newBuilder() + .setNextPageToken("") + .addAllEventCreateRules(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - EnhancedMeasurementSettingsName name = - EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]"); + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - EnhancedMeasurementSettings actualResponse = client.getEnhancedMeasurementSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); + ListEventCreateRulesPagedResponse pagedListResponse = client.listEventCreateRules(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEventCreateRulesList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetEnhancedMeasurementSettingsRequest actualRequest = - ((GetEnhancedMeasurementSettingsRequest) actualRequests.get(0)); + ListEventCreateRulesRequest actualRequest = + ((ListEventCreateRulesRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -8553,14 +8600,13 @@ public void getEnhancedMeasurementSettingsTest() throws Exception { } @Test - public void getEnhancedMeasurementSettingsExceptionTest() throws Exception { + public void listEventCreateRulesExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - EnhancedMeasurementSettingsName name = - EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]"); - client.getEnhancedMeasurementSettings(name); + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + client.listEventCreateRules(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8568,34 +8614,30 @@ public void getEnhancedMeasurementSettingsExceptionTest() throws Exception { } @Test - public void getEnhancedMeasurementSettingsTest2() throws Exception { - EnhancedMeasurementSettings expectedResponse = - EnhancedMeasurementSettings.newBuilder() - .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setStreamEnabled(true) - .setScrollsEnabled(true) - .setOutboundClicksEnabled(true) - .setSiteSearchEnabled(true) - .setVideoEngagementEnabled(true) - .setFileDownloadsEnabled(true) - .setPageChangesEnabled(true) - .setFormInteractionsEnabled(true) - .setSearchQueryParameter("searchQueryParameter-2012788855") - .setUriQueryParameter("uriQueryParameter1580843085") + public void listEventCreateRulesTest2() throws Exception { + EventCreateRule responsesElement = EventCreateRule.newBuilder().build(); + ListEventCreateRulesResponse expectedResponse = + ListEventCreateRulesResponse.newBuilder() + .setNextPageToken("") + .addAllEventCreateRules(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + String parent = "parent-995424086"; - EnhancedMeasurementSettings actualResponse = client.getEnhancedMeasurementSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); + ListEventCreateRulesPagedResponse pagedListResponse = client.listEventCreateRules(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEventCreateRulesList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetEnhancedMeasurementSettingsRequest actualRequest = - ((GetEnhancedMeasurementSettingsRequest) actualRequests.get(0)); + ListEventCreateRulesRequest actualRequest = + ((ListEventCreateRulesRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -8603,13 +8645,13 @@ public void getEnhancedMeasurementSettingsTest2() throws Exception { } @Test - public void getEnhancedMeasurementSettingsExceptionTest2() throws Exception { + public void listEventCreateRulesExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.getEnhancedMeasurementSettings(name); + String parent = "parent-995424086"; + client.listEventCreateRules(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8617,39 +8659,32 @@ public void getEnhancedMeasurementSettingsExceptionTest2() throws Exception { } @Test - public void updateEnhancedMeasurementSettingsTest() throws Exception { - EnhancedMeasurementSettings expectedResponse = - EnhancedMeasurementSettings.newBuilder() - .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) - .setStreamEnabled(true) - .setScrollsEnabled(true) - .setOutboundClicksEnabled(true) - .setSiteSearchEnabled(true) - .setVideoEngagementEnabled(true) - .setFileDownloadsEnabled(true) - .setPageChangesEnabled(true) - .setFormInteractionsEnabled(true) - .setSearchQueryParameter("searchQueryParameter-2012788855") - .setUriQueryParameter("uriQueryParameter1580843085") + public void createEventCreateRuleTest() throws Exception { + EventCreateRule expectedResponse = + EventCreateRule.newBuilder() + .setName( + EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") + .toString()) + .setDestinationEvent("destinationEvent1181456172") + .addAllEventConditions(new ArrayList()) + .setSourceCopyParameters(true) + .addAllParameterMutations(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - EnhancedMeasurementSettings enhancedMeasurementSettings = - EnhancedMeasurementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); - EnhancedMeasurementSettings actualResponse = - client.updateEnhancedMeasurementSettings(enhancedMeasurementSettings, updateMask); + EventCreateRule actualResponse = client.createEventCreateRule(parent, eventCreateRule); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateEnhancedMeasurementSettingsRequest actualRequest = - ((UpdateEnhancedMeasurementSettingsRequest) actualRequests.get(0)); + CreateEventCreateRuleRequest actualRequest = + ((CreateEventCreateRuleRequest) actualRequests.get(0)); - Assert.assertEquals( - enhancedMeasurementSettings, actualRequest.getEnhancedMeasurementSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(eventCreateRule, actualRequest.getEventCreateRule()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -8657,15 +8692,14 @@ public void updateEnhancedMeasurementSettingsTest() throws Exception { } @Test - public void updateEnhancedMeasurementSettingsExceptionTest() throws Exception { + public void createEventCreateRuleExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - EnhancedMeasurementSettings enhancedMeasurementSettings = - EnhancedMeasurementSettings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateEnhancedMeasurementSettings(enhancedMeasurementSettings, updateMask); + DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); + EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); + client.createEventCreateRule(parent, eventCreateRule); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8673,27 +8707,32 @@ public void updateEnhancedMeasurementSettingsExceptionTest() throws Exception { } @Test - public void createConnectedSiteTagTest() throws Exception { - CreateConnectedSiteTagResponse expectedResponse = - CreateConnectedSiteTagResponse.newBuilder().build(); + public void createEventCreateRuleTest2() throws Exception { + EventCreateRule expectedResponse = + EventCreateRule.newBuilder() + .setName( + EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") + .toString()) + .setDestinationEvent("destinationEvent1181456172") + .addAllEventConditions(new ArrayList()) + .setSourceCopyParameters(true) + .addAllParameterMutations(new ArrayList()) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - CreateConnectedSiteTagRequest request = - CreateConnectedSiteTagRequest.newBuilder() - .setProperty("property-993141291") - .setConnectedSiteTag(ConnectedSiteTag.newBuilder().build()) - .build(); + String parent = "parent-995424086"; + EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); - CreateConnectedSiteTagResponse actualResponse = client.createConnectedSiteTag(request); + EventCreateRule actualResponse = client.createEventCreateRule(parent, eventCreateRule); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateConnectedSiteTagRequest actualRequest = - ((CreateConnectedSiteTagRequest) actualRequests.get(0)); + CreateEventCreateRuleRequest actualRequest = + ((CreateEventCreateRuleRequest) actualRequests.get(0)); - Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); - Assert.assertEquals(request.getConnectedSiteTag(), actualRequest.getConnectedSiteTag()); + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(eventCreateRule, actualRequest.getEventCreateRule()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -8701,17 +8740,14 @@ public void createConnectedSiteTagTest() throws Exception { } @Test - public void createConnectedSiteTagExceptionTest() throws Exception { + public void createEventCreateRuleExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - CreateConnectedSiteTagRequest request = - CreateConnectedSiteTagRequest.newBuilder() - .setProperty("property-993141291") - .setConnectedSiteTag(ConnectedSiteTag.newBuilder().build()) - .build(); - client.createConnectedSiteTag(request); + String parent = "parent-995424086"; + EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); + client.createEventCreateRule(parent, eventCreateRule); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8719,25 +8755,32 @@ public void createConnectedSiteTagExceptionTest() throws Exception { } @Test - public void deleteConnectedSiteTagTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void updateEventCreateRuleTest() throws Exception { + EventCreateRule expectedResponse = + EventCreateRule.newBuilder() + .setName( + EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") + .toString()) + .setDestinationEvent("destinationEvent1181456172") + .addAllEventConditions(new ArrayList()) + .setSourceCopyParameters(true) + .addAllParameterMutations(new ArrayList()) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - DeleteConnectedSiteTagRequest request = - DeleteConnectedSiteTagRequest.newBuilder() - .setProperty("property-993141291") - .setTagId("tagId110119509") - .build(); + EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - client.deleteConnectedSiteTag(request); + EventCreateRule actualResponse = client.updateEventCreateRule(eventCreateRule, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteConnectedSiteTagRequest actualRequest = - ((DeleteConnectedSiteTagRequest) actualRequests.get(0)); + UpdateEventCreateRuleRequest actualRequest = + ((UpdateEventCreateRuleRequest) actualRequests.get(0)); - Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); - Assert.assertEquals(request.getTagId(), actualRequest.getTagId()); + Assert.assertEquals(eventCreateRule, actualRequest.getEventCreateRule()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -8745,17 +8788,14 @@ public void deleteConnectedSiteTagTest() throws Exception { } @Test - public void deleteConnectedSiteTagExceptionTest() throws Exception { + public void updateEventCreateRuleExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - DeleteConnectedSiteTagRequest request = - DeleteConnectedSiteTagRequest.newBuilder() - .setProperty("property-993141291") - .setTagId("tagId110119509") - .build(); - client.deleteConnectedSiteTag(request); + EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateEventCreateRule(eventCreateRule, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8763,25 +8803,21 @@ public void deleteConnectedSiteTagExceptionTest() throws Exception { } @Test - public void listConnectedSiteTagsTest() throws Exception { - ListConnectedSiteTagsResponse expectedResponse = - ListConnectedSiteTagsResponse.newBuilder() - .addAllConnectedSiteTags(new ArrayList()) - .build(); + public void deleteEventCreateRuleTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - ListConnectedSiteTagsRequest request = - ListConnectedSiteTagsRequest.newBuilder().setProperty("property-993141291").build(); + EventCreateRuleName name = + EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]"); - ListConnectedSiteTagsResponse actualResponse = client.listConnectedSiteTags(request); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteEventCreateRule(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListConnectedSiteTagsRequest actualRequest = - ((ListConnectedSiteTagsRequest) actualRequests.get(0)); + DeleteEventCreateRuleRequest actualRequest = + ((DeleteEventCreateRuleRequest) actualRequests.get(0)); - Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -8789,14 +8825,14 @@ public void listConnectedSiteTagsTest() throws Exception { } @Test - public void listConnectedSiteTagsExceptionTest() throws Exception { + public void deleteEventCreateRuleExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - ListConnectedSiteTagsRequest request = - ListConnectedSiteTagsRequest.newBuilder().setProperty("property-993141291").build(); - client.listConnectedSiteTags(request); + EventCreateRuleName name = + EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]"); + client.deleteEventCreateRule(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8804,27 +8840,20 @@ public void listConnectedSiteTagsExceptionTest() throws Exception { } @Test - public void fetchConnectedGa4PropertyTest() throws Exception { - FetchConnectedGa4PropertyResponse expectedResponse = - FetchConnectedGa4PropertyResponse.newBuilder() - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .build(); + public void deleteEventCreateRuleTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - FetchConnectedGa4PropertyRequest request = - FetchConnectedGa4PropertyRequest.newBuilder() - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .build(); + String name = "name3373707"; - FetchConnectedGa4PropertyResponse actualResponse = client.fetchConnectedGa4Property(request); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteEventCreateRule(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - FetchConnectedGa4PropertyRequest actualRequest = - ((FetchConnectedGa4PropertyRequest) actualRequests.get(0)); + DeleteEventCreateRuleRequest actualRequest = + ((DeleteEventCreateRuleRequest) actualRequests.get(0)); - Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -8832,16 +8861,13 @@ public void fetchConnectedGa4PropertyTest() throws Exception { } @Test - public void fetchConnectedGa4PropertyExceptionTest() throws Exception { + public void deleteEventCreateRuleExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - FetchConnectedGa4PropertyRequest request = - FetchConnectedGa4PropertyRequest.newBuilder() - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .build(); - client.fetchConnectedGa4Property(request); + String name = "name3373707"; + client.deleteEventCreateRule(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8849,24 +8875,30 @@ public void fetchConnectedGa4PropertyExceptionTest() throws Exception { } @Test - public void getAdSenseLinkTest() throws Exception { - AdSenseLink expectedResponse = - AdSenseLink.newBuilder() - .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) - .setAdClientCode("adClientCode-869953317") + public void updateDataRedactionSettingsTest() throws Exception { + DataRedactionSettings expectedResponse = + DataRedactionSettings.newBuilder() + .setName(DataRedactionSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setEmailRedactionEnabled(true) + .setQueryParameterRedactionEnabled(true) + .addAllQueryParameterKeys(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - AdSenseLinkName name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]"); + DataRedactionSettings dataRedactionSettings = DataRedactionSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - AdSenseLink actualResponse = client.getAdSenseLink(name); + DataRedactionSettings actualResponse = + client.updateDataRedactionSettings(dataRedactionSettings, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetAdSenseLinkRequest actualRequest = ((GetAdSenseLinkRequest) actualRequests.get(0)); + UpdateDataRedactionSettingsRequest actualRequest = + ((UpdateDataRedactionSettingsRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(dataRedactionSettings, actualRequest.getDataRedactionSettings()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -8874,13 +8906,14 @@ public void getAdSenseLinkTest() throws Exception { } @Test - public void getAdSenseLinkExceptionTest() throws Exception { + public void updateDataRedactionSettingsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - AdSenseLinkName name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]"); - client.getAdSenseLink(name); + DataRedactionSettings dataRedactionSettings = DataRedactionSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDataRedactionSettings(dataRedactionSettings, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8888,24 +8921,27 @@ public void getAdSenseLinkExceptionTest() throws Exception { } @Test - public void getAdSenseLinkTest2() throws Exception { - AdSenseLink expectedResponse = - AdSenseLink.newBuilder() - .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) - .setAdClientCode("adClientCode-869953317") + public void getDataRedactionSettingsTest() throws Exception { + DataRedactionSettings expectedResponse = + DataRedactionSettings.newBuilder() + .setName(DataRedactionSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setEmailRedactionEnabled(true) + .setQueryParameterRedactionEnabled(true) + .addAllQueryParameterKeys(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + DataRedactionSettingsName name = DataRedactionSettingsName.of("[PROPERTY]", "[DATA_STREAM]"); - AdSenseLink actualResponse = client.getAdSenseLink(name); + DataRedactionSettings actualResponse = client.getDataRedactionSettings(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetAdSenseLinkRequest actualRequest = ((GetAdSenseLinkRequest) actualRequests.get(0)); + GetDataRedactionSettingsRequest actualRequest = + ((GetDataRedactionSettingsRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -8913,13 +8949,13 @@ public void getAdSenseLinkTest2() throws Exception { } @Test - public void getAdSenseLinkExceptionTest2() throws Exception { + public void getDataRedactionSettingsExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.getAdSenseLink(name); + DataRedactionSettingsName name = DataRedactionSettingsName.of("[PROPERTY]", "[DATA_STREAM]"); + client.getDataRedactionSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -8927,26 +8963,27 @@ public void getAdSenseLinkExceptionTest2() throws Exception { } @Test - public void createAdSenseLinkTest() throws Exception { - AdSenseLink expectedResponse = - AdSenseLink.newBuilder() - .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) - .setAdClientCode("adClientCode-869953317") + public void getDataRedactionSettingsTest2() throws Exception { + DataRedactionSettings expectedResponse = + DataRedactionSettings.newBuilder() + .setName(DataRedactionSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .setEmailRedactionEnabled(true) + .setQueryParameterRedactionEnabled(true) + .addAllQueryParameterKeys(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - AdSenseLink adsenseLink = AdSenseLink.newBuilder().build(); + String name = "name3373707"; - AdSenseLink actualResponse = client.createAdSenseLink(parent, adsenseLink); + DataRedactionSettings actualResponse = client.getDataRedactionSettings(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateAdSenseLinkRequest actualRequest = ((CreateAdSenseLinkRequest) actualRequests.get(0)); + GetDataRedactionSettingsRequest actualRequest = + ((GetDataRedactionSettingsRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(adsenseLink, actualRequest.getAdsenseLink()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -8954,41 +8991,44 @@ public void createAdSenseLinkTest() throws Exception { } @Test - public void createAdSenseLinkExceptionTest() throws Exception { + public void getDataRedactionSettingsExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - AdSenseLink adsenseLink = AdSenseLink.newBuilder().build(); - client.createAdSenseLink(parent, adsenseLink); + String name = "name3373707"; + client.getDataRedactionSettings(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. } } - @Test - public void createAdSenseLinkTest2() throws Exception { - AdSenseLink expectedResponse = - AdSenseLink.newBuilder() - .setName(AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]").toString()) - .setAdClientCode("adClientCode-869953317") + @Test + public void createRollupPropertyTest() throws Exception { + CreateRollupPropertyResponse expectedResponse = + CreateRollupPropertyResponse.newBuilder() + .setRollupProperty(Property.newBuilder().build()) + .addAllRollupPropertySourceLinks(new ArrayList()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - AdSenseLink adsenseLink = AdSenseLink.newBuilder().build(); + CreateRollupPropertyRequest request = + CreateRollupPropertyRequest.newBuilder() + .setRollupProperty(Property.newBuilder().build()) + .addAllSourceProperties(new ArrayList()) + .build(); - AdSenseLink actualResponse = client.createAdSenseLink(parent, adsenseLink); + CreateRollupPropertyResponse actualResponse = client.createRollupProperty(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateAdSenseLinkRequest actualRequest = ((CreateAdSenseLinkRequest) actualRequests.get(0)); + CreateRollupPropertyRequest actualRequest = + ((CreateRollupPropertyRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(adsenseLink, actualRequest.getAdsenseLink()); + Assert.assertEquals(request.getRollupProperty(), actualRequest.getRollupProperty()); + Assert.assertEquals(request.getSourcePropertiesList(), actualRequest.getSourcePropertiesList()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -8996,14 +9036,17 @@ public void createAdSenseLinkTest2() throws Exception { } @Test - public void createAdSenseLinkExceptionTest2() throws Exception { + public void createRollupPropertyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - AdSenseLink adsenseLink = AdSenseLink.newBuilder().build(); - client.createAdSenseLink(parent, adsenseLink); + CreateRollupPropertyRequest request = + CreateRollupPropertyRequest.newBuilder() + .setRollupProperty(Property.newBuilder().build()) + .addAllSourceProperties(new ArrayList()) + .build(); + client.createRollupProperty(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9011,17 +9054,26 @@ public void createAdSenseLinkExceptionTest2() throws Exception { } @Test - public void deleteAdSenseLinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getRollupPropertySourceLinkTest() throws Exception { + RollupPropertySourceLink expectedResponse = + RollupPropertySourceLink.newBuilder() + .setName( + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]") + .toString()) + .setSourceProperty("sourceProperty1938317072") + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - AdSenseLinkName name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]"); + RollupPropertySourceLinkName name = + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]"); - client.deleteAdSenseLink(name); + RollupPropertySourceLink actualResponse = client.getRollupPropertySourceLink(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteAdSenseLinkRequest actualRequest = ((DeleteAdSenseLinkRequest) actualRequests.get(0)); + GetRollupPropertySourceLinkRequest actualRequest = + ((GetRollupPropertySourceLinkRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -9031,13 +9083,14 @@ public void deleteAdSenseLinkTest() throws Exception { } @Test - public void deleteAdSenseLinkExceptionTest() throws Exception { + public void getRollupPropertySourceLinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - AdSenseLinkName name = AdSenseLinkName.of("[PROPERTY]", "[ADSENSE_LINK]"); - client.deleteAdSenseLink(name); + RollupPropertySourceLinkName name = + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]"); + client.getRollupPropertySourceLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9045,17 +9098,25 @@ public void deleteAdSenseLinkExceptionTest() throws Exception { } @Test - public void deleteAdSenseLinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getRollupPropertySourceLinkTest2() throws Exception { + RollupPropertySourceLink expectedResponse = + RollupPropertySourceLink.newBuilder() + .setName( + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]") + .toString()) + .setSourceProperty("sourceProperty1938317072") + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); String name = "name3373707"; - client.deleteAdSenseLink(name); + RollupPropertySourceLink actualResponse = client.getRollupPropertySourceLink(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteAdSenseLinkRequest actualRequest = ((DeleteAdSenseLinkRequest) actualRequests.get(0)); + GetRollupPropertySourceLinkRequest actualRequest = + ((GetRollupPropertySourceLinkRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -9065,13 +9126,13 @@ public void deleteAdSenseLinkTest2() throws Exception { } @Test - public void deleteAdSenseLinkExceptionTest2() throws Exception { + public void getRollupPropertySourceLinkExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { String name = "name3373707"; - client.deleteAdSenseLink(name); + client.getRollupPropertySourceLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9079,27 +9140,30 @@ public void deleteAdSenseLinkExceptionTest2() throws Exception { } @Test - public void listAdSenseLinksTest() throws Exception { - AdSenseLink responsesElement = AdSenseLink.newBuilder().build(); - ListAdSenseLinksResponse expectedResponse = - ListAdSenseLinksResponse.newBuilder() + public void listRollupPropertySourceLinksTest() throws Exception { + RollupPropertySourceLink responsesElement = RollupPropertySourceLink.newBuilder().build(); + ListRollupPropertySourceLinksResponse expectedResponse = + ListRollupPropertySourceLinksResponse.newBuilder() .setNextPageToken("") - .addAllAdsenseLinks(Arrays.asList(responsesElement)) + .addAllRollupPropertySourceLinks(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); PropertyName parent = PropertyName.of("[PROPERTY]"); - ListAdSenseLinksPagedResponse pagedListResponse = client.listAdSenseLinks(parent); + ListRollupPropertySourceLinksPagedResponse pagedListResponse = + client.listRollupPropertySourceLinks(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAdsenseLinksList().get(0), resources.get(0)); + Assert.assertEquals( + expectedResponse.getRollupPropertySourceLinksList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListAdSenseLinksRequest actualRequest = ((ListAdSenseLinksRequest) actualRequests.get(0)); + ListRollupPropertySourceLinksRequest actualRequest = + ((ListRollupPropertySourceLinksRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( @@ -9109,13 +9173,13 @@ public void listAdSenseLinksTest() throws Exception { } @Test - public void listAdSenseLinksExceptionTest() throws Exception { + public void listRollupPropertySourceLinksExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listAdSenseLinks(parent); + client.listRollupPropertySourceLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9123,27 +9187,30 @@ public void listAdSenseLinksExceptionTest() throws Exception { } @Test - public void listAdSenseLinksTest2() throws Exception { - AdSenseLink responsesElement = AdSenseLink.newBuilder().build(); - ListAdSenseLinksResponse expectedResponse = - ListAdSenseLinksResponse.newBuilder() + public void listRollupPropertySourceLinksTest2() throws Exception { + RollupPropertySourceLink responsesElement = RollupPropertySourceLink.newBuilder().build(); + ListRollupPropertySourceLinksResponse expectedResponse = + ListRollupPropertySourceLinksResponse.newBuilder() .setNextPageToken("") - .addAllAdsenseLinks(Arrays.asList(responsesElement)) + .addAllRollupPropertySourceLinks(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); String parent = "parent-995424086"; - ListAdSenseLinksPagedResponse pagedListResponse = client.listAdSenseLinks(parent); + ListRollupPropertySourceLinksPagedResponse pagedListResponse = + client.listRollupPropertySourceLinks(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAdsenseLinksList().get(0), resources.get(0)); + Assert.assertEquals( + expectedResponse.getRollupPropertySourceLinksList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListAdSenseLinksRequest actualRequest = ((ListAdSenseLinksRequest) actualRequests.get(0)); + ListRollupPropertySourceLinksRequest actualRequest = + ((ListRollupPropertySourceLinksRequest) actualRequests.get(0)); Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( @@ -9153,13 +9220,13 @@ public void listAdSenseLinksTest2() throws Exception { } @Test - public void listAdSenseLinksExceptionTest2() throws Exception { + public void listRollupPropertySourceLinksExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { String parent = "parent-995424086"; - client.listAdSenseLinks(parent); + client.listRollupPropertySourceLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9167,30 +9234,31 @@ public void listAdSenseLinksExceptionTest2() throws Exception { } @Test - public void getEventCreateRuleTest() throws Exception { - EventCreateRule expectedResponse = - EventCreateRule.newBuilder() + public void createRollupPropertySourceLinkTest() throws Exception { + RollupPropertySourceLink expectedResponse = + RollupPropertySourceLink.newBuilder() .setName( - EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]") .toString()) - .setDestinationEvent("destinationEvent1181456172") - .addAllEventConditions(new ArrayList()) - .setSourceCopyParameters(true) - .addAllParameterMutations(new ArrayList()) + .setSourceProperty("sourceProperty1938317072") .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - EventCreateRuleName name = - EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]"); + PropertyName parent = PropertyName.of("[PROPERTY]"); + RollupPropertySourceLink rollupPropertySourceLink = + RollupPropertySourceLink.newBuilder().build(); - EventCreateRule actualResponse = client.getEventCreateRule(name); + RollupPropertySourceLink actualResponse = + client.createRollupPropertySourceLink(parent, rollupPropertySourceLink); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetEventCreateRuleRequest actualRequest = ((GetEventCreateRuleRequest) actualRequests.get(0)); + CreateRollupPropertySourceLinkRequest actualRequest = + ((CreateRollupPropertySourceLinkRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(rollupPropertySourceLink, actualRequest.getRollupPropertySourceLink()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -9198,14 +9266,15 @@ public void getEventCreateRuleTest() throws Exception { } @Test - public void getEventCreateRuleExceptionTest() throws Exception { + public void createRollupPropertySourceLinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - EventCreateRuleName name = - EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]"); - client.getEventCreateRule(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + RollupPropertySourceLink rollupPropertySourceLink = + RollupPropertySourceLink.newBuilder().build(); + client.createRollupPropertySourceLink(parent, rollupPropertySourceLink); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9213,29 +9282,31 @@ public void getEventCreateRuleExceptionTest() throws Exception { } @Test - public void getEventCreateRuleTest2() throws Exception { - EventCreateRule expectedResponse = - EventCreateRule.newBuilder() + public void createRollupPropertySourceLinkTest2() throws Exception { + RollupPropertySourceLink expectedResponse = + RollupPropertySourceLink.newBuilder() .setName( - EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]") .toString()) - .setDestinationEvent("destinationEvent1181456172") - .addAllEventConditions(new ArrayList()) - .setSourceCopyParameters(true) - .addAllParameterMutations(new ArrayList()) + .setSourceProperty("sourceProperty1938317072") .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + String parent = "parent-995424086"; + RollupPropertySourceLink rollupPropertySourceLink = + RollupPropertySourceLink.newBuilder().build(); - EventCreateRule actualResponse = client.getEventCreateRule(name); + RollupPropertySourceLink actualResponse = + client.createRollupPropertySourceLink(parent, rollupPropertySourceLink); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetEventCreateRuleRequest actualRequest = ((GetEventCreateRuleRequest) actualRequests.get(0)); + CreateRollupPropertySourceLinkRequest actualRequest = + ((CreateRollupPropertySourceLinkRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(rollupPropertySourceLink, actualRequest.getRollupPropertySourceLink()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -9243,13 +9314,15 @@ public void getEventCreateRuleTest2() throws Exception { } @Test - public void getEventCreateRuleExceptionTest2() throws Exception { + public void createRollupPropertySourceLinkExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.getEventCreateRule(name); + String parent = "parent-995424086"; + RollupPropertySourceLink rollupPropertySourceLink = + RollupPropertySourceLink.newBuilder().build(); + client.createRollupPropertySourceLink(parent, rollupPropertySourceLink); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9257,30 +9330,21 @@ public void getEventCreateRuleExceptionTest2() throws Exception { } @Test - public void listEventCreateRulesTest() throws Exception { - EventCreateRule responsesElement = EventCreateRule.newBuilder().build(); - ListEventCreateRulesResponse expectedResponse = - ListEventCreateRulesResponse.newBuilder() - .setNextPageToken("") - .addAllEventCreateRules(Arrays.asList(responsesElement)) - .build(); + public void deleteRollupPropertySourceLinkTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - - ListEventCreateRulesPagedResponse pagedListResponse = client.listEventCreateRules(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + RollupPropertySourceLinkName name = + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]"); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getEventCreateRulesList().get(0), resources.get(0)); + client.deleteRollupPropertySourceLink(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListEventCreateRulesRequest actualRequest = - ((ListEventCreateRulesRequest) actualRequests.get(0)); + DeleteRollupPropertySourceLinkRequest actualRequest = + ((DeleteRollupPropertySourceLinkRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -9288,13 +9352,14 @@ public void listEventCreateRulesTest() throws Exception { } @Test - public void listEventCreateRulesExceptionTest() throws Exception { + public void deleteRollupPropertySourceLinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - client.listEventCreateRules(parent); + RollupPropertySourceLinkName name = + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]"); + client.deleteRollupPropertySourceLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9302,30 +9367,20 @@ public void listEventCreateRulesExceptionTest() throws Exception { } @Test - public void listEventCreateRulesTest2() throws Exception { - EventCreateRule responsesElement = EventCreateRule.newBuilder().build(); - ListEventCreateRulesResponse expectedResponse = - ListEventCreateRulesResponse.newBuilder() - .setNextPageToken("") - .addAllEventCreateRules(Arrays.asList(responsesElement)) - .build(); + public void deleteRollupPropertySourceLinkTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - - ListEventCreateRulesPagedResponse pagedListResponse = client.listEventCreateRules(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + String name = "name3373707"; - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getEventCreateRulesList().get(0), resources.get(0)); + client.deleteRollupPropertySourceLink(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListEventCreateRulesRequest actualRequest = - ((ListEventCreateRulesRequest) actualRequests.get(0)); + DeleteRollupPropertySourceLinkRequest actualRequest = + ((DeleteRollupPropertySourceLinkRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -9333,13 +9388,13 @@ public void listEventCreateRulesTest2() throws Exception { } @Test - public void listEventCreateRulesExceptionTest2() throws Exception { + public void deleteRollupPropertySourceLinkExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - client.listEventCreateRules(parent); + String name = "name3373707"; + client.deleteRollupPropertySourceLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9347,32 +9402,32 @@ public void listEventCreateRulesExceptionTest2() throws Exception { } @Test - public void createEventCreateRuleTest() throws Exception { - EventCreateRule expectedResponse = - EventCreateRule.newBuilder() - .setName( - EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") - .toString()) - .setDestinationEvent("destinationEvent1181456172") - .addAllEventConditions(new ArrayList()) - .setSourceCopyParameters(true) - .addAllParameterMutations(new ArrayList()) + public void createSubpropertyTest() throws Exception { + CreateSubpropertyResponse expectedResponse = + CreateSubpropertyResponse.newBuilder() + .setSubproperty(Property.newBuilder().build()) + .setSubpropertyEventFilter(SubpropertyEventFilter.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); + CreateSubpropertyRequest request = + CreateSubpropertyRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) + .setSubproperty(Property.newBuilder().build()) + .setSubpropertyEventFilter(SubpropertyEventFilter.newBuilder().build()) + .build(); - EventCreateRule actualResponse = client.createEventCreateRule(parent, eventCreateRule); + CreateSubpropertyResponse actualResponse = client.createSubproperty(request); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateEventCreateRuleRequest actualRequest = - ((CreateEventCreateRuleRequest) actualRequests.get(0)); + CreateSubpropertyRequest actualRequest = ((CreateSubpropertyRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(eventCreateRule, actualRequest.getEventCreateRule()); + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getSubproperty(), actualRequest.getSubproperty()); + Assert.assertEquals( + request.getSubpropertyEventFilter(), actualRequest.getSubpropertyEventFilter()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -9380,14 +9435,18 @@ public void createEventCreateRuleTest() throws Exception { } @Test - public void createEventCreateRuleExceptionTest() throws Exception { + public void createSubpropertyExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]"); - EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); - client.createEventCreateRule(parent, eventCreateRule); + CreateSubpropertyRequest request = + CreateSubpropertyRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) + .setSubproperty(Property.newBuilder().build()) + .setSubpropertyEventFilter(SubpropertyEventFilter.newBuilder().build()) + .build(); + client.createSubproperty(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9395,32 +9454,21 @@ public void createEventCreateRuleExceptionTest() throws Exception { } @Test - public void createEventCreateRuleTest2() throws Exception { - EventCreateRule expectedResponse = - EventCreateRule.newBuilder() - .setName( - EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") - .toString()) - .setDestinationEvent("destinationEvent1181456172") - .addAllEventConditions(new ArrayList()) - .setSourceCopyParameters(true) - .addAllParameterMutations(new ArrayList()) - .build(); + public void deleteSubpropertyEventFilterTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); + SubpropertyEventFilterName name = + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]"); - EventCreateRule actualResponse = client.createEventCreateRule(parent, eventCreateRule); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteSubpropertyEventFilter(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateEventCreateRuleRequest actualRequest = - ((CreateEventCreateRuleRequest) actualRequests.get(0)); + DeleteSubpropertyEventFilterRequest actualRequest = + ((DeleteSubpropertyEventFilterRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(eventCreateRule, actualRequest.getEventCreateRule()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -9428,14 +9476,14 @@ public void createEventCreateRuleTest2() throws Exception { } @Test - public void createEventCreateRuleExceptionTest2() throws Exception { + public void deleteSubpropertyEventFilterExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); - client.createEventCreateRule(parent, eventCreateRule); + SubpropertyEventFilterName name = + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]"); + client.deleteSubpropertyEventFilter(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9443,32 +9491,20 @@ public void createEventCreateRuleExceptionTest2() throws Exception { } @Test - public void updateEventCreateRuleTest() throws Exception { - EventCreateRule expectedResponse = - EventCreateRule.newBuilder() - .setName( - EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]") - .toString()) - .setDestinationEvent("destinationEvent1181456172") - .addAllEventConditions(new ArrayList()) - .setSourceCopyParameters(true) - .addAllParameterMutations(new ArrayList()) - .build(); + public void deleteSubpropertyEventFilterTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + String name = "name3373707"; - EventCreateRule actualResponse = client.updateEventCreateRule(eventCreateRule, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteSubpropertyEventFilter(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateEventCreateRuleRequest actualRequest = - ((UpdateEventCreateRuleRequest) actualRequests.get(0)); + DeleteSubpropertyEventFilterRequest actualRequest = + ((DeleteSubpropertyEventFilterRequest) actualRequests.get(0)); - Assert.assertEquals(eventCreateRule, actualRequest.getEventCreateRule()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -9476,14 +9512,13 @@ public void updateEventCreateRuleTest() throws Exception { } @Test - public void updateEventCreateRuleExceptionTest() throws Exception { + public void deleteSubpropertyEventFilterExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - EventCreateRule eventCreateRule = EventCreateRule.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateEventCreateRule(eventCreateRule, updateMask); + String name = "name3373707"; + client.deleteSubpropertyEventFilter(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9491,21 +9526,31 @@ public void updateEventCreateRuleExceptionTest() throws Exception { } @Test - public void deleteEventCreateRuleTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void createSubpropertyEventFilterTest() throws Exception { + SubpropertyEventFilter expectedResponse = + SubpropertyEventFilter.newBuilder() + .setName( + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]") + .toString()) + .setApplyToProperty("applyToProperty267785086") + .addAllFilterClauses(new ArrayList()) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - EventCreateRuleName name = - EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]"); + PropertyName parent = PropertyName.of("[PROPERTY]"); + SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); - client.deleteEventCreateRule(name); + SubpropertyEventFilter actualResponse = + client.createSubpropertyEventFilter(parent, subpropertyEventFilter); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteEventCreateRuleRequest actualRequest = - ((DeleteEventCreateRuleRequest) actualRequests.get(0)); + CreateSubpropertyEventFilterRequest actualRequest = + ((CreateSubpropertyEventFilterRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(subpropertyEventFilter, actualRequest.getSubpropertyEventFilter()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -9513,14 +9558,14 @@ public void deleteEventCreateRuleTest() throws Exception { } @Test - public void deleteEventCreateRuleExceptionTest() throws Exception { + public void createSubpropertyEventFilterExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - EventCreateRuleName name = - EventCreateRuleName.of("[PROPERTY]", "[DATA_STREAM]", "[EVENT_CREATE_RULE]"); - client.deleteEventCreateRule(name); + PropertyName parent = PropertyName.of("[PROPERTY]"); + SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); + client.createSubpropertyEventFilter(parent, subpropertyEventFilter); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9528,20 +9573,31 @@ public void deleteEventCreateRuleExceptionTest() throws Exception { } @Test - public void deleteEventCreateRuleTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void createSubpropertyEventFilterTest2() throws Exception { + SubpropertyEventFilter expectedResponse = + SubpropertyEventFilter.newBuilder() + .setName( + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]") + .toString()) + .setApplyToProperty("applyToProperty267785086") + .addAllFilterClauses(new ArrayList()) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + String parent = "parent-995424086"; + SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); - client.deleteEventCreateRule(name); + SubpropertyEventFilter actualResponse = + client.createSubpropertyEventFilter(parent, subpropertyEventFilter); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteEventCreateRuleRequest actualRequest = - ((DeleteEventCreateRuleRequest) actualRequests.get(0)); + CreateSubpropertyEventFilterRequest actualRequest = + ((CreateSubpropertyEventFilterRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(subpropertyEventFilter, actualRequest.getSubpropertyEventFilter()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -9549,13 +9605,14 @@ public void deleteEventCreateRuleTest2() throws Exception { } @Test - public void deleteEventCreateRuleExceptionTest2() throws Exception { + public void createSubpropertyEventFilterExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.deleteEventCreateRule(name); + String parent = "parent-995424086"; + SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); + client.createSubpropertyEventFilter(parent, subpropertyEventFilter); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java index 3e332bc26265..c1a5bd6c219f 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java @@ -289,218 +289,6 @@ public void updateProperty( } } - @Override - public void getUserLink(GetUserLinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof UserLink) { - requests.add(request); - responseObserver.onNext(((UserLink) 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 GetUserLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - UserLink.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void batchGetUserLinks( - BatchGetUserLinksRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof BatchGetUserLinksResponse) { - requests.add(request); - responseObserver.onNext(((BatchGetUserLinksResponse) 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 BatchGetUserLinks, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - BatchGetUserLinksResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listUserLinks( - ListUserLinksRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListUserLinksResponse) { - requests.add(request); - responseObserver.onNext(((ListUserLinksResponse) 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 ListUserLinks, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListUserLinksResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void auditUserLinks( - AuditUserLinksRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AuditUserLinksResponse) { - requests.add(request); - responseObserver.onNext(((AuditUserLinksResponse) 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 AuditUserLinks, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AuditUserLinksResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createUserLink( - CreateUserLinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof UserLink) { - requests.add(request); - responseObserver.onNext(((UserLink) 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 CreateUserLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - UserLink.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void batchCreateUserLinks( - BatchCreateUserLinksRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof BatchCreateUserLinksResponse) { - requests.add(request); - responseObserver.onNext(((BatchCreateUserLinksResponse) 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 BatchCreateUserLinks, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - BatchCreateUserLinksResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateUserLink( - UpdateUserLinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof UserLink) { - requests.add(request); - responseObserver.onNext(((UserLink) 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 UpdateUserLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - UserLink.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void batchUpdateUserLinks( - BatchUpdateUserLinksRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof BatchUpdateUserLinksResponse) { - requests.add(request); - responseObserver.onNext(((BatchUpdateUserLinksResponse) 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 BatchUpdateUserLinks, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - BatchUpdateUserLinksResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteUserLink( - DeleteUserLinkRequest 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 DeleteUserLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void batchDeleteUserLinks( - BatchDeleteUserLinksRequest 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 BatchDeleteUserLinks, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - @Override public void createFirebaseLink( CreateFirebaseLinkRequest request, StreamObserver responseObserver) { @@ -2793,4 +2581,222 @@ public void deleteEventCreateRule( Exception.class.getName()))); } } + + @Override + public void updateDataRedactionSettings( + UpdateDataRedactionSettingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DataRedactionSettings) { + requests.add(request); + responseObserver.onNext(((DataRedactionSettings) 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 UpdateDataRedactionSettings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DataRedactionSettings.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDataRedactionSettings( + GetDataRedactionSettingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DataRedactionSettings) { + requests.add(request); + responseObserver.onNext(((DataRedactionSettings) 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 GetDataRedactionSettings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DataRedactionSettings.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createRollupProperty( + CreateRollupPropertyRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CreateRollupPropertyResponse) { + requests.add(request); + responseObserver.onNext(((CreateRollupPropertyResponse) 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 CreateRollupProperty, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CreateRollupPropertyResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getRollupPropertySourceLink( + GetRollupPropertySourceLinkRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RollupPropertySourceLink) { + requests.add(request); + responseObserver.onNext(((RollupPropertySourceLink) 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 GetRollupPropertySourceLink, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RollupPropertySourceLink.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listRollupPropertySourceLinks( + ListRollupPropertySourceLinksRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListRollupPropertySourceLinksResponse) { + requests.add(request); + responseObserver.onNext(((ListRollupPropertySourceLinksResponse) 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 ListRollupPropertySourceLinks, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListRollupPropertySourceLinksResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createRollupPropertySourceLink( + CreateRollupPropertySourceLinkRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RollupPropertySourceLink) { + requests.add(request); + responseObserver.onNext(((RollupPropertySourceLink) 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 CreateRollupPropertySourceLink, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RollupPropertySourceLink.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteRollupPropertySourceLink( + DeleteRollupPropertySourceLinkRequest 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 DeleteRollupPropertySourceLink, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createSubproperty( + CreateSubpropertyRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CreateSubpropertyResponse) { + requests.add(request); + responseObserver.onNext(((CreateSubpropertyResponse) 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 CreateSubproperty, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CreateSubpropertyResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteSubpropertyEventFilter( + DeleteSubpropertyEventFilterRequest 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 DeleteSubpropertyEventFilter, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createSubpropertyEventFilter( + CreateSubpropertyEventFilterRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SubpropertyEventFilter) { + requests.add(request); + responseObserver.onNext(((SubpropertyEventFilter) 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 CreateSubpropertyEventFilter, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SubpropertyEventFilter.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java index d9eab5e4f804..51a3b6b90303 100644 --- a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java +++ b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java @@ -553,480 +553,6 @@ private AnalyticsAdminServiceGrpc() {} return getUpdatePropertyMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.GetUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink> - getGetUserLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetUserLink", - requestType = com.google.analytics.admin.v1alpha.GetUserLinkRequest.class, - responseType = com.google.analytics.admin.v1alpha.UserLink.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.GetUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink> - getGetUserLinkMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.GetUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink> - getGetUserLinkMethod; - if ((getGetUserLinkMethod = AnalyticsAdminServiceGrpc.getGetUserLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetUserLinkMethod = AnalyticsAdminServiceGrpc.getGetUserLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getGetUserLinkMethod = - getGetUserLinkMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetUserLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetUserLinkRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("GetUserLink")) - .build(); - } - } - } - return getGetUserLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse> - getBatchGetUserLinksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchGetUserLinks", - requestType = com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest.class, - responseType = com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse> - getBatchGetUserLinksMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse> - getBatchGetUserLinksMethod; - if ((getBatchGetUserLinksMethod = AnalyticsAdminServiceGrpc.getBatchGetUserLinksMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getBatchGetUserLinksMethod = AnalyticsAdminServiceGrpc.getBatchGetUserLinksMethod) - == null) { - AnalyticsAdminServiceGrpc.getBatchGetUserLinksMethod = - getBatchGetUserLinksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchGetUserLinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("BatchGetUserLinks")) - .build(); - } - } - } - return getBatchGetUserLinksMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ListUserLinksRequest, - com.google.analytics.admin.v1alpha.ListUserLinksResponse> - getListUserLinksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUserLinks", - requestType = com.google.analytics.admin.v1alpha.ListUserLinksRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListUserLinksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ListUserLinksRequest, - com.google.analytics.admin.v1alpha.ListUserLinksResponse> - getListUserLinksMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ListUserLinksRequest, - com.google.analytics.admin.v1alpha.ListUserLinksResponse> - getListUserLinksMethod; - if ((getListUserLinksMethod = AnalyticsAdminServiceGrpc.getListUserLinksMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListUserLinksMethod = AnalyticsAdminServiceGrpc.getListUserLinksMethod) == null) { - AnalyticsAdminServiceGrpc.getListUserLinksMethod = - getListUserLinksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUserLinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListUserLinksRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListUserLinksResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("ListUserLinks")) - .build(); - } - } - } - return getListUserLinksMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.AuditUserLinksRequest, - com.google.analytics.admin.v1alpha.AuditUserLinksResponse> - getAuditUserLinksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AuditUserLinks", - requestType = com.google.analytics.admin.v1alpha.AuditUserLinksRequest.class, - responseType = com.google.analytics.admin.v1alpha.AuditUserLinksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.AuditUserLinksRequest, - com.google.analytics.admin.v1alpha.AuditUserLinksResponse> - getAuditUserLinksMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.AuditUserLinksRequest, - com.google.analytics.admin.v1alpha.AuditUserLinksResponse> - getAuditUserLinksMethod; - if ((getAuditUserLinksMethod = AnalyticsAdminServiceGrpc.getAuditUserLinksMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getAuditUserLinksMethod = AnalyticsAdminServiceGrpc.getAuditUserLinksMethod) == null) { - AnalyticsAdminServiceGrpc.getAuditUserLinksMethod = - getAuditUserLinksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AuditUserLinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.AuditUserLinksRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.AuditUserLinksResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("AuditUserLinks")) - .build(); - } - } - } - return getAuditUserLinksMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink> - getCreateUserLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateUserLink", - requestType = com.google.analytics.admin.v1alpha.CreateUserLinkRequest.class, - responseType = com.google.analytics.admin.v1alpha.UserLink.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink> - getCreateUserLinkMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink> - getCreateUserLinkMethod; - if ((getCreateUserLinkMethod = AnalyticsAdminServiceGrpc.getCreateUserLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateUserLinkMethod = AnalyticsAdminServiceGrpc.getCreateUserLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateUserLinkMethod = - getCreateUserLinkMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateUserLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("CreateUserLink")) - .build(); - } - } - } - return getCreateUserLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse> - getBatchCreateUserLinksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchCreateUserLinks", - requestType = com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.class, - responseType = com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse> - getBatchCreateUserLinksMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse> - getBatchCreateUserLinksMethod; - if ((getBatchCreateUserLinksMethod = AnalyticsAdminServiceGrpc.getBatchCreateUserLinksMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getBatchCreateUserLinksMethod = - AnalyticsAdminServiceGrpc.getBatchCreateUserLinksMethod) - == null) { - AnalyticsAdminServiceGrpc.getBatchCreateUserLinksMethod = - getBatchCreateUserLinksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchCreateUserLinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("BatchCreateUserLinks")) - .build(); - } - } - } - return getBatchCreateUserLinksMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink> - getUpdateUserLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateUserLink", - requestType = com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.class, - responseType = com.google.analytics.admin.v1alpha.UserLink.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink> - getUpdateUserLinkMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink> - getUpdateUserLinkMethod; - if ((getUpdateUserLinkMethod = AnalyticsAdminServiceGrpc.getUpdateUserLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateUserLinkMethod = AnalyticsAdminServiceGrpc.getUpdateUserLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateUserLinkMethod = - getUpdateUserLinkMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateUserLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateUserLink")) - .build(); - } - } - } - return getUpdateUserLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse> - getBatchUpdateUserLinksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchUpdateUserLinks", - requestType = com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.class, - responseType = com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse> - getBatchUpdateUserLinksMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse> - getBatchUpdateUserLinksMethod; - if ((getBatchUpdateUserLinksMethod = AnalyticsAdminServiceGrpc.getBatchUpdateUserLinksMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getBatchUpdateUserLinksMethod = - AnalyticsAdminServiceGrpc.getBatchUpdateUserLinksMethod) - == null) { - AnalyticsAdminServiceGrpc.getBatchUpdateUserLinksMethod = - getBatchUpdateUserLinksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchUpdateUserLinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("BatchUpdateUserLinks")) - .build(); - } - } - } - return getBatchUpdateUserLinksMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest, com.google.protobuf.Empty> - getDeleteUserLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteUserLink", - requestType = com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest, com.google.protobuf.Empty> - getDeleteUserLinkMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest, com.google.protobuf.Empty> - getDeleteUserLinkMethod; - if ((getDeleteUserLinkMethod = AnalyticsAdminServiceGrpc.getDeleteUserLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteUserLinkMethod = AnalyticsAdminServiceGrpc.getDeleteUserLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteUserLinkMethod = - getDeleteUserLinkMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteUserLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteUserLink")) - .build(); - } - } - } - return getDeleteUserLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest, com.google.protobuf.Empty> - getBatchDeleteUserLinksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchDeleteUserLinks", - requestType = com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest, com.google.protobuf.Empty> - getBatchDeleteUserLinksMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest, - com.google.protobuf.Empty> - getBatchDeleteUserLinksMethod; - if ((getBatchDeleteUserLinksMethod = AnalyticsAdminServiceGrpc.getBatchDeleteUserLinksMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getBatchDeleteUserLinksMethod = - AnalyticsAdminServiceGrpc.getBatchDeleteUserLinksMethod) - == null) { - AnalyticsAdminServiceGrpc.getBatchDeleteUserLinksMethod = - getBatchDeleteUserLinksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchDeleteUserLinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("BatchDeleteUserLinks")) - .build(); - } - } - } - return getBatchDeleteUserLinksMethod; - } - private static volatile io.grpc.MethodDescriptor< com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest, com.google.analytics.admin.v1alpha.FirebaseLink> @@ -6513,9 +6039,531 @@ private AnalyticsAdminServiceGrpc() {} return getDeleteEventCreateRuleMethod; } - /** 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 = + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRedactionSettings> + getUpdateDataRedactionSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDataRedactionSettings", + requestType = com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.DataRedactionSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRedactionSettings> + getUpdateDataRedactionSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRedactionSettings> + getUpdateDataRedactionSettingsMethod; + if ((getUpdateDataRedactionSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateDataRedactionSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateDataRedactionSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateDataRedactionSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateDataRedactionSettingsMethod = + getUpdateDataRedactionSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateDataRedactionSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DataRedactionSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateDataRedactionSettings")) + .build(); + } + } + } + return getUpdateDataRedactionSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRedactionSettings> + getGetDataRedactionSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataRedactionSettings", + requestType = com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.DataRedactionSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRedactionSettings> + getGetDataRedactionSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRedactionSettings> + getGetDataRedactionSettingsMethod; + if ((getGetDataRedactionSettingsMethod = + AnalyticsAdminServiceGrpc.getGetDataRedactionSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetDataRedactionSettingsMethod = + AnalyticsAdminServiceGrpc.getGetDataRedactionSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetDataRedactionSettingsMethod = + getGetDataRedactionSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetDataRedactionSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DataRedactionSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetDataRedactionSettings")) + .build(); + } + } + } + return getGetDataRedactionSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest, + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse> + getCreateRollupPropertyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRollupProperty", + requestType = com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.class, + responseType = com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest, + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse> + getCreateRollupPropertyMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest, + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse> + getCreateRollupPropertyMethod; + if ((getCreateRollupPropertyMethod = AnalyticsAdminServiceGrpc.getCreateRollupPropertyMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateRollupPropertyMethod = + AnalyticsAdminServiceGrpc.getCreateRollupPropertyMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateRollupPropertyMethod = + getCreateRollupPropertyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateRollupProperty")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateRollupProperty")) + .build(); + } + } + } + return getCreateRollupPropertyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink> + getGetRollupPropertySourceLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRollupPropertySourceLink", + requestType = com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest.class, + responseType = com.google.analytics.admin.v1alpha.RollupPropertySourceLink.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink> + getGetRollupPropertySourceLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink> + getGetRollupPropertySourceLinkMethod; + if ((getGetRollupPropertySourceLinkMethod = + AnalyticsAdminServiceGrpc.getGetRollupPropertySourceLinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetRollupPropertySourceLinkMethod = + AnalyticsAdminServiceGrpc.getGetRollupPropertySourceLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetRollupPropertySourceLinkMethod = + getGetRollupPropertySourceLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetRollupPropertySourceLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetRollupPropertySourceLink")) + .build(); + } + } + } + return getGetRollupPropertySourceLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest, + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse> + getListRollupPropertySourceLinksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRollupPropertySourceLinks", + requestType = com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest, + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse> + getListRollupPropertySourceLinksMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest, + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse> + getListRollupPropertySourceLinksMethod; + if ((getListRollupPropertySourceLinksMethod = + AnalyticsAdminServiceGrpc.getListRollupPropertySourceLinksMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListRollupPropertySourceLinksMethod = + AnalyticsAdminServiceGrpc.getListRollupPropertySourceLinksMethod) + == null) { + AnalyticsAdminServiceGrpc.getListRollupPropertySourceLinksMethod = + getListRollupPropertySourceLinksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListRollupPropertySourceLinks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .ListRollupPropertySourceLinksRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .ListRollupPropertySourceLinksResponse.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "ListRollupPropertySourceLinks")) + .build(); + } + } + } + return getListRollupPropertySourceLinksMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink> + getCreateRollupPropertySourceLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRollupPropertySourceLink", + requestType = com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest.class, + responseType = com.google.analytics.admin.v1alpha.RollupPropertySourceLink.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink> + getCreateRollupPropertySourceLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink> + getCreateRollupPropertySourceLinkMethod; + if ((getCreateRollupPropertySourceLinkMethod = + AnalyticsAdminServiceGrpc.getCreateRollupPropertySourceLinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateRollupPropertySourceLinkMethod = + AnalyticsAdminServiceGrpc.getCreateRollupPropertySourceLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateRollupPropertySourceLinkMethod = + getCreateRollupPropertySourceLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateRollupPropertySourceLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .CreateRollupPropertySourceLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateRollupPropertySourceLink")) + .build(); + } + } + } + return getCreateRollupPropertySourceLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest, + com.google.protobuf.Empty> + getDeleteRollupPropertySourceLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRollupPropertySourceLink", + requestType = com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest, + com.google.protobuf.Empty> + getDeleteRollupPropertySourceLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest, + com.google.protobuf.Empty> + getDeleteRollupPropertySourceLinkMethod; + if ((getDeleteRollupPropertySourceLinkMethod = + AnalyticsAdminServiceGrpc.getDeleteRollupPropertySourceLinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteRollupPropertySourceLinkMethod = + AnalyticsAdminServiceGrpc.getDeleteRollupPropertySourceLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteRollupPropertySourceLinkMethod = + getDeleteRollupPropertySourceLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteRollupPropertySourceLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .DeleteRollupPropertySourceLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "DeleteRollupPropertySourceLink")) + .build(); + } + } + } + return getDeleteRollupPropertySourceLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest, + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse> + getCreateSubpropertyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSubproperty", + requestType = com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.class, + responseType = com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest, + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse> + getCreateSubpropertyMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest, + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse> + getCreateSubpropertyMethod; + if ((getCreateSubpropertyMethod = AnalyticsAdminServiceGrpc.getCreateSubpropertyMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateSubpropertyMethod = AnalyticsAdminServiceGrpc.getCreateSubpropertyMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateSubpropertyMethod = + getCreateSubpropertyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSubproperty")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateSubproperty")) + .build(); + } + } + } + return getCreateSubpropertyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest, + com.google.protobuf.Empty> + getDeleteSubpropertyEventFilterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSubpropertyEventFilter", + requestType = com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest, + com.google.protobuf.Empty> + getDeleteSubpropertyEventFilterMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest, + com.google.protobuf.Empty> + getDeleteSubpropertyEventFilterMethod; + if ((getDeleteSubpropertyEventFilterMethod = + AnalyticsAdminServiceGrpc.getDeleteSubpropertyEventFilterMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteSubpropertyEventFilterMethod = + AnalyticsAdminServiceGrpc.getDeleteSubpropertyEventFilterMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteSubpropertyEventFilterMethod = + getDeleteSubpropertyEventFilterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteSubpropertyEventFilter")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "DeleteSubpropertyEventFilter")) + .build(); + } + } + } + return getDeleteSubpropertyEventFilterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter> + getCreateSubpropertyEventFilterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSubpropertyEventFilter", + requestType = com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest.class, + responseType = com.google.analytics.admin.v1alpha.SubpropertyEventFilter.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter> + getCreateSubpropertyEventFilterMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter> + getCreateSubpropertyEventFilterMethod; + if ((getCreateSubpropertyEventFilterMethod = + AnalyticsAdminServiceGrpc.getCreateSubpropertyEventFilterMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateSubpropertyEventFilterMethod = + AnalyticsAdminServiceGrpc.getCreateSubpropertyEventFilterMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateSubpropertyEventFilterMethod = + getCreateSubpropertyEventFilterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateSubpropertyEventFilter")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateSubpropertyEventFilter")) + .build(); + } + } + } + return getCreateSubpropertyEventFilterMethod; + } + + /** 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( @@ -6603,7 +6651,7 @@ default void listAccounts( * 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. + * AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * Returns an error if the target is not found. * @@ -6715,7 +6763,7 @@ default void createProperty( * 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) + * and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) * will be permanently purged. * https://support.google.com/analytics/answer/6154772 * Returns an error if the target is not found, or is not a GA4 Property. @@ -6742,163 +6790,6 @@ default void updateProperty( getUpdatePropertyMethod(), responseObserver); } - /** - * - * - *

-     * Gets information about a user's link to an account or property.
-     * 
- */ - default void getUserLink( - com.google.analytics.admin.v1alpha.GetUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetUserLinkMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets information about multiple users' links to an account or property.
-     * 
- */ - default void batchGetUserLinks( - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchGetUserLinksMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all user links on an account or property.
-     * 
- */ - default void listUserLinks( - com.google.analytics.admin.v1alpha.ListUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListUserLinksMethod(), 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.
-     * 
- */ - default void auditUserLinks( - com.google.analytics.admin.v1alpha.AuditUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAuditUserLinksMethod(), 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.
-     * 
- */ - default void createUserLink( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateUserLinkMethod(), 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.
-     * 
- */ - default void batchCreateUserLinks( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchCreateUserLinksMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a user link on an account or property.
-     * 
- */ - default void updateUserLink( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateUserLinkMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates information about multiple users' links to an account or property.
-     * 
- */ - default void batchUpdateUserLinks( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchUpdateUserLinksMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a user link on an account or property.
-     * 
- */ - default void deleteUserLink( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteUserLinkMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes information about multiple users' links to an account or property.
-     * 
- */ - default void batchDeleteUserLinks( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchDeleteUserLinksMethod(), responseObserver); - } - /** * * @@ -8565,7 +8456,165 @@ default void deleteEventCreateRule( com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteEventCreateRuleMethod(), responseObserver); + getDeleteEventCreateRuleMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a DataRedactionSettings on a property.
+     * 
+ */ + default void updateDataRedactionSettings( + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDataRedactionSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single DataRedactionSettings.
+     * 
+ */ + default void getDataRedactionSettings( + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataRedactionSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a roll-up property and all roll-up property source links.
+     * 
+ */ + default void createRollupProperty( + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateRollupPropertyMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single roll-up property source Link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + default void getRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetRollupPropertySourceLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists roll-up property source Links on a property.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + default void listRollupPropertySourceLinks( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRollupPropertySourceLinksMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a roll-up property source link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + default void createRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateRollupPropertySourceLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a roll-up property source link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + default void deleteRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteRollupPropertySourceLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a subproperty and a subproperty event filter that applies to the
+     * created subproperty.
+     * 
+ */ + default void createSubproperty( + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSubpropertyMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a subproperty event filter.
+     * 
+ */ + default void deleteSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSubpropertyEventFilterMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a subproperty Event Filter.
+     * 
+ */ + default void createSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSubpropertyEventFilterMethod(), responseObserver); } } @@ -8647,7 +8696,7 @@ public void listAccounts( * 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. + * AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 * Returns an error if the target is not found. * @@ -8773,7 +8822,7 @@ public void createProperty( * 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) + * and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) * will be permanently purged. * https://support.google.com/analytics/answer/6154772 * Returns an error if the target is not found, or is not a GA4 Property. @@ -8804,183 +8853,6 @@ public void updateProperty( 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); - } - /** * * @@ -10869,332 +10741,368 @@ public void deleteEventCreateRule( request, responseObserver); } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service AnalyticsAdminService. - * - *
-   * 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); - } /** * * *
-     * Lookup for a single Account.
+     * Updates a DataRedactionSettings on a property.
      * 
*/ - 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); + public void updateDataRedactionSettings( + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDataRedactionSettingsMethod(), 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.
+     * Lookup for a single DataRedactionSettings.
      * 
*/ - 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); + public void getDataRedactionSettings( + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataRedactionSettingsMethod(), 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.
+     * Create a roll-up property and all roll-up property source links.
      * 
*/ - public com.google.protobuf.Empty deleteAccount( - com.google.analytics.admin.v1alpha.DeleteAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAccountMethod(), getCallOptions(), request); + public void createRollupProperty( + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRollupPropertyMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
-     * Updates an account.
+     * Lookup for a single roll-up property source Link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
      * 
*/ - 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); + public void getRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRollupPropertySourceLinkMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
-     * Requests a ticket for creating an account.
+     * Lists roll-up property source Links on a property.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
      * 
*/ - 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); + public void listRollupPropertySourceLinks( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRollupPropertySourceLinksMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
-     * Returns summaries of all accounts accessible by the caller.
+     * Creates a roll-up property source link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
      * 
*/ - 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); + public void createRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRollupPropertySourceLinkMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
-     * Lookup for a single "GA4" Property.
+     * Deletes a roll-up property source link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
      * 
*/ - 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); + public void deleteRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRollupPropertySourceLinkMethod(), 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.
+     * Create a subproperty and a subproperty event filter that applies to the
+     * created subproperty.
      * 
*/ - 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); + public void createSubproperty( + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSubpropertyMethod(), getCallOptions()), + request, + responseObserver); } /** * * *
-     * Creates an "GA4" property with the specified location and attributes.
+     * Deletes a subproperty event filter.
      * 
*/ - 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); + public void deleteSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSubpropertyEventFilterMethod(), 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 a GA4 Property.
+     * Creates a subproperty Event Filter.
      * 
*/ - 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); + public void createSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSubpropertyEventFilterMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AnalyticsAdminService. + * + *
+   * 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); } /** * * *
-     * Updates a property.
+     * Lookup for a single Account.
      * 
*/ - public com.google.analytics.admin.v1alpha.Property updateProperty( - com.google.analytics.admin.v1alpha.UpdatePropertyRequest request) { + public com.google.analytics.admin.v1alpha.Account getAccount( + com.google.analytics.admin.v1alpha.GetAccountRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePropertyMethod(), getCallOptions(), request); + getChannel(), getGetAccountMethod(), getCallOptions(), request); } /** * * *
-     * Gets information about a user's link to an account or 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.analytics.admin.v1alpha.UserLink getUserLink( - com.google.analytics.admin.v1alpha.GetUserLinkRequest request) { + public com.google.analytics.admin.v1alpha.ListAccountsResponse listAccounts( + com.google.analytics.admin.v1alpha.ListAccountsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetUserLinkMethod(), getCallOptions(), request); + getChannel(), getListAccountsMethod(), getCallOptions(), request); } /** * * *
-     * Gets information about multiple users' links to an account or 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,
+     * AccessBindings) 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.BatchGetUserLinksResponse batchGetUserLinks( - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request) { + public com.google.protobuf.Empty deleteAccount( + com.google.analytics.admin.v1alpha.DeleteAccountRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchGetUserLinksMethod(), getCallOptions(), request); + getChannel(), getDeleteAccountMethod(), getCallOptions(), request); } /** * * *
-     * Lists all user links on an account or property.
+     * Updates an account.
      * 
*/ - public com.google.analytics.admin.v1alpha.ListUserLinksResponse listUserLinks( - com.google.analytics.admin.v1alpha.ListUserLinksRequest request) { + public com.google.analytics.admin.v1alpha.Account updateAccount( + com.google.analytics.admin.v1alpha.UpdateAccountRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUserLinksMethod(), getCallOptions(), request); + getChannel(), getUpdateAccountMethod(), 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.
+     * Requests a ticket for creating an account.
      * 
*/ - public com.google.analytics.admin.v1alpha.AuditUserLinksResponse auditUserLinks( - com.google.analytics.admin.v1alpha.AuditUserLinksRequest request) { + public com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse provisionAccountTicket( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAuditUserLinksMethod(), getCallOptions(), request); + getChannel(), getProvisionAccountTicketMethod(), 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 summaries of all accounts accessible by the caller.
      * 
*/ - public com.google.analytics.admin.v1alpha.UserLink createUserLink( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest request) { + public com.google.analytics.admin.v1alpha.ListAccountSummariesResponse listAccountSummaries( + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateUserLinkMethod(), getCallOptions(), request); + getChannel(), getListAccountSummariesMethod(), 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.
+     * Lookup for a single "GA4" Property.
      * 
*/ - public com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse batchCreateUserLinks( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request) { + public com.google.analytics.admin.v1alpha.Property getProperty( + com.google.analytics.admin.v1alpha.GetPropertyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchCreateUserLinksMethod(), getCallOptions(), request); + getChannel(), getGetPropertyMethod(), getCallOptions(), request); } /** * * *
-     * Updates a user link on an account or 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 com.google.analytics.admin.v1alpha.UserLink updateUserLink( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request) { + public com.google.analytics.admin.v1alpha.ListPropertiesResponse listProperties( + com.google.analytics.admin.v1alpha.ListPropertiesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateUserLinkMethod(), getCallOptions(), request); + getChannel(), getListPropertiesMethod(), getCallOptions(), request); } /** * * *
-     * Updates information about multiple users' links to an account or property.
+     * Creates an "GA4" property with the specified location and attributes.
      * 
*/ - public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse batchUpdateUserLinks( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request) { + public com.google.analytics.admin.v1alpha.Property createProperty( + com.google.analytics.admin.v1alpha.CreatePropertyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchUpdateUserLinksMethod(), getCallOptions(), request); + getChannel(), getCreatePropertyMethod(), getCallOptions(), request); } /** * * *
-     * Deletes a user link on an account or property.
+     * 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, AccessBindings)
+     * will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found, or is not a GA4 Property.
      * 
*/ - public com.google.protobuf.Empty deleteUserLink( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request) { + public com.google.analytics.admin.v1alpha.Property deleteProperty( + com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteUserLinkMethod(), getCallOptions(), request); + getChannel(), getDeletePropertyMethod(), getCallOptions(), request); } /** * * *
-     * Deletes information about multiple users' links to an account or property.
+     * Updates a property.
      * 
*/ - public com.google.protobuf.Empty batchDeleteUserLinks( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request) { + public com.google.analytics.admin.v1alpha.Property updateProperty( + com.google.analytics.admin.v1alpha.UpdatePropertyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchDeleteUserLinksMethod(), getCallOptions(), request); + getChannel(), getUpdatePropertyMethod(), getCallOptions(), request); } /** @@ -12707,356 +12615,344 @@ public com.google.protobuf.Empty deleteEventCreateRule( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteEventCreateRuleMethod(), getCallOptions(), request); } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service - * AnalyticsAdminService. - * - *
-   * 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 Account.
+     * Updates a DataRedactionSettings on a property.
      * 
*/ - 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); + public com.google.analytics.admin.v1alpha.DataRedactionSettings updateDataRedactionSettings( + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDataRedactionSettingsMethod(), 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.
+     * Lookup for a single DataRedactionSettings.
      * 
*/ - 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); + public com.google.analytics.admin.v1alpha.DataRedactionSettings getDataRedactionSettings( + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataRedactionSettingsMethod(), 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.
+     * Create a roll-up property and all roll-up property source links.
      * 
*/ - 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); + public com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse createRollupProperty( + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRollupPropertyMethod(), getCallOptions(), request); } /** * * *
-     * Updates an account.
+     * Lookup for a single roll-up property source Link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
      * 
*/ - 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); + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRollupPropertySourceLinkMethod(), getCallOptions(), request); } /** * * *
-     * Requests a ticket for creating an account.
+     * Lists roll-up property source Links on a property.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
      * 
*/ - 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); + public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse + listRollupPropertySourceLinks( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRollupPropertySourceLinksMethod(), getCallOptions(), request); } /** * * *
-     * Returns summaries of all accounts accessible by the caller.
+     * Creates a roll-up property source link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
      * 
*/ - 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); + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink + createRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRollupPropertySourceLinkMethod(), getCallOptions(), request); } /** * * *
-     * Lookup for a single "GA4" Property.
+     * Deletes a roll-up property source link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
      * 
*/ - 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); + public com.google.protobuf.Empty deleteRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRollupPropertySourceLinkMethod(), 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.
+     * Create a subproperty and a subproperty event filter that applies to the
+     * created subproperty.
      * 
*/ - 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); + public com.google.analytics.admin.v1alpha.CreateSubpropertyResponse createSubproperty( + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSubpropertyMethod(), getCallOptions(), request); } /** * * *
-     * Creates an "GA4" property with the specified location and attributes.
+     * Deletes a subproperty event filter.
      * 
*/ - 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); + public com.google.protobuf.Empty deleteSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSubpropertyEventFilterMethod(), 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 a GA4 Property.
+     * Creates a subproperty Event Filter.
      * 
*/ - 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); + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter createSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSubpropertyEventFilterMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * AnalyticsAdminService. + * + *
+   * 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); } /** * * *
-     * Updates a property.
+     * Lookup for a single Account.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.Property> - updateProperty(com.google.analytics.admin.v1alpha.UpdatePropertyRequest request) { + com.google.analytics.admin.v1alpha.Account> + getAccount(com.google.analytics.admin.v1alpha.GetAccountRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePropertyMethod(), getCallOptions()), request); + getChannel().newCall(getGetAccountMethod(), getCallOptions()), request); } /** * * *
-     * Gets information about a user's link to an account or 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.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.UserLink> - getUserLink(com.google.analytics.admin.v1alpha.GetUserLinkRequest request) { + com.google.analytics.admin.v1alpha.ListAccountsResponse> + listAccounts(com.google.analytics.admin.v1alpha.ListAccountsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetUserLinkMethod(), getCallOptions()), request); + getChannel().newCall(getListAccountsMethod(), getCallOptions()), request); } /** * * *
-     * Gets information about multiple users' links to an account or 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,
+     * AccessBindings) will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse> - batchGetUserLinks(com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteAccount(com.google.analytics.admin.v1alpha.DeleteAccountRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchGetUserLinksMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteAccountMethod(), getCallOptions()), request); } /** * * *
-     * Lists all user links on an account or property.
+     * Updates an account.
      * 
*/ 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.Account> + updateAccount(com.google.analytics.admin.v1alpha.UpdateAccountRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUserLinksMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateAccountMethod(), 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.
+     * Requests a ticket for creating an account.
      * 
*/ 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.ProvisionAccountTicketResponse> + provisionAccountTicket( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAuditUserLinksMethod(), getCallOptions()), request); + getChannel().newCall(getProvisionAccountTicketMethod(), 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 summaries of all accounts accessible by the caller.
      * 
*/ 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.ListAccountSummariesResponse> + listAccountSummaries( + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateUserLinkMethod(), getCallOptions()), request); + getChannel().newCall(getListAccountSummariesMethod(), 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.
+     * Lookup for a single "GA4" 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.Property> + getProperty(com.google.analytics.admin.v1alpha.GetPropertyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchCreateUserLinksMethod(), getCallOptions()), request); + getChannel().newCall(getGetPropertyMethod(), getCallOptions()), request); } /** * * *
-     * Updates a user link on an account or 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 com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.UserLink> - updateUserLink(com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request) { + com.google.analytics.admin.v1alpha.ListPropertiesResponse> + listProperties(com.google.analytics.admin.v1alpha.ListPropertiesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateUserLinkMethod(), getCallOptions()), request); + getChannel().newCall(getListPropertiesMethod(), getCallOptions()), request); } /** * * *
-     * Updates information about multiple users' links to an account or property.
+     * Creates an "GA4" property with the specified location and attributes.
      * 
*/ 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.Property> + createProperty(com.google.analytics.admin.v1alpha.CreatePropertyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchUpdateUserLinksMethod(), getCallOptions()), request); + getChannel().newCall(getCreatePropertyMethod(), getCallOptions()), request); } /** * * *
-     * Deletes a user link on an account or property.
+     * 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, AccessBindings)
+     * will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found, or is not a GA4 Property.
      * 
*/ - 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.Property> + deleteProperty(com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteUserLinkMethod(), getCallOptions()), request); + getChannel().newCall(getDeletePropertyMethod(), getCallOptions()), request); } /** * * *
-     * Deletes information about multiple users' links to an account or property.
+     * Updates a property.
      * 
*/ - 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.Property> + updateProperty(com.google.analytics.admin.v1alpha.UpdatePropertyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchDeleteUserLinksMethod(), getCallOptions()), request); + getChannel().newCall(getUpdatePropertyMethod(), getCallOptions()), request); } /** @@ -14695,6 +14591,165 @@ protected AnalyticsAdminServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteEventCreateRuleMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Updates a DataRedactionSettings on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DataRedactionSettings> + updateDataRedactionSettings( + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDataRedactionSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single DataRedactionSettings.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DataRedactionSettings> + getDataRedactionSettings( + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDataRedactionSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Create a roll-up property and all roll-up property source links.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse> + createRollupProperty( + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRollupPropertyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single roll-up property source Link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink> + getRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRollupPropertySourceLinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists roll-up property source Links on a property.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse> + listRollupPropertySourceLinks( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRollupPropertySourceLinksMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Creates a roll-up property source link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink> + createRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRollupPropertySourceLinkMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Deletes a roll-up property source link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRollupPropertySourceLinkMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Create a subproperty and a subproperty event filter that applies to the
+     * created subproperty.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse> + createSubproperty(com.google.analytics.admin.v1alpha.CreateSubpropertyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSubpropertyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a subproperty event filter.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSubpropertyEventFilterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a subproperty Event Filter.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter> + createSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSubpropertyEventFilterMethod(), getCallOptions()), request); + } } private static final int METHODID_GET_ACCOUNT = 0; @@ -14708,123 +14763,123 @@ protected AnalyticsAdminServiceFutureStub build( private static final int METHODID_CREATE_PROPERTY = 8; private static final int METHODID_DELETE_PROPERTY = 9; private static final int METHODID_UPDATE_PROPERTY = 10; - private static final int METHODID_GET_USER_LINK = 11; - private static final int METHODID_BATCH_GET_USER_LINKS = 12; - private static final int METHODID_LIST_USER_LINKS = 13; - private static final int METHODID_AUDIT_USER_LINKS = 14; - private static final int METHODID_CREATE_USER_LINK = 15; - private static final int METHODID_BATCH_CREATE_USER_LINKS = 16; - private static final int METHODID_UPDATE_USER_LINK = 17; - private static final int METHODID_BATCH_UPDATE_USER_LINKS = 18; - private static final int METHODID_DELETE_USER_LINK = 19; - private static final int METHODID_BATCH_DELETE_USER_LINKS = 20; - private static final int METHODID_CREATE_FIREBASE_LINK = 21; - private static final int METHODID_DELETE_FIREBASE_LINK = 22; - private static final int METHODID_LIST_FIREBASE_LINKS = 23; - private static final int METHODID_GET_GLOBAL_SITE_TAG = 24; - private static final int METHODID_CREATE_GOOGLE_ADS_LINK = 25; - private static final int METHODID_UPDATE_GOOGLE_ADS_LINK = 26; - private static final int METHODID_DELETE_GOOGLE_ADS_LINK = 27; - private static final int METHODID_LIST_GOOGLE_ADS_LINKS = 28; - private static final int METHODID_GET_DATA_SHARING_SETTINGS = 29; - private static final int METHODID_GET_MEASUREMENT_PROTOCOL_SECRET = 30; - private static final int METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS = 31; - private static final int METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET = 32; - private static final int METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET = 33; - private static final int METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET = 34; - private static final int METHODID_ACKNOWLEDGE_USER_DATA_COLLECTION = 35; - private static final int METHODID_GET_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA = 36; - private static final int METHODID_CREATE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA = 37; - private static final int METHODID_DELETE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA = 38; - private static final int METHODID_UPDATE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA = 39; - private static final int METHODID_LIST_SKAD_NETWORK_CONVERSION_VALUE_SCHEMAS = 40; - private static final int METHODID_SEARCH_CHANGE_HISTORY_EVENTS = 41; - private static final int METHODID_GET_GOOGLE_SIGNALS_SETTINGS = 42; - private static final int METHODID_UPDATE_GOOGLE_SIGNALS_SETTINGS = 43; - private static final int METHODID_CREATE_CONVERSION_EVENT = 44; - private static final int METHODID_UPDATE_CONVERSION_EVENT = 45; - private static final int METHODID_GET_CONVERSION_EVENT = 46; - private static final int METHODID_DELETE_CONVERSION_EVENT = 47; - private static final int METHODID_LIST_CONVERSION_EVENTS = 48; - private static final int METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK = 49; - private static final int METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINKS = 50; - private static final int METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK = 51; - private static final int METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK = 52; - private static final int METHODID_UPDATE_DISPLAY_VIDEO360ADVERTISER_LINK = 53; - private static final int METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 54; - private static final int METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSALS = 55; - private static final int METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 56; - private static final int METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 57; - private static final int METHODID_APPROVE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 58; - private static final int METHODID_CANCEL_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 59; - private static final int METHODID_CREATE_CUSTOM_DIMENSION = 60; - private static final int METHODID_UPDATE_CUSTOM_DIMENSION = 61; - private static final int METHODID_LIST_CUSTOM_DIMENSIONS = 62; - private static final int METHODID_ARCHIVE_CUSTOM_DIMENSION = 63; - private static final int METHODID_GET_CUSTOM_DIMENSION = 64; - private static final int METHODID_CREATE_CUSTOM_METRIC = 65; - private static final int METHODID_UPDATE_CUSTOM_METRIC = 66; - private static final int METHODID_LIST_CUSTOM_METRICS = 67; - private static final int METHODID_ARCHIVE_CUSTOM_METRIC = 68; - private static final int METHODID_GET_CUSTOM_METRIC = 69; - private static final int METHODID_GET_DATA_RETENTION_SETTINGS = 70; - private static final int METHODID_UPDATE_DATA_RETENTION_SETTINGS = 71; - private static final int METHODID_CREATE_DATA_STREAM = 72; - private static final int METHODID_DELETE_DATA_STREAM = 73; - private static final int METHODID_UPDATE_DATA_STREAM = 74; - private static final int METHODID_LIST_DATA_STREAMS = 75; - private static final int METHODID_GET_DATA_STREAM = 76; - private static final int METHODID_GET_AUDIENCE = 77; - private static final int METHODID_LIST_AUDIENCES = 78; - private static final int METHODID_CREATE_AUDIENCE = 79; - private static final int METHODID_UPDATE_AUDIENCE = 80; - private static final int METHODID_ARCHIVE_AUDIENCE = 81; - private static final int METHODID_GET_SEARCH_ADS360LINK = 82; - private static final int METHODID_LIST_SEARCH_ADS360LINKS = 83; - private static final int METHODID_CREATE_SEARCH_ADS360LINK = 84; - private static final int METHODID_DELETE_SEARCH_ADS360LINK = 85; - private static final int METHODID_UPDATE_SEARCH_ADS360LINK = 86; - private static final int METHODID_GET_ATTRIBUTION_SETTINGS = 87; - private static final int METHODID_UPDATE_ATTRIBUTION_SETTINGS = 88; - private static final int METHODID_RUN_ACCESS_REPORT = 89; - private static final int METHODID_CREATE_ACCESS_BINDING = 90; - private static final int METHODID_GET_ACCESS_BINDING = 91; - private static final int METHODID_UPDATE_ACCESS_BINDING = 92; - private static final int METHODID_DELETE_ACCESS_BINDING = 93; - private static final int METHODID_LIST_ACCESS_BINDINGS = 94; - private static final int METHODID_BATCH_CREATE_ACCESS_BINDINGS = 95; - private static final int METHODID_BATCH_GET_ACCESS_BINDINGS = 96; - private static final int METHODID_BATCH_UPDATE_ACCESS_BINDINGS = 97; - private static final int METHODID_BATCH_DELETE_ACCESS_BINDINGS = 98; - private static final int METHODID_GET_EXPANDED_DATA_SET = 99; - private static final int METHODID_LIST_EXPANDED_DATA_SETS = 100; - private static final int METHODID_CREATE_EXPANDED_DATA_SET = 101; - private static final int METHODID_UPDATE_EXPANDED_DATA_SET = 102; - private static final int METHODID_DELETE_EXPANDED_DATA_SET = 103; - private static final int METHODID_GET_CHANNEL_GROUP = 104; - private static final int METHODID_LIST_CHANNEL_GROUPS = 105; - private static final int METHODID_CREATE_CHANNEL_GROUP = 106; - private static final int METHODID_UPDATE_CHANNEL_GROUP = 107; - private static final int METHODID_DELETE_CHANNEL_GROUP = 108; - private static final int METHODID_SET_AUTOMATED_GA4CONFIGURATION_OPT_OUT = 109; - private static final int METHODID_FETCH_AUTOMATED_GA4CONFIGURATION_OPT_OUT = 110; - private static final int METHODID_GET_BIG_QUERY_LINK = 111; - private static final int METHODID_LIST_BIG_QUERY_LINKS = 112; - private static final int METHODID_GET_ENHANCED_MEASUREMENT_SETTINGS = 113; - private static final int METHODID_UPDATE_ENHANCED_MEASUREMENT_SETTINGS = 114; - private static final int METHODID_CREATE_CONNECTED_SITE_TAG = 115; - private static final int METHODID_DELETE_CONNECTED_SITE_TAG = 116; - private static final int METHODID_LIST_CONNECTED_SITE_TAGS = 117; - private static final int METHODID_FETCH_CONNECTED_GA4PROPERTY = 118; - private static final int METHODID_GET_AD_SENSE_LINK = 119; - private static final int METHODID_CREATE_AD_SENSE_LINK = 120; - private static final int METHODID_DELETE_AD_SENSE_LINK = 121; - private static final int METHODID_LIST_AD_SENSE_LINKS = 122; - private static final int METHODID_GET_EVENT_CREATE_RULE = 123; - private static final int METHODID_LIST_EVENT_CREATE_RULES = 124; - private static final int METHODID_CREATE_EVENT_CREATE_RULE = 125; - private static final int METHODID_UPDATE_EVENT_CREATE_RULE = 126; - private static final int METHODID_DELETE_EVENT_CREATE_RULE = 127; + private static final int METHODID_CREATE_FIREBASE_LINK = 11; + private static final int METHODID_DELETE_FIREBASE_LINK = 12; + private static final int METHODID_LIST_FIREBASE_LINKS = 13; + private static final int METHODID_GET_GLOBAL_SITE_TAG = 14; + private static final int METHODID_CREATE_GOOGLE_ADS_LINK = 15; + private static final int METHODID_UPDATE_GOOGLE_ADS_LINK = 16; + private static final int METHODID_DELETE_GOOGLE_ADS_LINK = 17; + private static final int METHODID_LIST_GOOGLE_ADS_LINKS = 18; + private static final int METHODID_GET_DATA_SHARING_SETTINGS = 19; + private static final int METHODID_GET_MEASUREMENT_PROTOCOL_SECRET = 20; + private static final int METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS = 21; + private static final int METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET = 22; + private static final int METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET = 23; + private static final int METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET = 24; + private static final int METHODID_ACKNOWLEDGE_USER_DATA_COLLECTION = 25; + private static final int METHODID_GET_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA = 26; + private static final int METHODID_CREATE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA = 27; + private static final int METHODID_DELETE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA = 28; + private static final int METHODID_UPDATE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA = 29; + private static final int METHODID_LIST_SKAD_NETWORK_CONVERSION_VALUE_SCHEMAS = 30; + private static final int METHODID_SEARCH_CHANGE_HISTORY_EVENTS = 31; + private static final int METHODID_GET_GOOGLE_SIGNALS_SETTINGS = 32; + private static final int METHODID_UPDATE_GOOGLE_SIGNALS_SETTINGS = 33; + private static final int METHODID_CREATE_CONVERSION_EVENT = 34; + private static final int METHODID_UPDATE_CONVERSION_EVENT = 35; + private static final int METHODID_GET_CONVERSION_EVENT = 36; + private static final int METHODID_DELETE_CONVERSION_EVENT = 37; + private static final int METHODID_LIST_CONVERSION_EVENTS = 38; + private static final int METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK = 39; + private static final int METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINKS = 40; + private static final int METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK = 41; + private static final int METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK = 42; + private static final int METHODID_UPDATE_DISPLAY_VIDEO360ADVERTISER_LINK = 43; + private static final int METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 44; + private static final int METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSALS = 45; + private static final int METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 46; + private static final int METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 47; + private static final int METHODID_APPROVE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 48; + private static final int METHODID_CANCEL_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 49; + private static final int METHODID_CREATE_CUSTOM_DIMENSION = 50; + private static final int METHODID_UPDATE_CUSTOM_DIMENSION = 51; + private static final int METHODID_LIST_CUSTOM_DIMENSIONS = 52; + private static final int METHODID_ARCHIVE_CUSTOM_DIMENSION = 53; + private static final int METHODID_GET_CUSTOM_DIMENSION = 54; + private static final int METHODID_CREATE_CUSTOM_METRIC = 55; + private static final int METHODID_UPDATE_CUSTOM_METRIC = 56; + private static final int METHODID_LIST_CUSTOM_METRICS = 57; + private static final int METHODID_ARCHIVE_CUSTOM_METRIC = 58; + private static final int METHODID_GET_CUSTOM_METRIC = 59; + private static final int METHODID_GET_DATA_RETENTION_SETTINGS = 60; + private static final int METHODID_UPDATE_DATA_RETENTION_SETTINGS = 61; + private static final int METHODID_CREATE_DATA_STREAM = 62; + private static final int METHODID_DELETE_DATA_STREAM = 63; + private static final int METHODID_UPDATE_DATA_STREAM = 64; + private static final int METHODID_LIST_DATA_STREAMS = 65; + private static final int METHODID_GET_DATA_STREAM = 66; + private static final int METHODID_GET_AUDIENCE = 67; + private static final int METHODID_LIST_AUDIENCES = 68; + private static final int METHODID_CREATE_AUDIENCE = 69; + private static final int METHODID_UPDATE_AUDIENCE = 70; + private static final int METHODID_ARCHIVE_AUDIENCE = 71; + private static final int METHODID_GET_SEARCH_ADS360LINK = 72; + private static final int METHODID_LIST_SEARCH_ADS360LINKS = 73; + private static final int METHODID_CREATE_SEARCH_ADS360LINK = 74; + private static final int METHODID_DELETE_SEARCH_ADS360LINK = 75; + private static final int METHODID_UPDATE_SEARCH_ADS360LINK = 76; + private static final int METHODID_GET_ATTRIBUTION_SETTINGS = 77; + private static final int METHODID_UPDATE_ATTRIBUTION_SETTINGS = 78; + private static final int METHODID_RUN_ACCESS_REPORT = 79; + private static final int METHODID_CREATE_ACCESS_BINDING = 80; + private static final int METHODID_GET_ACCESS_BINDING = 81; + private static final int METHODID_UPDATE_ACCESS_BINDING = 82; + private static final int METHODID_DELETE_ACCESS_BINDING = 83; + private static final int METHODID_LIST_ACCESS_BINDINGS = 84; + private static final int METHODID_BATCH_CREATE_ACCESS_BINDINGS = 85; + private static final int METHODID_BATCH_GET_ACCESS_BINDINGS = 86; + private static final int METHODID_BATCH_UPDATE_ACCESS_BINDINGS = 87; + private static final int METHODID_BATCH_DELETE_ACCESS_BINDINGS = 88; + private static final int METHODID_GET_EXPANDED_DATA_SET = 89; + private static final int METHODID_LIST_EXPANDED_DATA_SETS = 90; + private static final int METHODID_CREATE_EXPANDED_DATA_SET = 91; + private static final int METHODID_UPDATE_EXPANDED_DATA_SET = 92; + private static final int METHODID_DELETE_EXPANDED_DATA_SET = 93; + private static final int METHODID_GET_CHANNEL_GROUP = 94; + private static final int METHODID_LIST_CHANNEL_GROUPS = 95; + private static final int METHODID_CREATE_CHANNEL_GROUP = 96; + private static final int METHODID_UPDATE_CHANNEL_GROUP = 97; + private static final int METHODID_DELETE_CHANNEL_GROUP = 98; + private static final int METHODID_SET_AUTOMATED_GA4CONFIGURATION_OPT_OUT = 99; + private static final int METHODID_FETCH_AUTOMATED_GA4CONFIGURATION_OPT_OUT = 100; + private static final int METHODID_GET_BIG_QUERY_LINK = 101; + private static final int METHODID_LIST_BIG_QUERY_LINKS = 102; + private static final int METHODID_GET_ENHANCED_MEASUREMENT_SETTINGS = 103; + private static final int METHODID_UPDATE_ENHANCED_MEASUREMENT_SETTINGS = 104; + private static final int METHODID_CREATE_CONNECTED_SITE_TAG = 105; + private static final int METHODID_DELETE_CONNECTED_SITE_TAG = 106; + private static final int METHODID_LIST_CONNECTED_SITE_TAGS = 107; + private static final int METHODID_FETCH_CONNECTED_GA4PROPERTY = 108; + private static final int METHODID_GET_AD_SENSE_LINK = 109; + private static final int METHODID_CREATE_AD_SENSE_LINK = 110; + private static final int METHODID_DELETE_AD_SENSE_LINK = 111; + private static final int METHODID_LIST_AD_SENSE_LINKS = 112; + private static final int METHODID_GET_EVENT_CREATE_RULE = 113; + private static final int METHODID_LIST_EVENT_CREATE_RULES = 114; + private static final int METHODID_CREATE_EVENT_CREATE_RULE = 115; + private static final int METHODID_UPDATE_EVENT_CREATE_RULE = 116; + private static final int METHODID_DELETE_EVENT_CREATE_RULE = 117; + private static final int METHODID_UPDATE_DATA_REDACTION_SETTINGS = 118; + private static final int METHODID_GET_DATA_REDACTION_SETTINGS = 119; + private static final int METHODID_CREATE_ROLLUP_PROPERTY = 120; + private static final int METHODID_GET_ROLLUP_PROPERTY_SOURCE_LINK = 121; + private static final int METHODID_LIST_ROLLUP_PROPERTY_SOURCE_LINKS = 122; + private static final int METHODID_CREATE_ROLLUP_PROPERTY_SOURCE_LINK = 123; + private static final int METHODID_DELETE_ROLLUP_PROPERTY_SOURCE_LINK = 124; + private static final int METHODID_CREATE_SUBPROPERTY = 125; + private static final int METHODID_DELETE_SUBPROPERTY_EVENT_FILTER = 126; + private static final int METHODID_CREATE_SUBPROPERTY_EVENT_FILTER = 127; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -14911,69 +14966,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_GET_USER_LINK: - serviceImpl.getUserLink( - (com.google.analytics.admin.v1alpha.GetUserLinkRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_BATCH_GET_USER_LINKS: - serviceImpl.batchGetUserLinks( - (com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse>) - responseObserver); - break; - case METHODID_LIST_USER_LINKS: - serviceImpl.listUserLinks( - (com.google.analytics.admin.v1alpha.ListUserLinksRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ListUserLinksResponse>) - responseObserver); - break; - case METHODID_AUDIT_USER_LINKS: - serviceImpl.auditUserLinks( - (com.google.analytics.admin.v1alpha.AuditUserLinksRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.AuditUserLinksResponse>) - responseObserver); - break; - case METHODID_CREATE_USER_LINK: - serviceImpl.createUserLink( - (com.google.analytics.admin.v1alpha.CreateUserLinkRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_BATCH_CREATE_USER_LINKS: - serviceImpl.batchCreateUserLinks( - (com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse>) - responseObserver); - break; - case METHODID_UPDATE_USER_LINK: - serviceImpl.updateUserLink( - (com.google.analytics.admin.v1alpha.UpdateUserLinkRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_BATCH_UPDATE_USER_LINKS: - serviceImpl.batchUpdateUserLinks( - (com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse>) - responseObserver); - break; - case METHODID_DELETE_USER_LINK: - serviceImpl.deleteUserLink( - (com.google.analytics.admin.v1alpha.DeleteUserLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_DELETE_USER_LINKS: - serviceImpl.batchDeleteUserLinks( - (com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; case METHODID_CREATE_FIREBASE_LINK: serviceImpl.createFirebaseLink( (com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) request, @@ -15672,6 +15664,72 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_DATA_REDACTION_SETTINGS: + serviceImpl.updateDataRedactionSettings( + (com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DataRedactionSettings>) + responseObserver); + break; + case METHODID_GET_DATA_REDACTION_SETTINGS: + serviceImpl.getDataRedactionSettings( + (com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DataRedactionSettings>) + responseObserver); + break; + case METHODID_CREATE_ROLLUP_PROPERTY: + serviceImpl.createRollupProperty( + (com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse>) + responseObserver); + break; + case METHODID_GET_ROLLUP_PROPERTY_SOURCE_LINK: + serviceImpl.getRollupPropertySourceLink( + (com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink>) + responseObserver); + break; + case METHODID_LIST_ROLLUP_PROPERTY_SOURCE_LINKS: + serviceImpl.listRollupPropertySourceLinks( + (com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse>) + responseObserver); + break; + case METHODID_CREATE_ROLLUP_PROPERTY_SOURCE_LINK: + serviceImpl.createRollupPropertySourceLink( + (com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink>) + responseObserver); + break; + case METHODID_DELETE_ROLLUP_PROPERTY_SOURCE_LINK: + serviceImpl.deleteRollupPropertySourceLink( + (com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SUBPROPERTY: + serviceImpl.createSubproperty( + (com.google.analytics.admin.v1alpha.CreateSubpropertyRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse>) + responseObserver); + break; + case METHODID_DELETE_SUBPROPERTY_EVENT_FILTER: + serviceImpl.deleteSubpropertyEventFilter( + (com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SUBPROPERTY_EVENT_FILTER: + serviceImpl.createSubpropertyEventFilter( + (com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter>) + responseObserver); + break; default: throw new AssertionError(); } @@ -15763,73 +15821,6 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.analytics.admin.v1alpha.UpdatePropertyRequest, com.google.analytics.admin.v1alpha.Property>( service, METHODID_UPDATE_PROPERTY))) - .addMethod( - getGetUserLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink>(service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, METHODID_BATCH_UPDATE_USER_LINKS))) - .addMethod( - getDeleteUserLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_USER_LINK))) - .addMethod( - getBatchDeleteUserLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest, - com.google.protobuf.Empty>(service, METHODID_BATCH_DELETE_USER_LINKS))) .addMethod( getCreateFirebaseLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -16576,6 +16567,75 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest, com.google.protobuf.Empty>(service, METHODID_DELETE_EVENT_CREATE_RULE))) + .addMethod( + getUpdateDataRedactionSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRedactionSettings>( + service, METHODID_UPDATE_DATA_REDACTION_SETTINGS))) + .addMethod( + getGetDataRedactionSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRedactionSettings>( + service, METHODID_GET_DATA_REDACTION_SETTINGS))) + .addMethod( + getCreateRollupPropertyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest, + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse>( + service, METHODID_CREATE_ROLLUP_PROPERTY))) + .addMethod( + getGetRollupPropertySourceLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink>( + service, METHODID_GET_ROLLUP_PROPERTY_SOURCE_LINK))) + .addMethod( + getListRollupPropertySourceLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest, + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse>( + service, METHODID_LIST_ROLLUP_PROPERTY_SOURCE_LINKS))) + .addMethod( + getCreateRollupPropertySourceLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink>( + service, METHODID_CREATE_ROLLUP_PROPERTY_SOURCE_LINK))) + .addMethod( + getDeleteRollupPropertySourceLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_ROLLUP_PROPERTY_SOURCE_LINK))) + .addMethod( + getCreateSubpropertyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest, + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse>( + service, METHODID_CREATE_SUBPROPERTY))) + .addMethod( + getDeleteSubpropertyEventFilterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_SUBPROPERTY_EVENT_FILTER))) + .addMethod( + getCreateSubpropertyEventFilterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter>( + service, METHODID_CREATE_SUBPROPERTY_EVENT_FILTER))) .build(); } @@ -16638,16 +16698,6 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreatePropertyMethod()) .addMethod(getDeletePropertyMethod()) .addMethod(getUpdatePropertyMethod()) - .addMethod(getGetUserLinkMethod()) - .addMethod(getBatchGetUserLinksMethod()) - .addMethod(getListUserLinksMethod()) - .addMethod(getAuditUserLinksMethod()) - .addMethod(getCreateUserLinkMethod()) - .addMethod(getBatchCreateUserLinksMethod()) - .addMethod(getUpdateUserLinkMethod()) - .addMethod(getBatchUpdateUserLinksMethod()) - .addMethod(getDeleteUserLinkMethod()) - .addMethod(getBatchDeleteUserLinksMethod()) .addMethod(getCreateFirebaseLinkMethod()) .addMethod(getDeleteFirebaseLinkMethod()) .addMethod(getListFirebaseLinksMethod()) @@ -16755,6 +16805,16 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateEventCreateRuleMethod()) .addMethod(getUpdateEventCreateRuleMethod()) .addMethod(getDeleteEventCreateRuleMethod()) + .addMethod(getUpdateDataRedactionSettingsMethod()) + .addMethod(getGetDataRedactionSettingsMethod()) + .addMethod(getCreateRollupPropertyMethod()) + .addMethod(getGetRollupPropertySourceLinkMethod()) + .addMethod(getListRollupPropertySourceLinksMethod()) + .addMethod(getCreateRollupPropertySourceLinkMethod()) + .addMethod(getDeleteRollupPropertySourceLinkMethod()) + .addMethod(getCreateSubpropertyMethod()) + .addMethod(getDeleteSubpropertyEventFilterMethod()) + .addMethod(getCreateSubpropertyEventFilterMethod()) .build(); } } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java index 7f21473715c0..134aee0742d9 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java @@ -87,66 +87,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetUserLinkRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetUserLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListUserLinksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListUserLinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListUserLinksResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListUserLinksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AuditUserLinksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AuditUserLinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AuditUserLinksResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AuditUserLinksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateUserLinkRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateUserLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateUserLinkRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateUserLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeleteUserLinkRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeleteUserLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_BatchDeleteUserLinksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_BatchDeleteUserLinksRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -623,6 +563,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -695,6 +643,66 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -714,1343 +722,1368 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "te_and_edit.proto\0326google/analytics/admi" + "n/v1alpha/expanded_data_set.proto\032.googl" + "e/analytics/admin/v1alpha/resources.prot" - + "o\032\034google/api/annotations.proto\032\027google/" - + "api/client.proto\032\037google/api/field_behav" - + "ior.proto\032\031google/api/resource.proto\032\033go" - + "ogle/protobuf/empty.proto\032 google/protob" - + "uf/field_mask.proto\032\037google/protobuf/tim" - + "estamp.proto\"\244\004\n\026RunAccessReportRequest\022" - + "\016\n\006entity\030\001 \001(\t\022C\n\ndimensions\030\002 \003(\0132/.go" - + "ogle.analytics.admin.v1alpha.AccessDimen" - + "sion\022=\n\007metrics\030\003 \003(\0132,.google.analytics" - + ".admin.v1alpha.AccessMetric\022D\n\013date_rang" - + "es\030\004 \003(\0132/.google.analytics.admin.v1alph" - + "a.AccessDateRange\022P\n\020dimension_filter\030\005 " - + "\001(\01326.google.analytics.admin.v1alpha.Acc" - + "essFilterExpression\022M\n\rmetric_filter\030\006 \001" - + "(\01326.google.analytics.admin.v1alpha.Acce" - + "ssFilterExpression\022\016\n\006offset\030\007 \001(\003\022\r\n\005li" - + "mit\030\010 \001(\003\022\021\n\ttime_zone\030\t \001(\t\022@\n\torder_by" - + "s\030\n \003(\0132-.google.analytics.admin.v1alpha" - + ".AccessOrderBy\022\033\n\023return_entity_quota\030\013 " - + "\001(\010\"\277\002\n\027RunAccessReportResponse\022P\n\021dimen" - + "sion_headers\030\001 \003(\01325.google.analytics.ad" - + "min.v1alpha.AccessDimensionHeader\022J\n\016met" - + "ric_headers\030\002 \003(\01322.google.analytics.adm" - + "in.v1alpha.AccessMetricHeader\0227\n\004rows\030\003 " - + "\003(\0132).google.analytics.admin.v1alpha.Acc" - + "essRow\022\021\n\trow_count\030\004 \001(\005\022:\n\005quota\030\005 \001(\013" - + "2+.google.analytics.admin.v1alpha.Access" - + "Quota\"Q\n\021GetAccountRequest\022<\n\004name\030\001 \001(\t" - + "B.\342A\001\002\372A\'\n%analyticsadmin.googleapis.com" - + "/Account\"R\n\023ListAccountsRequest\022\021\n\tpage_" - + "size\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\022\024\n\014show_d" - + "eleted\030\003 \001(\010\"j\n\024ListAccountsResponse\0229\n\010" - + "accounts\030\001 \003(\0132\'.google.analytics.admin." - + "v1alpha.Account\022\027\n\017next_page_token\030\002 \001(\t" - + "\"T\n\024DeleteAccountRequest\022<\n\004name\030\001 \001(\tB." - + "\342A\001\002\372A\'\n%analyticsadmin.googleapis.com/A" - + "ccount\"\215\001\n\024UpdateAccountRequest\022>\n\007accou" - + "nt\030\001 \001(\0132\'.google.analytics.admin.v1alph" - + "a.AccountB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.g" - + "oogle.protobuf.FieldMaskB\004\342A\001\002\"o\n\035Provis" - + "ionAccountTicketRequest\0228\n\007account\030\001 \001(\013" - + "2\'.google.analytics.admin.v1alpha.Accoun" - + "t\022\024\n\014redirect_uri\030\002 \001(\t\";\n\036ProvisionAcco" - + "untTicketResponse\022\031\n\021account_ticket_id\030\001" - + " \001(\t\"S\n\022GetPropertyRequest\022=\n\004name\030\001 \001(\t" - + "B/\342A\001\002\372A(\n&analyticsadmin.googleapis.com" - + "/Property\"j\n\025ListPropertiesRequest\022\024\n\006fi" - + "lter\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" - + "age_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001(\010\"o\n" - + "\026ListPropertiesResponse\022<\n\nproperties\030\001 " - + "\003(\0132(.google.analytics.admin.v1alpha.Pro" - + "perty\022\027\n\017next_page_token\030\002 \001(\t\"\220\001\n\025Updat" - + "ePropertyRequest\022@\n\010property\030\001 \001(\0132(.goo" - + "gle.analytics.admin.v1alpha.PropertyB\004\342A" - + "\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.protobu" - + "f.FieldMaskB\004\342A\001\002\"Y\n\025CreatePropertyReque" - + "st\022@\n\010property\030\001 \001(\0132(.google.analytics." - + "admin.v1alpha.PropertyB\004\342A\001\002\"V\n\025DeletePr" - + "opertyRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&an" - + "alyticsadmin.googleapis.com/Property\"S\n\022" - + "GetUserLinkRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A" - + "(\n&analyticsadmin.googleapis.com/UserLin" - + "k\"\233\001\n\030BatchGetUserLinksRequest\022?\n\006parent" - + "\030\001 \001(\tB/\342A\001\002\372A(\022&analyticsadmin.googleap" - + "is.com/UserLink\022>\n\005names\030\002 \003(\tB/\342A\001\002\372A(\n" - + "&analyticsadmin.googleapis.com/UserLink\"" - + "Y\n\031BatchGetUserLinksResponse\022<\n\nuser_lin" - + "ks\030\001 \003(\0132(.google.analytics.admin.v1alph" - + "a.UserLink\"~\n\024ListUserLinksRequest\022?\n\006pa" - + "rent\030\001 \001(\tB/\342A\001\002\372A(\022&analyticsadmin.goog" - + "leapis.com/UserLink\022\021\n\tpage_size\030\002 \001(\005\022\022" - + "\n\npage_token\030\003 \001(\t\"n\n\025ListUserLinksRespo" - + "nse\022<\n\nuser_links\030\001 \003(\0132(.google.analyti" - + "cs.admin.v1alpha.UserLink\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\"\177\n\025AuditUserLinksRequest\022?\n\006p" - + "arent\030\001 \001(\tB/\342A\001\002\372A(\022&analyticsadmin.goo" - + "gleapis.com/UserLink\022\021\n\tpage_size\030\002 \001(\005\022" - + "\022\n\npage_token\030\003 \001(\t\"t\n\026AuditUserLinksRes" - + "ponse\022A\n\nuser_links\030\001 \003(\0132-.google.analy" - + "tics.admin.v1alpha.AuditUserLink\022\027\n\017next" - + "_page_token\030\002 \001(\t\"\272\001\n\025CreateUserLinkRequ" - + "est\022?\n\006parent\030\001 \001(\tB/\342A\001\002\372A(\022&analyticsa" - + "dmin.googleapis.com/UserLink\022\035\n\017notify_n" - + "ew_user\030\002 \001(\010B\004\342A\001\001\022A\n\tuser_link\030\003 \001(\0132(" - + ".google.analytics.admin.v1alpha.UserLink" - + "B\004\342A\001\002\"\315\001\n\033BatchCreateUserLinksRequest\022?" - + "\n\006parent\030\001 \001(\tB/\342A\001\002\372A(\022&analyticsadmin." - + "googleapis.com/UserLink\022\036\n\020notify_new_us" - + "ers\030\002 \001(\010B\004\342A\001\001\022M\n\010requests\030\003 \003(\01325.goog" - + "le.analytics.admin.v1alpha.CreateUserLin" - + "kRequestB\004\342A\001\002\"\\\n\034BatchCreateUserLinksRe" - + "sponse\022<\n\nuser_links\030\001 \003(\0132(.google.anal" - + "ytics.admin.v1alpha.UserLink\"Z\n\025UpdateUs" - + "erLinkRequest\022A\n\tuser_link\030\001 \001(\0132(.googl" - + "e.analytics.admin.v1alpha.UserLinkB\004\342A\001\002" - + "\"\255\001\n\033BatchUpdateUserLinksRequest\022?\n\006pare" - + "nt\030\001 \001(\tB/\342A\001\002\372A(\022&analyticsadmin.google" - + "apis.com/UserLink\022M\n\010requests\030\002 \003(\01325.go" - + "ogle.analytics.admin.v1alpha.UpdateUserL" - + "inkRequestB\004\342A\001\002\"\\\n\034BatchUpdateUserLinks" - + "Response\022<\n\nuser_links\030\001 \003(\0132(.google.an" - + "alytics.admin.v1alpha.UserLink\"V\n\025Delete" - + "UserLinkRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&" - + "analyticsadmin.googleapis.com/UserLink\"\255" - + "\001\n\033BatchDeleteUserLinksRequest\022?\n\006parent" - + "\030\001 \001(\tB/\342A\001\002\372A(\022&analyticsadmin.googleap" - + "is.com/UserLink\022M\n\010requests\030\002 \003(\01325.goog" - + "le.analytics.admin.v1alpha.DeleteUserLin" - + "kRequestB\004\342A\001\002\"\253\001\n\031CreateFirebaseLinkReq" - + "uest\022C\n\006parent\030\001 \001(\tB3\342A\001\002\372A,\022*analytics" - + "admin.googleapis.com/FirebaseLink\022I\n\rfir" - + "ebase_link\030\002 \001(\0132,.google.analytics.admi" - + "n.v1alpha.FirebaseLinkB\004\342A\001\002\"^\n\031DeleteFi" - + "rebaseLinkRequest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A," - + "\n*analyticsadmin.googleapis.com/Firebase" - + "Link\"\206\001\n\030ListFirebaseLinksRequest\022C\n\006par" - + "ent\030\001 \001(\tB3\342A\001\002\372A,\022*analyticsadmin.googl" - + "eapis.com/FirebaseLink\022\021\n\tpage_size\030\002 \001(" - + "\005\022\022\n\npage_token\030\003 \001(\t\"z\n\031ListFirebaseLin" - + "ksResponse\022D\n\016firebase_links\030\001 \003(\0132,.goo" - + "gle.analytics.admin.v1alpha.FirebaseLink" - + "\022\027\n\017next_page_token\030\002 \001(\t\"]\n\027GetGlobalSi" - + "teTagRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+ana" - + "lyticsadmin.googleapis.com/GlobalSiteTag" - + "\"\260\001\n\032CreateGoogleAdsLinkRequest\022D\n\006paren" - + "t\030\001 \001(\tB4\342A\001\002\372A-\022+analyticsadmin.googlea" - + "pis.com/GoogleAdsLink\022L\n\017google_ads_link" - + "\030\002 \001(\0132-.google.analytics.admin.v1alpha." - + "GoogleAdsLinkB\004\342A\001\002\"\233\001\n\032UpdateGoogleAdsL" - + "inkRequest\022F\n\017google_ads_link\030\001 \001(\0132-.go" - + "ogle.analytics.admin.v1alpha.GoogleAdsLi" - + "nk\0225\n\013update_mask\030\002 \001(\0132\032.google.protobu" - + "f.FieldMaskB\004\342A\001\002\"`\n\032DeleteGoogleAdsLink" - + "Request\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+analytic" - + "sadmin.googleapis.com/GoogleAdsLink\"\210\001\n\031" - + "ListGoogleAdsLinksRequest\022D\n\006parent\030\001 \001(" - + "\tB4\342A\001\002\372A-\022+analyticsadmin.googleapis.co" - + "m/GoogleAdsLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" - + "ge_token\030\003 \001(\t\"~\n\032ListGoogleAdsLinksResp" - + "onse\022G\n\020google_ads_links\030\001 \003(\0132-.google." - + "analytics.admin.v1alpha.GoogleAdsLink\022\027\n" - + "\017next_page_token\030\002 \001(\t\"i\n\035GetDataSharing" - + "SettingsRequest\022H\n\004name\030\001 \001(\tB:\342A\001\002\372A3\n1" - + "analyticsadmin.googleapis.com/DataSharin" - + "gSettings\"D\n\033ListAccountSummariesRequest" - + "\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"" - + "\202\001\n\034ListAccountSummariesResponse\022I\n\021acco" - + "unt_summaries\030\001 \003(\0132..google.analytics.a" - + "dmin.v1alpha.AccountSummary\022\027\n\017next_page" - + "_token\030\002 \001(\t\"\210\001\n$AcknowledgeUserDataColl" - + "ectionRequest\022A\n\010property\030\001 \001(\tB/\342A\001\002\372A(" - + "\n&analyticsadmin.googleapis.com/Property" - + "\022\035\n\017acknowledgement\030\002 \001(\tB\004\342A\001\002\"\'\n%Ackno" - + "wledgeUserDataCollectionResponse\"\214\004\n Sea" - + "rchChangeHistoryEventsRequest\022?\n\007account" - + "\030\001 \001(\tB.\342A\001\002\372A\'\n%analyticsadmin.googleap" - + "is.com/Account\022A\n\010property\030\002 \001(\tB/\342A\001\001\372A" + + "o\032=google/analytics/admin/v1alpha/subpro" + + "perty_event_filter.proto\032\034google/api/ann" + + "otations.proto\032\027google/api/client.proto\032" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\032\033google/protobuf/emp" + + "ty.proto\032 google/protobuf/field_mask.pro" + + "to\032\037google/protobuf/timestamp.proto\"\342\004\n\026" + + "RunAccessReportRequest\022\016\n\006entity\030\001 \001(\t\022C" + + "\n\ndimensions\030\002 \003(\0132/.google.analytics.ad" + + "min.v1alpha.AccessDimension\022=\n\007metrics\030\003" + + " \003(\0132,.google.analytics.admin.v1alpha.Ac" + + "cessMetric\022D\n\013date_ranges\030\004 \003(\0132/.google" + + ".analytics.admin.v1alpha.AccessDateRange" + + "\022P\n\020dimension_filter\030\005 \001(\01326.google.anal" + + "ytics.admin.v1alpha.AccessFilterExpressi" + + "on\022M\n\rmetric_filter\030\006 \001(\01326.google.analy" + + "tics.admin.v1alpha.AccessFilterExpressio" + + "n\022\016\n\006offset\030\007 \001(\003\022\r\n\005limit\030\010 \001(\003\022\021\n\ttime" + + "_zone\030\t \001(\t\022@\n\torder_bys\030\n \003(\0132-.google." + + "analytics.admin.v1alpha.AccessOrderBy\022\033\n" + + "\023return_entity_quota\030\013 \001(\010\022\037\n\021include_al" + + "l_users\030\014 \001(\010B\004\342A\001\001\022\033\n\rexpand_groups\030\r \001" + + "(\010B\004\342A\001\001\"\277\002\n\027RunAccessReportResponse\022P\n\021" + + "dimension_headers\030\001 \003(\01325.google.analyti" + + "cs.admin.v1alpha.AccessDimensionHeader\022J" + + "\n\016metric_headers\030\002 \003(\01322.google.analytic" + + "s.admin.v1alpha.AccessMetricHeader\0227\n\004ro" + + "ws\030\003 \003(\0132).google.analytics.admin.v1alph" + + "a.AccessRow\022\021\n\trow_count\030\004 \001(\005\022:\n\005quota\030" + + "\005 \001(\0132+.google.analytics.admin.v1alpha.A" + + "ccessQuota\"Q\n\021GetAccountRequest\022<\n\004name\030" + + "\001 \001(\tB.\342A\001\002\372A\'\n%analyticsadmin.googleapi" + + "s.com/Account\"R\n\023ListAccountsRequest\022\021\n\t" + + "page_size\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\022\024\n\014s" + + "how_deleted\030\003 \001(\010\"j\n\024ListAccountsRespons" + + "e\0229\n\010accounts\030\001 \003(\0132\'.google.analytics.a" + + "dmin.v1alpha.Account\022\027\n\017next_page_token\030" + + "\002 \001(\t\"T\n\024DeleteAccountRequest\022<\n\004name\030\001 " + + "\001(\tB.\342A\001\002\372A\'\n%analyticsadmin.googleapis." + + "com/Account\"\215\001\n\024UpdateAccountRequest\022>\n\007" + + "account\030\001 \001(\0132\'.google.analytics.admin.v" + + "1alpha.AccountB\004\342A\001\002\0225\n\013update_mask\030\002 \001(" + + "\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"o\n\035P" + + "rovisionAccountTicketRequest\0228\n\007account\030" + + "\001 \001(\0132\'.google.analytics.admin.v1alpha.A" + + "ccount\022\024\n\014redirect_uri\030\002 \001(\t\";\n\036Provisio" + + "nAccountTicketResponse\022\031\n\021account_ticket" + + "_id\030\001 \001(\t\"S\n\022GetPropertyRequest\022=\n\004name\030" + + "\001 \001(\tB/\342A\001\002\372A(\n&analyticsadmin.googleapi" + + "s.com/Property\"j\n\025ListPropertiesRequest\022" + + "\024\n\006filter\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005" + + "\022\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001" + + "(\010\"o\n\026ListPropertiesResponse\022<\n\nproperti" + + "es\030\001 \003(\0132(.google.analytics.admin.v1alph" + + "a.Property\022\027\n\017next_page_token\030\002 \001(\t\"\220\001\n\025" + + "UpdatePropertyRequest\022@\n\010property\030\001 \001(\0132" + + "(.google.analytics.admin.v1alpha.Propert" + + "yB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.pr" + + "otobuf.FieldMaskB\004\342A\001\002\"Y\n\025CreateProperty" + + "Request\022@\n\010property\030\001 \001(\0132(.google.analy" + + "tics.admin.v1alpha.PropertyB\004\342A\001\002\"V\n\025Del" + + "etePropertyRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A" + "(\n&analyticsadmin.googleapis.com/Propert" - + "y\022V\n\rresource_type\030\003 \003(\01629.google.analyt" - + "ics.admin.v1alpha.ChangeHistoryResourceT" - + "ypeB\004\342A\001\001\022@\n\006action\030\004 \003(\0162*.google.analy" - + "tics.admin.v1alpha.ActionTypeB\004\342A\001\001\022\031\n\013a" - + "ctor_email\030\005 \003(\tB\004\342A\001\001\022>\n\024earliest_chang" - + "e_time\030\006 \001(\0132\032.google.protobuf.Timestamp" - + "B\004\342A\001\001\022<\n\022latest_change_time\030\007 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\004\342A\001\001\022\027\n\tpage_siz" - + "e\030\010 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\t \001(\tB\004\342A\001\001\"" - + "\217\001\n!SearchChangeHistoryEventsResponse\022Q\n" - + "\025change_history_events\030\001 \003(\01322.google.an" - + "alytics.admin.v1alpha.ChangeHistoryEvent" - + "\022\027\n\017next_page_token\030\002 \001(\t\"u\n#GetMeasurem" - + "entProtocolSecretRequest\022N\n\004name\030\001 \001(\tB@" - + "\342A\001\002\372A9\n7analyticsadmin.googleapis.com/M" - + "easurementProtocolSecret\"\340\001\n&CreateMeasu" - + "rementProtocolSecretRequest\022P\n\006parent\030\001 " - + "\001(\tB@\342A\001\002\372A9\0227analyticsadmin.googleapis." - + "com/MeasurementProtocolSecret\022d\n\033measure" - + "ment_protocol_secret\030\002 \001(\01329.google.anal" - + "ytics.admin.v1alpha.MeasurementProtocolS" - + "ecretB\004\342A\001\002\"x\n&DeleteMeasurementProtocol" - + "SecretRequest\022N\n\004name\030\001 \001(\tB@\342A\001\002\372A9\n7an" - + "alyticsadmin.googleapis.com/MeasurementP" - + "rotocolSecret\"\305\001\n&UpdateMeasurementProto" - + "colSecretRequest\022d\n\033measurement_protocol" - + "_secret\030\001 \001(\01329.google.analytics.admin.v" - + "1alpha.MeasurementProtocolSecretB\004\342A\001\002\0225" - + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" - + "eldMaskB\004\342A\001\002\"\240\001\n%ListMeasurementProtoco" - + "lSecretsRequest\022P\n\006parent\030\001 \001(\tB@\342A\001\002\372A9" - + "\0227analyticsadmin.googleapis.com/Measurem" - + "entProtocolSecret\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\242\001\n&ListMeasurementProt" - + "ocolSecretsResponse\022_\n\034measurement_proto" - + "col_secrets\030\001 \003(\01329.google.analytics.adm" - + "in.v1alpha.MeasurementProtocolSecret\022\027\n\017" - + "next_page_token\030\002 \001(\t\"\203\001\n*GetSKAdNetwork" - + "ConversionValueSchemaRequest\022U\n\004name\030\001 \001" - + "(\tBG\342A\001\002\372A@\n>analyticsadmin.googleapis.c" - + "om/SKAdNetworkConversionValueSchema\"\375\001\n-" - + "CreateSKAdNetworkConversionValueSchemaRe" - + "quest\022W\n\006parent\030\001 \001(\tBG\342A\001\002\372A@\022>analytic" - + "sadmin.googleapis.com/SKAdNetworkConvers" - + "ionValueSchema\022s\n#skadnetwork_conversion" - + "_value_schema\030\002 \001(\0132@.google.analytics.a" - + "dmin.v1alpha.SKAdNetworkConversionValueS" - + "chemaB\004\342A\001\002\"\206\001\n-DeleteSKAdNetworkConvers" - + "ionValueSchemaRequest\022U\n\004name\030\001 \001(\tBG\342A\001" - + "\002\372A@\n>analyticsadmin.googleapis.com/SKAd" - + "NetworkConversionValueSchema\"\333\001\n-UpdateS" - + "KAdNetworkConversionValueSchemaRequest\022s" - + "\n#skadnetwork_conversion_value_schema\030\001 " - + "\001(\0132@.google.analytics.admin.v1alpha.SKA" - + "dNetworkConversionValueSchemaB\004\342A\001\002\0225\n\013u" - + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" - + "MaskB\004\342A\001\002\"\256\001\n,ListSKAdNetworkConversion" - + "ValueSchemasRequest\022W\n\006parent\030\001 \001(\tBG\342A\001" - + "\002\372A@\022>analyticsadmin.googleapis.com/SKAd" - + "NetworkConversionValueSchema\022\021\n\tpage_siz" - + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\270\001\n-ListSKAd" - + "NetworkConversionValueSchemasResponse\022n\n" - + "$skadnetwork_conversion_value_schemas\030\001 " - + "\003(\0132@.google.analytics.admin.v1alpha.SKA" - + "dNetworkConversionValueSchema\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t\"m\n\037GetGoogleSignalsSettin" - + "gsRequest\022J\n\004name\030\001 \001(\tB<\342A\001\002\372A5\n3analyt" - + "icsadmin.googleapis.com/GoogleSignalsSet" - + "tings\"\271\001\n\"UpdateGoogleSignalsSettingsReq" - + "uest\022\\\n\027google_signals_settings\030\001 \001(\01325." - + "google.analytics.admin.v1alpha.GoogleSig" - + "nalsSettingsB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132" - + "\032.google.protobuf.FieldMaskB\004\342A\001\002\"\267\001\n\034Cr" - + "eateConversionEventRequest\022O\n\020conversion" - + "_event\030\001 \001(\0132/.google.analytics.admin.v1" - + "alpha.ConversionEventB\004\342A\001\002\022F\n\006parent\030\002 " - + "\001(\tB6\342A\001\002\372A/\022-analyticsadmin.googleapis." - + "com/ConversionEvent\"\246\001\n\034UpdateConversion" - + "EventRequest\022O\n\020conversion_event\030\001 \001(\0132/" - + ".google.analytics.admin.v1alpha.Conversi" - + "onEventB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.goo" - + "gle.protobuf.FieldMaskB\004\342A\001\002\"a\n\031GetConve" - + "rsionEventRequest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/" - + "\n-analyticsadmin.googleapis.com/Conversi" - + "onEvent\"d\n\034DeleteConversionEventRequest\022" - + "D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-analyticsadmin.g" - + "oogleapis.com/ConversionEvent\"\214\001\n\033ListCo" - + "nversionEventsRequest\022F\n\006parent\030\001 \001(\tB6\342" - + "A\001\002\372A/\022-analyticsadmin.googleapis.com/Co" - + "nversionEvent\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" - + "_token\030\003 \001(\t\"\203\001\n\034ListConversionEventsRes" - + "ponse\022J\n\021conversion_events\030\001 \003(\0132/.googl" - + "e.analytics.admin.v1alpha.ConversionEven" - + "t\022\027\n\017next_page_token\030\002 \001(\t\"}\n\'GetDisplay" - + "Video360AdvertiserLinkRequest\022R\n\004name\030\001 " - + "\001(\tBD\342A\001\002\372A=\n;analyticsadmin.googleapis." - + "com/DisplayVideo360AdvertiserLink\"\250\001\n)Li" - + "stDisplayVideo360AdvertiserLinksRequest\022" - + "T\n\006parent\030\001 \001(\tBD\342A\001\002\372A=\022;analyticsadmin" - + ".googleapis.com/DisplayVideo360Advertise" - + "rLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" - + " \001(\t\"\260\001\n*ListDisplayVideo360AdvertiserLi" - + "nksResponse\022i\n\"display_video_360_adverti" - + "ser_links\030\001 \003(\0132=.google.analytics.admin" - + ".v1alpha.DisplayVideo360AdvertiserLink\022\027" - + "\n\017next_page_token\030\002 \001(\t\"\362\001\n*CreateDispla" - + "yVideo360AdvertiserLinkRequest\022T\n\006parent" - + "\030\001 \001(\tBD\342A\001\002\372A=\022;analyticsadmin.googleap" - + "is.com/DisplayVideo360AdvertiserLink\022n\n!" - + "display_video_360_advertiser_link\030\002 \001(\0132" - + "=.google.analytics.admin.v1alpha.Display" - + "Video360AdvertiserLinkB\004\342A\001\002\"\200\001\n*DeleteD" - + "isplayVideo360AdvertiserLinkRequest\022R\n\004n" - + "ame\030\001 \001(\tBD\342A\001\002\372A=\n;analyticsadmin.googl" - + "eapis.com/DisplayVideo360AdvertiserLink\"" - + "\315\001\n*UpdateDisplayVideo360AdvertiserLinkR" - + "equest\022h\n!display_video_360_advertiser_l" - + "ink\030\001 \001(\0132=.google.analytics.admin.v1alp" - + "ha.DisplayVideo360AdvertiserLink\0225\n\013upda" - + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" - + "kB\004\342A\001\002\"\215\001\n/GetDisplayVideo360Advertiser" - + "LinkProposalRequest\022Z\n\004name\030\001 \001(\tBL\342A\001\002\372" - + "AE\nCanalyticsadmin.googleapis.com/Displa" - + "yVideo360AdvertiserLinkProposal\"\270\001\n1List" - + "DisplayVideo360AdvertiserLinkProposalsRe" - + "quest\022\\\n\006parent\030\001 \001(\tBL\342A\001\002\372AE\022Canalytic" - + "sadmin.googleapis.com/DisplayVideo360Adv" - + "ertiserLinkProposal\022\021\n\tpage_size\030\002 \001(\005\022\022" - + "\n\npage_token\030\003 \001(\t\"\311\001\n2ListDisplayVideo3" - + "60AdvertiserLinkProposalsResponse\022z\n+dis" - + "play_video_360_advertiser_link_proposals" - + "\030\001 \003(\0132E.google.analytics.admin.v1alpha." - + "DisplayVideo360AdvertiserLinkProposal\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\223\002\n2CreateDisplay" - + "Video360AdvertiserLinkProposalRequest\022\\\n" - + "\006parent\030\001 \001(\tBL\342A\001\002\372AE\022Canalyticsadmin.g" - + "oogleapis.com/DisplayVideo360AdvertiserL" - + "inkProposal\022\177\n*display_video_360_adverti" - + "ser_link_proposal\030\002 \001(\0132E.google.analyti" - + "cs.admin.v1alpha.DisplayVideo360Advertis" - + "erLinkProposalB\004\342A\001\002\"\220\001\n2DeleteDisplayVi" - + "deo360AdvertiserLinkProposalRequest\022Z\n\004n" - + "ame\030\001 \001(\tBL\342A\001\002\372AE\nCanalyticsadmin.googl" - + "eapis.com/DisplayVideo360AdvertiserLinkP" - + "roposal\"\221\001\n3ApproveDisplayVideo360Advert" - + "iserLinkProposalRequest\022Z\n\004name\030\001 \001(\tBL\342" - + "A\001\002\372AE\nCanalyticsadmin.googleapis.com/Di" - + "splayVideo360AdvertiserLinkProposal\"\240\001\n4" - + "ApproveDisplayVideo360AdvertiserLinkProp" - + "osalResponse\022h\n!display_video_360_advert" - + "iser_link\030\001 \001(\0132=.google.analytics.admin" - + ".v1alpha.DisplayVideo360AdvertiserLink\"\220" - + "\001\n2CancelDisplayVideo360AdvertiserLinkPr" - + "oposalRequest\022Z\n\004name\030\001 \001(\tBL\342A\001\002\372AE\nCan" - + "alyticsadmin.googleapis.com/DisplayVideo" - + "360AdvertiserLinkProposal\"c\n\032GetSearchAd" - + "s360LinkRequest\022E\n\004name\030\001 \001(\tB7\342A\001\002\372A0\n." - + "analyticsadmin.googleapis.com/SearchAds3" - + "60Link\"\216\001\n\034ListSearchAds360LinksRequest\022" - + "G\n\006parent\030\001 \001(\tB7\342A\001\002\372A0\022.analyticsadmin" - + ".googleapis.com/SearchAds360Link\022\021\n\tpage" - + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\210\001\n\035List" - + "SearchAds360LinksResponse\022N\n\024search_ads_" - + "360_links\030\001 \003(\01320.google.analytics.admin" - + ".v1alpha.SearchAds360Link\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\"\275\001\n\035CreateSearchAds360LinkReq" - + "uest\022G\n\006parent\030\001 \001(\tB7\342A\001\002\372A0\022.analytics" - + "admin.googleapis.com/SearchAds360Link\022S\n" - + "\023search_ads_360_link\030\002 \001(\01320.google.anal" - + "ytics.admin.v1alpha.SearchAds360LinkB\004\342A" - + "\001\002\"f\n\035DeleteSearchAds360LinkRequest\022E\n\004n" - + "ame\030\001 \001(\tB7\342A\001\002\372A0\n.analyticsadmin.googl" - + "eapis.com/SearchAds360Link\"\245\001\n\035UpdateSea" - + "rchAds360LinkRequest\022M\n\023search_ads_360_l" - + "ink\030\001 \001(\01320.google.analytics.admin.v1alp" - + "ha.SearchAds360Link\0225\n\013update_mask\030\002 \001(\013" - + "2\032.google.protobuf.FieldMaskB\004\342A\001\002\"\267\001\n\034C" - + "reateCustomDimensionRequest\022F\n\006parent\030\001 " - + "\001(\tB6\342A\001\002\372A/\022-analyticsadmin.googleapis." - + "com/CustomDimension\022O\n\020custom_dimension\030" - + "\002 \001(\0132/.google.analytics.admin.v1alpha.C" - + "ustomDimensionB\004\342A\001\002\"\240\001\n\034UpdateCustomDim" - + "ensionRequest\022I\n\020custom_dimension\030\001 \001(\0132" - + "/.google.analytics.admin.v1alpha.CustomD" - + "imension\0225\n\013update_mask\030\002 \001(\0132\032.google.p" - + "rotobuf.FieldMaskB\004\342A\001\002\"\214\001\n\033ListCustomDi" - + "mensionsRequest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/" - + "\022-analyticsadmin.googleapis.com/CustomDi" - + "mension\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" - + "\030\003 \001(\t\"\203\001\n\034ListCustomDimensionsResponse\022" - + "J\n\021custom_dimensions\030\001 \003(\0132/.google.anal" - + "ytics.admin.v1alpha.CustomDimension\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\"e\n\035ArchiveCustomDim" - + "ensionRequest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-an" - + "alyticsadmin.googleapis.com/CustomDimens" - + "ion\"a\n\031GetCustomDimensionRequest\022D\n\004name" - + "\030\001 \001(\tB6\342A\001\002\372A/\n-analyticsadmin.googleap" - + "is.com/CustomDimension\"\253\001\n\031CreateCustomM" - + "etricRequest\022C\n\006parent\030\001 \001(\tB3\342A\001\002\372A,\022*a" - + "nalyticsadmin.googleapis.com/CustomMetri" - + "c\022I\n\rcustom_metric\030\002 \001(\0132,.google.analyt" - + "ics.admin.v1alpha.CustomMetricB\004\342A\001\002\"\227\001\n" - + "\031UpdateCustomMetricRequest\022C\n\rcustom_met" - + "ric\030\001 \001(\0132,.google.analytics.admin.v1alp" - + "ha.CustomMetric\0225\n\013update_mask\030\002 \001(\0132\032.g" - + "oogle.protobuf.FieldMaskB\004\342A\001\002\"\206\001\n\030ListC" - + "ustomMetricsRequest\022C\n\006parent\030\001 \001(\tB3\342A\001" - + "\002\372A,\022*analyticsadmin.googleapis.com/Cust" - + "omMetric\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" - + "n\030\003 \001(\t\"z\n\031ListCustomMetricsResponse\022D\n\016" - + "custom_metrics\030\001 \003(\0132,.google.analytics." - + "admin.v1alpha.CustomMetric\022\027\n\017next_page_" - + "token\030\002 \001(\t\"_\n\032ArchiveCustomMetricReques" - + "t\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*analyticsadmin" - + ".googleapis.com/CustomMetric\"[\n\026GetCusto" - + "mMetricRequest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*a" - + "nalyticsadmin.googleapis.com/CustomMetri" - + "c\"m\n\037GetDataRetentionSettingsRequest\022J\n\004" + + "y\"\253\001\n\031CreateFirebaseLinkRequest\022C\n\006paren" + + "t\030\001 \001(\tB3\342A\001\002\372A,\022*analyticsadmin.googlea" + + "pis.com/FirebaseLink\022I\n\rfirebase_link\030\002 " + + "\001(\0132,.google.analytics.admin.v1alpha.Fir" + + "ebaseLinkB\004\342A\001\002\"^\n\031DeleteFirebaseLinkReq" + + "uest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*analyticsad" + + "min.googleapis.com/FirebaseLink\"\206\001\n\030List" + + "FirebaseLinksRequest\022C\n\006parent\030\001 \001(\tB3\342A" + + "\001\002\372A,\022*analyticsadmin.googleapis.com/Fir" + + "ebaseLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" + + "en\030\003 \001(\t\"z\n\031ListFirebaseLinksResponse\022D\n" + + "\016firebase_links\030\001 \003(\0132,.google.analytics" + + ".admin.v1alpha.FirebaseLink\022\027\n\017next_page" + + "_token\030\002 \001(\t\"]\n\027GetGlobalSiteTagRequest\022" + + "B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+analyticsadmin.g" + + "oogleapis.com/GlobalSiteTag\"\260\001\n\032CreateGo" + + "ogleAdsLinkRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002" + + "\372A-\022+analyticsadmin.googleapis.com/Googl" + + "eAdsLink\022L\n\017google_ads_link\030\002 \001(\0132-.goog" + + "le.analytics.admin.v1alpha.GoogleAdsLink" + + "B\004\342A\001\002\"\233\001\n\032UpdateGoogleAdsLinkRequest\022F\n" + + "\017google_ads_link\030\001 \001(\0132-.google.analytic" + + "s.admin.v1alpha.GoogleAdsLink\0225\n\013update_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004" + + "\342A\001\002\"`\n\032DeleteGoogleAdsLinkRequest\022B\n\004na" + + "me\030\001 \001(\tB4\342A\001\002\372A-\n+analyticsadmin.google" + + "apis.com/GoogleAdsLink\"\210\001\n\031ListGoogleAds" + + "LinksRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\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\"i\n\035GetDataSharingSettingsReque" + + "st\022H\n\004name\030\001 \001(\tB:\342A\001\002\372A3\n1analyticsadmi" + + "n.googleapis.com/DataSharingSettings\"D\n\033" + + "ListAccountSummariesRequest\022\021\n\tpage_size" + + "\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"\202\001\n\034ListAccou" + + "ntSummariesResponse\022I\n\021account_summaries" + + "\030\001 \003(\0132..google.analytics.admin.v1alpha." + + "AccountSummary\022\027\n\017next_page_token\030\002 \001(\t\"" + + "\210\001\n$AcknowledgeUserDataCollectionRequest" + + "\022A\n\010property\030\001 \001(\tB/\342A\001\002\372A(\n&analyticsad" + + "min.googleapis.com/Property\022\035\n\017acknowled" + + "gement\030\002 \001(\tB\004\342A\001\002\"\'\n%AcknowledgeUserDat" + + "aCollectionResponse\"\214\004\n SearchChangeHist" + + "oryEventsRequest\022?\n\007account\030\001 \001(\tB.\342A\001\002\372" + + "A\'\n%analyticsadmin.googleapis.com/Accoun" + + "t\022A\n\010property\030\002 \001(\tB/\342A\001\001\372A(\n&analyticsa" + + "dmin.googleapis.com/Property\022V\n\rresource" + + "_type\030\003 \003(\01629.google.analytics.admin.v1a" + + "lpha.ChangeHistoryResourceTypeB\004\342A\001\001\022@\n\006" + + "action\030\004 \003(\0162*.google.analytics.admin.v1" + + "alpha.ActionTypeB\004\342A\001\001\022\031\n\013actor_email\030\005 " + + "\003(\tB\004\342A\001\001\022>\n\024earliest_change_time\030\006 \001(\0132" + + "\032.google.protobuf.TimestampB\004\342A\001\001\022<\n\022lat" + + "est_change_time\030\007 \001(\0132\032.google.protobuf." + + "TimestampB\004\342A\001\001\022\027\n\tpage_size\030\010 \001(\005B\004\342A\001\001" + + "\022\030\n\npage_token\030\t \001(\tB\004\342A\001\001\"\217\001\n!SearchCha" + + "ngeHistoryEventsResponse\022Q\n\025change_histo" + + "ry_events\030\001 \003(\01322.google.analytics.admin" + + ".v1alpha.ChangeHistoryEvent\022\027\n\017next_page" + + "_token\030\002 \001(\t\"u\n#GetMeasurementProtocolSe" + + "cretRequest\022N\n\004name\030\001 \001(\tB@\342A\001\002\372A9\n7anal" + + "yticsadmin.googleapis.com/MeasurementPro" + + "tocolSecret\"\340\001\n&CreateMeasurementProtoco" + + "lSecretRequest\022P\n\006parent\030\001 \001(\tB@\342A\001\002\372A9\022" + + "7analyticsadmin.googleapis.com/Measureme" + + "ntProtocolSecret\022d\n\033measurement_protocol" + + "_secret\030\002 \001(\01329.google.analytics.admin.v" + + "1alpha.MeasurementProtocolSecretB\004\342A\001\002\"x" + + "\n&DeleteMeasurementProtocolSecretRequest" + + "\022N\n\004name\030\001 \001(\tB@\342A\001\002\372A9\n7analyticsadmin." + + "googleapis.com/MeasurementProtocolSecret" + + "\"\305\001\n&UpdateMeasurementProtocolSecretRequ" + + "est\022d\n\033measurement_protocol_secret\030\001 \001(\013" + + "29.google.analytics.admin.v1alpha.Measur" + + "ementProtocolSecretB\004\342A\001\002\0225\n\013update_mask" + + "\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002" + + "\"\240\001\n%ListMeasurementProtocolSecretsReque" + + "st\022P\n\006parent\030\001 \001(\tB@\342A\001\002\372A9\0227analyticsad" + + "min.googleapis.com/MeasurementProtocolSe" + + "cret\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\"\242\001\n&ListMeasurementProtocolSecretsRe" + + "sponse\022_\n\034measurement_protocol_secrets\030\001" + + " \003(\01329.google.analytics.admin.v1alpha.Me" + + "asurementProtocolSecret\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"\203\001\n*GetSKAdNetworkConversionVal" + + "ueSchemaRequest\022U\n\004name\030\001 \001(\tBG\342A\001\002\372A@\n>" + + "analyticsadmin.googleapis.com/SKAdNetwor" + + "kConversionValueSchema\"\375\001\n-CreateSKAdNet" + + "workConversionValueSchemaRequest\022W\n\006pare" + + "nt\030\001 \001(\tBG\342A\001\002\372A@\022>analyticsadmin.google" + + "apis.com/SKAdNetworkConversionValueSchem" + + "a\022s\n#skadnetwork_conversion_value_schema" + + "\030\002 \001(\0132@.google.analytics.admin.v1alpha." + + "SKAdNetworkConversionValueSchemaB\004\342A\001\002\"\206" + + "\001\n-DeleteSKAdNetworkConversionValueSchem" + + "aRequest\022U\n\004name\030\001 \001(\tBG\342A\001\002\372A@\n>analyti" + + "csadmin.googleapis.com/SKAdNetworkConver" + + "sionValueSchema\"\333\001\n-UpdateSKAdNetworkCon" + + "versionValueSchemaRequest\022s\n#skadnetwork" + + "_conversion_value_schema\030\001 \001(\0132@.google." + + "analytics.admin.v1alpha.SKAdNetworkConve" + + "rsionValueSchemaB\004\342A\001\002\0225\n\013update_mask\030\002 " + + "\001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"\256\001" + + "\n,ListSKAdNetworkConversionValueSchemasR" + + "equest\022W\n\006parent\030\001 \001(\tBG\342A\001\002\372A@\022>analyti" + + "csadmin.googleapis.com/SKAdNetworkConver" + + "sionValueSchema\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + + "ge_token\030\003 \001(\t\"\270\001\n-ListSKAdNetworkConver" + + "sionValueSchemasResponse\022n\n$skadnetwork_" + + "conversion_value_schemas\030\001 \003(\0132@.google." + + "analytics.admin.v1alpha.SKAdNetworkConve" + + "rsionValueSchema\022\027\n\017next_page_token\030\002 \001(" + + "\t\"m\n\037GetGoogleSignalsSettingsRequest\022J\n\004" + "name\030\001 \001(\tB<\342A\001\002\372A5\n3analyticsadmin.goog" - + "leapis.com/DataRetentionSettings\"\271\001\n\"Upd" - + "ateDataRetentionSettingsRequest\022\\\n\027data_" - + "retention_settings\030\001 \001(\01325.google.analyt" - + "ics.admin.v1alpha.DataRetentionSettingsB" + + "leapis.com/GoogleSignalsSettings\"\271\001\n\"Upd" + + "ateGoogleSignalsSettingsRequest\022\\\n\027googl" + + "e_signals_settings\030\001 \001(\01325.google.analyt" + + "ics.admin.v1alpha.GoogleSignalsSettingsB" + "\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.prot" - + "obuf.FieldMaskB\004\342A\001\002\"\243\001\n\027CreateDataStrea" - + "mRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\022(analy" - + "ticsadmin.googleapis.com/DataStream\022E\n\013d" - + "ata_stream\030\002 \001(\0132*.google.analytics.admi" - + "n.v1alpha.DataStreamB\004\342A\001\002\"Z\n\027DeleteData" - + "StreamRequest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(an" - + "alyticsadmin.googleapis.com/DataStream\"\221" - + "\001\n\027UpdateDataStreamRequest\022?\n\013data_strea", - "m\030\001 \001(\0132*.google.analytics.admin.v1alpha" - + ".DataStream\0225\n\013update_mask\030\002 \001(\0132\032.googl" - + "e.protobuf.FieldMaskB\004\342A\001\002\"\202\001\n\026ListDataS" - + "treamsRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\022(" - + "analyticsadmin.googleapis.com/DataStream" + + "obuf.FieldMaskB\004\342A\001\002\"\267\001\n\034CreateConversio" + + "nEventRequest\022O\n\020conversion_event\030\001 \001(\0132" + + "/.google.analytics.admin.v1alpha.Convers" + + "ionEventB\004\342A\001\002\022F\n\006parent\030\002 \001(\tB6\342A\001\002\372A/\022" + + "-analyticsadmin.googleapis.com/Conversio" + + "nEvent\"\246\001\n\034UpdateConversionEventRequest\022" + + "O\n\020conversion_event\030\001 \001(\0132/.google.analy" + + "tics.admin.v1alpha.ConversionEventB\004\342A\001\002" + + "\0225\n\013update_mask\030\002 \001(\0132\032.google.protobuf." + + "FieldMaskB\004\342A\001\002\"a\n\031GetConversionEventReq" + + "uest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-analyticsad" + + "min.googleapis.com/ConversionEvent\"d\n\034De" + + "leteConversionEventRequest\022D\n\004name\030\001 \001(\t" + + "B6\342A\001\002\372A/\n-analyticsadmin.googleapis.com" + + "/ConversionEvent\"\214\001\n\033ListConversionEvent" + + "sRequest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analy" + + "ticsadmin.googleapis.com/ConversionEvent" + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" - + "t\n\027ListDataStreamsResponse\022@\n\014data_strea" - + "ms\030\001 \003(\0132*.google.analytics.admin.v1alph" - + "a.DataStream\022\027\n\017next_page_token\030\002 \001(\t\"W\n" - + "\024GetDataStreamRequest\022?\n\004name\030\001 \001(\tB1\342A\001" - + "\002\372A*\n(analyticsadmin.googleapis.com/Data" - + "Stream\"S\n\022GetAudienceRequest\022=\n\004name\030\001 \001" - + "(\tB/\342A\001\002\372A(\n&analyticsadmin.googleapis.c" - + "om/Audience\"~\n\024ListAudiencesRequest\022?\n\006p" - + "arent\030\001 \001(\tB/\342A\001\002\372A(\022&analyticsadmin.goo" - + "gleapis.com/Audience\022\021\n\tpage_size\030\002 \001(\005\022" - + "\022\n\npage_token\030\003 \001(\t\"m\n\025ListAudiencesResp" - + "onse\022;\n\taudiences\030\001 \003(\0132(.google.analyti" - + "cs.admin.v1alpha.Audience\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\"\232\001\n\025CreateAudienceRequest\022?\n\006" - + "parent\030\001 \001(\tB/\342A\001\002\372A(\022&analyticsadmin.go" - + "ogleapis.com/Audience\022@\n\010audience\030\002 \001(\0132" - + "(.google.analytics.admin.v1alpha.Audienc" - + "eB\004\342A\001\002\"\220\001\n\025UpdateAudienceRequest\022@\n\010aud" - + "ience\030\001 \001(\0132(.google.analytics.admin.v1a" - + "lpha.AudienceB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\013" - + "2\032.google.protobuf.FieldMaskB\004\342A\001\002\"W\n\026Ar" - + "chiveAudienceRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002" - + "\372A(\022&analyticsadmin.googleapis.com/Audie" - + "nce\"i\n\035GetAttributionSettingsRequest\022H\n\004" - + "name\030\001 \001(\tB:\342A\001\002\372A3\n1analyticsadmin.goog" - + "leapis.com/AttributionSettings\"\262\001\n Updat" - + "eAttributionSettingsRequest\022W\n\024attributi" - + "on_settings\030\001 \001(\01323.google.analytics.adm" - + "in.v1alpha.AttributionSettingsB\004\342A\001\002\0225\n\013" - + "update_mask\030\002 \001(\0132\032.google.protobuf.Fiel" - + "dMaskB\004\342A\001\002\"]\n\027GetAccessBindingRequest\022B" - + "\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+analyticsadmin.go" - + "ogleapis.com/AccessBinding\"\252\001\n\035BatchGetA" + + "\203\001\n\034ListConversionEventsResponse\022J\n\021conv" + + "ersion_events\030\001 \003(\0132/.google.analytics.a" + + "dmin.v1alpha.ConversionEvent\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"}\n\'GetDisplayVideo360Adver" + + "tiserLinkRequest\022R\n\004name\030\001 \001(\tBD\342A\001\002\372A=\n" + + ";analyticsadmin.googleapis.com/DisplayVi" + + "deo360AdvertiserLink\"\250\001\n)ListDisplayVide" + + "o360AdvertiserLinksRequest\022T\n\006parent\030\001 \001" + + "(\tBD\342A\001\002\372A=\022;analyticsadmin.googleapis.c" + + "om/DisplayVideo360AdvertiserLink\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\260\001\n*List" + + "DisplayVideo360AdvertiserLinksResponse\022i" + + "\n\"display_video_360_advertiser_links\030\001 \003" + + "(\0132=.google.analytics.admin.v1alpha.Disp" + + "layVideo360AdvertiserLink\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"\362\001\n*CreateDisplayVideo360Adve" + + "rtiserLinkRequest\022T\n\006parent\030\001 \001(\tBD\342A\001\002\372" + + "A=\022;analyticsadmin.googleapis.com/Displa" + + "yVideo360AdvertiserLink\022n\n!display_video" + + "_360_advertiser_link\030\002 \001(\0132=.google.anal" + + "ytics.admin.v1alpha.DisplayVideo360Adver" + + "tiserLinkB\004\342A\001\002\"\200\001\n*DeleteDisplayVideo36" + + "0AdvertiserLinkRequest\022R\n\004name\030\001 \001(\tBD\342A" + + "\001\002\372A=\n;analyticsadmin.googleapis.com/Dis" + + "playVideo360AdvertiserLink\"\315\001\n*UpdateDis" + + "playVideo360AdvertiserLinkRequest\022h\n!dis" + + "play_video_360_advertiser_link\030\001 \001(\0132=.g" + + "oogle.analytics.admin.v1alpha.DisplayVid" + + "eo360AdvertiserLink\0225\n\013update_mask\030\002 \001(\013" + + "2\032.google.protobuf.FieldMaskB\004\342A\001\002\"\215\001\n/G" + + "etDisplayVideo360AdvertiserLinkProposalR" + + "equest\022Z\n\004name\030\001 \001(\tBL\342A\001\002\372AE\nCanalytics" + + "admin.googleapis.com/DisplayVideo360Adve" + + "rtiserLinkProposal\"\270\001\n1ListDisplayVideo3" + + "60AdvertiserLinkProposalsRequest\022\\\n\006pare" + + "nt\030\001 \001(\tBL\342A\001\002\372AE\022Canalyticsadmin.google" + + "apis.com/DisplayVideo360AdvertiserLinkPr" + + "oposal\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" + + "\003 \001(\t\"\311\001\n2ListDisplayVideo360AdvertiserL" + + "inkProposalsResponse\022z\n+display_video_36" + + "0_advertiser_link_proposals\030\001 \003(\0132E.goog" + + "le.analytics.admin.v1alpha.DisplayVideo3" + + "60AdvertiserLinkProposal\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"\223\002\n2CreateDisplayVideo360Adver" + + "tiserLinkProposalRequest\022\\\n\006parent\030\001 \001(\t" + + "BL\342A\001\002\372AE\022Canalyticsadmin.googleapis.com" + + "/DisplayVideo360AdvertiserLinkProposal\022\177" + + "\n*display_video_360_advertiser_link_prop" + + "osal\030\002 \001(\0132E.google.analytics.admin.v1al" + + "pha.DisplayVideo360AdvertiserLinkProposa" + + "lB\004\342A\001\002\"\220\001\n2DeleteDisplayVideo360Adverti" + + "serLinkProposalRequest\022Z\n\004name\030\001 \001(\tBL\342A" + + "\001\002\372AE\nCanalyticsadmin.googleapis.com/Dis" + + "playVideo360AdvertiserLinkProposal\"\221\001\n3A" + + "pproveDisplayVideo360AdvertiserLinkPropo" + + "salRequest\022Z\n\004name\030\001 \001(\tBL\342A\001\002\372AE\nCanaly" + + "ticsadmin.googleapis.com/DisplayVideo360" + + "AdvertiserLinkProposal\"\240\001\n4ApproveDispla" + + "yVideo360AdvertiserLinkProposalResponse\022" + + "h\n!display_video_360_advertiser_link\030\001 \001" + + "(\0132=.google.analytics.admin.v1alpha.Disp" + + "layVideo360AdvertiserLink\"\220\001\n2CancelDisp" + + "layVideo360AdvertiserLinkProposalRequest" + + "\022Z\n\004name\030\001 \001(\tBL\342A\001\002\372AE\nCanalyticsadmin." + + "googleapis.com/DisplayVideo360Advertiser" + + "LinkProposal\"c\n\032GetSearchAds360LinkReque" + + "st\022E\n\004name\030\001 \001(\tB7\342A\001\002\372A0\n.analyticsadmi" + + "n.googleapis.com/SearchAds360Link\"\216\001\n\034Li" + + "stSearchAds360LinksRequest\022G\n\006parent\030\001 \001" + + "(\tB7\342A\001\002\372A0\022.analyticsadmin.googleapis.c" + + "om/SearchAds360Link\022\021\n\tpage_size\030\002 \001(\005\022\022" + + "\n\npage_token\030\003 \001(\t\"\210\001\n\035ListSearchAds360L" + + "inksResponse\022N\n\024search_ads_360_links\030\001 \003" + + "(\01320.google.analytics.admin.v1alpha.Sear" + + "chAds360Link\022\027\n\017next_page_token\030\002 \001(\t\"\275\001" + + "\n\035CreateSearchAds360LinkRequest\022G\n\006paren" + + "t\030\001 \001(\tB7\342A\001\002\372A0\022.analyticsadmin.googlea" + + "pis.com/SearchAds360Link\022S\n\023search_ads_3" + + "60_link\030\002 \001(\01320.google.analytics.admin.v" + + "1alpha.SearchAds360LinkB\004\342A\001\002\"f\n\035DeleteS" + + "earchAds360LinkRequest\022E\n\004name\030\001 \001(\tB7\342A" + + "\001\002\372A0\n.analyticsadmin.googleapis.com/Sea" + + "rchAds360Link\"\245\001\n\035UpdateSearchAds360Link" + + "Request\022M\n\023search_ads_360_link\030\001 \001(\01320.g" + + "oogle.analytics.admin.v1alpha.SearchAds3" + + "60Link\0225\n\013update_mask\030\002 \001(\0132\032.google.pro" + + "tobuf.FieldMaskB\004\342A\001\002\"\267\001\n\034CreateCustomDi" + + "mensionRequest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022" + + "-analyticsadmin.googleapis.com/CustomDim" + + "ension\022O\n\020custom_dimension\030\002 \001(\0132/.googl" + + "e.analytics.admin.v1alpha.CustomDimensio" + + "nB\004\342A\001\002\"\240\001\n\034UpdateCustomDimensionRequest" + + "\022I\n\020custom_dimension\030\001 \001(\0132/.google.anal" + + "ytics.admin.v1alpha.CustomDimension\0225\n\013u" + + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + + "MaskB\004\342A\001\002\"\214\001\n\033ListCustomDimensionsReque" + + "st\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analyticsad" + + "min.googleapis.com/CustomDimension\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\203\001\n\034Li" + + "stCustomDimensionsResponse\022J\n\021custom_dim" + + "ensions\030\001 \003(\0132/.google.analytics.admin.v" + + "1alpha.CustomDimension\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"e\n\035ArchiveCustomDimensionRequest" + + "\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-analyticsadmin." + + "googleapis.com/CustomDimension\"a\n\031GetCus" + + "tomDimensionRequest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372" + + "A/\n-analyticsadmin.googleapis.com/Custom" + + "Dimension\"\253\001\n\031CreateCustomMetricRequest\022" + + "C\n\006parent\030\001 \001(\tB3\342A\001\002\372A,\022*analyticsadmin" + + ".googleapis.com/CustomMetric\022I\n\rcustom_m" + + "etric\030\002 \001(\0132,.google.analytics.admin.v1a" + + "lpha.CustomMetricB\004\342A\001\002\"\227\001\n\031UpdateCustom" + + "MetricRequest\022C\n\rcustom_metric\030\001 \001(\0132,.g" + + "oogle.analytics.admin.v1alpha.CustomMetr" + + "ic\0225\n\013update_mask\030\002 \001(\0132\032.google.protobu" + + "f.FieldMaskB\004\342A\001\002\"\206\001\n\030ListCustomMetricsR" + + "equest\022C\n\006parent\030\001 \001(\tB3\342A\001\002\372A,\022*analyti" + + "csadmin.googleapis.com/CustomMetric\022\021\n\tp" + + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"z\n\031Li" + + "stCustomMetricsResponse\022D\n\016custom_metric" + + "s\030\001 \003(\0132,.google.analytics.admin.v1alpha" + + ".CustomMetric\022\027\n\017next_page_token\030\002 \001(\t\"_" + + "\n\032ArchiveCustomMetricRequest\022A\n\004name\030\001 \001" + + "(\tB3\342A\001\002\372A,\n*analyticsadmin.googleapis.c" + + "om/CustomMetric\"[\n\026GetCustomMetricReques" + + "t\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*analyticsadmin" + + ".googleapis.com/CustomMetric\"m\n\037GetDataR" + + "etentionSettingsRequest\022J\n\004name\030\001 \001(\tB<\342" + + "A\001\002\372A5\n3analyticsadmin.googleapis.com/Da" + + "taRetentionSettings\"\271\001\n\"UpdateDataRetent" + + "ionSettingsRequest\022\\\n\027data_retention_set" + + "tings\030\001 \001(\01325.google.analytics.admin.v1a" + + "lpha.DataRetentionSettingsB\004\342A\001\002\0225\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "kB\004\342A\001\002\"\243\001\n\027CreateDataStreamRequest\022A\n\006p" + + "arent\030\001 \001(\tB1\342A\001\002\372A*\022(analyticsadmin.goo" + + "gleapis.com/DataStream\022E\n\013data_stream\030\002 " + + "\001(\0132*.google.analytics.admin.v1alpha.Dat" + + "aStreamB\004\342A\001\002\"Z\n\027DeleteDataStreamRequest" + + "\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(analyticsadmin." + + "googleapis.com/DataStream\"\221\001\n\027UpdateData" + + "StreamRequest\022?\n\013data_stream\030\001 \001(\0132*.goo" + + "gle.analytics.admin.v1alpha.DataStream\0225" + + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\004\342A\001\002\"\202\001\n\026ListDataStreamsRequest" + + "\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\022(analyticsadmi" + + "n.googleapis.com/DataStream\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"t\n\027ListDataSt" + + "reamsResponse\022@\n\014data_streams\030\001 \003(\0132*.go" + + "ogle.analytics.admin.v1alpha.DataStream\022" + + "\027\n\017next_page_token\030\002 \001(\t\"W\n\024GetDataStrea" + + "mRequest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(analyti" + + "csadmin.googleapis.com/DataStream\"S\n\022Get" + + "AudienceRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&" + + "analyticsadmin.googleapis.com/Audience\"~" + + "\n\024ListAudiencesRequest\022?\n\006parent\030\001 \001(\tB/" + + "\342A\001\002\372A(\022&analyticsadmin.googleapis.com/A" + + "udience\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\"m\n\025ListAudiencesResponse\022;\n\taudie" + + "nces\030\001 \003(\0132(.google.analytics.admin.v1al" + + "pha.Audience\022\027\n\017next_page_token\030\002 \001(\t\"\232\001" + + "\n\025CreateAudienceRequest\022?\n\006parent\030\001 \001(\tB" + + "/\342A\001\002\372A(\022&analyticsadmin.googleapis.com/" + + "Audience\022@\n\010audience\030\002 \001(\0132(.google.anal" + + "ytics.admin.v1alpha.AudienceB\004\342A\001\002\"\220\001\n\025U" + + "pdateAudienceRequest\022@\n\010audience\030\001 \001(\0132(" + + ".google.analytics.admin.v1alpha.Audience" + + "B\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.pro" + + "tobuf.FieldMaskB\004\342A\001\002\"W\n\026ArchiveAudience" + + "Request\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\022&analytic" + + "sadmin.googleapis.com/Audience\"i\n\035GetAtt" + + "ributionSettingsRequest\022H\n\004name\030\001 \001(\tB:\342" + + "A\001\002\372A3\n1analyticsadmin.googleapis.com/At" + + "tributionSettings\"\262\001\n UpdateAttributionS" + + "ettingsRequest\022W\n\024attribution_settings\030\001" + + " \001(\01323.google.analytics.admin.v1alpha.At" + + "tributionSettingsB\004\342A\001\002\0225\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"]" + + "\n\027GetAccessBindingRequest\022B\n\004name\030\001 \001(\tB" + + "4\342A\001\002\372A-\n+analyticsadmin.googleapis.com/" + + "AccessBinding\"\252\001\n\035BatchGetAccessBindings" + + "Request\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\022+analyt" + + "icsadmin.googleapis.com/AccessBinding\022C\n" + + "\005names\030\002 \003(\tB4\342A\001\002\372A-\n+analyticsadmin.go" + + "ogleapis.com/AccessBinding\"h\n\036BatchGetAc" + + "cessBindingsResponse\022F\n\017access_bindings\030" + + "\001 \003(\0132-.google.analytics.admin.v1alpha.A", + "ccessBinding\"\210\001\n\031ListAccessBindingsReque" + + "st\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\022+analyticsad" + + "min.googleapis.com/AccessBinding\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"}\n\032ListA" + + "ccessBindingsResponse\022F\n\017access_bindings" + + "\030\001 \003(\0132-.google.analytics.admin.v1alpha." + + "AccessBinding\022\027\n\017next_page_token\030\002 \001(\t\"\257" + + "\001\n\032CreateAccessBindingRequest\022D\n\006parent\030" + + "\001 \001(\tB4\342A\001\002\372A-\022+analyticsadmin.googleapi" + + "s.com/AccessBinding\022K\n\016access_binding\030\002 " + + "\001(\0132-.google.analytics.admin.v1alpha.Acc" + + "essBindingB\004\342A\001\002\"\274\001\n BatchCreateAccessBi" + + "ndingsRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\022+" + + "analyticsadmin.googleapis.com/AccessBind" + + "ing\022R\n\010requests\030\003 \003(\0132:.google.analytics" + + ".admin.v1alpha.CreateAccessBindingReques" + + "tB\004\342A\001\002\"k\n!BatchCreateAccessBindingsResp" + + "onse\022F\n\017access_bindings\030\001 \003(\0132-.google.a" + + "nalytics.admin.v1alpha.AccessBinding\"i\n\032" + + "UpdateAccessBindingRequest\022K\n\016access_bin" + + "ding\030\001 \001(\0132-.google.analytics.admin.v1al" + + "pha.AccessBindingB\004\342A\001\002\"\274\001\n BatchUpdateA" + "ccessBindingsRequest\022D\n\006parent\030\001 \001(\tB4\342A" + "\001\002\372A-\022+analyticsadmin.googleapis.com/Acc" - + "essBinding\022C\n\005names\030\002 \003(\tB4\342A\001\002\372A-\n+anal" - + "yticsadmin.googleapis.com/AccessBinding\"" - + "h\n\036BatchGetAccessBindingsResponse\022F\n\017acc" - + "ess_bindings\030\001 \003(\0132-.google.analytics.ad" - + "min.v1alpha.AccessBinding\"\210\001\n\031ListAccess" - + "BindingsRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-" - + "\022+analyticsadmin.googleapis.com/AccessBi" - + "nding\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" - + " \001(\t\"}\n\032ListAccessBindingsResponse\022F\n\017ac" - + "cess_bindings\030\001 \003(\0132-.google.analytics.a" - + "dmin.v1alpha.AccessBinding\022\027\n\017next_page_" - + "token\030\002 \001(\t\"\257\001\n\032CreateAccessBindingReque" - + "st\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\022+analyticsad" - + "min.googleapis.com/AccessBinding\022K\n\016acce" - + "ss_binding\030\002 \001(\0132-.google.analytics.admi" - + "n.v1alpha.AccessBindingB\004\342A\001\002\"\274\001\n BatchC" - + "reateAccessBindingsRequest\022D\n\006parent\030\001 \001" - + "(\tB4\342A\001\002\372A-\022+analyticsadmin.googleapis.c" - + "om/AccessBinding\022R\n\010requests\030\003 \003(\0132:.goo" - + "gle.analytics.admin.v1alpha.CreateAccess" - + "BindingRequestB\004\342A\001\002\"k\n!BatchCreateAcces" - + "sBindingsResponse\022F\n\017access_bindings\030\001 \003" - + "(\0132-.google.analytics.admin.v1alpha.Acce" - + "ssBinding\"i\n\032UpdateAccessBindingRequest\022" - + "K\n\016access_binding\030\001 \001(\0132-.google.analyti" - + "cs.admin.v1alpha.AccessBindingB\004\342A\001\002\"\274\001\n" - + " BatchUpdateAccessBindingsRequest\022D\n\006par" - + "ent\030\001 \001(\tB4\342A\001\002\372A-\022+analyticsadmin.googl" - + "eapis.com/AccessBinding\022R\n\010requests\030\002 \003(" - + "\0132:.google.analytics.admin.v1alpha.Updat" - + "eAccessBindingRequestB\004\342A\001\002\"k\n!BatchUpda" - + "teAccessBindingsResponse\022F\n\017access_bindi" - + "ngs\030\001 \003(\0132-.google.analytics.admin.v1alp" - + "ha.AccessBinding\"`\n\032DeleteAccessBindingR" - + "equest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+analytics" - + "admin.googleapis.com/AccessBinding\"\274\001\n B" - + "atchDeleteAccessBindingsRequest\022D\n\006paren" - + "t\030\001 \001(\tB4\342A\001\002\372A-\022+analyticsadmin.googlea" - + "pis.com/AccessBinding\022R\n\010requests\030\002 \003(\0132" - + ":.google.analytics.admin.v1alpha.DeleteA" - + "ccessBindingRequestB\004\342A\001\002\"\270\001\n\034CreateExpa" - + "ndedDataSetRequest\022F\n\006parent\030\001 \001(\tB6\342A\001\002" - + "\372A/\022-analyticsadmin.googleapis.com/Expan" - + "dedDataSet\022P\n\021expanded_data_set\030\002 \001(\0132/." - + "google.analytics.admin.v1alpha.ExpandedD" - + "ataSetB\004\342A\001\002\"\247\001\n\034UpdateExpandedDataSetRe" - + "quest\022P\n\021expanded_data_set\030\001 \001(\0132/.googl" - + "e.analytics.admin.v1alpha.ExpandedDataSe" - + "tB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.pr" - + "otobuf.FieldMaskB\004\342A\001\002\"d\n\034DeleteExpanded" - + "DataSetRequest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-a" - + "nalyticsadmin.googleapis.com/ExpandedDat" - + "aSet\"a\n\031GetExpandedDataSetRequest\022D\n\004nam" - + "e\030\001 \001(\tB6\342A\001\002\372A/\n-analyticsadmin.googlea" - + "pis.com/ExpandedDataSet\"\214\001\n\033ListExpanded" - + "DataSetsRequest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/" - + "\022-analyticsadmin.googleapis.com/Expanded" - + "DataSet\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" - + "\030\003 \001(\t\"\204\001\n\034ListExpandedDataSetsResponse\022" - + "K\n\022expanded_data_sets\030\001 \003(\0132/.google.ana" - + "lytics.admin.v1alpha.ExpandedDataSet\022\027\n\017" - + "next_page_token\030\002 \001(\t\"\253\001\n\031CreateChannelG" - + "roupRequest\022C\n\006parent\030\001 \001(\tB3\342A\001\002\372A,\022*an" - + "alyticsadmin.googleapis.com/ChannelGroup" - + "\022I\n\rchannel_group\030\002 \001(\0132,.google.analyti" - + "cs.admin.v1alpha.ChannelGroupB\004\342A\001\002\"\235\001\n\031" - + "UpdateChannelGroupRequest\022I\n\rchannel_gro" - + "up\030\001 \001(\0132,.google.analytics.admin.v1alph" - + "a.ChannelGroupB\004\342A\001\002\0225\n\013update_mask\030\002 \001(" - + "\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"^\n\031D" - + "eleteChannelGroupRequest\022A\n\004name\030\001 \001(\tB3" + + "essBinding\022R\n\010requests\030\002 \003(\0132:.google.an" + + "alytics.admin.v1alpha.UpdateAccessBindin" + + "gRequestB\004\342A\001\002\"k\n!BatchUpdateAccessBindi" + + "ngsResponse\022F\n\017access_bindings\030\001 \003(\0132-.g" + + "oogle.analytics.admin.v1alpha.AccessBind" + + "ing\"`\n\032DeleteAccessBindingRequest\022B\n\004nam" + + "e\030\001 \001(\tB4\342A\001\002\372A-\n+analyticsadmin.googlea" + + "pis.com/AccessBinding\"\274\001\n BatchDeleteAcc" + + "essBindingsRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002" + + "\372A-\022+analyticsadmin.googleapis.com/Acces" + + "sBinding\022R\n\010requests\030\002 \003(\0132:.google.anal" + + "ytics.admin.v1alpha.DeleteAccessBindingR" + + "equestB\004\342A\001\002\"\270\001\n\034CreateExpandedDataSetRe" + + "quest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analytic" + + "sadmin.googleapis.com/ExpandedDataSet\022P\n" + + "\021expanded_data_set\030\002 \001(\0132/.google.analyt" + + "ics.admin.v1alpha.ExpandedDataSetB\004\342A\001\002\"" + + "\247\001\n\034UpdateExpandedDataSetRequest\022P\n\021expa" + + "nded_data_set\030\001 \001(\0132/.google.analytics.a" + + "dmin.v1alpha.ExpandedDataSetB\004\342A\001\002\0225\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "askB\004\342A\001\002\"d\n\034DeleteExpandedDataSetReques" + + "t\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-analyticsadmin" + + ".googleapis.com/ExpandedDataSet\"a\n\031GetEx" + + "pandedDataSetRequest\022D\n\004name\030\001 \001(\tB6\342A\001\002" + + "\372A/\n-analyticsadmin.googleapis.com/Expan" + + "dedDataSet\"\214\001\n\033ListExpandedDataSetsReque" + + "st\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analyticsad" + + "min.googleapis.com/ExpandedDataSet\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\204\001\n\034Li" + + "stExpandedDataSetsResponse\022K\n\022expanded_d" + + "ata_sets\030\001 \003(\0132/.google.analytics.admin." + + "v1alpha.ExpandedDataSet\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"\253\001\n\031CreateChannelGroupRequest\022C" + + "\n\006parent\030\001 \001(\tB3\342A\001\002\372A,\022*analyticsadmin." + + "googleapis.com/ChannelGroup\022I\n\rchannel_g" + + "roup\030\002 \001(\0132,.google.analytics.admin.v1al" + + "pha.ChannelGroupB\004\342A\001\002\"\235\001\n\031UpdateChannel" + + "GroupRequest\022I\n\rchannel_group\030\001 \001(\0132,.go" + + "ogle.analytics.admin.v1alpha.ChannelGrou" + + "pB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.pr" + + "otobuf.FieldMaskB\004\342A\001\002\"^\n\031DeleteChannelG" + + "roupRequest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*anal" + + "yticsadmin.googleapis.com/ChannelGroup\"[" + + "\n\026GetChannelGroupRequest\022A\n\004name\030\001 \001(\tB3" + "\342A\001\002\372A,\n*analyticsadmin.googleapis.com/C" - + "hannelGroup\"[\n\026GetChannelGroupRequest\022A\n" - + "\004name\030\001 \001(\tB3\342A\001\002\372A,\n*analyticsadmin.goo" - + "gleapis.com/ChannelGroup\"\206\001\n\030ListChannel" - + "GroupsRequest\022C\n\006parent\030\001 \001(\tB3\342A\001\002\372A,\022*" - + "analyticsadmin.googleapis.com/ChannelGro" - + "up\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" - + "\t\"z\n\031ListChannelGroupsResponse\022D\n\016channe" - + "l_groups\030\001 \003(\0132,.google.analytics.admin." - + "v1alpha.ChannelGroup\022\027\n\017next_page_token\030" - + "\002 \001(\t\"T\n)SetAutomatedGa4ConfigurationOpt" - + "OutRequest\022\026\n\010property\030\001 \001(\tB\004\342A\001\002\022\017\n\007op" - + "t_out\030\002 \001(\010\",\n*SetAutomatedGa4Configurat" - + "ionOptOutResponse\"E\n+FetchAutomatedGa4Co" - + "nfigurationOptOutRequest\022\026\n\010property\030\001 \001" - + "(\tB\004\342A\001\002\"?\n,FetchAutomatedGa4Configurati" - + "onOptOutResponse\022\017\n\007opt_out\030\001 \001(\010\"[\n\026Get" - + "BigQueryLinkRequest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372" - + "A,\n*analyticsadmin.googleapis.com/BigQue" - + "ryLink\"\206\001\n\030ListBigQueryLinksRequest\022C\n\006p" - + "arent\030\001 \001(\tB3\342A\001\002\372A,\022*analyticsadmin.goo" - + "gleapis.com/BigQueryLink\022\021\n\tpage_size\030\002 " - + "\001(\005\022\022\n\npage_token\030\003 \001(\t\"z\n\031ListBigQueryL" - + "inksResponse\022D\n\016bigquery_links\030\001 \003(\0132,.g" - + "oogle.analytics.admin.v1alpha.BigQueryLi" - + "nk\022\027\n\017next_page_token\030\002 \001(\t\"y\n%GetEnhanc" - + "edMeasurementSettingsRequest\022P\n\004name\030\001 \001" - + "(\tBB\342A\001\002\372A;\n9analyticsadmin.googleapis.c" - + "om/EnhancedMeasurementSettings\"\313\001\n(Updat" - + "eEnhancedMeasurementSettingsRequest\022h\n\035e" - + "nhanced_measurement_settings\030\001 \001(\0132;.goo" - + "gle.analytics.admin.v1alpha.EnhancedMeas" - + "urementSettingsB\004\342A\001\002\0225\n\013update_mask\030\002 \001" - + "(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"\205\001\n" - + "\035CreateConnectedSiteTagRequest\022\020\n\010proper" - + "ty\030\001 \001(\t\022R\n\022connected_site_tag\030\002 \001(\01320.g" - + "oogle.analytics.admin.v1alpha.ConnectedS" - + "iteTagB\004\342A\001\002\" \n\036CreateConnectedSiteTagRe" - + "sponse\"A\n\035DeleteConnectedSiteTagRequest\022" - + "\020\n\010property\030\001 \001(\t\022\016\n\006tag_id\030\002 \001(\t\"0\n\034Lis" - + "tConnectedSiteTagsRequest\022\020\n\010property\030\001 " - + "\001(\t\"n\n\035ListConnectedSiteTagsResponse\022M\n\023" - + "connected_site_tags\030\001 \003(\01320.google.analy" - + "tics.admin.v1alpha.ConnectedSiteTag\"\247\001\n\030" - + "CreateAdSenseLinkRequest\022B\n\006parent\030\001 \001(\t" + + "hannelGroup\"\206\001\n\030ListChannelGroupsRequest" + + "\022C\n\006parent\030\001 \001(\tB3\342A\001\002\372A,\022*analyticsadmi" + + "n.googleapis.com/ChannelGroup\022\021\n\tpage_si" + + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"z\n\031ListChan" + + "nelGroupsResponse\022D\n\016channel_groups\030\001 \003(" + + "\0132,.google.analytics.admin.v1alpha.Chann" + + "elGroup\022\027\n\017next_page_token\030\002 \001(\t\"T\n)SetA" + + "utomatedGa4ConfigurationOptOutRequest\022\026\n" + + "\010property\030\001 \001(\tB\004\342A\001\002\022\017\n\007opt_out\030\002 \001(\010\"," + + "\n*SetAutomatedGa4ConfigurationOptOutResp" + + "onse\"E\n+FetchAutomatedGa4ConfigurationOp" + + "tOutRequest\022\026\n\010property\030\001 \001(\tB\004\342A\001\002\"?\n,F" + + "etchAutomatedGa4ConfigurationOptOutRespo" + + "nse\022\017\n\007opt_out\030\001 \001(\010\"[\n\026GetBigQueryLinkR" + + "equest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*analytics" + + "admin.googleapis.com/BigQueryLink\"\206\001\n\030Li" + + "stBigQueryLinksRequest\022C\n\006parent\030\001 \001(\tB3" + + "\342A\001\002\372A,\022*analyticsadmin.googleapis.com/B" + + "igQueryLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" + + "oken\030\003 \001(\t\"z\n\031ListBigQueryLinksResponse\022" + + "D\n\016bigquery_links\030\001 \003(\0132,.google.analyti" + + "cs.admin.v1alpha.BigQueryLink\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\"y\n%GetEnhancedMeasurement" + + "SettingsRequest\022P\n\004name\030\001 \001(\tBB\342A\001\002\372A;\n9" + + "analyticsadmin.googleapis.com/EnhancedMe" + + "asurementSettings\"\313\001\n(UpdateEnhancedMeas" + + "urementSettingsRequest\022h\n\035enhanced_measu" + + "rement_settings\030\001 \001(\0132;.google.analytics" + + ".admin.v1alpha.EnhancedMeasurementSettin" + + "gsB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.p" + + "rotobuf.FieldMaskB\004\342A\001\002\"m\n\037GetDataRedact" + + "ionSettingsRequest\022J\n\004name\030\001 \001(\tB<\342A\001\002\372A" + + "5\n3analyticsadmin.googleapis.com/DataRed" + + "actionSettings\"\271\001\n\"UpdateDataRedactionSe" + + "ttingsRequest\022\\\n\027data_redaction_settings" + + "\030\001 \001(\01325.google.analytics.admin.v1alpha." + + "DataRedactionSettingsB\004\342A\001\002\0225\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A" + + "\001\002\"\205\001\n\035CreateConnectedSiteTagRequest\022\020\n\010" + + "property\030\001 \001(\t\022R\n\022connected_site_tag\030\002 \001" + + "(\01320.google.analytics.admin.v1alpha.Conn" + + "ectedSiteTagB\004\342A\001\002\" \n\036CreateConnectedSit" + + "eTagResponse\"A\n\035DeleteConnectedSiteTagRe" + + "quest\022\020\n\010property\030\001 \001(\t\022\016\n\006tag_id\030\002 \001(\t\"" + + "0\n\034ListConnectedSiteTagsRequest\022\020\n\010prope" + + "rty\030\001 \001(\t\"n\n\035ListConnectedSiteTagsRespon" + + "se\022M\n\023connected_site_tags\030\001 \003(\01320.google" + + ".analytics.admin.v1alpha.ConnectedSiteTa" + + "g\"\247\001\n\030CreateAdSenseLinkRequest\022B\n\006parent" + + "\030\001 \001(\tB2\342A\001\002\372A+\022)analyticsadmin.googleap" + + "is.com/AdSenseLink\022G\n\014adsense_link\030\002 \001(\013" + + "2+.google.analytics.admin.v1alpha.AdSens" + + "eLinkB\004\342A\001\002\"Y\n\025GetAdSenseLinkRequest\022@\n\004" + + "name\030\001 \001(\tB2\342A\001\002\372A+\n)analyticsadmin.goog" + + "leapis.com/AdSenseLink\"\\\n\030DeleteAdSenseL" + + "inkRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)analy" + + "ticsadmin.googleapis.com/AdSenseLink\"\204\001\n" + + "\027ListAdSenseLinksRequest\022B\n\006parent\030\001 \001(\t" + "B2\342A\001\002\372A+\022)analyticsadmin.googleapis.com" - + "/AdSenseLink\022G\n\014adsense_link\030\002 \001(\0132+.goo" - + "gle.analytics.admin.v1alpha.AdSenseLinkB" - + "\004\342A\001\002\"Y\n\025GetAdSenseLinkRequest\022@\n\004name\030\001" - + " \001(\tB2\342A\001\002\372A+\n)analyticsadmin.googleapis" - + ".com/AdSenseLink\"\\\n\030DeleteAdSenseLinkReq" - + "uest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)analyticsad" - + "min.googleapis.com/AdSenseLink\"\204\001\n\027ListA" - + "dSenseLinksRequest\022B\n\006parent\030\001 \001(\tB2\342A\001\002" - + "\372A+\022)analyticsadmin.googleapis.com/AdSen" - + "seLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" - + "\003 \001(\t\"w\n\030ListAdSenseLinksResponse\022B\n\rads" - + "ense_links\030\001 \003(\0132+.google.analytics.admi" - + "n.v1alpha.AdSenseLink\022\027\n\017next_page_token" - + "\030\002 \001(\t\"e\n FetchConnectedGa4PropertyReque" - + "st\022A\n\010property\030\001 \001(\tB/\342A\001\002\372A(\n&analytics" - + "admin.googleapis.com/Property\"b\n!FetchCo" - + "nnectedGa4PropertyResponse\022=\n\010property\030\001" - + " \001(\tB+\372A(\n&analyticsadmin.googleapis.com" - + "/Property\"\270\001\n\034CreateEventCreateRuleReque" - + "st\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analyticsad" - + "min.googleapis.com/EventCreateRule\022P\n\021ev" - + "ent_create_rule\030\002 \001(\0132/.google.analytics" - + ".admin.v1alpha.EventCreateRuleB\004\342A\001\002\"\247\001\n" - + "\034UpdateEventCreateRuleRequest\022P\n\021event_c" - + "reate_rule\030\001 \001(\0132/.google.analytics.admi" - + "n.v1alpha.EventCreateRuleB\004\342A\001\002\0225\n\013updat" - + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" - + "B\004\342A\001\002\"d\n\034DeleteEventCreateRuleRequest\022D" - + "\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-analyticsadmin.go" - + "ogleapis.com/EventCreateRule\"a\n\031GetEvent" - + "CreateRuleRequest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/" - + "\n-analyticsadmin.googleapis.com/EventCre" - + "ateRule\"\214\001\n\033ListEventCreateRulesRequest\022" - + "F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analyticsadmin" - + ".googleapis.com/EventCreateRule\022\021\n\tpage_" - + "size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\204\001\n\034ListE" - + "ventCreateRulesResponse\022K\n\022event_create_" - + "rules\030\001 \003(\0132/.google.analytics.admin.v1a" - + "lpha.EventCreateRule\022\027\n\017next_page_token\030" - + "\002 \001(\t2\374\350\001\n\025AnalyticsAdminService\022\223\001\n\nGet" - + "Account\0221.google.analytics.admin.v1alpha" - + ".GetAccountRequest\032\'.google.analytics.ad" - + "min.v1alpha.Account\")\332A\004name\202\323\344\223\002\034\022\032/v1a" - + "lpha/{name=accounts/*}\022\224\001\n\014ListAccounts\022" - + "3.google.analytics.admin.v1alpha.ListAcc" - + "ountsRequest\0324.google.analytics.admin.v1" - + "alpha.ListAccountsResponse\"\031\202\323\344\223\002\023\022\021/v1a" - + "lpha/accounts\022\210\001\n\rDeleteAccount\0224.google" - + ".analytics.admin.v1alpha.DeleteAccountRe" - + "quest\032\026.google.protobuf.Empty\")\332A\004name\202\323" - + "\344\223\002\034*\032/v1alpha/{name=accounts/*}\022\271\001\n\rUpd" - + "ateAccount\0224.google.analytics.admin.v1al" - + "pha.UpdateAccountRequest\032\'.google.analyt" - + "ics.admin.v1alpha.Account\"I\332A\023account,up" - + "date_mask\202\323\344\223\002-2\"/v1alpha/{account.name=" - + "accounts/*}:\007account\022\314\001\n\026ProvisionAccoun" - + "tTicket\022=.google.analytics.admin.v1alpha" - + ".ProvisionAccountTicketRequest\032>.google." - + "analytics.admin.v1alpha.ProvisionAccount" - + "TicketResponse\"3\202\323\344\223\002-\"(/v1alpha/account" - + "s:provisionAccountTicket:\001*\022\264\001\n\024ListAcco" - + "untSummaries\022;.google.analytics.admin.v1" - + "alpha.ListAccountSummariesRequest\032<.goog" - + "le.analytics.admin.v1alpha.ListAccountSu" - + "mmariesResponse\"!\202\323\344\223\002\033\022\031/v1alpha/accoun" - + "tSummaries\022\230\001\n\013GetProperty\0222.google.anal" - + "ytics.admin.v1alpha.GetPropertyRequest\032(" - + ".google.analytics.admin.v1alpha.Property" - + "\"+\332A\004name\202\323\344\223\002\036\022\034/v1alpha/{name=properti" - + "es/*}\022\234\001\n\016ListProperties\0225.google.analyt" - + "ics.admin.v1alpha.ListPropertiesRequest\032" - + "6.google.analytics.admin.v1alpha.ListPro" - + "pertiesResponse\"\033\202\323\344\223\002\025\022\023/v1alpha/proper" - + "ties\022\243\001\n\016CreateProperty\0225.google.analyti" - + "cs.admin.v1alpha.CreatePropertyRequest\032(" - + ".google.analytics.admin.v1alpha.Property" - + "\"0\332A\010property\202\323\344\223\002\037\"\023/v1alpha/properties" - + ":\010property\022\236\001\n\016DeleteProperty\0225.google.a" - + "nalytics.admin.v1alpha.DeletePropertyReq" - + "uest\032(.google.analytics.admin.v1alpha.Pr" - + "operty\"+\332A\004name\202\323\344\223\002\036*\034/v1alpha/{name=pr" - + "operties/*}\022\301\001\n\016UpdateProperty\0225.google." - + "analytics.admin.v1alpha.UpdatePropertyRe" - + "quest\032(.google.analytics.admin.v1alpha.P" - + "roperty\"N\332A\024property,update_mask\202\323\344\223\00212%" - + "/v1alpha/{property.name=properties/*}:\010p" - + "roperty\022\316\001\n\013GetUserLink\0222.google.analyti" - + "cs.admin.v1alpha.GetUserLinkRequest\032(.go" - + "ogle.analytics.admin.v1alpha.UserLink\"a\332" - + "A\004name\202\323\344\223\002T\022&/v1alpha/{name=accounts/*/" - + "userLinks/*}Z*\022(/v1alpha/{name=propertie" - + "s/*/userLinks/*}\022\366\001\n\021BatchGetUserLinks\0228" - + ".google.analytics.admin.v1alpha.BatchGet" - + "UserLinksRequest\0329.google.analytics.admi" - + "n.v1alpha.BatchGetUserLinksResponse\"l\202\323\344" - + "\223\002f\022//v1alpha/{parent=accounts/*}/userLi" - + "nks:batchGetZ3\0221/v1alpha/{parent=propert" - + "ies/*}/userLinks:batchGet\022\341\001\n\rListUserLi" - + "nks\0224.google.analytics.admin.v1alpha.Lis" - + "tUserLinksRequest\0325.google.analytics.adm" - + "in.v1alpha.ListUserLinksResponse\"c\332A\006par" - + "ent\202\323\344\223\002T\022&/v1alpha/{parent=accounts/*}/" - + "userLinksZ*\022(/v1alpha/{parent=properties" - + "/*}/userLinks\022\355\001\n\016AuditUserLinks\0225.googl" - + "e.analytics.admin.v1alpha.AuditUserLinks" - + "Request\0326.google.analytics.admin.v1alpha" - + ".AuditUserLinksResponse\"l\202\323\344\223\002f\",/v1alph" - + "a/{parent=accounts/*}/userLinks:audit:\001*" - + "Z3\"./v1alpha/{parent=properties/*}/userL" - + "inks:audit:\001*\022\367\001\n\016CreateUserLink\0225.googl" - + "e.analytics.admin.v1alpha.CreateUserLink" - + "Request\032(.google.analytics.admin.v1alpha" - + ".UserLink\"\203\001\332A\020parent,user_link\202\323\344\223\002j\"&/" - + "v1alpha/{parent=accounts/*}/userLinks:\tu" - + "ser_linkZ5\"(/v1alpha/{parent=properties/" - + "*}/userLinks:\tuser_link\022\213\002\n\024BatchCreateU" - + "serLinks\022;.google.analytics.admin.v1alph" - + "a.BatchCreateUserLinksRequest\032<.google.a" - + "nalytics.admin.v1alpha.BatchCreateUserLi" - + "nksResponse\"x\202\323\344\223\002r\"2/v1alpha/{parent=ac" - + "counts/*}/userLinks:batchCreate:\001*Z9\"4/v" - + "1alpha/{parent=properties/*}/userLinks:b" - + "atchCreate:\001*\022\204\002\n\016UpdateUserLink\0225.googl" - + "e.analytics.admin.v1alpha.UpdateUserLink" - + "Request\032(.google.analytics.admin.v1alpha" - + ".UserLink\"\220\001\332A\tuser_link\202\323\344\223\002~20/v1alpha" - + "/{user_link.name=accounts/*/userLinks/*}" - + ":\tuser_linkZ?22/v1alpha/{user_link.name=" - + "properties/*/userLinks/*}:\tuser_link\022\213\002\n" - + "\024BatchUpdateUserLinks\022;.google.analytics" - + ".admin.v1alpha.BatchUpdateUserLinksReque" - + "st\032<.google.analytics.admin.v1alpha.Batc" - + "hUpdateUserLinksResponse\"x\202\323\344\223\002r\"2/v1alp" - + "ha/{parent=accounts/*}/userLinks:batchUp" - + "date:\001*Z9\"4/v1alpha/{parent=properties/*" - + "}/userLinks:batchUpdate:\001*\022\302\001\n\016DeleteUse" - + "rLink\0225.google.analytics.admin.v1alpha.D" - + "eleteUserLinkRequest\032\026.google.protobuf.E" - + "mpty\"a\332A\004name\202\323\344\223\002T*&/v1alpha/{name=acco" - + "unts/*/userLinks/*}Z**(/v1alpha/{name=pr" - + "operties/*/userLinks/*}\022\345\001\n\024BatchDeleteU" - + "serLinks\022;.google.analytics.admin.v1alph" - + "a.BatchDeleteUserLinksRequest\032\026.google.p" - + "rotobuf.Empty\"x\202\323\344\223\002r\"2/v1alpha/{parent=" - + "accounts/*}/userLinks:batchDelete:\001*Z9\"4" - + "/v1alpha/{parent=properties/*}/userLinks" - + ":batchDelete:\001*\022\331\001\n\022CreateFirebaseLink\0229" - + ".google.analytics.admin.v1alpha.CreateFi" - + "rebaseLinkRequest\032,.google.analytics.adm" - + "in.v1alpha.FirebaseLink\"Z\332A\024parent,fireb" - + "ase_link\202\323\344\223\002=\",/v1alpha/{parent=propert" - + "ies/*}/firebaseLinks:\rfirebase_link\022\244\001\n\022" - + "DeleteFirebaseLink\0229.google.analytics.ad" - + "min.v1alpha.DeleteFirebaseLinkRequest\032\026." - + "google.protobuf.Empty\";\332A\004name\202\323\344\223\002.*,/v" - + "1alpha/{name=properties/*/firebaseLinks/" - + "*}\022\307\001\n\021ListFirebaseLinks\0228.google.analyt" - + "ics.admin.v1alpha.ListFirebaseLinksReque" - + "st\0329.google.analytics.admin.v1alpha.List" - + "FirebaseLinksResponse\"=\332A\006parent\202\323\344\223\002.\022," - + "/v1alpha/{parent=properties/*}/firebaseL" - + "inks\022\303\001\n\020GetGlobalSiteTag\0227.google.analy" - + "tics.admin.v1alpha.GetGlobalSiteTagReque" - + "st\032-.google.analytics.admin.v1alpha.Glob" - + "alSiteTag\"G\332A\004name\202\323\344\223\002:\0228/v1alpha/{name" - + "=properties/*/dataStreams/*/globalSiteTa" - + "g}\022\341\001\n\023CreateGoogleAdsLink\022:.google.anal" - + "ytics.admin.v1alpha.CreateGoogleAdsLinkR" - + "equest\032-.google.analytics.admin.v1alpha." - + "GoogleAdsLink\"_\332A\026parent,google_ads_link" - + "\202\323\344\223\002@\"-/v1alpha/{parent=properties/*}/g" - + "oogleAdsLinks:\017google_ads_link\022\366\001\n\023Updat" - + "eGoogleAdsLink\022:.google.analytics.admin." - + "v1alpha.UpdateGoogleAdsLinkRequest\032-.goo" - + "gle.analytics.admin.v1alpha.GoogleAdsLin" - + "k\"t\332A\033google_ads_link,update_mask\202\323\344\223\002P2" - + "=/v1alpha/{google_ads_link.name=properti" - + "es/*/googleAdsLinks/*}:\017google_ads_link\022" - + "\247\001\n\023DeleteGoogleAdsLink\022:.google.analyti" - + "cs.admin.v1alpha.DeleteGoogleAdsLinkRequ" - + "est\032\026.google.protobuf.Empty\"<\332A\004name\202\323\344\223" - + "\002/*-/v1alpha/{name=properties/*/googleAd" - + "sLinks/*}\022\313\001\n\022ListGoogleAdsLinks\0229.googl" - + "e.analytics.admin.v1alpha.ListGoogleAdsL" - + "inksRequest\032:.google.analytics.admin.v1a" - + "lpha.ListGoogleAdsLinksResponse\">\332A\006pare" - + "nt\202\323\344\223\002/\022-/v1alpha/{parent=properties/*}" - + "/googleAdsLinks\022\313\001\n\026GetDataSharingSettin" - + "gs\022=.google.analytics.admin.v1alpha.GetD" - + "ataSharingSettingsRequest\0323.google.analy" - + "tics.admin.v1alpha.DataSharingSettings\"=" - + "\332A\004name\202\323\344\223\0020\022./v1alpha/{name=accounts/*" - + "/dataSharingSettings}\022\366\001\n\034GetMeasurement" - + "ProtocolSecret\022C.google.analytics.admin." - + "v1alpha.GetMeasurementProtocolSecretRequ" - + "est\0329.google.analytics.admin.v1alpha.Mea" - + "surementProtocolSecret\"V\332A\004name\202\323\344\223\002I\022G/" - + "v1alpha/{name=properties/*/dataStreams/*" - + "/measurementProtocolSecrets/*}\022\211\002\n\036ListM" - + "easurementProtocolSecrets\022E.google.analy" - + "tics.admin.v1alpha.ListMeasurementProtoc" - + "olSecretsRequest\032F.google.analytics.admi" - + "n.v1alpha.ListMeasurementProtocolSecrets" - + "Response\"X\332A\006parent\202\323\344\223\002I\022G/v1alpha/{par" - + "ent=properties/*/dataStreams/*}/measurem" - + "entProtocolSecrets\022\270\002\n\037CreateMeasurement" - + "ProtocolSecret\022F.google.analytics.admin." - + "v1alpha.CreateMeasurementProtocolSecretR" - + "equest\0329.google.analytics.admin.v1alpha." - + "MeasurementProtocolSecret\"\221\001\332A\"parent,me" - + "asurement_protocol_secret\202\323\344\223\002f\"G/v1alph" - + "a/{parent=properties/*/dataStreams/*}/me" - + "asurementProtocolSecrets:\033measurement_pr" - + "otocol_secret\022\331\001\n\037DeleteMeasurementProto" - + "colSecret\022F.google.analytics.admin.v1alp" - + "ha.DeleteMeasurementProtocolSecretReques" - + "t\032\026.google.protobuf.Empty\"V\332A\004name\202\323\344\223\002I" - + "*G/v1alpha/{name=properties/*/dataStream" - + "s/*/measurementProtocolSecrets/*}\022\332\002\n\037Up" - + "dateMeasurementProtocolSecret\022F.google.a" - + "nalytics.admin.v1alpha.UpdateMeasurement" - + "ProtocolSecretRequest\0329.google.analytics" - + ".admin.v1alpha.MeasurementProtocolSecret" - + "\"\263\001\332A\'measurement_protocol_secret,update" - + "_mask\202\323\344\223\002\202\0012c/v1alpha/{measurement_prot" - + "ocol_secret.name=properties/*/dataStream" - + "s/*/measurementProtocolSecrets/*}:\033measu" - + "rement_protocol_secret\022\367\001\n\035AcknowledgeUs" - + "erDataCollection\022D.google.analytics.admi" - + "n.v1alpha.AcknowledgeUserDataCollectionR" - + "equest\032E.google.analytics.admin.v1alpha." - + "AcknowledgeUserDataCollectionResponse\"I\202" - + "\323\344\223\002C\">/v1alpha/{property=properties/*}:" - + "acknowledgeUserDataCollection:\001*\022\221\002\n#Get" - + "SKAdNetworkConversionValueSchema\022J.googl" - + "e.analytics.admin.v1alpha.GetSKAdNetwork" - + "ConversionValueSchemaRequest\032@.google.an" - + "alytics.admin.v1alpha.SKAdNetworkConvers" - + "ionValueSchema\"\\\332A\004name\202\323\344\223\002O\022M/v1alpha/" - + "{name=properties/*/dataStreams/*/sKAdNet" - + "workConversionValueSchema/*}\022\343\002\n&CreateS" - + "KAdNetworkConversionValueSchema\022M.google", - ".analytics.admin.v1alpha.CreateSKAdNetwo" - + "rkConversionValueSchemaRequest\032@.google." - + "analytics.admin.v1alpha.SKAdNetworkConve" - + "rsionValueSchema\"\247\001\332A*parent,skadnetwork" - + "_conversion_value_schema\202\323\344\223\002t\"M/v1alpha" - + "/{parent=properties/*/dataStreams/*}/sKA" - + "dNetworkConversionValueSchema:#skadnetwo" - + "rk_conversion_value_schema\022\355\001\n&DeleteSKA" - + "dNetworkConversionValueSchema\022M.google.a" - + "nalytics.admin.v1alpha.DeleteSKAdNetwork" - + "ConversionValueSchemaRequest\032\026.google.pr" - + "otobuf.Empty\"\\\332A\004name\202\323\344\223\002O*M/v1alpha/{n" - + "ame=properties/*/dataStreams/*/sKAdNetwo" - + "rkConversionValueSchema/*}\022\215\003\n&UpdateSKA" - + "dNetworkConversionValueSchema\022M.google.a" - + "nalytics.admin.v1alpha.UpdateSKAdNetwork" - + "ConversionValueSchemaRequest\032@.google.an" - + "alytics.admin.v1alpha.SKAdNetworkConvers" - + "ionValueSchema\"\321\001\332A/skadnetwork_conversi" - + "on_value_schema,update_mask\202\323\344\223\002\230\0012q/v1a" - + "lpha/{skadnetwork_conversion_value_schem" - + "a.name=properties/*/dataStreams/*/sKAdNe" - + "tworkConversionValueSchema/*}:#skadnetwo" - + "rk_conversion_value_schema\022\244\002\n%ListSKAdN" - + "etworkConversionValueSchemas\022L.google.an" - + "alytics.admin.v1alpha.ListSKAdNetworkCon" - + "versionValueSchemasRequest\032M.google.anal" - + "ytics.admin.v1alpha.ListSKAdNetworkConve" - + "rsionValueSchemasResponse\"^\332A\006parent\202\323\344\223" - + "\002O\022M/v1alpha/{parent=properties/*/dataSt" - + "reams/*}/sKAdNetworkConversionValueSchem" - + "a\022\344\001\n\031SearchChangeHistoryEvents\022@.google" - + ".analytics.admin.v1alpha.SearchChangeHis" - + "toryEventsRequest\032A.google.analytics.adm" - + "in.v1alpha.SearchChangeHistoryEventsResp" - + "onse\"B\202\323\344\223\002<\"7/v1alpha/{account=accounts" - + "/*}:searchChangeHistoryEvents:\001*\022\325\001\n\030Get" - + "GoogleSignalsSettings\022?.google.analytics" - + ".admin.v1alpha.GetGoogleSignalsSettingsR" - + "equest\0325.google.analytics.admin.v1alpha." - + "GoogleSignalsSettings\"A\332A\004name\202\323\344\223\0024\0222/v" - + "1alpha/{name=properties/*/googleSignalsS" - + "ettings}\022\254\002\n\033UpdateGoogleSignalsSettings" - + "\022B.google.analytics.admin.v1alpha.Update" - + "GoogleSignalsSettingsRequest\0325.google.an" - + "alytics.admin.v1alpha.GoogleSignalsSetti" - + "ngs\"\221\001\332A#google_signals_settings,update_" - + "mask\202\323\344\223\002e2J/v1alpha/{google_signals_set" - + "tings.name=properties/*/googleSignalsSet" - + "tings}:\027google_signals_settings\022\353\001\n\025Crea" - + "teConversionEvent\022<.google.analytics.adm" - + "in.v1alpha.CreateConversionEventRequest\032" - + "/.google.analytics.admin.v1alpha.Convers" - + "ionEvent\"c\332A\027parent,conversion_event\202\323\344\223" - + "\002C\"//v1alpha/{parent=properties/*}/conve" - + "rsionEvents:\020conversion_event\022\201\002\n\025Update" - + "ConversionEvent\022<.google.analytics.admin" - + ".v1alpha.UpdateConversionEventRequest\032/." - + "google.analytics.admin.v1alpha.Conversio" - + "nEvent\"y\332A\034conversion_event,update_mask\202" - + "\323\344\223\002T2@/v1alpha/{conversion_event.name=p" - + "roperties/*/conversionEvents/*}:\020convers" - + "ion_event\022\300\001\n\022GetConversionEvent\0229.googl" - + "e.analytics.admin.v1alpha.GetConversionE" - + "ventRequest\032/.google.analytics.admin.v1a" - + "lpha.ConversionEvent\">\332A\004name\202\323\344\223\0021\022//v1" - + "alpha/{name=properties/*/conversionEvent" - + "s/*}\022\255\001\n\025DeleteConversionEvent\022<.google." - + "analytics.admin.v1alpha.DeleteConversion" - + "EventRequest\032\026.google.protobuf.Empty\">\332A" - + "\004name\202\323\344\223\0021*//v1alpha/{name=properties/*" - + "/conversionEvents/*}\022\323\001\n\024ListConversionE" - + "vents\022;.google.analytics.admin.v1alpha.L" - + "istConversionEventsRequest\032<.google.anal" - + "ytics.admin.v1alpha.ListConversionEvents" - + "Response\"@\332A\006parent\202\323\344\223\0021\022//v1alpha/{par" - + "ent=properties/*}/conversionEvents\022\370\001\n G" - + "etDisplayVideo360AdvertiserLink\022G.google" - + ".analytics.admin.v1alpha.GetDisplayVideo" - + "360AdvertiserLinkRequest\032=.google.analyt" - + "ics.admin.v1alpha.DisplayVideo360Adverti" - + "serLink\"L\332A\004name\202\323\344\223\002?\022=/v1alpha/{name=p" - + "roperties/*/displayVideo360AdvertiserLin" - + "ks/*}\022\213\002\n\"ListDisplayVideo360AdvertiserL" - + "inks\022I.google.analytics.admin.v1alpha.Li" - + "stDisplayVideo360AdvertiserLinksRequest\032" - + "J.google.analytics.admin.v1alpha.ListDis" - + "playVideo360AdvertiserLinksResponse\"N\332A\006" - + "parent\202\323\344\223\002?\022=/v1alpha/{parent=propertie" - + "s/*}/displayVideo360AdvertiserLinks\022\306\002\n#" - + "CreateDisplayVideo360AdvertiserLink\022J.go" - + "ogle.analytics.admin.v1alpha.CreateDispl" - + "ayVideo360AdvertiserLinkRequest\032=.google" - + ".analytics.admin.v1alpha.DisplayVideo360" - + "AdvertiserLink\"\223\001\332A(parent,display_video" - + "_360_advertiser_link\202\323\344\223\002b\"=/v1alpha/{pa" - + "rent=properties/*}/displayVideo360Advert" - + "iserLinks:!display_video_360_advertiser_" - + "link\022\327\001\n#DeleteDisplayVideo360Advertiser" - + "Link\022J.google.analytics.admin.v1alpha.De" - + "leteDisplayVideo360AdvertiserLinkRequest" - + "\032\026.google.protobuf.Empty\"L\332A\004name\202\323\344\223\002?*" - + "=/v1alpha/{name=properties/*/displayVide" - + "o360AdvertiserLinks/*}\022\356\002\n#UpdateDisplay" - + "Video360AdvertiserLink\022J.google.analytic" - + "s.admin.v1alpha.UpdateDisplayVideo360Adv" - + "ertiserLinkRequest\032=.google.analytics.ad" - + "min.v1alpha.DisplayVideo360AdvertiserLin" - + "k\"\273\001\332A-display_video_360_advertiser_link" - + ",update_mask\202\323\344\223\002\204\0012_/v1alpha/{display_v" - + "ideo_360_advertiser_link.name=properties" - + "/*/displayVideo360AdvertiserLinks/*}:!di" - + "splay_video_360_advertiser_link\022\230\002\n(GetD" - + "isplayVideo360AdvertiserLinkProposal\022O.g" - + "oogle.analytics.admin.v1alpha.GetDisplay" - + "Video360AdvertiserLinkProposalRequest\032E." - + "google.analytics.admin.v1alpha.DisplayVi" - + "deo360AdvertiserLinkProposal\"T\332A\004name\202\323\344" - + "\223\002G\022E/v1alpha/{name=properties/*/display" - + "Video360AdvertiserLinkProposals/*}\022\253\002\n*L" - + "istDisplayVideo360AdvertiserLinkProposal" - + "s\022Q.google.analytics.admin.v1alpha.ListD" - + "isplayVideo360AdvertiserLinkProposalsReq" - + "uest\032R.google.analytics.admin.v1alpha.Li" - + "stDisplayVideo360AdvertiserLinkProposals" - + "Response\"V\332A\006parent\202\323\344\223\002G\022E/v1alpha/{par" - + "ent=properties/*}/displayVideo360Adverti" - + "serLinkProposals\022\370\002\n+CreateDisplayVideo3" - + "60AdvertiserLinkProposal\022R.google.analyt" - + "ics.admin.v1alpha.CreateDisplayVideo360A" - + "dvertiserLinkProposalRequest\032E.google.an" - + "alytics.admin.v1alpha.DisplayVideo360Adv" - + "ertiserLinkProposal\"\255\001\332A1parent,display_" - + "video_360_advertiser_link_proposal\202\323\344\223\002s" - + "\"E/v1alpha/{parent=properties/*}/display" - + "Video360AdvertiserLinkProposals:*display" - + "_video_360_advertiser_link_proposal\022\357\001\n+" - + "DeleteDisplayVideo360AdvertiserLinkPropo" - + "sal\022R.google.analytics.admin.v1alpha.Del" - + "eteDisplayVideo360AdvertiserLinkProposal" - + "Request\032\026.google.protobuf.Empty\"T\332A\004name" - + "\202\323\344\223\002G*E/v1alpha/{name=properties/*/disp" - + "layVideo360AdvertiserLinkProposals/*}\022\263\002" - + "\n,ApproveDisplayVideo360AdvertiserLinkPr" - + "oposal\022S.google.analytics.admin.v1alpha." - + "ApproveDisplayVideo360AdvertiserLinkProp" - + "osalRequest\032T.google.analytics.admin.v1a" - + "lpha.ApproveDisplayVideo360AdvertiserLin" - + "kProposalResponse\"X\202\323\344\223\002R\"M/v1alpha/{nam" - + "e=properties/*/displayVideo360Advertiser" - + "LinkProposals/*}:approve:\001*\022\241\002\n+CancelDi" + + "/AdSenseLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "token\030\003 \001(\t\"w\n\030ListAdSenseLinksResponse\022" + + "B\n\radsense_links\030\001 \003(\0132+.google.analytic" + + "s.admin.v1alpha.AdSenseLink\022\027\n\017next_page" + + "_token\030\002 \001(\t\"e\n FetchConnectedGa4Propert" + + "yRequest\022A\n\010property\030\001 \001(\tB/\342A\001\002\372A(\n&ana" + + "lyticsadmin.googleapis.com/Property\"b\n!F" + + "etchConnectedGa4PropertyResponse\022=\n\010prop" + + "erty\030\001 \001(\tB+\372A(\n&analyticsadmin.googleap" + + "is.com/Property\"\270\001\n\034CreateEventCreateRul" + + "eRequest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analy" + + "ticsadmin.googleapis.com/EventCreateRule" + + "\022P\n\021event_create_rule\030\002 \001(\0132/.google.ana" + + "lytics.admin.v1alpha.EventCreateRuleB\004\342A" + + "\001\002\"\247\001\n\034UpdateEventCreateRuleRequest\022P\n\021e" + + "vent_create_rule\030\001 \001(\0132/.google.analytic" + + "s.admin.v1alpha.EventCreateRuleB\004\342A\001\002\0225\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMaskB\004\342A\001\002\"d\n\034DeleteEventCreateRuleReq" + + "uest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-analyticsad" + + "min.googleapis.com/EventCreateRule\"a\n\031Ge" + + "tEventCreateRuleRequest\022D\n\004name\030\001 \001(\tB6\342" + + "A\001\002\372A/\n-analyticsadmin.googleapis.com/Ev" + + "entCreateRule\"\214\001\n\033ListEventCreateRulesRe" + + "quest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analytic" + + "sadmin.googleapis.com/EventCreateRule\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\204\001\n" + + "\034ListEventCreateRulesResponse\022K\n\022event_c" + + "reate_rules\030\001 \003(\0132/.google.analytics.adm" + + "in.v1alpha.EventCreateRule\022\027\n\017next_page_" + + "token\030\002 \001(\t\"\207\001\n\033CreateRollupPropertyRequ" + + "est\022G\n\017rollup_property\030\001 \001(\0132(.google.an" + + "alytics.admin.v1alpha.PropertyB\004\342A\001\002\022\037\n\021" + + "source_properties\030\002 \003(\tB\004\342A\001\001\"\301\001\n\034Create" + + "RollupPropertyResponse\022A\n\017rollup_propert" + + "y\030\001 \001(\0132(.google.analytics.admin.v1alpha" + + ".Property\022^\n\034rollup_property_source_link" + + "s\030\002 \003(\01328.google.analytics.admin.v1alpha" + + ".RollupPropertySourceLink\"s\n\"GetRollupPr" + + "opertySourceLinkRequest\022M\n\004name\030\001 \001(\tB?\342" + + "A\001\002\372A8\n6analyticsadmin.googleapis.com/Ro" + + "llupPropertySourceLink\"\252\001\n$ListRollupPro" + + "pertySourceLinksRequest\022O\n\006parent\030\001 \001(\tB" + + "?\342A\001\002\372A8\0226analyticsadmin.googleapis.com/" + + "RollupPropertySourceLink\022\027\n\tpage_size\030\002 " + + "\001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\240\001\n%" + + "ListRollupPropertySourceLinksResponse\022^\n" + + "\034rollup_property_source_links\030\001 \003(\01328.go" + + "ogle.analytics.admin.v1alpha.RollupPrope" + + "rtySourceLink\022\027\n\017next_page_token\030\002 \001(\t\"\335" + + "\001\n%CreateRollupPropertySourceLinkRequest" + + "\022O\n\006parent\030\001 \001(\tB?\342A\001\002\372A8\0226analyticsadmi" + + "n.googleapis.com/RollupPropertySourceLin" + + "k\022c\n\033rollup_property_source_link\030\002 \001(\01328" + + ".google.analytics.admin.v1alpha.RollupPr" + + "opertySourceLinkB\004\342A\001\002\"v\n%DeleteRollupPr" + + "opertySourceLinkRequest\022M\n\004name\030\001 \001(\tB?\342" + + "A\001\002\372A8\n6analyticsadmin.googleapis.com/Ro" + + "llupPropertySourceLink\"\200\002\n\030CreateSubprop" + + "ertyRequest\022?\n\006parent\030\001 \001(\tB/\342A\001\002\372A(\n&an" + + "alyticsadmin.googleapis.com/Property\022C\n\013" + + "subproperty\030\002 \001(\0132(.google.analytics.adm" + + "in.v1alpha.PropertyB\004\342A\001\002\022^\n\030subproperty" + + "_event_filter\030\003 \001(\01326.google.analytics.a" + + "dmin.v1alpha.SubpropertyEventFilterB\004\342A\001" + + "\001\"\264\001\n\031CreateSubpropertyResponse\022=\n\013subpr" + + "operty\030\001 \001(\0132(.google.analytics.admin.v1" + + "alpha.Property\022X\n\030subproperty_event_filt" + + "er\030\002 \001(\01326.google.analytics.admin.v1alph" + + "a.SubpropertyEventFilter\"\324\001\n#CreateSubpr" + + "opertyEventFilterRequest\022M\n\006parent\030\001 \001(\t" + + "B=\342A\001\002\372A6\0224analyticsadmin.googleapis.com" + + "/SubpropertyEventFilter\022^\n\030subproperty_e" + + "vent_filter\030\002 \001(\01326.google.analytics.adm" + + "in.v1alpha.SubpropertyEventFilterB\004\342A\001\002\"" + + "o\n GetSubpropertyEventFilterRequest\022K\n\004n" + + "ame\030\001 \001(\tB=\342A\001\002\372A6\n4analyticsadmin.googl" + + "eapis.com/SubpropertyEventFilter\"\246\001\n\"Lis" + + "tSubpropertyEventFiltersRequest\022M\n\006paren" + + "t\030\001 \001(\tB=\342A\001\002\372A6\0224analyticsadmin.googlea" + + "pis.com/SubpropertyEventFilter\022\027\n\tpage_s" + + "ize\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001" + + "\001\"\231\001\n#ListSubpropertyEventFiltersRespons" + + "e\022Y\n\031subproperty_event_filters\030\001 \003(\01326.g" + + "oogle.analytics.admin.v1alpha.Subpropert" + + "yEventFilter\022\027\n\017next_page_token\030\002 \001(\t\"\274\001" + + "\n#UpdateSubpropertyEventFilterRequest\022^\n" + + "\030subproperty_event_filter\030\001 \001(\01326.google" + + ".analytics.admin.v1alpha.SubpropertyEven" + + "tFilterB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.goo" + + "gle.protobuf.FieldMaskB\004\342A\001\002\"r\n#DeleteSu" + + "bpropertyEventFilterRequest\022K\n\004name\030\001 \001(" + + "\tB=\342A\001\002\372A6\n4analyticsadmin.googleapis.co" + + "m/SubpropertyEventFilter2\361\350\001\n\025AnalyticsA" + + "dminService\022\223\001\n\nGetAccount\0221.google.anal" + + "ytics.admin.v1alpha.GetAccountRequest\032\'." + + "google.analytics.admin.v1alpha.Account\")" + + "\332A\004name\202\323\344\223\002\034\022\032/v1alpha/{name=accounts/*" + + "}\022\224\001\n\014ListAccounts\0223.google.analytics.ad" + + "min.v1alpha.ListAccountsRequest\0324.google" + + ".analytics.admin.v1alpha.ListAccountsRes" + + "ponse\"\031\202\323\344\223\002\023\022\021/v1alpha/accounts\022\210\001\n\rDel" + + "eteAccount\0224.google.analytics.admin.v1al" + + "pha.DeleteAccountRequest\032\026.google.protob" + + "uf.Empty\")\332A\004name\202\323\344\223\002\034*\032/v1alpha/{name=" + + "accounts/*}\022\271\001\n\rUpdateAccount\0224.google.a" + + "nalytics.admin.v1alpha.UpdateAccountRequ" + + "est\032\'.google.analytics.admin.v1alpha.Acc" + + "ount\"I\332A\023account,update_mask\202\323\344\223\002-2\"/v1a" + + "lpha/{account.name=accounts/*}:\007account\022" + + "\314\001\n\026ProvisionAccountTicket\022=.google.anal" + + "ytics.admin.v1alpha.ProvisionAccountTick" + + "etRequest\032>.google.analytics.admin.v1alp" + + "ha.ProvisionAccountTicketResponse\"3\202\323\344\223\002" + + "-\"(/v1alpha/accounts:provisionAccountTic" + + "ket:\001*\022\264\001\n\024ListAccountSummaries\022;.google" + + ".analytics.admin.v1alpha.ListAccountSumm" + + "ariesRequest\032<.google.analytics.admin.v1" + + "alpha.ListAccountSummariesResponse\"!\202\323\344\223" + + "\002\033\022\031/v1alpha/accountSummaries\022\230\001\n\013GetPro" + + "perty\0222.google.analytics.admin.v1alpha.G" + + "etPropertyRequest\032(.google.analytics.adm" + + "in.v1alpha.Property\"+\332A\004name\202\323\344\223\002\036\022\034/v1a" + + "lpha/{name=properties/*}\022\234\001\n\016ListPropert" + + "ies\0225.google.analytics.admin.v1alpha.Lis" + + "tPropertiesRequest\0326.google.analytics.ad" + + "min.v1alpha.ListPropertiesResponse\"\033\202\323\344\223" + + "\002\025\022\023/v1alpha/properties\022\243\001\n\016CreateProper" + + "ty\0225.google.analytics.admin.v1alpha.Crea" + + "tePropertyRequest\032(.google.analytics.adm" + + "in.v1alpha.Property\"0\332A\010property\202\323\344\223\002\037\"\023" + + "/v1alpha/properties:\010property\022\236\001\n\016Delete" + + "Property\0225.google.analytics.admin.v1alph" + + "a.DeletePropertyRequest\032(.google.analyti" + + "cs.admin.v1alpha.Property\"+\332A\004name\202\323\344\223\002\036" + + "*\034/v1alpha/{name=properties/*}\022\301\001\n\016Updat" + + "eProperty\0225.google.analytics.admin.v1alp" + + "ha.UpdatePropertyRequest\032(.google.analyt" + + "ics.admin.v1alpha.Property\"N\332A\024property," + + "update_mask\202\323\344\223\00212%/v1alpha/{property.na" + + "me=properties/*}:\010property\022\331\001\n\022CreateFir" + + "ebaseLink\0229.google.analytics.admin.v1alp" + + "ha.CreateFirebaseLinkRequest\032,.google.an" + + "alytics.admin.v1alpha.FirebaseLink\"Z\332A\024p" + + "arent,firebase_link\202\323\344\223\002=\",/v1alpha/{par" + + "ent=properties/*}/firebaseLinks:\rfirebas" + + "e_link\022\244\001\n\022DeleteFirebaseLink\0229.google.a" + + "nalytics.admin.v1alpha.DeleteFirebaseLin" + + "kRequest\032\026.google.protobuf.Empty\";\332A\004nam" + + "e\202\323\344\223\002.*,/v1alpha/{name=properties/*/fir" + + "ebaseLinks/*}\022\307\001\n\021ListFirebaseLinks\0228.go" + + "ogle.analytics.admin.v1alpha.ListFirebas" + + "eLinksRequest\0329.google.analytics.admin.v" + + "1alpha.ListFirebaseLinksResponse\"=\332A\006par" + + "ent\202\323\344\223\002.\022,/v1alpha/{parent=properties/*" + + "}/firebaseLinks\022\303\001\n\020GetGlobalSiteTag\0227.g" + + "oogle.analytics.admin.v1alpha.GetGlobalS" + + "iteTagRequest\032-.google.analytics.admin.v" + + "1alpha.GlobalSiteTag\"G\332A\004name\202\323\344\223\002:\0228/v1" + + "alpha/{name=properties/*/dataStreams/*/g" + + "lobalSiteTag}\022\341\001\n\023CreateGoogleAdsLink\022:." + + "google.analytics.admin.v1alpha.CreateGoo" + + "gleAdsLinkRequest\032-.google.analytics.adm" + + "in.v1alpha.GoogleAdsLink\"_\332A\026parent,goog" + + "le_ads_link\202\323\344\223\002@\"-/v1alpha/{parent=prop" + + "erties/*}/googleAdsLinks:\017google_ads_lin" + + "k\022\366\001\n\023UpdateGoogleAdsLink\022:.google.analy" + + "tics.admin.v1alpha.UpdateGoogleAdsLinkRe" + + "quest\032-.google.analytics.admin.v1alpha.G" + + "oogleAdsLink\"t\332A\033google_ads_link,update_" + + "mask\202\323\344\223\002P2=/v1alpha/{google_ads_link.na" + + "me=properties/*/googleAdsLinks/*}:\017googl" + + "e_ads_link\022\247\001\n\023DeleteGoogleAdsLink\022:.goo" + + "gle.analytics.admin.v1alpha.DeleteGoogle" + + "AdsLinkRequest\032\026.google.protobuf.Empty\"<" + + "\332A\004name\202\323\344\223\002/*-/v1alpha/{name=properties" + + "/*/googleAdsLinks/*}\022\313\001\n\022ListGoogleAdsLi" + + "nks\0229.google.analytics.admin.v1alpha.Lis" + + "tGoogleAdsLinksRequest\032:.google.analytic" + + "s.admin.v1alpha.ListGoogleAdsLinksRespon" + + "se\">\332A\006parent\202\323\344\223\002/\022-/v1alpha/{parent=pr" + + "operties/*}/googleAdsLinks\022\313\001\n\026GetDataSh" + + "aringSettings\022=.google.analytics.admin.v" + + "1alpha.GetDataSharingSettingsRequest\0323.g" + + "oogle.analytics.admin.v1alpha.DataSharin" + + "gSettings\"=\332A\004name\202\323\344\223\0020\022./v1alpha/{name" + + "=accounts/*/dataSharingSettings}\022\366\001\n\034Get" + + "MeasurementProtocolSecret\022C.google.analy" + + "tics.admin.v1alpha.GetMeasurementProtoco" + + "lSecretRequest\0329.google.analytics.admin." + + "v1alpha.MeasurementProtocolSecret\"V\332A\004na" + + "me\202\323\344\223\002I\022G/v1alpha/{name=properties/*/da" + + "taStreams/*/measurementProtocolSecrets/*" + + "}\022\211\002\n\036ListMeasurementProtocolSecrets\022E.g" + + "oogle.analytics.admin.v1alpha.ListMeasur" + + "ementProtocolSecretsRequest\032F.google.ana" + + "lytics.admin.v1alpha.ListMeasurementProt" + + "ocolSecretsResponse\"X\332A\006parent\202\323\344\223\002I\022G/v" + + "1alpha/{parent=properties/*/dataStreams/" + + "*}/measurementProtocolSecrets\022\270\002\n\037Create" + + "MeasurementProtocolSecret\022F.google.analy" + + "tics.admin.v1alpha.CreateMeasurementProt" + + "ocolSecretRequest\0329.google.analytics.adm" + + "in.v1alpha.MeasurementProtocolSecret\"\221\001\332" + + "A\"parent,measurement_protocol_secret\202\323\344\223" + + "\002f\"G/v1alpha/{parent=properties/*/dataSt" + + "reams/*}/measurementProtocolSecrets:\033mea" + + "surement_protocol_secret\022\331\001\n\037DeleteMeasu" + + "rementProtocolSecret\022F.google.analytics." + + "admin.v1alpha.DeleteMeasurementProtocolS" + + "ecretRequest\032\026.google.protobuf.Empty\"V\332A" + + "\004name\202\323\344\223\002I*G/v1alpha/{name=properties/*" + + "/dataStreams/*/measurementProtocolSecret" + + "s/*}\022\332\002\n\037UpdateMeasurementProtocolSecret" + + "\022F.google.analytics.admin.v1alpha.Update" + + "MeasurementProtocolSecretRequest\0329.googl" + + "e.analytics.admin.v1alpha.MeasurementPro" + + "tocolSecret\"\263\001\332A\'measurement_protocol_se" + + "cret,update_mask\202\323\344\223\002\202\0012c/v1alpha/{measu" + + "rement_protocol_secret.name=properties/*" + + "/dataStreams/*/measurementProtocolSecret" + + "s/*}:\033measurement_protocol_secret\022\367\001\n\035Ac" + + "knowledgeUserDataCollection\022D.google.ana" + + "lytics.admin.v1alpha.AcknowledgeUserData" + + "CollectionRequest\032E.google.analytics.adm" + + "in.v1alpha.AcknowledgeUserDataCollection" + + "Response\"I\202\323\344\223\002C\">/v1alpha/{property=pro" + + "perties/*}:acknowledgeUserDataCollection" + + ":\001*\022\221\002\n#GetSKAdNetworkConversionValueSch" + + "ema\022J.google.analytics.admin.v1alpha.Get" + + "SKAdNetworkConversionValueSchemaRequest\032" + + "@.google.analytics.admin.v1alpha.SKAdNet" + + "workConversionValueSchema\"\\\332A\004name\202\323\344\223\002O" + + "\022M/v1alpha/{name=properties/*/dataStream" + + "s/*/sKAdNetworkConversionValueSchema/*}\022" + + "\343\002\n&CreateSKAdNetworkConversionValueSche" + + "ma\022M.google.analytics.admin.v1alpha.Crea" + + "teSKAdNetworkConversionValueSchemaReques" + + "t\032@.google.analytics.admin.v1alpha.SKAdN" + + "etworkConversionValueSchema\"\247\001\332A*parent," + + "skadnetwork_conversion_value_schema\202\323\344\223\002" + + "t\"M/v1alpha/{parent=properties/*/dataStr" + + "eams/*}/sKAdNetworkConversionValueSchema" + + ":#skadnetwork_conversion_value_schema\022\355\001" + + "\n&DeleteSKAdNetworkConversionValueSchema" + + "\022M.google.analytics.admin.v1alpha.Delete" + + "SKAdNetworkConversionValueSchemaRequest\032" + + "\026.google.protobuf.Empty\"\\\332A\004name\202\323\344\223\002O*M" + + "/v1alpha/{name=properties/*/dataStreams/" + + "*/sKAdNetworkConversionValueSchema/*}\022\215\003" + + "\n&UpdateSKAdNetworkConversionValueSchema" + + "\022M.google.analytics.admin.v1alpha.Update" + + "SKAdNetworkConversionValueSchemaRequest\032" + + "@.google.analytics.admin.v1alpha.SKAdNet" + + "workConversionValueSchema\"\321\001\332A/skadnetwo" + + "rk_conversion_value_schema,update_mask\202\323" + + "\344\223\002\230\0012q/v1alpha/{skadnetwork_conversion_" + + "value_schema.name=properties/*/dataStrea" + + "ms/*/sKAdNetworkConversionValueSchema/*}" + + ":#skadnetwork_conversion_value_schema\022\244\002" + + "\n%ListSKAdNetworkConversionValueSchemas\022" + + "L.google.analytics.admin.v1alpha.ListSKA" + + "dNetworkConversionValueSchemasRequest\032M." + + "google.analytics.admin.v1alpha.ListSKAdN" + + "etworkConversionValueSchemasResponse\"^\332A" + + "\006parent\202\323\344\223\002O\022M/v1alpha/{parent=properti" + + "es/*/dataStreams/*}/sKAdNetworkConversio" + + "nValueSchema\022\344\001\n\031SearchChangeHistoryEven" + + "ts\022@.google.analytics.admin.v1alpha.Sear" + + "chChangeHistoryEventsRequest\032A.google.an" + + "alytics.admin.v1alpha.SearchChangeHistor", + "yEventsResponse\"B\202\323\344\223\002<\"7/v1alpha/{accou" + + "nt=accounts/*}:searchChangeHistoryEvents" + + ":\001*\022\325\001\n\030GetGoogleSignalsSettings\022?.googl" + + "e.analytics.admin.v1alpha.GetGoogleSigna" + + "lsSettingsRequest\0325.google.analytics.adm" + + "in.v1alpha.GoogleSignalsSettings\"A\332A\004nam" + + "e\202\323\344\223\0024\0222/v1alpha/{name=properties/*/goo" + + "gleSignalsSettings}\022\254\002\n\033UpdateGoogleSign" + + "alsSettings\022B.google.analytics.admin.v1a" + + "lpha.UpdateGoogleSignalsSettingsRequest\032" + + "5.google.analytics.admin.v1alpha.GoogleS" + + "ignalsSettings\"\221\001\332A#google_signals_setti" + + "ngs,update_mask\202\323\344\223\002e2J/v1alpha/{google_" + + "signals_settings.name=properties/*/googl" + + "eSignalsSettings}:\027google_signals_settin" + + "gs\022\353\001\n\025CreateConversionEvent\022<.google.an" + + "alytics.admin.v1alpha.CreateConversionEv" + + "entRequest\032/.google.analytics.admin.v1al" + + "pha.ConversionEvent\"c\332A\027parent,conversio" + + "n_event\202\323\344\223\002C\"//v1alpha/{parent=properti" + + "es/*}/conversionEvents:\020conversion_event" + + "\022\201\002\n\025UpdateConversionEvent\022<.google.anal" + + "ytics.admin.v1alpha.UpdateConversionEven" + + "tRequest\032/.google.analytics.admin.v1alph" + + "a.ConversionEvent\"y\332A\034conversion_event,u" + + "pdate_mask\202\323\344\223\002T2@/v1alpha/{conversion_e" + + "vent.name=properties/*/conversionEvents/" + + "*}:\020conversion_event\022\300\001\n\022GetConversionEv" + + "ent\0229.google.analytics.admin.v1alpha.Get" + + "ConversionEventRequest\032/.google.analytic" + + "s.admin.v1alpha.ConversionEvent\">\332A\004name" + + "\202\323\344\223\0021\022//v1alpha/{name=properties/*/conv" + + "ersionEvents/*}\022\255\001\n\025DeleteConversionEven" + + "t\022<.google.analytics.admin.v1alpha.Delet" + + "eConversionEventRequest\032\026.google.protobu" + + "f.Empty\">\332A\004name\202\323\344\223\0021*//v1alpha/{name=p" + + "roperties/*/conversionEvents/*}\022\323\001\n\024List" + + "ConversionEvents\022;.google.analytics.admi" + + "n.v1alpha.ListConversionEventsRequest\032<." + + "google.analytics.admin.v1alpha.ListConve" + + "rsionEventsResponse\"@\332A\006parent\202\323\344\223\0021\022//v" + + "1alpha/{parent=properties/*}/conversionE" + + "vents\022\370\001\n GetDisplayVideo360AdvertiserLi" + + "nk\022G.google.analytics.admin.v1alpha.GetD" + + "isplayVideo360AdvertiserLinkRequest\032=.go" + + "ogle.analytics.admin.v1alpha.DisplayVide" + + "o360AdvertiserLink\"L\332A\004name\202\323\344\223\002?\022=/v1al" + + "pha/{name=properties/*/displayVideo360Ad" + + "vertiserLinks/*}\022\213\002\n\"ListDisplayVideo360" + + "AdvertiserLinks\022I.google.analytics.admin" + + ".v1alpha.ListDisplayVideo360AdvertiserLi" + + "nksRequest\032J.google.analytics.admin.v1al" + + "pha.ListDisplayVideo360AdvertiserLinksRe" + + "sponse\"N\332A\006parent\202\323\344\223\002?\022=/v1alpha/{paren" + + "t=properties/*}/displayVideo360Advertise" + + "rLinks\022\306\002\n#CreateDisplayVideo360Advertis" + + "erLink\022J.google.analytics.admin.v1alpha." + + "CreateDisplayVideo360AdvertiserLinkReque" + + "st\032=.google.analytics.admin.v1alpha.Disp" + + "layVideo360AdvertiserLink\"\223\001\332A(parent,di" + + "splay_video_360_advertiser_link\202\323\344\223\002b\"=/" + + "v1alpha/{parent=properties/*}/displayVid" + + "eo360AdvertiserLinks:!display_video_360_" + + "advertiser_link\022\327\001\n#DeleteDisplayVideo36" + + "0AdvertiserLink\022J.google.analytics.admin" + + ".v1alpha.DeleteDisplayVideo360Advertiser" + + "LinkRequest\032\026.google.protobuf.Empty\"L\332A\004" + + "name\202\323\344\223\002?*=/v1alpha/{name=properties/*/" + + "displayVideo360AdvertiserLinks/*}\022\356\002\n#Up" + + "dateDisplayVideo360AdvertiserLink\022J.goog" + + "le.analytics.admin.v1alpha.UpdateDisplay" + + "Video360AdvertiserLinkRequest\032=.google.a" + + "nalytics.admin.v1alpha.DisplayVideo360Ad" + + "vertiserLink\"\273\001\332A-display_video_360_adve" + + "rtiser_link,update_mask\202\323\344\223\002\204\0012_/v1alpha" + + "/{display_video_360_advertiser_link.name" + + "=properties/*/displayVideo360AdvertiserL" + + "inks/*}:!display_video_360_advertiser_li" + + "nk\022\230\002\n(GetDisplayVideo360AdvertiserLinkP" + + "roposal\022O.google.analytics.admin.v1alpha" + + ".GetDisplayVideo360AdvertiserLinkProposa" + + "lRequest\032E.google.analytics.admin.v1alph" + + "a.DisplayVideo360AdvertiserLinkProposal\"" + + "T\332A\004name\202\323\344\223\002G\022E/v1alpha/{name=propertie" + + "s/*/displayVideo360AdvertiserLinkProposa" + + "ls/*}\022\253\002\n*ListDisplayVideo360AdvertiserL" + + "inkProposals\022Q.google.analytics.admin.v1" + + "alpha.ListDisplayVideo360AdvertiserLinkP" + + "roposalsRequest\032R.google.analytics.admin" + + ".v1alpha.ListDisplayVideo360AdvertiserLi" + + "nkProposalsResponse\"V\332A\006parent\202\323\344\223\002G\022E/v" + + "1alpha/{parent=properties/*}/displayVide" + + "o360AdvertiserLinkProposals\022\370\002\n+CreateDi" + "splayVideo360AdvertiserLinkProposal\022R.go" - + "ogle.analytics.admin.v1alpha.CancelDispl" + + "ogle.analytics.admin.v1alpha.CreateDispl" + "ayVideo360AdvertiserLinkProposalRequest\032" + "E.google.analytics.admin.v1alpha.Display" - + "Video360AdvertiserLinkProposal\"W\202\323\344\223\002Q\"L" - + "/v1alpha/{name=properties/*/displayVideo" - + "360AdvertiserLinkProposals/*}:cancel:\001*\022" - + "\353\001\n\025CreateCustomDimension\022<.google.analy" - + "tics.admin.v1alpha.CreateCustomDimension" - + "Request\032/.google.analytics.admin.v1alpha" - + ".CustomDimension\"c\332A\027parent,custom_dimen" - + "sion\202\323\344\223\002C\"//v1alpha/{parent=properties/" - + "*}/customDimensions:\020custom_dimension\022\201\002" - + "\n\025UpdateCustomDimension\022<.google.analyti" - + "cs.admin.v1alpha.UpdateCustomDimensionRe" - + "quest\032/.google.analytics.admin.v1alpha.C" - + "ustomDimension\"y\332A\034custom_dimension,upda" - + "te_mask\202\323\344\223\002T2@/v1alpha/{custom_dimensio" - + "n.name=properties/*/customDimensions/*}:" - + "\020custom_dimension\022\323\001\n\024ListCustomDimensio" - + "ns\022;.google.analytics.admin.v1alpha.List" - + "CustomDimensionsRequest\032<.google.analyti" - + "cs.admin.v1alpha.ListCustomDimensionsRes" - + "ponse\"@\332A\006parent\202\323\344\223\0021\022//v1alpha/{parent" - + "=properties/*}/customDimensions\022\272\001\n\026Arch" - + "iveCustomDimension\022=.google.analytics.ad" - + "min.v1alpha.ArchiveCustomDimensionReques" - + "t\032\026.google.protobuf.Empty\"I\332A\004name\202\323\344\223\002<" - + "\"7/v1alpha/{name=properties/*/customDime" - + "nsions/*}:archive:\001*\022\300\001\n\022GetCustomDimens" - + "ion\0229.google.analytics.admin.v1alpha.Get" - + "CustomDimensionRequest\032/.google.analytic" - + "s.admin.v1alpha.CustomDimension\">\332A\004name" - + "\202\323\344\223\0021\022//v1alpha/{name=properties/*/cust" - + "omDimensions/*}\022\331\001\n\022CreateCustomMetric\0229" - + ".google.analytics.admin.v1alpha.CreateCu" - + "stomMetricRequest\032,.google.analytics.adm" - + "in.v1alpha.CustomMetric\"Z\332A\024parent,custo" - + "m_metric\202\323\344\223\002=\",/v1alpha/{parent=propert" - + "ies/*}/customMetrics:\rcustom_metric\022\354\001\n\022" - + "UpdateCustomMetric\0229.google.analytics.ad" - + "min.v1alpha.UpdateCustomMetricRequest\032,." - + "google.analytics.admin.v1alpha.CustomMet" - + "ric\"m\332A\031custom_metric,update_mask\202\323\344\223\002K2" - + ":/v1alpha/{custom_metric.name=properties" - + "/*/customMetrics/*}:\rcustom_metric\022\307\001\n\021L" - + "istCustomMetrics\0228.google.analytics.admi" - + "n.v1alpha.ListCustomMetricsRequest\0329.goo" - + "gle.analytics.admin.v1alpha.ListCustomMe" - + "tricsResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1alpha" - + "/{parent=properties/*}/customMetrics\022\261\001\n" - + "\023ArchiveCustomMetric\022:.google.analytics." - + "admin.v1alpha.ArchiveCustomMetricRequest" - + "\032\026.google.protobuf.Empty\"F\332A\004name\202\323\344\223\0029\"" - + "4/v1alpha/{name=properties/*/customMetri" - + "cs/*}:archive:\001*\022\264\001\n\017GetCustomMetric\0226.g" - + "oogle.analytics.admin.v1alpha.GetCustomM" - + "etricRequest\032,.google.analytics.admin.v1" - + "alpha.CustomMetric\";\332A\004name\202\323\344\223\002.\022,/v1al" - + "pha/{name=properties/*/customMetrics/*}\022" - + "\325\001\n\030GetDataRetentionSettings\022?.google.an" - + "alytics.admin.v1alpha.GetDataRetentionSe" - + "ttingsRequest\0325.google.analytics.admin.v" - + "1alpha.DataRetentionSettings\"A\332A\004name\202\323\344" - + "\223\0024\0222/v1alpha/{name=properties/*/dataRet" - + "entionSettings}\022\254\002\n\033UpdateDataRetentionS" - + "ettings\022B.google.analytics.admin.v1alpha" - + ".UpdateDataRetentionSettingsRequest\0325.go" - + "ogle.analytics.admin.v1alpha.DataRetenti" - + "onSettings\"\221\001\332A#data_retention_settings," - + "update_mask\202\323\344\223\002e2J/v1alpha/{data_retent" - + "ion_settings.name=properties/*/dataReten" - + "tionSettings}:\027data_retention_settings\022\315" - + "\001\n\020CreateDataStream\0227.google.analytics.a" - + "dmin.v1alpha.CreateDataStreamRequest\032*.g" - + "oogle.analytics.admin.v1alpha.DataStream" - + "\"T\332A\022parent,data_stream\202\323\344\223\0029\"*/v1alpha/" - + "{parent=properties/*}/dataStreams:\013data_" - + "stream\022\236\001\n\020DeleteDataStream\0227.google.ana" - + "lytics.admin.v1alpha.DeleteDataStreamReq" - + "uest\032\026.google.protobuf.Empty\"9\332A\004name\202\323\344" - + "\223\002,**/v1alpha/{name=properties/*/dataStr" - + "eams/*}\022\336\001\n\020UpdateDataStream\0227.google.an" - + "alytics.admin.v1alpha.UpdateDataStreamRe" - + "quest\032*.google.analytics.admin.v1alpha.D" - + "ataStream\"e\332A\027data_stream,update_mask\202\323\344" - + "\223\002E26/v1alpha/{data_stream.name=properti" - + "es/*/dataStreams/*}:\013data_stream\022\277\001\n\017Lis" - + "tDataStreams\0226.google.analytics.admin.v1" - + "alpha.ListDataStreamsRequest\0327.google.an" - + "alytics.admin.v1alpha.ListDataStreamsRes" - + "ponse\";\332A\006parent\202\323\344\223\002,\022*/v1alpha/{parent" - + "=properties/*}/dataStreams\022\254\001\n\rGetDataSt" - + "ream\0224.google.analytics.admin.v1alpha.Ge" - + "tDataStreamRequest\032*.google.analytics.ad" - + "min.v1alpha.DataStream\"9\332A\004name\202\323\344\223\002,\022*/" - + "v1alpha/{name=properties/*/dataStreams/*" - + "}\022\244\001\n\013GetAudience\0222.google.analytics.adm" - + "in.v1alpha.GetAudienceRequest\032(.google.a" - + "nalytics.admin.v1alpha.Audience\"7\332A\004name" - + "\202\323\344\223\002*\022(/v1alpha/{name=properties/*/audi" - + "ences/*}\022\267\001\n\rListAudiences\0224.google.anal" - + "ytics.admin.v1alpha.ListAudiencesRequest" - + "\0325.google.analytics.admin.v1alpha.ListAu" - + "diencesResponse\"9\332A\006parent\202\323\344\223\002*\022(/v1alp" - + "ha/{parent=properties/*}/audiences\022\277\001\n\016C" - + "reateAudience\0225.google.analytics.admin.v" - + "1alpha.CreateAudienceRequest\032(.google.an" - + "alytics.admin.v1alpha.Audience\"L\332A\017paren" - + "t,audience\202\323\344\223\0024\"(/v1alpha/{parent=prope" - + "rties/*}/audiences:\010audience\022\315\001\n\016UpdateA" - + "udience\0225.google.analytics.admin.v1alpha" - + ".UpdateAudienceRequest\032(.google.analytic" - + "s.admin.v1alpha.Audience\"Z\332A\024audience,up" - + "date_mask\202\323\344\223\002=21/v1alpha/{audience.name" - + "=properties/*/audiences/*}:\010audience\022\236\001\n" - + "\017ArchiveAudience\0226.google.analytics.admi" - + "n.v1alpha.ArchiveAudienceRequest\032\026.googl" - + "e.protobuf.Empty\";\202\323\344\223\0025\"0/v1alpha/{name" - + "=properties/*/audiences/*}:archive:\001*\022\304\001" - + "\n\023GetSearchAds360Link\022:.google.analytics" - + ".admin.v1alpha.GetSearchAds360LinkReques" - + "t\0320.google.analytics.admin.v1alpha.Searc" - + "hAds360Link\"?\332A\004name\202\323\344\223\0022\0220/v1alpha/{na" - + "me=properties/*/searchAds360Links/*}\022\327\001\n" - + "\025ListSearchAds360Links\022<.google.analytic" - + "s.admin.v1alpha.ListSearchAds360LinksReq" - + "uest\032=.google.analytics.admin.v1alpha.Li" - + "stSearchAds360LinksResponse\"A\332A\006parent\202\323" - + "\344\223\0022\0220/v1alpha/{parent=properties/*}/sea" - + "rchAds360Links\022\365\001\n\026CreateSearchAds360Lin" - + "k\022=.google.analytics.admin.v1alpha.Creat" - + "eSearchAds360LinkRequest\0320.google.analyt" - + "ics.admin.v1alpha.SearchAds360Link\"j\332A\032p" - + "arent,search_ads_360_link\202\323\344\223\002G\"0/v1alph" - + "a/{parent=properties/*}/searchAds360Link" - + "s:\023search_ads_360_link\022\260\001\n\026DeleteSearchA" - + "ds360Link\022=.google.analytics.admin.v1alp" - + "ha.DeleteSearchAds360LinkRequest\032\026.googl" - + "e.protobuf.Empty\"?\332A\004name\202\323\344\223\0022*0/v1alph" - + "a/{name=properties/*/searchAds360Links/*" - + "}\022\217\002\n\026UpdateSearchAds360Link\022=.google.an" - + "alytics.admin.v1alpha.UpdateSearchAds360" - + "LinkRequest\0320.google.analytics.admin.v1a" - + "lpha.SearchAds360Link\"\203\001\332A\037search_ads_36" - + "0_link,update_mask\202\323\344\223\002[2D/v1alpha/{sear" - + "ch_ads_360_link.name=properties/*/search" - + "Ads360Links/*}:\023search_ads_360_link\022\315\001\n\026" - + "GetAttributionSettings\022=.google.analytic" - + "s.admin.v1alpha.GetAttributionSettingsRe" - + "quest\0323.google.analytics.admin.v1alpha.A" - + "ttributionSettings\"?\332A\004name\202\323\344\223\0022\0220/v1al" - + "pha/{name=properties/*/attributionSettin" - + "gs}\022\233\002\n\031UpdateAttributionSettings\022@.goog" - + "le.analytics.admin.v1alpha.UpdateAttribu" - + "tionSettingsRequest\0323.google.analytics.a" - + "dmin.v1alpha.AttributionSettings\"\206\001\332A at" - + "tribution_settings,update_mask\202\323\344\223\002]2E/v" - + "1alpha/{attribution_settings.name=proper" - + "ties/*/attributionSettings}:\024attribution" - + "_settings\022\360\001\n\017RunAccessReport\0226.google.a" - + "nalytics.admin.v1alpha.RunAccessReportRe" - + "quest\0327.google.analytics.admin.v1alpha.R" - + "unAccessReportResponse\"l\202\323\344\223\002f\"./v1alpha" - + "/{entity=properties/*}:runAccessReport:\001" - + "*Z1\",/v1alpha/{entity=accounts/*}:runAcc" - + "essReport:\001*\022\237\002\n\023CreateAccessBinding\022:.g" - + "oogle.analytics.admin.v1alpha.CreateAcce" - + "ssBindingRequest\032-.google.analytics.admi" - + "n.v1alpha.AccessBinding\"\234\001\332A\025parent,acce" - + "ss_binding\202\323\344\223\002~\"+/v1alpha/{parent=accou" - + "nts/*}/accessBindings:\016access_bindingZ?\"" - + "-/v1alpha/{parent=properties/*}/accessBi" - + "ndings:\016access_binding\022\347\001\n\020GetAccessBind" - + "ing\0227.google.analytics.admin.v1alpha.Get" - + "AccessBindingRequest\032-.google.analytics." - + "admin.v1alpha.AccessBinding\"k\332A\004name\202\323\344\223" - + "\002^\022+/v1alpha/{name=accounts/*/accessBind" - + "ings/*}Z/\022-/v1alpha/{name=properties/*/a" - + "ccessBindings/*}\022\267\002\n\023UpdateAccessBinding" - + "\022:.google.analytics.admin.v1alpha.Update" - + "AccessBindingRequest\032-.google.analytics." - + "admin.v1alpha.AccessBinding\"\264\001\332A\016access_" - + "binding\202\323\344\223\002\234\0012:/v1alpha/{access_binding" - + ".name=accounts/*/accessBindings/*}:\016acce" - + "ss_bindingZN2\"9/v1a" - + "lpha/{parent=properties/*}/accessBinding" - + "s:batchCreate:\001*\022\217\002\n\026BatchGetAccessBindi" - + "ngs\022=.google.analytics.admin.v1alpha.Bat" - + "chGetAccessBindingsRequest\032>.google.anal" - + "ytics.admin.v1alpha.BatchGetAccessBindin" - + "gsResponse\"v\202\323\344\223\002p\0224/v1alpha/{parent=acc" - + "ounts/*}/accessBindings:batchGetZ8\0226/v1a" - + "lpha/{parent=properties/*}/accessBinding" - + "s:batchGet\022\245\002\n\031BatchUpdateAccessBindings" - + "\022@.google.analytics.admin.v1alpha.BatchU" - + "pdateAccessBindingsRequest\032A.google.anal" - + "ytics.admin.v1alpha.BatchUpdateAccessBin" - + "dingsResponse\"\202\001\202\323\344\223\002|\"7/v1alpha/{parent" - + "=accounts/*}/accessBindings:batchUpdate:" - + "\001*Z>\"9/v1alpha/{parent=properties/*}/acc" - + "essBindings:batchUpdate:\001*\022\372\001\n\031BatchDele" - + "teAccessBindings\022@.google.analytics.admi" - + "n.v1alpha.BatchDeleteAccessBindingsReque" - + "st\032\026.google.protobuf.Empty\"\202\001\202\323\344\223\002|\"7/v1" - + "alpha/{parent=accounts/*}/accessBindings" - + ":batchDelete:\001*Z>\"9/v1alpha/{parent=prop" - + "erties/*}/accessBindings:batchDelete:\001*\022" - + "\300\001\n\022GetExpandedDataSet\0229.google.analytic" - + "s.admin.v1alpha.GetExpandedDataSetReques" - + "t\032/.google.analytics.admin.v1alpha.Expan" - + "dedDataSet\">\332A\004name\202\323\344\223\0021\022//v1alpha/{nam" - + "e=properties/*/expandedDataSets/*}\022\323\001\n\024L" - + "istExpandedDataSets\022;.google.analytics.a" - + "dmin.v1alpha.ListExpandedDataSetsRequest" - + "\032<.google.analytics.admin.v1alpha.ListEx" - + "pandedDataSetsResponse\"@\332A\006parent\202\323\344\223\0021\022" - + "//v1alpha/{parent=properties/*}/expanded" - + "DataSets\022\355\001\n\025CreateExpandedDataSet\022<.goo" - + "gle.analytics.admin.v1alpha.CreateExpand" - + "edDataSetRequest\032/.google.analytics.admi" - + "n.v1alpha.ExpandedDataSet\"e\332A\030parent,exp" - + "anded_data_set\202\323\344\223\002D\"//v1alpha/{parent=p" - + "roperties/*}/expandedDataSets:\021expanded_" - + "data_set\022\204\002\n\025UpdateExpandedDataSet\022<.goo" - + "gle.analytics.admin.v1alpha.UpdateExpand" - + "edDataSetRequest\032/.google.analytics.admi" - + "n.v1alpha.ExpandedDataSet\"|\332A\035expanded_d" - + "ata_set,update_mask\202\323\344\223\002V2A/v1alpha/{exp" - + "anded_data_set.name=properties/*/expande", - "dDataSets/*}:\021expanded_data_set\022\255\001\n\025Dele" - + "teExpandedDataSet\022<.google.analytics.adm" - + "in.v1alpha.DeleteExpandedDataSetRequest\032" - + "\026.google.protobuf.Empty\">\332A\004name\202\323\344\223\0021*/" - + "/v1alpha/{name=properties/*/expandedData" - + "Sets/*}\022\264\001\n\017GetChannelGroup\0226.google.ana" - + "lytics.admin.v1alpha.GetChannelGroupRequ" - + "est\032,.google.analytics.admin.v1alpha.Cha" - + "nnelGroup\";\332A\004name\202\323\344\223\002.\022,/v1alpha/{name" - + "=properties/*/channelGroups/*}\022\307\001\n\021ListC" - + "hannelGroups\0228.google.analytics.admin.v1" - + "alpha.ListChannelGroupsRequest\0329.google." - + "analytics.admin.v1alpha.ListChannelGroup" - + "sResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1alpha/{pa" - + "rent=properties/*}/channelGroups\022\331\001\n\022Cre" - + "ateChannelGroup\0229.google.analytics.admin" - + ".v1alpha.CreateChannelGroupRequest\032,.goo" - + "gle.analytics.admin.v1alpha.ChannelGroup" - + "\"Z\332A\024parent,channel_group\202\323\344\223\002=\",/v1alph" - + "a/{parent=properties/*}/channelGroups:\rc" - + "hannel_group\022\354\001\n\022UpdateChannelGroup\0229.go" - + "ogle.analytics.admin.v1alpha.UpdateChann" + + "Video360AdvertiserLinkProposal\"\255\001\332A1pare" + + "nt,display_video_360_advertiser_link_pro" + + "posal\202\323\344\223\002s\"E/v1alpha/{parent=properties" + + "/*}/displayVideo360AdvertiserLinkProposa" + + "ls:*display_video_360_advertiser_link_pr" + + "oposal\022\357\001\n+DeleteDisplayVideo360Advertis" + + "erLinkProposal\022R.google.analytics.admin." + + "v1alpha.DeleteDisplayVideo360AdvertiserL" + + "inkProposalRequest\032\026.google.protobuf.Emp" + + "ty\"T\332A\004name\202\323\344\223\002G*E/v1alpha/{name=proper" + + "ties/*/displayVideo360AdvertiserLinkProp" + + "osals/*}\022\263\002\n,ApproveDisplayVideo360Adver" + + "tiserLinkProposal\022S.google.analytics.adm" + + "in.v1alpha.ApproveDisplayVideo360Adverti" + + "serLinkProposalRequest\032T.google.analytic" + + "s.admin.v1alpha.ApproveDisplayVideo360Ad" + + "vertiserLinkProposalResponse\"X\202\323\344\223\002R\"M/v" + + "1alpha/{name=properties/*/displayVideo36" + + "0AdvertiserLinkProposals/*}:approve:\001*\022\241" + + "\002\n+CancelDisplayVideo360AdvertiserLinkPr" + + "oposal\022R.google.analytics.admin.v1alpha." + + "CancelDisplayVideo360AdvertiserLinkPropo" + + "salRequest\032E.google.analytics.admin.v1al" + + "pha.DisplayVideo360AdvertiserLinkProposa" + + "l\"W\202\323\344\223\002Q\"L/v1alpha/{name=properties/*/d" + + "isplayVideo360AdvertiserLinkProposals/*}" + + ":cancel:\001*\022\353\001\n\025CreateCustomDimension\022<.g" + + "oogle.analytics.admin.v1alpha.CreateCust" + + "omDimensionRequest\032/.google.analytics.ad" + + "min.v1alpha.CustomDimension\"c\332A\027parent,c" + + "ustom_dimension\202\323\344\223\002C\"//v1alpha/{parent=" + + "properties/*}/customDimensions:\020custom_d" + + "imension\022\201\002\n\025UpdateCustomDimension\022<.goo" + + "gle.analytics.admin.v1alpha.UpdateCustom" + + "DimensionRequest\032/.google.analytics.admi" + + "n.v1alpha.CustomDimension\"y\332A\034custom_dim" + + "ension,update_mask\202\323\344\223\002T2@/v1alpha/{cust" + + "om_dimension.name=properties/*/customDim" + + "ensions/*}:\020custom_dimension\022\323\001\n\024ListCus" + + "tomDimensions\022;.google.analytics.admin.v" + + "1alpha.ListCustomDimensionsRequest\032<.goo" + + "gle.analytics.admin.v1alpha.ListCustomDi" + + "mensionsResponse\"@\332A\006parent\202\323\344\223\0021\022//v1al" + + "pha/{parent=properties/*}/customDimensio" + + "ns\022\272\001\n\026ArchiveCustomDimension\022=.google.a" + + "nalytics.admin.v1alpha.ArchiveCustomDime" + + "nsionRequest\032\026.google.protobuf.Empty\"I\332A" + + "\004name\202\323\344\223\002<\"7/v1alpha/{name=properties/*" + + "/customDimensions/*}:archive:\001*\022\300\001\n\022GetC" + + "ustomDimension\0229.google.analytics.admin." + + "v1alpha.GetCustomDimensionRequest\032/.goog" + + "le.analytics.admin.v1alpha.CustomDimensi" + + "on\">\332A\004name\202\323\344\223\0021\022//v1alpha/{name=proper" + + "ties/*/customDimensions/*}\022\331\001\n\022CreateCus" + + "tomMetric\0229.google.analytics.admin.v1alp" + + "ha.CreateCustomMetricRequest\032,.google.an" + + "alytics.admin.v1alpha.CustomMetric\"Z\332A\024p" + + "arent,custom_metric\202\323\344\223\002=\",/v1alpha/{par" + + "ent=properties/*}/customMetrics:\rcustom_" + + "metric\022\354\001\n\022UpdateCustomMetric\0229.google.a" + + "nalytics.admin.v1alpha.UpdateCustomMetri" + + "cRequest\032,.google.analytics.admin.v1alph" + + "a.CustomMetric\"m\332A\031custom_metric,update_" + + "mask\202\323\344\223\002K2:/v1alpha/{custom_metric.name" + + "=properties/*/customMetrics/*}:\rcustom_m" + + "etric\022\307\001\n\021ListCustomMetrics\0228.google.ana" + + "lytics.admin.v1alpha.ListCustomMetricsRe" + + "quest\0329.google.analytics.admin.v1alpha.L" + + "istCustomMetricsResponse\"=\332A\006parent\202\323\344\223\002" + + ".\022,/v1alpha/{parent=properties/*}/custom" + + "Metrics\022\261\001\n\023ArchiveCustomMetric\022:.google" + + ".analytics.admin.v1alpha.ArchiveCustomMe" + + "tricRequest\032\026.google.protobuf.Empty\"F\332A\004" + + "name\202\323\344\223\0029\"4/v1alpha/{name=properties/*/" + + "customMetrics/*}:archive:\001*\022\264\001\n\017GetCusto" + + "mMetric\0226.google.analytics.admin.v1alpha" + + ".GetCustomMetricRequest\032,.google.analyti" + + "cs.admin.v1alpha.CustomMetric\";\332A\004name\202\323" + + "\344\223\002.\022,/v1alpha/{name=properties/*/custom" + + "Metrics/*}\022\325\001\n\030GetDataRetentionSettings\022" + + "?.google.analytics.admin.v1alpha.GetData" + + "RetentionSettingsRequest\0325.google.analyt" + + "ics.admin.v1alpha.DataRetentionSettings\"" + + "A\332A\004name\202\323\344\223\0024\0222/v1alpha/{name=propertie" + + "s/*/dataRetentionSettings}\022\254\002\n\033UpdateDat" + + "aRetentionSettings\022B.google.analytics.ad" + + "min.v1alpha.UpdateDataRetentionSettingsR" + + "equest\0325.google.analytics.admin.v1alpha." + + "DataRetentionSettings\"\221\001\332A#data_retentio" + + "n_settings,update_mask\202\323\344\223\002e2J/v1alpha/{" + + "data_retention_settings.name=properties/" + + "*/dataRetentionSettings}:\027data_retention" + + "_settings\022\315\001\n\020CreateDataStream\0227.google." + + "analytics.admin.v1alpha.CreateDataStream" + + "Request\032*.google.analytics.admin.v1alpha" + + ".DataStream\"T\332A\022parent,data_stream\202\323\344\223\0029" + + "\"*/v1alpha/{parent=properties/*}/dataStr" + + "eams:\013data_stream\022\236\001\n\020DeleteDataStream\0227" + + ".google.analytics.admin.v1alpha.DeleteDa" + + "taStreamRequest\032\026.google.protobuf.Empty\"" + + "9\332A\004name\202\323\344\223\002,**/v1alpha/{name=propertie" + + "s/*/dataStreams/*}\022\336\001\n\020UpdateDataStream\022" + + "7.google.analytics.admin.v1alpha.UpdateD" + + "ataStreamRequest\032*.google.analytics.admi" + + "n.v1alpha.DataStream\"e\332A\027data_stream,upd" + + "ate_mask\202\323\344\223\002E26/v1alpha/{data_stream.na" + + "me=properties/*/dataStreams/*}:\013data_str" + + "eam\022\277\001\n\017ListDataStreams\0226.google.analyti" + + "cs.admin.v1alpha.ListDataStreamsRequest\032" + + "7.google.analytics.admin.v1alpha.ListDat" + + "aStreamsResponse\";\332A\006parent\202\323\344\223\002,\022*/v1al" + + "pha/{parent=properties/*}/dataStreams\022\254\001" + + "\n\rGetDataStream\0224.google.analytics.admin" + + ".v1alpha.GetDataStreamRequest\032*.google.a" + + "nalytics.admin.v1alpha.DataStream\"9\332A\004na" + + "me\202\323\344\223\002,\022*/v1alpha/{name=properties/*/da" + + "taStreams/*}\022\244\001\n\013GetAudience\0222.google.an" + + "alytics.admin.v1alpha.GetAudienceRequest" + + "\032(.google.analytics.admin.v1alpha.Audien" + + "ce\"7\332A\004name\202\323\344\223\002*\022(/v1alpha/{name=proper" + + "ties/*/audiences/*}\022\267\001\n\rListAudiences\0224." + + "google.analytics.admin.v1alpha.ListAudie" + + "ncesRequest\0325.google.analytics.admin.v1a" + + "lpha.ListAudiencesResponse\"9\332A\006parent\202\323\344" + + "\223\002*\022(/v1alpha/{parent=properties/*}/audi" + + "ences\022\277\001\n\016CreateAudience\0225.google.analyt" + + "ics.admin.v1alpha.CreateAudienceRequest\032" + + "(.google.analytics.admin.v1alpha.Audienc" + + "e\"L\332A\017parent,audience\202\323\344\223\0024\"(/v1alpha/{p" + + "arent=properties/*}/audiences:\010audience\022" + + "\315\001\n\016UpdateAudience\0225.google.analytics.ad" + + "min.v1alpha.UpdateAudienceRequest\032(.goog" + + "le.analytics.admin.v1alpha.Audience\"Z\332A\024" + + "audience,update_mask\202\323\344\223\002=21/v1alpha/{au" + + "dience.name=properties/*/audiences/*}:\010a" + + "udience\022\236\001\n\017ArchiveAudience\0226.google.ana" + + "lytics.admin.v1alpha.ArchiveAudienceRequ" + + "est\032\026.google.protobuf.Empty\";\202\323\344\223\0025\"0/v1" + + "alpha/{name=properties/*/audiences/*}:ar" + + "chive:\001*\022\304\001\n\023GetSearchAds360Link\022:.googl" + + "e.analytics.admin.v1alpha.GetSearchAds36" + + "0LinkRequest\0320.google.analytics.admin.v1" + + "alpha.SearchAds360Link\"?\332A\004name\202\323\344\223\0022\0220/" + + "v1alpha/{name=properties/*/searchAds360L" + + "inks/*}\022\327\001\n\025ListSearchAds360Links\022<.goog" + + "le.analytics.admin.v1alpha.ListSearchAds" + + "360LinksRequest\032=.google.analytics.admin" + + ".v1alpha.ListSearchAds360LinksResponse\"A" + + "\332A\006parent\202\323\344\223\0022\0220/v1alpha/{parent=proper" + + "ties/*}/searchAds360Links\022\365\001\n\026CreateSear" + + "chAds360Link\022=.google.analytics.admin.v1" + + "alpha.CreateSearchAds360LinkRequest\0320.go" + + "ogle.analytics.admin.v1alpha.SearchAds36" + + "0Link\"j\332A\032parent,search_ads_360_link\202\323\344\223" + + "\002G\"0/v1alpha/{parent=properties/*}/searc" + + "hAds360Links:\023search_ads_360_link\022\260\001\n\026De" + + "leteSearchAds360Link\022=.google.analytics." + + "admin.v1alpha.DeleteSearchAds360LinkRequ" + + "est\032\026.google.protobuf.Empty\"?\332A\004name\202\323\344\223" + + "\0022*0/v1alpha/{name=properties/*/searchAd" + + "s360Links/*}\022\217\002\n\026UpdateSearchAds360Link\022" + + "=.google.analytics.admin.v1alpha.UpdateS" + + "earchAds360LinkRequest\0320.google.analytic" + + "s.admin.v1alpha.SearchAds360Link\"\203\001\332A\037se" + + "arch_ads_360_link,update_mask\202\323\344\223\002[2D/v1" + + "alpha/{search_ads_360_link.name=properti" + + "es/*/searchAds360Links/*}:\023search_ads_36" + + "0_link\022\315\001\n\026GetAttributionSettings\022=.goog" + + "le.analytics.admin.v1alpha.GetAttributio" + + "nSettingsRequest\0323.google.analytics.admi" + + "n.v1alpha.AttributionSettings\"?\332A\004name\202\323" + + "\344\223\0022\0220/v1alpha/{name=properties/*/attrib" + + "utionSettings}\022\233\002\n\031UpdateAttributionSett" + + "ings\022@.google.analytics.admin.v1alpha.Up" + + "dateAttributionSettingsRequest\0323.google." + + "analytics.admin.v1alpha.AttributionSetti" + + "ngs\"\206\001\332A attribution_settings,update_mas" + + "k\202\323\344\223\002]2E/v1alpha/{attribution_settings." + + "name=properties/*/attributionSettings}:\024" + + "attribution_settings\022\360\001\n\017RunAccessReport" + + "\0226.google.analytics.admin.v1alpha.RunAcc" + + "essReportRequest\0327.google.analytics.admi" + + "n.v1alpha.RunAccessReportResponse\"l\202\323\344\223\002" + + "f\"./v1alpha/{entity=properties/*}:runAcc" + + "essReport:\001*Z1\",/v1alpha/{entity=account" + + "s/*}:runAccessReport:\001*\022\237\002\n\023CreateAccess" + + "Binding\022:.google.analytics.admin.v1alpha" + + ".CreateAccessBindingRequest\032-.google.ana" + + "lytics.admin.v1alpha.AccessBinding\"\234\001\332A\025" + + "parent,access_binding\202\323\344\223\002~\"+/v1alpha/{p" + + "arent=accounts/*}/accessBindings:\016access" + + "_bindingZ?\"-/v1alpha/{parent=properties/" + + "*}/accessBindings:\016access_binding\022\347\001\n\020Ge" + + "tAccessBinding\0227.google.analytics.admin." + + "v1alpha.GetAccessBindingRequest\032-.google" + + ".analytics.admin.v1alpha.AccessBinding\"k" + + "\332A\004name\202\323\344\223\002^\022+/v1alpha/{name=accounts/*" + + "/accessBindings/*}Z/\022-/v1alpha/{name=pro" + + "perties/*/accessBindings/*}\022\267\002\n\023UpdateAc" + + "cessBinding\022:.google.analytics.admin.v1a" + + "lpha.UpdateAccessBindingRequest\032-.google" + + ".analytics.admin.v1alpha.AccessBinding\"\264" + + "\001\332A\016access_binding\202\323\344\223\002\234\0012:/v1alpha/{acc" + + "ess_binding.name=accounts/*/accessBindin" + + "gs/*}:\016access_bindingZN2\"9/v1alpha/{parent=properties/*}/ac" + + "cessBindings:batchCreate:\001*\022\217\002\n\026BatchGet" + + "AccessBindings\022=.google.analytics.admin." + + "v1alpha.BatchGetAccessBindingsRequest\032>." + + "google.analytics.admin.v1alpha.BatchGetA" + + "ccessBindingsResponse\"v\202\323\344\223\002p\0224/v1alpha/" + + "{parent=accounts/*}/accessBindings:batch" + + "GetZ8\0226/v1alpha/{parent=properties/*}/ac" + + "cessBindings:batchGet\022\245\002\n\031BatchUpdateAcc" + + "essBindings\022@.google.analytics.admin.v1a" + + "lpha.BatchUpdateAccessBindingsRequest\032A." + + "google.analytics.admin.v1alpha.BatchUpda" + + "teAccessBindingsResponse\"\202\001\202\323\344\223\002|\"7/v1al" + + "pha/{parent=accounts/*}/accessBindings:b" + + "atchUpdate:\001*Z>\"9/v1alpha/{parent=proper" + + "ties/*}/accessBindings:batchUpdate:\001*\022\372\001" + + "\n\031BatchDeleteAccessBindings\022@.google.ana" + + "lytics.admin.v1alpha.BatchDeleteAccessBi" + + "ndingsRequest\032\026.google.protobuf.Empty\"\202\001" + + "\202\323\344\223\002|\"7/v1alpha/{parent=accounts/*}/acc" + + "essBindings:batchDelete:\001*Z>\"9/v1alpha/{" + + "parent=properties/*}/accessBindings:batc" + + "hDelete:\001*\022\300\001\n\022GetExpandedDataSet\0229.goog" + + "le.analytics.admin.v1alpha.GetExpandedDa" + + "taSetRequest\032/.google.analytics.admin.v1" + + "alpha.ExpandedDataSet\">\332A\004name\202\323\344\223\0021\022//v" + + "1alpha/{name=properties/*/expandedDataSe" + + "ts/*}\022\323\001\n\024ListExpandedDataSets\022;.google." + + "analytics.admin.v1alpha.ListExpandedData" + + "SetsRequest\032<.google.analytics.admin.v1a" + + "lpha.ListExpandedDataSetsResponse\"@\332A\006pa" + + "rent\202\323\344\223\0021\022//v1alpha/{parent=properties/" + + "*}/expandedDataSets\022\355\001\n\025CreateExpandedDa" + + "taSet\022<.google.analytics.admin.v1alpha.C" + + "reateExpandedDataSetRequest\032/.google.ana" + + "lytics.admin.v1alpha.ExpandedDataSet\"e\332A" + + "\030parent,expanded_data_set\202\323\344\223\002D\"//v1alph" + + "a/{parent=properties/*}/expandedDataSets" + + ":\021expanded_data_set\022\204\002\n\025UpdateExpandedDa" + + "taSet\022<.google.analytics.admin.v1alpha.U" + + "pdateExpandedDataSetRequest\032/.google.ana" + + "lytics.admin.v1alpha.ExpandedDataSet\"|\332A" + + "\035expanded_data_set,update_mask\202\323\344\223\002V2A/v" + + "1alpha/{expanded_data_set.name=propertie" + + "s/*/expandedDataSets/*}:\021expanded_data_s" + + "et\022\255\001\n\025DeleteExpandedDataSet\022<.google.an" + + "alytics.admin.v1alpha.DeleteExpandedData" + + "SetRequest\032\026.google.protobuf.Empty\">\332A\004n" + + "ame\202\323\344\223\0021*//v1alpha/{name=properties/*/e" + + "xpandedDataSets/*}\022\264\001\n\017GetChannelGroup\0226" + + ".google.analytics.admin.v1alpha.GetChann" + "elGroupRequest\032,.google.analytics.admin." - + "v1alpha.ChannelGroup\"m\332A\031channel_group,u" - + "pdate_mask\202\323\344\223\002K2:/v1alpha/{channel_grou" - + "p.name=properties/*/channelGroups/*}:\rch" - + "annel_group\022\244\001\n\022DeleteChannelGroup\0229.goo" - + "gle.analytics.admin.v1alpha.DeleteChanne" - + "lGroupRequest\032\026.google.protobuf.Empty\";\332" - + "A\004name\202\323\344\223\002.*,/v1alpha/{name=properties/" - + "*/channelGroups/*}\022\376\001\n\"SetAutomatedGa4Co" - + "nfigurationOptOut\022I.google.analytics.adm" - + "in.v1alpha.SetAutomatedGa4ConfigurationO" - + "ptOutRequest\032J.google.analytics.admin.v1" - + "alpha.SetAutomatedGa4ConfigurationOptOut" - + "Response\"A\202\323\344\223\002;\"6/v1alpha/properties:se" - + "tAutomatedGa4ConfigurationOptOut:\001*\022\206\002\n$" - + "FetchAutomatedGa4ConfigurationOptOut\022K.g" - + "oogle.analytics.admin.v1alpha.FetchAutom" - + "atedGa4ConfigurationOptOutRequest\032L.goog" - + "le.analytics.admin.v1alpha.FetchAutomate" - + "dGa4ConfigurationOptOutResponse\"C\202\323\344\223\002=\"" - + "8/v1alpha/properties:fetchAutomatedGa4Co" - + "nfigurationOptOut:\001*\022\264\001\n\017GetBigQueryLink" - + "\0226.google.analytics.admin.v1alpha.GetBig" - + "QueryLinkRequest\032,.google.analytics.admi" - + "n.v1alpha.BigQueryLink\";\332A\004name\202\323\344\223\002.\022,/" - + "v1alpha/{name=properties/*/bigQueryLinks" - + "/*}\022\307\001\n\021ListBigQueryLinks\0228.google.analy" - + "tics.admin.v1alpha.ListBigQueryLinksRequ" - + "est\0329.google.analytics.admin.v1alpha.Lis" - + "tBigQueryLinksResponse\"=\332A\006parent\202\323\344\223\002.\022" - + ",/v1alpha/{parent=properties/*}/bigQuery" - + "Links\022\373\001\n\036GetEnhancedMeasurementSettings" - + "\022E.google.analytics.admin.v1alpha.GetEnh" - + "ancedMeasurementSettingsRequest\032;.google" - + ".analytics.admin.v1alpha.EnhancedMeasure" - + "mentSettings\"U\332A\004name\202\323\344\223\002H\022F/v1alpha/{n" - + "ame=properties/*/dataStreams/*/enhancedM" - + "easurementSettings}\022\345\002\n!UpdateEnhancedMe" - + "asurementSettings\022H.google.analytics.adm" - + "in.v1alpha.UpdateEnhancedMeasurementSett" - + "ingsRequest\032;.google.analytics.admin.v1a" - + "lpha.EnhancedMeasurementSettings\"\270\001\332A)en" - + "hanced_measurement_settings,update_mask\202" - + "\323\344\223\002\205\0012d/v1alpha/{enhanced_measurement_s" - + "ettings.name=properties/*/dataStreams/*/" - + "enhancedMeasurementSettings}:\035enhanced_m" - + "easurement_settings\022\316\001\n\026CreateConnectedS" - + "iteTag\022=.google.analytics.admin.v1alpha." - + "CreateConnectedSiteTagRequest\032>.google.a" - + "nalytics.admin.v1alpha.CreateConnectedSi" - + "teTagResponse\"5\202\323\344\223\002/\"*/v1alpha/properti" - + "es:createConnectedSiteTag:\001*\022\246\001\n\026DeleteC" - + "onnectedSiteTag\022=.google.analytics.admin" - + ".v1alpha.DeleteConnectedSiteTagRequest\032\026" - + ".google.protobuf.Empty\"5\202\323\344\223\002/\"*/v1alpha" - + "/properties:deleteConnectedSiteTag:\001*\022\312\001" - + "\n\025ListConnectedSiteTags\022<.google.analyti" - + "cs.admin.v1alpha.ListConnectedSiteTagsRe" - + "quest\032=.google.analytics.admin.v1alpha.L" - + "istConnectedSiteTagsResponse\"4\202\323\344\223\002.\")/v" - + "1alpha/properties:listConnectedSiteTags:" - + "\001*\022\327\001\n\031FetchConnectedGa4Property\022@.googl" - + "e.analytics.admin.v1alpha.FetchConnected" - + "Ga4PropertyRequest\032A.google.analytics.ad" - + "min.v1alpha.FetchConnectedGa4PropertyRes" - + "ponse\"5\202\323\344\223\002/\022-/v1alpha/properties:fetch" - + "ConnectedGa4Property\022\260\001\n\016GetAdSenseLink\022" - + "5.google.analytics.admin.v1alpha.GetAdSe" - + "nseLinkRequest\032+.google.analytics.admin." - + "v1alpha.AdSenseLink\":\332A\004name\202\323\344\223\002-\022+/v1a" - + "lpha/{name=properties/*/adSenseLinks/*}\022" - + "\323\001\n\021CreateAdSenseLink\0228.google.analytics" - + ".admin.v1alpha.CreateAdSenseLinkRequest\032" - + "+.google.analytics.admin.v1alpha.AdSense" - + "Link\"W\332A\023parent,adsense_link\202\323\344\223\002;\"+/v1a" - + "lpha/{parent=properties/*}/adSenseLinks:" - + "\014adsense_link\022\241\001\n\021DeleteAdSenseLink\0228.go" - + "ogle.analytics.admin.v1alpha.DeleteAdSen" - + "seLinkRequest\032\026.google.protobuf.Empty\":\332" - + "A\004name\202\323\344\223\002-*+/v1alpha/{name=properties/" - + "*/adSenseLinks/*}\022\303\001\n\020ListAdSenseLinks\0227" - + ".google.analytics.admin.v1alpha.ListAdSe" - + "nseLinksRequest\0328.google.analytics.admin" - + ".v1alpha.ListAdSenseLinksResponse\"<\332A\006pa" - + "rent\202\323\344\223\002-\022+/v1alpha/{parent=properties/" - + "*}/adSenseLinks\022\316\001\n\022GetEventCreateRule\0229" - + ".google.analytics.admin.v1alpha.GetEvent" - + "CreateRuleRequest\032/.google.analytics.adm" - + "in.v1alpha.EventCreateRule\"L\332A\004name\202\323\344\223\002" - + "?\022=/v1alpha/{name=properties/*/dataStrea" - + "ms/*/eventCreateRules/*}\022\341\001\n\024ListEventCr" - + "eateRules\022;.google.analytics.admin.v1alp" - + "ha.ListEventCreateRulesRequest\032<.google." - + "analytics.admin.v1alpha.ListEventCreateR" - + "ulesResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1alpha/" - + "{parent=properties/*/dataStreams/*}/even" - + "tCreateRules\022\373\001\n\025CreateEventCreateRule\022<" - + ".google.analytics.admin.v1alpha.CreateEv" - + "entCreateRuleRequest\032/.google.analytics." - + "admin.v1alpha.EventCreateRule\"s\332A\030parent" - + ",event_create_rule\202\323\344\223\002R\"=/v1alpha/{pare" - + "nt=properties/*/dataStreams/*}/eventCrea" - + "teRules:\021event_create_rule\022\223\002\n\025UpdateEve" - + "ntCreateRule\022<.google.analytics.admin.v1" - + "alpha.UpdateEventCreateRuleRequest\032/.goo" - + "gle.analytics.admin.v1alpha.EventCreateR" - + "ule\"\212\001\332A\035event_create_rule,update_mask\202\323" - + "\344\223\002d2O/v1alpha/{event_create_rule.name=p" - + "roperties/*/dataStreams/*/eventCreateRul" - + "es/*}:\021event_create_rule\022\273\001\n\025DeleteEvent" - + "CreateRule\022<.google.analytics.admin.v1al" - + "pha.DeleteEventCreateRuleRequest\032\026.googl" - + "e.protobuf.Empty\"L\332A\004name\202\323\344\223\002?*=/v1alph" - + "a/{name=properties/*/dataStreams/*/event" - + "CreateRules/*}\032\374\001\312A\035analyticsadmin.googl" - + "eapis.com\322A\330\001https://www.googleapis.com/" - + "auth/analytics.edit,https://www.googleap" - + "is.com/auth/analytics.manage.users,https" - + "://www.googleapis.com/auth/analytics.man" - + "age.users.readonly,https://www.googleapi" - + "s.com/auth/analytics.readonlyB{\n\"com.goo" - + "gle.analytics.admin.v1alphaB\023AnalyticsAd" - + "minProtoP\001Z>cloud.google.com/go/analytic" - + "s/admin/apiv1alpha/adminpb;adminpbb\006prot" - + "o3" + + "v1alpha.ChannelGroup\";\332A\004name\202\323\344\223\002.\022,/v1" + + "alpha/{name=properties/*/channelGroups/*" + + "}\022\307\001\n\021ListChannelGroups\0228.google.analyti" + + "cs.admin.v1alpha.ListChannelGroupsReques" + + "t\0329.google.analytics.admin.v1alpha.ListC" + + "hannelGroupsResponse\"=\332A\006parent\202\323\344\223\002.\022,/" + + "v1alpha/{parent=properties/*}/channelGro" + + "ups\022\331\001\n\022CreateChannelGroup\0229.google.anal" + + "ytics.admin.v1alpha.CreateChannelGroupRe" + + "quest\032,.google.analytics.admin.v1alpha.C" + + "hannelGroup\"Z\332A\024parent,channel_group\202\323\344\223" + + "\002=\",/v1alpha/{parent=properties/*}/chann" + + "elGroups:\rchannel_group\022\354\001\n\022UpdateChanne" + + "lGroup\0229.google.analytics.admin.v1alpha." + + "UpdateChannelGroupRequest\032,.google.analy" + + "tics.admin.v1alpha.ChannelGroup\"m\332A\031chan" + + "nel_group,update_mask\202\323\344\223\002K2:/v1alpha/{c" + + "hannel_group.name=properties/*/channelGr" + + "oups/*}:\rchannel_group\022\244\001\n\022DeleteChannel" + + "Group\0229.google.analytics.admin.v1alpha.D" + + "eleteChannelGroupRequest\032\026.google.protob" + + "uf.Empty\";\332A\004name\202\323\344\223\002.*,/v1alpha/{name=" + + "properties/*/channelGroups/*}\022\376\001\n\"SetAut" + + "omatedGa4ConfigurationOptOut\022I.google.an" + + "alytics.admin.v1alpha.SetAutomatedGa4Con" + + "figurationOptOutRequest\032J.google.analyti" + + "cs.admin.v1alpha.SetAutomatedGa4Configur", + "ationOptOutResponse\"A\202\323\344\223\002;\"6/v1alpha/pr" + + "operties:setAutomatedGa4ConfigurationOpt" + + "Out:\001*\022\206\002\n$FetchAutomatedGa4Configuratio" + + "nOptOut\022K.google.analytics.admin.v1alpha" + + ".FetchAutomatedGa4ConfigurationOptOutReq" + + "uest\032L.google.analytics.admin.v1alpha.Fe" + + "tchAutomatedGa4ConfigurationOptOutRespon" + + "se\"C\202\323\344\223\002=\"8/v1alpha/properties:fetchAut" + + "omatedGa4ConfigurationOptOut:\001*\022\264\001\n\017GetB" + + "igQueryLink\0226.google.analytics.admin.v1a" + + "lpha.GetBigQueryLinkRequest\032,.google.ana" + + "lytics.admin.v1alpha.BigQueryLink\";\332A\004na" + + "me\202\323\344\223\002.\022,/v1alpha/{name=properties/*/bi" + + "gQueryLinks/*}\022\307\001\n\021ListBigQueryLinks\0228.g" + + "oogle.analytics.admin.v1alpha.ListBigQue" + + "ryLinksRequest\0329.google.analytics.admin." + + "v1alpha.ListBigQueryLinksResponse\"=\332A\006pa" + + "rent\202\323\344\223\002.\022,/v1alpha/{parent=properties/" + + "*}/bigQueryLinks\022\373\001\n\036GetEnhancedMeasurem" + + "entSettings\022E.google.analytics.admin.v1a" + + "lpha.GetEnhancedMeasurementSettingsReque" + + "st\032;.google.analytics.admin.v1alpha.Enha" + + "ncedMeasurementSettings\"U\332A\004name\202\323\344\223\002H\022F" + + "/v1alpha/{name=properties/*/dataStreams/" + + "*/enhancedMeasurementSettings}\022\345\002\n!Updat" + + "eEnhancedMeasurementSettings\022H.google.an" + + "alytics.admin.v1alpha.UpdateEnhancedMeas" + + "urementSettingsRequest\032;.google.analytic" + + "s.admin.v1alpha.EnhancedMeasurementSetti" + + "ngs\"\270\001\332A)enhanced_measurement_settings,u" + + "pdate_mask\202\323\344\223\002\205\0012d/v1alpha/{enhanced_me" + + "asurement_settings.name=properties/*/dat" + + "aStreams/*/enhancedMeasurementSettings}:" + + "\035enhanced_measurement_settings\022\316\001\n\026Creat" + + "eConnectedSiteTag\022=.google.analytics.adm" + + "in.v1alpha.CreateConnectedSiteTagRequest" + + "\032>.google.analytics.admin.v1alpha.Create" + + "ConnectedSiteTagResponse\"5\202\323\344\223\002/\"*/v1alp" + + "ha/properties:createConnectedSiteTag:\001*\022" + + "\246\001\n\026DeleteConnectedSiteTag\022=.google.anal" + + "ytics.admin.v1alpha.DeleteConnectedSiteT" + + "agRequest\032\026.google.protobuf.Empty\"5\202\323\344\223\002" + + "/\"*/v1alpha/properties:deleteConnectedSi" + + "teTag:\001*\022\312\001\n\025ListConnectedSiteTags\022<.goo" + + "gle.analytics.admin.v1alpha.ListConnecte" + + "dSiteTagsRequest\032=.google.analytics.admi" + + "n.v1alpha.ListConnectedSiteTagsResponse\"" + + "4\202\323\344\223\002.\")/v1alpha/properties:listConnect" + + "edSiteTags:\001*\022\327\001\n\031FetchConnectedGa4Prope" + + "rty\022@.google.analytics.admin.v1alpha.Fet" + + "chConnectedGa4PropertyRequest\032A.google.a" + + "nalytics.admin.v1alpha.FetchConnectedGa4" + + "PropertyResponse\"5\202\323\344\223\002/\022-/v1alpha/prope" + + "rties:fetchConnectedGa4Property\022\260\001\n\016GetA" + + "dSenseLink\0225.google.analytics.admin.v1al" + + "pha.GetAdSenseLinkRequest\032+.google.analy" + + "tics.admin.v1alpha.AdSenseLink\":\332A\004name\202" + + "\323\344\223\002-\022+/v1alpha/{name=properties/*/adSen" + + "seLinks/*}\022\323\001\n\021CreateAdSenseLink\0228.googl" + + "e.analytics.admin.v1alpha.CreateAdSenseL" + + "inkRequest\032+.google.analytics.admin.v1al" + + "pha.AdSenseLink\"W\332A\023parent,adsense_link\202" + + "\323\344\223\002;\"+/v1alpha/{parent=properties/*}/ad" + + "SenseLinks:\014adsense_link\022\241\001\n\021DeleteAdSen" + + "seLink\0228.google.analytics.admin.v1alpha." + + "DeleteAdSenseLinkRequest\032\026.google.protob" + + "uf.Empty\":\332A\004name\202\323\344\223\002-*+/v1alpha/{name=" + + "properties/*/adSenseLinks/*}\022\303\001\n\020ListAdS" + + "enseLinks\0227.google.analytics.admin.v1alp" + + "ha.ListAdSenseLinksRequest\0328.google.anal" + + "ytics.admin.v1alpha.ListAdSenseLinksResp" + + "onse\"<\332A\006parent\202\323\344\223\002-\022+/v1alpha/{parent=" + + "properties/*}/adSenseLinks\022\316\001\n\022GetEventC" + + "reateRule\0229.google.analytics.admin.v1alp" + + "ha.GetEventCreateRuleRequest\032/.google.an" + + "alytics.admin.v1alpha.EventCreateRule\"L\332" + + "A\004name\202\323\344\223\002?\022=/v1alpha/{name=properties/" + + "*/dataStreams/*/eventCreateRules/*}\022\341\001\n\024" + + "ListEventCreateRules\022;.google.analytics." + + "admin.v1alpha.ListEventCreateRulesReques" + + "t\032<.google.analytics.admin.v1alpha.ListE" + + "ventCreateRulesResponse\"N\332A\006parent\202\323\344\223\002?" + + "\022=/v1alpha/{parent=properties/*/dataStre" + + "ams/*}/eventCreateRules\022\373\001\n\025CreateEventC" + + "reateRule\022<.google.analytics.admin.v1alp" + + "ha.CreateEventCreateRuleRequest\032/.google" + + ".analytics.admin.v1alpha.EventCreateRule" + + "\"s\332A\030parent,event_create_rule\202\323\344\223\002R\"=/v1" + + "alpha/{parent=properties/*/dataStreams/*" + + "}/eventCreateRules:\021event_create_rule\022\223\002" + + "\n\025UpdateEventCreateRule\022<.google.analyti" + + "cs.admin.v1alpha.UpdateEventCreateRuleRe" + + "quest\032/.google.analytics.admin.v1alpha.E" + + "ventCreateRule\"\212\001\332A\035event_create_rule,up" + + "date_mask\202\323\344\223\002d2O/v1alpha/{event_create_" + + "rule.name=properties/*/dataStreams/*/eve" + + "ntCreateRules/*}:\021event_create_rule\022\273\001\n\025" + + "DeleteEventCreateRule\022<.google.analytics" + + ".admin.v1alpha.DeleteEventCreateRuleRequ" + + "est\032\026.google.protobuf.Empty\"L\332A\004name\202\323\344\223" + + "\002?*=/v1alpha/{name=properties/*/dataStre" + + "ams/*/eventCreateRules/*}\022\272\002\n\033UpdateData" + + "RedactionSettings\022B.google.analytics.adm" + + "in.v1alpha.UpdateDataRedactionSettingsRe" + + "quest\0325.google.analytics.admin.v1alpha.D" + + "ataRedactionSettings\"\237\001\332A#data_redaction" + + "_settings,update_mask\202\323\344\223\002s2X/v1alpha/{d" + + "ata_redaction_settings.name=properties/*" + + "/dataStreams/*/dataRedactionSettings}:\027d" + + "ata_redaction_settings\022\343\001\n\030GetDataRedact" + + "ionSettings\022?.google.analytics.admin.v1a" + + "lpha.GetDataRedactionSettingsRequest\0325.g" + + "oogle.analytics.admin.v1alpha.DataRedact" + + "ionSettings\"O\332A\004name\202\323\344\223\002B\022@/v1alpha/{na" + + "me=properties/*/dataStreams/*/dataRedact" + + "ionSettings}\022\306\001\n\024CreateRollupProperty\022;." + + "google.analytics.admin.v1alpha.CreateRol" + + "lupPropertyRequest\032<.google.analytics.ad" + + "min.v1alpha.CreateRollupPropertyResponse" + + "\"3\202\323\344\223\002-\"(/v1alpha/properties:createRoll" + + "upProperty:\001*\022\344\001\n\033GetRollupPropertySourc" + + "eLink\022B.google.analytics.admin.v1alpha.G" + + "etRollupPropertySourceLinkRequest\0328.goog" + + "le.analytics.admin.v1alpha.RollupPropert" + + "ySourceLink\"G\332A\004name\202\323\344\223\002:\0228/v1alpha/{na" + + "me=properties/*/rollupPropertySourceLink" + + "s/*}\022\367\001\n\035ListRollupPropertySourceLinks\022D" + + ".google.analytics.admin.v1alpha.ListRoll" + + "upPropertySourceLinksRequest\032E.google.an" + + "alytics.admin.v1alpha.ListRollupProperty" + + "SourceLinksResponse\"I\332A\006parent\202\323\344\223\002:\0228/v" + + "1alpha/{parent=properties/*}/rollupPrope" + + "rtySourceLinks\022\246\002\n\036CreateRollupPropertyS" + + "ourceLink\022E.google.analytics.admin.v1alp" + + "ha.CreateRollupPropertySourceLinkRequest" + + "\0328.google.analytics.admin.v1alpha.Rollup" + + "PropertySourceLink\"\202\001\332A\"parent,rollup_pr" + + "operty_source_link\202\323\344\223\002W\"8/v1alpha/{pare" + + "nt=properties/*}/rollupPropertySourceLin" + + "ks:\033rollup_property_source_link\022\310\001\n\036Dele" + + "teRollupPropertySourceLink\022E.google.anal" + + "ytics.admin.v1alpha.DeleteRollupProperty" + + "SourceLinkRequest\032\026.google.protobuf.Empt" + + "y\"G\332A\004name\202\323\344\223\002:*8/v1alpha/{name=propert" + + "ies/*/rollupPropertySourceLinks/*}\022\272\001\n\021C" + + "reateSubproperty\0228.google.analytics.admi" + + "n.v1alpha.CreateSubpropertyRequest\0329.goo" + + "gle.analytics.admin.v1alpha.CreateSubpro" + + "pertyResponse\"0\202\323\344\223\002*\"%/v1alpha/properti" + + "es:createSubproperty:\001*\022\302\001\n\034DeleteSubpro" + + "pertyEventFilter\022C.google.analytics.admi" + + "n.v1alpha.DeleteSubpropertyEventFilterRe" + + "quest\032\026.google.protobuf.Empty\"E\332A\004name\202\323" + + "\344\223\0028*6/v1alpha/{name=properties/*/subpro" + + "pertyEventFilters/*}\022\227\002\n\034CreateSubproper" + + "tyEventFilter\022C.google.analytics.admin.v" + + "1alpha.CreateSubpropertyEventFilterReque" + + "st\0326.google.analytics.admin.v1alpha.Subp" + + "ropertyEventFilter\"z\332A\037parent,subpropert" + + "y_event_filter\202\323\344\223\002R\"6/v1alpha/{parent=p" + + "roperties/*}/subpropertyEventFilters:\030su" + + "bproperty_event_filter\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{\n" + + "\"com.google.analytics.admin.v1alphaB\023Ana" + + "lyticsAdminProtoP\001Z>cloud.google.com/go/" + + "analytics/admin/apiv1alpha/adminpb;admin" + + "pbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -2062,6 +2095,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.analytics.admin.v1alpha.EventCreateAndEdit.getDescriptor(), com.google.analytics.admin.v1alpha.ExpandedDataSetProto.getDescriptor(), com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor(), + com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), @@ -2087,6 +2121,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TimeZone", "OrderBys", "ReturnEntityQuota", + "IncludeAllUsers", + "ExpandGroups", }); internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_descriptor = getDescriptor().getMessageTypes().get(1); @@ -2200,128 +2236,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_GetUserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_analytics_admin_v1alpha_GetUserLinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetUserLinkRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksRequest_descriptor, - new java.lang.String[] { - "Parent", "Names", - }); - internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksResponse_descriptor, - new java.lang.String[] { - "UserLinks", - }); - internal_static_google_analytics_admin_v1alpha_ListUserLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_analytics_admin_v1alpha_ListUserLinksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListUserLinksRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_analytics_admin_v1alpha_ListUserLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_analytics_admin_v1alpha_ListUserLinksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListUserLinksResponse_descriptor, - new java.lang.String[] { - "UserLinks", "NextPageToken", - }); - internal_static_google_analytics_admin_v1alpha_AuditUserLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_analytics_admin_v1alpha_AuditUserLinksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AuditUserLinksRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_analytics_admin_v1alpha_AuditUserLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_analytics_admin_v1alpha_AuditUserLinksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AuditUserLinksResponse_descriptor, - new java.lang.String[] { - "UserLinks", "NextPageToken", - }); - internal_static_google_analytics_admin_v1alpha_CreateUserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_analytics_admin_v1alpha_CreateUserLinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateUserLinkRequest_descriptor, - new java.lang.String[] { - "Parent", "NotifyNewUser", "UserLink", - }); - internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_descriptor, - new java.lang.String[] { - "Parent", "NotifyNewUsers", "Requests", - }); - internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksResponse_descriptor, - new java.lang.String[] { - "UserLinks", - }); - internal_static_google_analytics_admin_v1alpha_UpdateUserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_analytics_admin_v1alpha_UpdateUserLinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateUserLinkRequest_descriptor, - new java.lang.String[] { - "UserLink", - }); - internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksRequest_descriptor, - new java.lang.String[] { - "Parent", "Requests", - }); - internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksResponse_descriptor, - new java.lang.String[] { - "UserLinks", - }); - internal_static_google_analytics_admin_v1alpha_DeleteUserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_analytics_admin_v1alpha_DeleteUserLinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteUserLinkRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_admin_v1alpha_BatchDeleteUserLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_analytics_admin_v1alpha_BatchDeleteUserLinksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_BatchDeleteUserLinksRequest_descriptor, - new java.lang.String[] { - "Parent", "Requests", - }); internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(15); internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor, @@ -2329,7 +2245,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "FirebaseLink", }); internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(16); internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor, @@ -2337,7 +2253,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(17); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor, @@ -2345,7 +2261,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(18); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor, @@ -2353,7 +2269,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirebaseLinks", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(19); internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor, @@ -2361,7 +2277,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(20); internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor, @@ -2369,7 +2285,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "GoogleAdsLink", }); internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(21); internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor, @@ -2377,7 +2293,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GoogleAdsLink", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(22); internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor, @@ -2385,7 +2301,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(23); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor, @@ -2393,7 +2309,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(24); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor, @@ -2401,7 +2317,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GoogleAdsLinks", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(25); internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor, @@ -2409,7 +2325,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(26); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor, @@ -2417,7 +2333,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(27); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor, @@ -2425,7 +2341,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AccountSummaries", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(28); internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor, @@ -2433,13 +2349,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Property", "Acknowledgement", }); internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(29); internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_descriptor, new java.lang.String[] {}); internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(30); internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor, @@ -2455,7 +2371,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PageToken", }); internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(31); internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor, @@ -2463,7 +2379,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ChangeHistoryEvents", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(32); internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor, @@ -2471,7 +2387,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(33); internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor, @@ -2479,7 +2395,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "MeasurementProtocolSecret", }); internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(34); internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor, @@ -2487,7 +2403,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(35); internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor, @@ -2495,7 +2411,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MeasurementProtocolSecret", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(36); internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor, @@ -2503,7 +2419,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(37); internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor, @@ -2511,7 +2427,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MeasurementProtocolSecrets", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetSKAdNetworkConversionValueSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(38); internal_static_google_analytics_admin_v1alpha_GetSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetSKAdNetworkConversionValueSchemaRequest_descriptor, @@ -2519,7 +2435,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_CreateSKAdNetworkConversionValueSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(39); internal_static_google_analytics_admin_v1alpha_CreateSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateSKAdNetworkConversionValueSchemaRequest_descriptor, @@ -2527,7 +2443,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "SkadnetworkConversionValueSchema", }); internal_static_google_analytics_admin_v1alpha_DeleteSKAdNetworkConversionValueSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(40); internal_static_google_analytics_admin_v1alpha_DeleteSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteSKAdNetworkConversionValueSchemaRequest_descriptor, @@ -2535,7 +2451,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateSKAdNetworkConversionValueSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(41); internal_static_google_analytics_admin_v1alpha_UpdateSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateSKAdNetworkConversionValueSchemaRequest_descriptor, @@ -2543,7 +2459,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SkadnetworkConversionValueSchema", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasRequest_descriptor = - getDescriptor().getMessageTypes().get(57); + getDescriptor().getMessageTypes().get(42); internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasRequest_descriptor, @@ -2551,7 +2467,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasResponse_descriptor = - getDescriptor().getMessageTypes().get(58); + getDescriptor().getMessageTypes().get(43); internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasResponse_descriptor, @@ -2559,7 +2475,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SkadnetworkConversionValueSchemas", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(59); + getDescriptor().getMessageTypes().get(44); internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor, @@ -2567,7 +2483,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(60); + getDescriptor().getMessageTypes().get(45); internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor, @@ -2575,7 +2491,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GoogleSignalsSettings", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(61); + getDescriptor().getMessageTypes().get(46); internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor, @@ -2583,7 +2499,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversionEvent", "Parent", }); internal_static_google_analytics_admin_v1alpha_UpdateConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(62); + getDescriptor().getMessageTypes().get(47); internal_static_google_analytics_admin_v1alpha_UpdateConversionEventRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateConversionEventRequest_descriptor, @@ -2591,7 +2507,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversionEvent", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(63); + getDescriptor().getMessageTypes().get(48); internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor, @@ -2599,7 +2515,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(64); + getDescriptor().getMessageTypes().get(49); internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor, @@ -2607,7 +2523,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(65); + getDescriptor().getMessageTypes().get(50); internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor, @@ -2615,7 +2531,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(66); + getDescriptor().getMessageTypes().get(51); internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor, @@ -2623,7 +2539,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversionEvents", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(67); + getDescriptor().getMessageTypes().get(52); internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor, @@ -2631,7 +2547,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(68); + getDescriptor().getMessageTypes().get(53); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor, @@ -2639,7 +2555,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(69); + getDescriptor().getMessageTypes().get(54); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor, @@ -2647,7 +2563,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayVideo360AdvertiserLinks", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(70); + getDescriptor().getMessageTypes().get(55); internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor, @@ -2655,7 +2571,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "DisplayVideo360AdvertiserLink", }); internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(71); + getDescriptor().getMessageTypes().get(56); internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor, @@ -2663,7 +2579,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(72); + getDescriptor().getMessageTypes().get(57); internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor, @@ -2671,7 +2587,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayVideo360AdvertiserLink", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(73); + getDescriptor().getMessageTypes().get(58); internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor, @@ -2679,7 +2595,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor = - getDescriptor().getMessageTypes().get(74); + getDescriptor().getMessageTypes().get(59); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor, @@ -2687,7 +2603,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor = - getDescriptor().getMessageTypes().get(75); + getDescriptor().getMessageTypes().get(60); internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor, @@ -2695,7 +2611,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayVideo360AdvertiserLinkProposals", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(76); + getDescriptor().getMessageTypes().get(61); internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor, @@ -2703,7 +2619,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "DisplayVideo360AdvertiserLinkProposal", }); internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(77); + getDescriptor().getMessageTypes().get(62); internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor, @@ -2711,7 +2627,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(78); + getDescriptor().getMessageTypes().get(63); internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor, @@ -2719,7 +2635,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor = - getDescriptor().getMessageTypes().get(79); + getDescriptor().getMessageTypes().get(64); internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor, @@ -2727,7 +2643,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayVideo360AdvertiserLink", }); internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(80); + getDescriptor().getMessageTypes().get(65); internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor, @@ -2735,7 +2651,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_GetSearchAds360LinkRequest_descriptor = - getDescriptor().getMessageTypes().get(81); + getDescriptor().getMessageTypes().get(66); internal_static_google_analytics_admin_v1alpha_GetSearchAds360LinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetSearchAds360LinkRequest_descriptor, @@ -2743,7 +2659,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksRequest_descriptor = - getDescriptor().getMessageTypes().get(82); + getDescriptor().getMessageTypes().get(67); internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksRequest_descriptor, @@ -2751,7 +2667,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksResponse_descriptor = - getDescriptor().getMessageTypes().get(83); + getDescriptor().getMessageTypes().get(68); internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksResponse_descriptor, @@ -2759,7 +2675,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SearchAds360Links", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_CreateSearchAds360LinkRequest_descriptor = - getDescriptor().getMessageTypes().get(84); + getDescriptor().getMessageTypes().get(69); internal_static_google_analytics_admin_v1alpha_CreateSearchAds360LinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateSearchAds360LinkRequest_descriptor, @@ -2767,7 +2683,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "SearchAds360Link", }); internal_static_google_analytics_admin_v1alpha_DeleteSearchAds360LinkRequest_descriptor = - getDescriptor().getMessageTypes().get(85); + getDescriptor().getMessageTypes().get(70); internal_static_google_analytics_admin_v1alpha_DeleteSearchAds360LinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteSearchAds360LinkRequest_descriptor, @@ -2775,7 +2691,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateSearchAds360LinkRequest_descriptor = - getDescriptor().getMessageTypes().get(86); + getDescriptor().getMessageTypes().get(71); internal_static_google_analytics_admin_v1alpha_UpdateSearchAds360LinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateSearchAds360LinkRequest_descriptor, @@ -2783,7 +2699,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SearchAds360Link", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(87); + getDescriptor().getMessageTypes().get(72); internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor, @@ -2791,7 +2707,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "CustomDimension", }); internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(88); + getDescriptor().getMessageTypes().get(73); internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor, @@ -2799,7 +2715,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomDimension", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor = - getDescriptor().getMessageTypes().get(89); + getDescriptor().getMessageTypes().get(74); internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor, @@ -2807,7 +2723,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor = - getDescriptor().getMessageTypes().get(90); + getDescriptor().getMessageTypes().get(75); internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor, @@ -2815,7 +2731,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomDimensions", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(91); + getDescriptor().getMessageTypes().get(76); internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor, @@ -2823,7 +2739,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(92); + getDescriptor().getMessageTypes().get(77); internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor, @@ -2831,7 +2747,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(93); + getDescriptor().getMessageTypes().get(78); internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor, @@ -2839,7 +2755,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "CustomMetric", }); internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(94); + getDescriptor().getMessageTypes().get(79); internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor, @@ -2847,7 +2763,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomMetric", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor = - getDescriptor().getMessageTypes().get(95); + getDescriptor().getMessageTypes().get(80); internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor, @@ -2855,7 +2771,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor = - getDescriptor().getMessageTypes().get(96); + getDescriptor().getMessageTypes().get(81); internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor, @@ -2863,7 +2779,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomMetrics", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(97); + getDescriptor().getMessageTypes().get(82); internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor, @@ -2871,7 +2787,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(98); + getDescriptor().getMessageTypes().get(83); internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor, @@ -2879,7 +2795,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(99); + getDescriptor().getMessageTypes().get(84); internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor, @@ -2887,7 +2803,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(100); + getDescriptor().getMessageTypes().get(85); internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor, @@ -2895,7 +2811,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataRetentionSettings", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(101); + getDescriptor().getMessageTypes().get(86); internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor, @@ -2903,7 +2819,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "DataStream", }); internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(102); + getDescriptor().getMessageTypes().get(87); internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor, @@ -2911,7 +2827,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(103); + getDescriptor().getMessageTypes().get(88); internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor, @@ -2919,7 +2835,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataStream", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor = - getDescriptor().getMessageTypes().get(104); + getDescriptor().getMessageTypes().get(89); internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor, @@ -2927,7 +2843,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor = - getDescriptor().getMessageTypes().get(105); + getDescriptor().getMessageTypes().get(90); internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor, @@ -2935,7 +2851,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataStreams", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(106); + getDescriptor().getMessageTypes().get(91); internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor, @@ -2943,7 +2859,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_descriptor = - getDescriptor().getMessageTypes().get(107); + getDescriptor().getMessageTypes().get(92); internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_descriptor, @@ -2951,7 +2867,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_descriptor = - getDescriptor().getMessageTypes().get(108); + getDescriptor().getMessageTypes().get(93); internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_descriptor, @@ -2959,7 +2875,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_descriptor = - getDescriptor().getMessageTypes().get(109); + getDescriptor().getMessageTypes().get(94); internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_descriptor, @@ -2967,7 +2883,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Audiences", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_descriptor = - getDescriptor().getMessageTypes().get(110); + getDescriptor().getMessageTypes().get(95); internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_descriptor, @@ -2975,7 +2891,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Audience", }); internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_descriptor = - getDescriptor().getMessageTypes().get(111); + getDescriptor().getMessageTypes().get(96); internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_descriptor, @@ -2983,7 +2899,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Audience", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_descriptor = - getDescriptor().getMessageTypes().get(112); + getDescriptor().getMessageTypes().get(97); internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_descriptor, @@ -2991,7 +2907,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(113); + getDescriptor().getMessageTypes().get(98); internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_descriptor, @@ -2999,7 +2915,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(114); + getDescriptor().getMessageTypes().get(99); internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_descriptor, @@ -3007,7 +2923,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AttributionSettings", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_descriptor = - getDescriptor().getMessageTypes().get(115); + getDescriptor().getMessageTypes().get(100); internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_descriptor, @@ -3015,7 +2931,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(116); + getDescriptor().getMessageTypes().get(101); internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_descriptor, @@ -3023,7 +2939,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Names", }); internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(117); + getDescriptor().getMessageTypes().get(102); internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_descriptor, @@ -3031,7 +2947,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AccessBindings", }); internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(118); + getDescriptor().getMessageTypes().get(103); internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_descriptor, @@ -3039,7 +2955,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(119); + getDescriptor().getMessageTypes().get(104); internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_descriptor, @@ -3047,7 +2963,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AccessBindings", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_descriptor = - getDescriptor().getMessageTypes().get(120); + getDescriptor().getMessageTypes().get(105); internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_descriptor, @@ -3055,7 +2971,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "AccessBinding", }); internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(121); + getDescriptor().getMessageTypes().get(106); internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_descriptor, @@ -3063,7 +2979,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Requests", }); internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(122); + getDescriptor().getMessageTypes().get(107); internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_descriptor, @@ -3071,7 +2987,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AccessBindings", }); internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_descriptor = - getDescriptor().getMessageTypes().get(123); + getDescriptor().getMessageTypes().get(108); internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_descriptor, @@ -3079,7 +2995,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AccessBinding", }); internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(124); + getDescriptor().getMessageTypes().get(109); internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_descriptor, @@ -3087,7 +3003,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Requests", }); internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(125); + getDescriptor().getMessageTypes().get(110); internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_descriptor, @@ -3095,7 +3011,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AccessBindings", }); internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_descriptor = - getDescriptor().getMessageTypes().get(126); + getDescriptor().getMessageTypes().get(111); internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_descriptor, @@ -3103,7 +3019,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(127); + getDescriptor().getMessageTypes().get(112); internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_descriptor, @@ -3111,7 +3027,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Requests", }); internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_descriptor = - getDescriptor().getMessageTypes().get(128); + getDescriptor().getMessageTypes().get(113); internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_descriptor, @@ -3119,7 +3035,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ExpandedDataSet", }); internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_descriptor = - getDescriptor().getMessageTypes().get(129); + getDescriptor().getMessageTypes().get(114); internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_descriptor, @@ -3127,7 +3043,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExpandedDataSet", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_descriptor = - getDescriptor().getMessageTypes().get(130); + getDescriptor().getMessageTypes().get(115); internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_descriptor, @@ -3135,7 +3051,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_descriptor = - getDescriptor().getMessageTypes().get(131); + getDescriptor().getMessageTypes().get(116); internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_descriptor, @@ -3143,7 +3059,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_descriptor = - getDescriptor().getMessageTypes().get(132); + getDescriptor().getMessageTypes().get(117); internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_descriptor, @@ -3151,7 +3067,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_descriptor = - getDescriptor().getMessageTypes().get(133); + getDescriptor().getMessageTypes().get(118); internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_descriptor, @@ -3159,7 +3075,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExpandedDataSets", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_CreateChannelGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(134); + getDescriptor().getMessageTypes().get(119); internal_static_google_analytics_admin_v1alpha_CreateChannelGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateChannelGroupRequest_descriptor, @@ -3167,7 +3083,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ChannelGroup", }); internal_static_google_analytics_admin_v1alpha_UpdateChannelGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(135); + getDescriptor().getMessageTypes().get(120); internal_static_google_analytics_admin_v1alpha_UpdateChannelGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateChannelGroupRequest_descriptor, @@ -3175,7 +3091,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ChannelGroup", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_DeleteChannelGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(136); + getDescriptor().getMessageTypes().get(121); internal_static_google_analytics_admin_v1alpha_DeleteChannelGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteChannelGroupRequest_descriptor, @@ -3183,7 +3099,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_GetChannelGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(137); + getDescriptor().getMessageTypes().get(122); internal_static_google_analytics_admin_v1alpha_GetChannelGroupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetChannelGroupRequest_descriptor, @@ -3191,7 +3107,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListChannelGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(138); + getDescriptor().getMessageTypes().get(123); internal_static_google_analytics_admin_v1alpha_ListChannelGroupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListChannelGroupsRequest_descriptor, @@ -3199,7 +3115,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListChannelGroupsResponse_descriptor = - getDescriptor().getMessageTypes().get(139); + getDescriptor().getMessageTypes().get(124); internal_static_google_analytics_admin_v1alpha_ListChannelGroupsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListChannelGroupsResponse_descriptor, @@ -3207,7 +3123,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ChannelGroups", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_descriptor = - getDescriptor().getMessageTypes().get(140); + getDescriptor().getMessageTypes().get(125); internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_descriptor, @@ -3215,13 +3131,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Property", "OptOut", }); internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_descriptor = - getDescriptor().getMessageTypes().get(141); + getDescriptor().getMessageTypes().get(126); internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_descriptor, new java.lang.String[] {}); internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_descriptor = - getDescriptor().getMessageTypes().get(142); + getDescriptor().getMessageTypes().get(127); internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_descriptor, @@ -3229,7 +3145,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Property", }); internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_descriptor = - getDescriptor().getMessageTypes().get(143); + getDescriptor().getMessageTypes().get(128); internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_descriptor, @@ -3237,7 +3153,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OptOut", }); internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(144); + getDescriptor().getMessageTypes().get(129); internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_descriptor, @@ -3245,7 +3161,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(145); + getDescriptor().getMessageTypes().get(130); internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_descriptor, @@ -3253,7 +3169,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(146); + getDescriptor().getMessageTypes().get(131); internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_descriptor, @@ -3261,7 +3177,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BigqueryLinks", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(147); + getDescriptor().getMessageTypes().get(132); internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor, @@ -3269,15 +3185,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(148); + getDescriptor().getMessageTypes().get(133); internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor, new java.lang.String[] { "EnhancedMeasurementSettings", "UpdateMask", }); + internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(134); + internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(135); + internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_descriptor, + new java.lang.String[] { + "DataRedactionSettings", "UpdateMask", + }); internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_descriptor = - getDescriptor().getMessageTypes().get(149); + getDescriptor().getMessageTypes().get(136); internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_descriptor, @@ -3285,13 +3217,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Property", "ConnectedSiteTag", }); internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagResponse_descriptor = - getDescriptor().getMessageTypes().get(150); + getDescriptor().getMessageTypes().get(137); internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagResponse_descriptor, new java.lang.String[] {}); internal_static_google_analytics_admin_v1alpha_DeleteConnectedSiteTagRequest_descriptor = - getDescriptor().getMessageTypes().get(151); + getDescriptor().getMessageTypes().get(138); internal_static_google_analytics_admin_v1alpha_DeleteConnectedSiteTagRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteConnectedSiteTagRequest_descriptor, @@ -3299,7 +3231,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Property", "TagId", }); internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsRequest_descriptor = - getDescriptor().getMessageTypes().get(152); + getDescriptor().getMessageTypes().get(139); internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsRequest_descriptor, @@ -3307,7 +3239,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Property", }); internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsResponse_descriptor = - getDescriptor().getMessageTypes().get(153); + getDescriptor().getMessageTypes().get(140); internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsResponse_descriptor, @@ -3315,7 +3247,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConnectedSiteTags", }); internal_static_google_analytics_admin_v1alpha_CreateAdSenseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(154); + getDescriptor().getMessageTypes().get(141); internal_static_google_analytics_admin_v1alpha_CreateAdSenseLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateAdSenseLinkRequest_descriptor, @@ -3323,7 +3255,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "AdsenseLink", }); internal_static_google_analytics_admin_v1alpha_GetAdSenseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(155); + getDescriptor().getMessageTypes().get(142); internal_static_google_analytics_admin_v1alpha_GetAdSenseLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetAdSenseLinkRequest_descriptor, @@ -3331,7 +3263,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_DeleteAdSenseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(156); + getDescriptor().getMessageTypes().get(143); internal_static_google_analytics_admin_v1alpha_DeleteAdSenseLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteAdSenseLinkRequest_descriptor, @@ -3339,7 +3271,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(157); + getDescriptor().getMessageTypes().get(144); internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksRequest_descriptor, @@ -3347,7 +3279,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(158); + getDescriptor().getMessageTypes().get(145); internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksResponse_descriptor, @@ -3355,7 +3287,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AdsenseLinks", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyRequest_descriptor = - getDescriptor().getMessageTypes().get(159); + getDescriptor().getMessageTypes().get(146); internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyRequest_descriptor, @@ -3363,7 +3295,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Property", }); internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyResponse_descriptor = - getDescriptor().getMessageTypes().get(160); + getDescriptor().getMessageTypes().get(147); internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyResponse_descriptor, @@ -3371,7 +3303,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Property", }); internal_static_google_analytics_admin_v1alpha_CreateEventCreateRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(161); + getDescriptor().getMessageTypes().get(148); internal_static_google_analytics_admin_v1alpha_CreateEventCreateRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateEventCreateRuleRequest_descriptor, @@ -3379,7 +3311,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "EventCreateRule", }); internal_static_google_analytics_admin_v1alpha_UpdateEventCreateRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(162); + getDescriptor().getMessageTypes().get(149); internal_static_google_analytics_admin_v1alpha_UpdateEventCreateRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateEventCreateRuleRequest_descriptor, @@ -3387,7 +3319,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EventCreateRule", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_DeleteEventCreateRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(163); + getDescriptor().getMessageTypes().get(150); internal_static_google_analytics_admin_v1alpha_DeleteEventCreateRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteEventCreateRuleRequest_descriptor, @@ -3395,7 +3327,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_GetEventCreateRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(164); + getDescriptor().getMessageTypes().get(151); internal_static_google_analytics_admin_v1alpha_GetEventCreateRuleRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetEventCreateRuleRequest_descriptor, @@ -3403,7 +3335,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesRequest_descriptor = - getDescriptor().getMessageTypes().get(165); + getDescriptor().getMessageTypes().get(152); internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesRequest_descriptor, @@ -3411,13 +3343,133 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_descriptor = - getDescriptor().getMessageTypes().get(166); + getDescriptor().getMessageTypes().get(153); internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_descriptor, new java.lang.String[] { "EventCreateRules", "NextPageToken", }); + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_descriptor = + getDescriptor().getMessageTypes().get(154); + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_descriptor, + new java.lang.String[] { + "RollupProperty", "SourceProperties", + }); + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_descriptor = + getDescriptor().getMessageTypes().get(155); + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_descriptor, + new java.lang.String[] { + "RollupProperty", "RollupPropertySourceLinks", + }); + internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(156); + internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_descriptor = + getDescriptor().getMessageTypes().get(157); + internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_descriptor = + getDescriptor().getMessageTypes().get(158); + internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_descriptor, + new java.lang.String[] { + "RollupPropertySourceLinks", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(159); + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_descriptor, + new java.lang.String[] { + "Parent", "RollupPropertySourceLink", + }); + internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(160); + internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_descriptor = + getDescriptor().getMessageTypes().get(161); + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_descriptor, + new java.lang.String[] { + "Parent", "Subproperty", "SubpropertyEventFilter", + }); + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_descriptor = + getDescriptor().getMessageTypes().get(162); + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_descriptor, + new java.lang.String[] { + "Subproperty", "SubpropertyEventFilter", + }); + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_descriptor = + getDescriptor().getMessageTypes().get(163); + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_descriptor, + new java.lang.String[] { + "Parent", "SubpropertyEventFilter", + }); + internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_descriptor = + getDescriptor().getMessageTypes().get(164); + internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_descriptor = + getDescriptor().getMessageTypes().get(165); + internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_descriptor = + getDescriptor().getMessageTypes().get(166); + internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_descriptor, + new java.lang.String[] { + "SubpropertyEventFilters", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_descriptor = + getDescriptor().getMessageTypes().get(167); + internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_descriptor, + new java.lang.String[] { + "SubpropertyEventFilter", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_descriptor = + getDescriptor().getMessageTypes().get(168); + internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_descriptor, + new java.lang.String[] { + "Name", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -3434,6 +3486,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.analytics.admin.v1alpha.EventCreateAndEdit.getDescriptor(); com.google.analytics.admin.v1alpha.ExpandedDataSetProto.getDescriptor(); com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor(); + com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLink.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLink.java deleted file mode 100644 index 60c147da7958..000000000000 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLink.java +++ /dev/null @@ -1,1464 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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; - -/** - * - * - *
- * Read-only resource used to summarize a principal's effective roles.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AuditUserLink} - */ -public final class AuditUserLink extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AuditUserLink) - AuditUserLinkOrBuilder { - private static final long serialVersionUID = 0L; - // Use AuditUserLink.newBuilder() to construct. - private AuditUserLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AuditUserLink() { - name_ = ""; - emailAddress_ = ""; - directRoles_ = com.google.protobuf.LazyStringArrayList.emptyList(); - effectiveRoles_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AuditUserLink(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AuditUserLink.class, - com.google.analytics.admin.v1alpha.AuditUserLink.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Example format: properties/1234/userLinks/5678
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Example format: properties/1234/userLinks/5678
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EMAIL_ADDRESS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object emailAddress_ = ""; - /** - * - * - *
-   * Email address of the linked user
-   * 
- * - * string email_address = 2; - * - * @return The emailAddress. - */ - @java.lang.Override - public java.lang.String getEmailAddress() { - java.lang.Object ref = emailAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - emailAddress_ = s; - return s; - } - } - /** - * - * - *
-   * Email address of the linked user
-   * 
- * - * string email_address = 2; - * - * @return The bytes for emailAddress. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEmailAddressBytes() { - java.lang.Object ref = emailAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - emailAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIRECT_ROLES_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList directRoles_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * Roles directly assigned to this user for this entity.
-   *
-   * Format: predefinedRoles/viewer
-   *
-   * Excludes roles that are inherited from an account (if this is for a
-   * property), group, or organization admin role.
-   * 
- * - * repeated string direct_roles = 3; - * - * @return A list containing the directRoles. - */ - public com.google.protobuf.ProtocolStringList getDirectRolesList() { - return directRoles_; - } - /** - * - * - *
-   * Roles directly assigned to this user for this entity.
-   *
-   * Format: predefinedRoles/viewer
-   *
-   * Excludes roles that are inherited from an account (if this is for a
-   * property), group, or organization admin role.
-   * 
- * - * repeated string direct_roles = 3; - * - * @return The count of directRoles. - */ - public int getDirectRolesCount() { - return directRoles_.size(); - } - /** - * - * - *
-   * Roles directly assigned to this user for this entity.
-   *
-   * Format: predefinedRoles/viewer
-   *
-   * Excludes roles that are inherited from an account (if this is for a
-   * property), group, or organization admin role.
-   * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the element to return. - * @return The directRoles at the given index. - */ - public java.lang.String getDirectRoles(int index) { - return directRoles_.get(index); - } - /** - * - * - *
-   * Roles directly assigned to this user for this entity.
-   *
-   * Format: predefinedRoles/viewer
-   *
-   * Excludes roles that are inherited from an account (if this is for a
-   * property), group, or organization admin role.
-   * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the value to return. - * @return The bytes of the directRoles at the given index. - */ - public com.google.protobuf.ByteString getDirectRolesBytes(int index) { - return directRoles_.getByteString(index); - } - - public static final int EFFECTIVE_ROLES_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList effectiveRoles_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * Union of all permissions a user has at this account or property (includes
-   * direct permissions, group-inherited permissions, etc.).
-   *
-   * Format: predefinedRoles/viewer
-   * 
- * - * repeated string effective_roles = 4; - * - * @return A list containing the effectiveRoles. - */ - public com.google.protobuf.ProtocolStringList getEffectiveRolesList() { - return effectiveRoles_; - } - /** - * - * - *
-   * Union of all permissions a user has at this account or property (includes
-   * direct permissions, group-inherited permissions, etc.).
-   *
-   * Format: predefinedRoles/viewer
-   * 
- * - * repeated string effective_roles = 4; - * - * @return The count of effectiveRoles. - */ - public int getEffectiveRolesCount() { - return effectiveRoles_.size(); - } - /** - * - * - *
-   * Union of all permissions a user has at this account or property (includes
-   * direct permissions, group-inherited permissions, etc.).
-   *
-   * Format: predefinedRoles/viewer
-   * 
- * - * repeated string effective_roles = 4; - * - * @param index The index of the element to return. - * @return The effectiveRoles at the given index. - */ - public java.lang.String getEffectiveRoles(int index) { - return effectiveRoles_.get(index); - } - /** - * - * - *
-   * Union of all permissions a user has at this account or property (includes
-   * direct permissions, group-inherited permissions, etc.).
-   *
-   * Format: predefinedRoles/viewer
-   * 
- * - * repeated string effective_roles = 4; - * - * @param index The index of the value to return. - * @return The bytes of the effectiveRoles at the given index. - */ - public com.google.protobuf.ByteString getEffectiveRolesBytes(int index) { - return effectiveRoles_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(emailAddress_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, emailAddress_); - } - for (int i = 0; i < directRoles_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, directRoles_.getRaw(i)); - } - for (int i = 0; i < effectiveRoles_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, effectiveRoles_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(emailAddress_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, emailAddress_); - } - { - int dataSize = 0; - for (int i = 0; i < directRoles_.size(); i++) { - dataSize += computeStringSizeNoTag(directRoles_.getRaw(i)); - } - size += dataSize; - size += 1 * getDirectRolesList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < effectiveRoles_.size(); i++) { - dataSize += computeStringSizeNoTag(effectiveRoles_.getRaw(i)); - } - size += dataSize; - size += 1 * getEffectiveRolesList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.AuditUserLink)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AuditUserLink other = - (com.google.analytics.admin.v1alpha.AuditUserLink) obj; - - if (!getName().equals(other.getName())) return false; - if (!getEmailAddress().equals(other.getEmailAddress())) return false; - if (!getDirectRolesList().equals(other.getDirectRolesList())) return false; - if (!getEffectiveRolesList().equals(other.getEffectiveRolesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + EMAIL_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getEmailAddress().hashCode(); - if (getDirectRolesCount() > 0) { - hash = (37 * hash) + DIRECT_ROLES_FIELD_NUMBER; - hash = (53 * hash) + getDirectRolesList().hashCode(); - } - if (getEffectiveRolesCount() > 0) { - hash = (37 * hash) + EFFECTIVE_ROLES_FIELD_NUMBER; - hash = (53 * hash) + getEffectiveRolesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AuditUserLink parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLink parseFrom( - 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.AuditUserLink parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLink parseFrom( - com.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.AuditUserLink parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLink 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.AuditUserLink parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLink parseFrom( - java.io.InputStream 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.AuditUserLink parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLink parseDelimitedFrom( - java.io.InputStream 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.AuditUserLink 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.AuditUserLink parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.AuditUserLink prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Read-only resource used to summarize a principal's effective roles.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AuditUserLink} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AuditUserLink) - com.google.analytics.admin.v1alpha.AuditUserLinkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AuditUserLink.class, - com.google.analytics.admin.v1alpha.AuditUserLink.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AuditUserLink.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - emailAddress_ = ""; - directRoles_ = com.google.protobuf.LazyStringArrayList.emptyList(); - effectiveRoles_ = com.google.protobuf.LazyStringArrayList.emptyList(); - 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_AuditUserLink_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLink getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AuditUserLink.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLink build() { - com.google.analytics.admin.v1alpha.AuditUserLink result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLink buildPartial() { - com.google.analytics.admin.v1alpha.AuditUserLink result = - new com.google.analytics.admin.v1alpha.AuditUserLink(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AuditUserLink result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.emailAddress_ = emailAddress_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - directRoles_.makeImmutable(); - result.directRoles_ = directRoles_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - effectiveRoles_.makeImmutable(); - result.effectiveRoles_ = effectiveRoles_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.AuditUserLink) { - return mergeFrom((com.google.analytics.admin.v1alpha.AuditUserLink) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AuditUserLink other) { - if (other == com.google.analytics.admin.v1alpha.AuditUserLink.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getEmailAddress().isEmpty()) { - emailAddress_ = other.emailAddress_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.directRoles_.isEmpty()) { - if (directRoles_.isEmpty()) { - directRoles_ = other.directRoles_; - bitField0_ |= 0x00000004; - } else { - ensureDirectRolesIsMutable(); - directRoles_.addAll(other.directRoles_); - } - onChanged(); - } - if (!other.effectiveRoles_.isEmpty()) { - if (effectiveRoles_.isEmpty()) { - effectiveRoles_ = other.effectiveRoles_; - bitField0_ |= 0x00000008; - } else { - ensureEffectiveRolesIsMutable(); - effectiveRoles_.addAll(other.effectiveRoles_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - emailAddress_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDirectRolesIsMutable(); - directRoles_.add(s); - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureEffectiveRolesIsMutable(); - effectiveRoles_.add(s); - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Example format: properties/1234/userLinks/5678
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Example format: properties/1234/userLinks/5678
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Example format: properties/1234/userLinks/5678
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Example format: properties/1234/userLinks/5678
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Example format: properties/1234/userLinks/5678
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object emailAddress_ = ""; - /** - * - * - *
-     * Email address of the linked user
-     * 
- * - * string email_address = 2; - * - * @return The emailAddress. - */ - public java.lang.String getEmailAddress() { - java.lang.Object ref = emailAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - emailAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Email address of the linked user
-     * 
- * - * string email_address = 2; - * - * @return The bytes for emailAddress. - */ - public com.google.protobuf.ByteString getEmailAddressBytes() { - java.lang.Object ref = emailAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - emailAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Email address of the linked user
-     * 
- * - * string email_address = 2; - * - * @param value The emailAddress to set. - * @return This builder for chaining. - */ - public Builder setEmailAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - emailAddress_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Email address of the linked user
-     * 
- * - * string email_address = 2; - * - * @return This builder for chaining. - */ - public Builder clearEmailAddress() { - emailAddress_ = getDefaultInstance().getEmailAddress(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Email address of the linked user
-     * 
- * - * string email_address = 2; - * - * @param value The bytes for emailAddress to set. - * @return This builder for chaining. - */ - public Builder setEmailAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - emailAddress_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList directRoles_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureDirectRolesIsMutable() { - if (!directRoles_.isModifiable()) { - directRoles_ = new com.google.protobuf.LazyStringArrayList(directRoles_); - } - bitField0_ |= 0x00000004; - } - /** - * - * - *
-     * Roles directly assigned to this user for this entity.
-     *
-     * Format: predefinedRoles/viewer
-     *
-     * Excludes roles that are inherited from an account (if this is for a
-     * property), group, or organization admin role.
-     * 
- * - * repeated string direct_roles = 3; - * - * @return A list containing the directRoles. - */ - public com.google.protobuf.ProtocolStringList getDirectRolesList() { - directRoles_.makeImmutable(); - return directRoles_; - } - /** - * - * - *
-     * Roles directly assigned to this user for this entity.
-     *
-     * Format: predefinedRoles/viewer
-     *
-     * Excludes roles that are inherited from an account (if this is for a
-     * property), group, or organization admin role.
-     * 
- * - * repeated string direct_roles = 3; - * - * @return The count of directRoles. - */ - public int getDirectRolesCount() { - return directRoles_.size(); - } - /** - * - * - *
-     * Roles directly assigned to this user for this entity.
-     *
-     * Format: predefinedRoles/viewer
-     *
-     * Excludes roles that are inherited from an account (if this is for a
-     * property), group, or organization admin role.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the element to return. - * @return The directRoles at the given index. - */ - public java.lang.String getDirectRoles(int index) { - return directRoles_.get(index); - } - /** - * - * - *
-     * Roles directly assigned to this user for this entity.
-     *
-     * Format: predefinedRoles/viewer
-     *
-     * Excludes roles that are inherited from an account (if this is for a
-     * property), group, or organization admin role.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the value to return. - * @return The bytes of the directRoles at the given index. - */ - public com.google.protobuf.ByteString getDirectRolesBytes(int index) { - return directRoles_.getByteString(index); - } - /** - * - * - *
-     * Roles directly assigned to this user for this entity.
-     *
-     * Format: predefinedRoles/viewer
-     *
-     * Excludes roles that are inherited from an account (if this is for a
-     * property), group, or organization admin role.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param index The index to set the value at. - * @param value The directRoles to set. - * @return This builder for chaining. - */ - public Builder setDirectRoles(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDirectRolesIsMutable(); - directRoles_.set(index, value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Roles directly assigned to this user for this entity.
-     *
-     * Format: predefinedRoles/viewer
-     *
-     * Excludes roles that are inherited from an account (if this is for a
-     * property), group, or organization admin role.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param value The directRoles to add. - * @return This builder for chaining. - */ - public Builder addDirectRoles(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDirectRolesIsMutable(); - directRoles_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Roles directly assigned to this user for this entity.
-     *
-     * Format: predefinedRoles/viewer
-     *
-     * Excludes roles that are inherited from an account (if this is for a
-     * property), group, or organization admin role.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param values The directRoles to add. - * @return This builder for chaining. - */ - public Builder addAllDirectRoles(java.lang.Iterable values) { - ensureDirectRolesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, directRoles_); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Roles directly assigned to this user for this entity.
-     *
-     * Format: predefinedRoles/viewer
-     *
-     * Excludes roles that are inherited from an account (if this is for a
-     * property), group, or organization admin role.
-     * 
- * - * repeated string direct_roles = 3; - * - * @return This builder for chaining. - */ - public Builder clearDirectRoles() { - directRoles_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * Roles directly assigned to this user for this entity.
-     *
-     * Format: predefinedRoles/viewer
-     *
-     * Excludes roles that are inherited from an account (if this is for a
-     * property), group, or organization admin role.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param value The bytes of the directRoles to add. - * @return This builder for chaining. - */ - public Builder addDirectRolesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureDirectRolesIsMutable(); - directRoles_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList effectiveRoles_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureEffectiveRolesIsMutable() { - if (!effectiveRoles_.isModifiable()) { - effectiveRoles_ = new com.google.protobuf.LazyStringArrayList(effectiveRoles_); - } - bitField0_ |= 0x00000008; - } - /** - * - * - *
-     * Union of all permissions a user has at this account or property (includes
-     * direct permissions, group-inherited permissions, etc.).
-     *
-     * Format: predefinedRoles/viewer
-     * 
- * - * repeated string effective_roles = 4; - * - * @return A list containing the effectiveRoles. - */ - public com.google.protobuf.ProtocolStringList getEffectiveRolesList() { - effectiveRoles_.makeImmutable(); - return effectiveRoles_; - } - /** - * - * - *
-     * Union of all permissions a user has at this account or property (includes
-     * direct permissions, group-inherited permissions, etc.).
-     *
-     * Format: predefinedRoles/viewer
-     * 
- * - * repeated string effective_roles = 4; - * - * @return The count of effectiveRoles. - */ - public int getEffectiveRolesCount() { - return effectiveRoles_.size(); - } - /** - * - * - *
-     * Union of all permissions a user has at this account or property (includes
-     * direct permissions, group-inherited permissions, etc.).
-     *
-     * Format: predefinedRoles/viewer
-     * 
- * - * repeated string effective_roles = 4; - * - * @param index The index of the element to return. - * @return The effectiveRoles at the given index. - */ - public java.lang.String getEffectiveRoles(int index) { - return effectiveRoles_.get(index); - } - /** - * - * - *
-     * Union of all permissions a user has at this account or property (includes
-     * direct permissions, group-inherited permissions, etc.).
-     *
-     * Format: predefinedRoles/viewer
-     * 
- * - * repeated string effective_roles = 4; - * - * @param index The index of the value to return. - * @return The bytes of the effectiveRoles at the given index. - */ - public com.google.protobuf.ByteString getEffectiveRolesBytes(int index) { - return effectiveRoles_.getByteString(index); - } - /** - * - * - *
-     * Union of all permissions a user has at this account or property (includes
-     * direct permissions, group-inherited permissions, etc.).
-     *
-     * Format: predefinedRoles/viewer
-     * 
- * - * repeated string effective_roles = 4; - * - * @param index The index to set the value at. - * @param value The effectiveRoles to set. - * @return This builder for chaining. - */ - public Builder setEffectiveRoles(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEffectiveRolesIsMutable(); - effectiveRoles_.set(index, value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Union of all permissions a user has at this account or property (includes
-     * direct permissions, group-inherited permissions, etc.).
-     *
-     * Format: predefinedRoles/viewer
-     * 
- * - * repeated string effective_roles = 4; - * - * @param value The effectiveRoles to add. - * @return This builder for chaining. - */ - public Builder addEffectiveRoles(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureEffectiveRolesIsMutable(); - effectiveRoles_.add(value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Union of all permissions a user has at this account or property (includes
-     * direct permissions, group-inherited permissions, etc.).
-     *
-     * Format: predefinedRoles/viewer
-     * 
- * - * repeated string effective_roles = 4; - * - * @param values The effectiveRoles to add. - * @return This builder for chaining. - */ - public Builder addAllEffectiveRoles(java.lang.Iterable values) { - ensureEffectiveRolesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, effectiveRoles_); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Union of all permissions a user has at this account or property (includes
-     * direct permissions, group-inherited permissions, etc.).
-     *
-     * Format: predefinedRoles/viewer
-     * 
- * - * repeated string effective_roles = 4; - * - * @return This builder for chaining. - */ - public Builder clearEffectiveRoles() { - effectiveRoles_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * Union of all permissions a user has at this account or property (includes
-     * direct permissions, group-inherited permissions, etc.).
-     *
-     * Format: predefinedRoles/viewer
-     * 
- * - * repeated string effective_roles = 4; - * - * @param value The bytes of the effectiveRoles to add. - * @return This builder for chaining. - */ - public Builder addEffectiveRolesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureEffectiveRolesIsMutable(); - effectiveRoles_.add(value); - bitField0_ |= 0x00000008; - 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.AuditUserLink) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AuditUserLink) - private static final com.google.analytics.admin.v1alpha.AuditUserLink DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AuditUserLink(); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLink getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuditUserLink parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLink getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinkOrBuilder.java deleted file mode 100644 index 55a8fe926b3f..000000000000 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinkOrBuilder.java +++ /dev/null @@ -1,209 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 AuditUserLinkOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AuditUserLink) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Example format: properties/1234/userLinks/5678
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Example format: properties/1234/userLinks/5678
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Email address of the linked user
-   * 
- * - * string email_address = 2; - * - * @return The emailAddress. - */ - java.lang.String getEmailAddress(); - /** - * - * - *
-   * Email address of the linked user
-   * 
- * - * string email_address = 2; - * - * @return The bytes for emailAddress. - */ - com.google.protobuf.ByteString getEmailAddressBytes(); - - /** - * - * - *
-   * Roles directly assigned to this user for this entity.
-   *
-   * Format: predefinedRoles/viewer
-   *
-   * Excludes roles that are inherited from an account (if this is for a
-   * property), group, or organization admin role.
-   * 
- * - * repeated string direct_roles = 3; - * - * @return A list containing the directRoles. - */ - java.util.List getDirectRolesList(); - /** - * - * - *
-   * Roles directly assigned to this user for this entity.
-   *
-   * Format: predefinedRoles/viewer
-   *
-   * Excludes roles that are inherited from an account (if this is for a
-   * property), group, or organization admin role.
-   * 
- * - * repeated string direct_roles = 3; - * - * @return The count of directRoles. - */ - int getDirectRolesCount(); - /** - * - * - *
-   * Roles directly assigned to this user for this entity.
-   *
-   * Format: predefinedRoles/viewer
-   *
-   * Excludes roles that are inherited from an account (if this is for a
-   * property), group, or organization admin role.
-   * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the element to return. - * @return The directRoles at the given index. - */ - java.lang.String getDirectRoles(int index); - /** - * - * - *
-   * Roles directly assigned to this user for this entity.
-   *
-   * Format: predefinedRoles/viewer
-   *
-   * Excludes roles that are inherited from an account (if this is for a
-   * property), group, or organization admin role.
-   * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the value to return. - * @return The bytes of the directRoles at the given index. - */ - com.google.protobuf.ByteString getDirectRolesBytes(int index); - - /** - * - * - *
-   * Union of all permissions a user has at this account or property (includes
-   * direct permissions, group-inherited permissions, etc.).
-   *
-   * Format: predefinedRoles/viewer
-   * 
- * - * repeated string effective_roles = 4; - * - * @return A list containing the effectiveRoles. - */ - java.util.List getEffectiveRolesList(); - /** - * - * - *
-   * Union of all permissions a user has at this account or property (includes
-   * direct permissions, group-inherited permissions, etc.).
-   *
-   * Format: predefinedRoles/viewer
-   * 
- * - * repeated string effective_roles = 4; - * - * @return The count of effectiveRoles. - */ - int getEffectiveRolesCount(); - /** - * - * - *
-   * Union of all permissions a user has at this account or property (includes
-   * direct permissions, group-inherited permissions, etc.).
-   *
-   * Format: predefinedRoles/viewer
-   * 
- * - * repeated string effective_roles = 4; - * - * @param index The index of the element to return. - * @return The effectiveRoles at the given index. - */ - java.lang.String getEffectiveRoles(int index); - /** - * - * - *
-   * Union of all permissions a user has at this account or property (includes
-   * direct permissions, group-inherited permissions, etc.).
-   *
-   * Format: predefinedRoles/viewer
-   * 
- * - * repeated string effective_roles = 4; - * - * @param index The index of the value to return. - * @return The bytes of the effectiveRoles at the given index. - */ - com.google.protobuf.ByteString getEffectiveRolesBytes(int index); -} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponse.java deleted file mode 100644 index 70c9868c55f9..000000000000 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponse.java +++ /dev/null @@ -1,1153 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 AuditUserLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AuditUserLinksResponse} - */ -public final class AuditUserLinksResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AuditUserLinksResponse) - AuditUserLinksResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use AuditUserLinksResponse.newBuilder() to construct. - private AuditUserLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AuditUserLinksResponse() { - userLinks_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AuditUserLinksResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AuditUserLinksResponse.class, - com.google.analytics.admin.v1alpha.AuditUserLinksResponse.Builder.class); - } - - public static final int USER_LINKS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List userLinks_; - /** - * - * - *
-   * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - @java.lang.Override - public java.util.List getUserLinksList() { - return userLinks_; - } - /** - * - * - *
-   * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - @java.lang.Override - public java.util.List - getUserLinksOrBuilderList() { - return userLinks_; - } - /** - * - * - *
-   * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - @java.lang.Override - public int getUserLinksCount() { - return userLinks_.size(); - } - /** - * - * - *
-   * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLink getUserLinks(int index) { - return userLinks_.get(index); - } - /** - * - * - *
-   * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLinkOrBuilder getUserLinksOrBuilder( - int index) { - return userLinks_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - 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 < userLinks_.size(); i++) { - output.writeMessage(1, userLinks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < userLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, userLinks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.AuditUserLinksResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AuditUserLinksResponse other = - (com.google.analytics.admin.v1alpha.AuditUserLinksResponse) obj; - - if (!getUserLinksList().equals(other.getUserLinksList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getUserLinksCount() > 0) { - hash = (37 * hash) + USER_LINKS_FIELD_NUMBER; - hash = (53 * hash) + getUserLinksList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksResponse parseFrom( - 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.AuditUserLinksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksResponse parseFrom( - com.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.AuditUserLinksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksResponse 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.AuditUserLinksResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksResponse parseFrom( - java.io.InputStream 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.AuditUserLinksResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksResponse parseDelimitedFrom( - java.io.InputStream 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.AuditUserLinksResponse 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.AuditUserLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.AuditUserLinksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 AuditUserLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AuditUserLinksResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AuditUserLinksResponse) - com.google.analytics.admin.v1alpha.AuditUserLinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AuditUserLinksResponse.class, - com.google.analytics.admin.v1alpha.AuditUserLinksResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AuditUserLinksResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (userLinksBuilder_ == null) { - userLinks_ = java.util.Collections.emptyList(); - } else { - userLinks_ = null; - userLinksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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_AuditUserLinksResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLinksResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AuditUserLinksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLinksResponse build() { - com.google.analytics.admin.v1alpha.AuditUserLinksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLinksResponse buildPartial() { - com.google.analytics.admin.v1alpha.AuditUserLinksResponse result = - new com.google.analytics.admin.v1alpha.AuditUserLinksResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.analytics.admin.v1alpha.AuditUserLinksResponse result) { - if (userLinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - userLinks_ = java.util.Collections.unmodifiableList(userLinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.userLinks_ = userLinks_; - } else { - result.userLinks_ = userLinksBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AuditUserLinksResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.AuditUserLinksResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.AuditUserLinksResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AuditUserLinksResponse other) { - if (other == com.google.analytics.admin.v1alpha.AuditUserLinksResponse.getDefaultInstance()) - return this; - if (userLinksBuilder_ == null) { - if (!other.userLinks_.isEmpty()) { - if (userLinks_.isEmpty()) { - userLinks_ = other.userLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUserLinksIsMutable(); - userLinks_.addAll(other.userLinks_); - } - onChanged(); - } - } else { - if (!other.userLinks_.isEmpty()) { - if (userLinksBuilder_.isEmpty()) { - userLinksBuilder_.dispose(); - userLinksBuilder_ = null; - userLinks_ = other.userLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - userLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getUserLinksFieldBuilder() - : null; - } else { - userLinksBuilder_.addAllMessages(other.userLinks_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.admin.v1alpha.AuditUserLink m = - input.readMessage( - com.google.analytics.admin.v1alpha.AuditUserLink.parser(), - extensionRegistry); - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(m); - } else { - userLinksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List userLinks_ = - java.util.Collections.emptyList(); - - private void ensureUserLinksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - userLinks_ = - new java.util.ArrayList(userLinks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AuditUserLink, - com.google.analytics.admin.v1alpha.AuditUserLink.Builder, - com.google.analytics.admin.v1alpha.AuditUserLinkOrBuilder> - userLinksBuilder_; - - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public java.util.List getUserLinksList() { - if (userLinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(userLinks_); - } else { - return userLinksBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public int getUserLinksCount() { - if (userLinksBuilder_ == null) { - return userLinks_.size(); - } else { - return userLinksBuilder_.getCount(); - } - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.AuditUserLink getUserLinks(int index) { - if (userLinksBuilder_ == null) { - return userLinks_.get(index); - } else { - return userLinksBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public Builder setUserLinks(int index, com.google.analytics.admin.v1alpha.AuditUserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.set(index, value); - onChanged(); - } else { - userLinksBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public Builder setUserLinks( - int index, com.google.analytics.admin.v1alpha.AuditUserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.set(index, builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public Builder addUserLinks(com.google.analytics.admin.v1alpha.AuditUserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.add(value); - onChanged(); - } else { - userLinksBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public Builder addUserLinks(int index, com.google.analytics.admin.v1alpha.AuditUserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.add(index, value); - onChanged(); - } else { - userLinksBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public Builder addUserLinks( - com.google.analytics.admin.v1alpha.AuditUserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public Builder addUserLinks( - int index, com.google.analytics.admin.v1alpha.AuditUserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(index, builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public Builder addAllUserLinks( - java.lang.Iterable values) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userLinks_); - onChanged(); - } else { - userLinksBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public Builder clearUserLinks() { - if (userLinksBuilder_ == null) { - userLinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - userLinksBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public Builder removeUserLinks(int index) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.remove(index); - onChanged(); - } else { - userLinksBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.AuditUserLink.Builder getUserLinksBuilder(int index) { - return getUserLinksFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.AuditUserLinkOrBuilder getUserLinksOrBuilder( - int index) { - if (userLinksBuilder_ == null) { - return userLinks_.get(index); - } else { - return userLinksBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public java.util.List - getUserLinksOrBuilderList() { - if (userLinksBuilder_ != null) { - return userLinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(userLinks_); - } - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.AuditUserLink.Builder addUserLinksBuilder() { - return getUserLinksFieldBuilder() - .addBuilder(com.google.analytics.admin.v1alpha.AuditUserLink.getDefaultInstance()); - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.AuditUserLink.Builder addUserLinksBuilder(int index) { - return getUserLinksFieldBuilder() - .addBuilder(index, com.google.analytics.admin.v1alpha.AuditUserLink.getDefaultInstance()); - } - /** - * - * - *
-     * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; - */ - public java.util.List - getUserLinksBuilderList() { - return getUserLinksFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AuditUserLink, - com.google.analytics.admin.v1alpha.AuditUserLink.Builder, - com.google.analytics.admin.v1alpha.AuditUserLinkOrBuilder> - getUserLinksFieldBuilder() { - if (userLinksBuilder_ == null) { - userLinksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AuditUserLink, - com.google.analytics.admin.v1alpha.AuditUserLink.Builder, - com.google.analytics.admin.v1alpha.AuditUserLinkOrBuilder>( - userLinks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - userLinks_ = null; - } - return userLinksBuilder_; - } - - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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.AuditUserLinksResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AuditUserLinksResponse) - private static final com.google.analytics.admin.v1alpha.AuditUserLinksResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AuditUserLinksResponse(); - } - - public static com.google.analytics.admin.v1alpha.AuditUserLinksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuditUserLinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLinksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequest.java deleted file mode 100644 index 1c9b0af61562..000000000000 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequest.java +++ /dev/null @@ -1,1347 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 BatchCreateUserLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} - */ -public final class BatchCreateUserLinksRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) - BatchCreateUserLinksRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use BatchCreateUserLinksRequest.newBuilder() to construct. - private BatchCreateUserLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BatchCreateUserLinksRequest() { - parent_ = ""; - requests_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BatchCreateUserLinksRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.class, - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - * - * - *
-   * Required. The account or property that all user links in the request are
-   * for. This field is required. The parent field in the CreateUserLinkRequest
-   * messages must either be empty or match this field.
-   * Example format: accounts/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. The account or property that all user links in the request are
-   * for. This field is required. The parent field in the CreateUserLinkRequest
-   * messages must either be empty or match this field.
-   * Example format: accounts/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 NOTIFY_NEW_USERS_FIELD_NUMBER = 2; - private boolean notifyNewUsers_ = false; - /** - * - * - *
-   * Optional. If set, then email the new users notifying them that they've been
-   * granted permissions to the resource. Regardless of whether this is set or
-   * not, notify_new_user field inside each individual request is ignored.
-   * 
- * - * bool notify_new_users = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The notifyNewUsers. - */ - @java.lang.Override - public boolean getNotifyNewUsers() { - return notifyNewUsers_; - } - - public static final int REQUESTS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private java.util.List requests_; - /** - * - * - *
-   * Required. The requests specifying the user links to create.
-   * A maximum of 1000 user links can be created in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getRequestsList() { - return requests_; - } - /** - * - * - *
-   * Required. The requests specifying the user links to create.
-   * A maximum of 1000 user links can be created in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - * - * - *
-   * Required. The requests specifying the user links to create.
-   * A maximum of 1000 user links can be created in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public int getRequestsCount() { - return requests_.size(); - } - /** - * - * - *
-   * Required. The requests specifying the user links to create.
-   * A maximum of 1000 user links can be created in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateUserLinkRequest getRequests(int index) { - return requests_.get(index); - } - /** - * - * - *
-   * Required. The requests specifying the user links to create.
-   * A maximum of 1000 user links can be created in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder getRequestsOrBuilder( - int index) { - return requests_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (notifyNewUsers_ != false) { - output.writeBool(2, notifyNewUsers_); - } - for (int i = 0; i < requests_.size(); i++) { - output.writeMessage(3, requests_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (notifyNewUsers_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, notifyNewUsers_); - } - for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, requests_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest other = - (com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getNotifyNewUsers() != other.getNotifyNewUsers()) return false; - if (!getRequestsList().equals(other.getRequestsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + NOTIFY_NEW_USERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNotifyNewUsers()); - if (getRequestsCount() > 0) { - hash = (37 * hash) + REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getRequestsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseFrom( - 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.BatchCreateUserLinksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseFrom( - com.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.BatchCreateUserLinksRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest 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.BatchCreateUserLinksRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseFrom( - java.io.InputStream 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.BatchCreateUserLinksRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest parseDelimitedFrom( - java.io.InputStream 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.BatchCreateUserLinksRequest 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.BatchCreateUserLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.BatchCreateUserLinksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 BatchCreateUserLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchCreateUserLinksRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.class, - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - notifyNewUsers_ = false; - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - } else { - requests_ = null; - requestsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - 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_BatchCreateUserLinksRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest build() { - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest buildPartial() { - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest result = - new com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest result) { - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.build(); - } - } - - private void buildPartial0( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.notifyNewUsers_ = notifyNewUsers_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.BatchCreateUserLinksRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest other) { - if (other - == com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getNotifyNewUsers() != false) { - setNotifyNewUsers(other.getNotifyNewUsers()); - } - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000004); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRequestsFieldBuilder() - : null; - } else { - requestsBuilder_.addAllMessages(other.requests_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - notifyNewUsers_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - com.google.analytics.admin.v1alpha.CreateUserLinkRequest m = - input.readMessage( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.parser(), - extensionRegistry); - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(m); - } else { - requestsBuilder_.addMessage(m); - } - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The account or property that all user links in the request are
-     * for. This field is required. The parent field in the CreateUserLinkRequest
-     * messages must either be empty or match this field.
-     * Example format: accounts/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. The account or property that all user links in the request are
-     * for. This field is required. The parent field in the CreateUserLinkRequest
-     * messages must either be empty or match this field.
-     * Example format: accounts/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. The account or property that all user links in the request are
-     * for. This field is required. The parent field in the CreateUserLinkRequest
-     * messages must either be empty or match this field.
-     * Example format: accounts/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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The account or property that all user links in the request are
-     * for. This field is required. The parent field in the CreateUserLinkRequest
-     * messages must either be empty or match this field.
-     * Example format: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The account or property that all user links in the request are
-     * for. This field is required. The parent field in the CreateUserLinkRequest
-     * messages must either be empty or match this field.
-     * Example format: accounts/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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private boolean notifyNewUsers_; - /** - * - * - *
-     * Optional. If set, then email the new users notifying them that they've been
-     * granted permissions to the resource. Regardless of whether this is set or
-     * not, notify_new_user field inside each individual request is ignored.
-     * 
- * - * bool notify_new_users = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The notifyNewUsers. - */ - @java.lang.Override - public boolean getNotifyNewUsers() { - return notifyNewUsers_; - } - /** - * - * - *
-     * Optional. If set, then email the new users notifying them that they've been
-     * granted permissions to the resource. Regardless of whether this is set or
-     * not, notify_new_user field inside each individual request is ignored.
-     * 
- * - * bool notify_new_users = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The notifyNewUsers to set. - * @return This builder for chaining. - */ - public Builder setNotifyNewUsers(boolean value) { - - notifyNewUsers_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. If set, then email the new users notifying them that they've been
-     * granted permissions to the resource. Regardless of whether this is set or
-     * not, notify_new_user field inside each individual request is ignored.
-     * 
- * - * bool notify_new_users = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearNotifyNewUsers() { - bitField0_ = (bitField0_ & ~0x00000002); - notifyNewUsers_ = false; - onChanged(); - return this; - } - - private java.util.List requests_ = - java.util.Collections.emptyList(); - - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - requests_ = - new java.util.ArrayList( - requests_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.CreateUserLinkRequest, - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder, - com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder> - requestsBuilder_; - - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List - getRequestsList() { - if (requestsBuilder_ == null) { - return java.util.Collections.unmodifiableList(requests_); - } else { - return requestsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public int getRequestsCount() { - if (requestsBuilder_ == null) { - return requests_.size(); - } else { - return requestsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.CreateUserLinkRequest getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRequests( - int index, com.google.analytics.admin.v1alpha.CreateUserLinkRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.set(index, value); - onChanged(); - } else { - requestsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRequests( - int index, - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.set(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests(com.google.analytics.admin.v1alpha.CreateUserLinkRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(value); - onChanged(); - } else { - requestsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests( - int index, com.google.analytics.admin.v1alpha.CreateUserLinkRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(index, value); - onChanged(); - } else { - requestsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests( - int index, - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addAllRequests( - java.lang.Iterable - values) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); - onChanged(); - } else { - requestsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder removeRequests(int index) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.remove(index); - onChanged(); - } else { - requestsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder getRequestsBuilder( - int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List< - ? extends com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder> - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder() - .addBuilder( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.getDefaultInstance()); - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder() - .addBuilder( - index, com.google.analytics.admin.v1alpha.CreateUserLinkRequest.getDefaultInstance()); - } - /** - * - * - *
-     * Required. The requests specifying the user links to create.
-     * A maximum of 1000 user links can be created in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List - getRequestsBuilderList() { - return getRequestsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.CreateUserLinkRequest, - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder, - com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.CreateUserLinkRequest, - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder, - com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); - requests_ = null; - } - return requestsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) - private static final com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest(); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchCreateUserLinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequestOrBuilder.java deleted file mode 100644 index 92ade5845a4d..000000000000 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequestOrBuilder.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 BatchCreateUserLinksRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchCreateUserLinksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The account or property that all user links in the request are
-   * for. This field is required. The parent field in the CreateUserLinkRequest
-   * messages must either be empty or match this field.
-   * Example format: accounts/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The account or property that all user links in the request are
-   * for. This field is required. The parent field in the CreateUserLinkRequest
-   * messages must either be empty or match this field.
-   * Example format: accounts/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Optional. If set, then email the new users notifying them that they've been
-   * granted permissions to the resource. Regardless of whether this is set or
-   * not, notify_new_user field inside each individual request is ignored.
-   * 
- * - * bool notify_new_users = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The notifyNewUsers. - */ - boolean getNotifyNewUsers(); - - /** - * - * - *
-   * Required. The requests specifying the user links to create.
-   * A maximum of 1000 user links can be created in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getRequestsList(); - /** - * - * - *
-   * Required. The requests specifying the user links to create.
-   * A maximum of 1000 user links can be created in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.CreateUserLinkRequest getRequests(int index); - /** - * - * - *
-   * Required. The requests specifying the user links to create.
-   * A maximum of 1000 user links can be created in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getRequestsCount(); - /** - * - * - *
-   * Required. The requests specifying the user links to create.
-   * A maximum of 1000 user links can be created in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getRequestsOrBuilderList(); - /** - * - * - *
-   * Required. The requests specifying the user links to create.
-   * A maximum of 1000 user links can be created in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.CreateUserLinkRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder getRequestsOrBuilder(int index); -} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksResponse.java deleted file mode 100644 index fbee521df1ad..000000000000 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksResponse.java +++ /dev/null @@ -1,945 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 BatchCreateUserLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} - */ -public final class BatchCreateUserLinksResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) - BatchCreateUserLinksResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use BatchCreateUserLinksResponse.newBuilder() to construct. - private BatchCreateUserLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BatchCreateUserLinksResponse() { - userLinks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BatchCreateUserLinksResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.class, - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.Builder.class); - } - - public static final int USER_LINKS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List userLinks_; - /** - * - * - *
-   * The user links created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public java.util.List getUserLinksList() { - return userLinks_; - } - /** - * - * - *
-   * The user links created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public java.util.List - getUserLinksOrBuilderList() { - return userLinks_; - } - /** - * - * - *
-   * The user links created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public int getUserLinksCount() { - return userLinks_.size(); - } - /** - * - * - *
-   * The user links created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index) { - return userLinks_.get(index); - } - /** - * - * - *
-   * The user links created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index) { - return userLinks_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < userLinks_.size(); i++) { - output.writeMessage(1, userLinks_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < userLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, userLinks_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse other = - (com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) obj; - - if (!getUserLinksList().equals(other.getUserLinksList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getUserLinksCount() > 0) { - hash = (37 * hash) + USER_LINKS_FIELD_NUMBER; - hash = (53 * hash) + getUserLinksList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse parseFrom( - 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.BatchCreateUserLinksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse parseFrom( - com.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.BatchCreateUserLinksResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse 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.BatchCreateUserLinksResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse parseFrom( - java.io.InputStream 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.BatchCreateUserLinksResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse parseDelimitedFrom( - java.io.InputStream 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.BatchCreateUserLinksResponse 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.BatchCreateUserLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.BatchCreateUserLinksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 BatchCreateUserLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchCreateUserLinksResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchCreateUserLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.class, - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (userLinksBuilder_ == null) { - userLinks_ = java.util.Collections.emptyList(); - } else { - userLinks_ = null; - userLinksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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_BatchCreateUserLinksResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse build() { - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse buildPartial() { - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse result = - new com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse result) { - if (userLinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - userLinks_ = java.util.Collections.unmodifiableList(userLinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.userLinks_ = userLinks_; - } else { - result.userLinks_ = userLinksBuilder_.build(); - } - } - - private void buildPartial0( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.BatchCreateUserLinksResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse other) { - if (other - == com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse.getDefaultInstance()) - return this; - if (userLinksBuilder_ == null) { - if (!other.userLinks_.isEmpty()) { - if (userLinks_.isEmpty()) { - userLinks_ = other.userLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUserLinksIsMutable(); - userLinks_.addAll(other.userLinks_); - } - onChanged(); - } - } else { - if (!other.userLinks_.isEmpty()) { - if (userLinksBuilder_.isEmpty()) { - userLinksBuilder_.dispose(); - userLinksBuilder_ = null; - userLinks_ = other.userLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - userLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getUserLinksFieldBuilder() - : null; - } else { - userLinksBuilder_.addAllMessages(other.userLinks_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.admin.v1alpha.UserLink m = - input.readMessage( - com.google.analytics.admin.v1alpha.UserLink.parser(), extensionRegistry); - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(m); - } else { - userLinksBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List userLinks_ = - java.util.Collections.emptyList(); - - private void ensureUserLinksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - userLinks_ = - new java.util.ArrayList(userLinks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - userLinksBuilder_; - - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List getUserLinksList() { - if (userLinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(userLinks_); - } else { - return userLinksBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public int getUserLinksCount() { - if (userLinksBuilder_ == null) { - return userLinks_.size(); - } else { - return userLinksBuilder_.getCount(); - } - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index) { - if (userLinksBuilder_ == null) { - return userLinks_.get(index); - } else { - return userLinksBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder setUserLinks(int index, com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.set(index, value); - onChanged(); - } else { - userLinksBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder setUserLinks( - int index, com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.set(index, builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks(com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.add(value); - onChanged(); - } else { - userLinksBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks(int index, com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.add(index, value); - onChanged(); - } else { - userLinksBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks( - com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks( - int index, com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(index, builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addAllUserLinks( - java.lang.Iterable values) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userLinks_); - onChanged(); - } else { - userLinksBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder clearUserLinks() { - if (userLinksBuilder_ == null) { - userLinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - userLinksBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder removeUserLinks(int index) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.remove(index); - onChanged(); - } else { - userLinksBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder getUserLinksBuilder(int index) { - return getUserLinksFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index) { - if (userLinksBuilder_ == null) { - return userLinks_.get(index); - } else { - return userLinksBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List - getUserLinksOrBuilderList() { - if (userLinksBuilder_ != null) { - return userLinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(userLinks_); - } - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder addUserLinksBuilder() { - return getUserLinksFieldBuilder() - .addBuilder(com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance()); - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder addUserLinksBuilder(int index) { - return getUserLinksFieldBuilder() - .addBuilder(index, com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance()); - } - /** - * - * - *
-     * The user links created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List - getUserLinksBuilderList() { - return getUserLinksFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - getUserLinksFieldBuilder() { - if (userLinksBuilder_ == null) { - userLinksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder>( - userLinks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - userLinks_ = null; - } - return userLinksBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @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.BatchCreateUserLinksResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) - private static final com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse(); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchCreateUserLinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksResponseOrBuilder.java deleted file mode 100644 index baf80931679a..000000000000 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksResponseOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 BatchCreateUserLinksResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchCreateUserLinksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The user links created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - java.util.List getUserLinksList(); - /** - * - * - *
-   * The user links created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index); - /** - * - * - *
-   * The user links created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - int getUserLinksCount(); - /** - * - * - *
-   * The user links created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - java.util.List - getUserLinksOrBuilderList(); - /** - * - * - *
-   * The user links created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index); -} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequest.java deleted file mode 100644 index b5f6beda30b6..000000000000 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequest.java +++ /dev/null @@ -1,1246 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 BatchDeleteUserLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} - */ -public final class BatchDeleteUserLinksRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest) - BatchDeleteUserLinksRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use BatchDeleteUserLinksRequest.newBuilder() to construct. - private BatchDeleteUserLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BatchDeleteUserLinksRequest() { - parent_ = ""; - requests_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BatchDeleteUserLinksRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchDeleteUserLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchDeleteUserLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.class, - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - * - * - *
-   * Required. The account or property that all user links in the request are
-   * for. The parent of all values for user link names to delete must match this
-   * field.
-   * Example format: accounts/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. The account or property that all user links in the request are
-   * for. The parent of all values for user link names to delete must match this
-   * field.
-   * Example format: accounts/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 REQUESTS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private java.util.List requests_; - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getRequestsList() { - return requests_; - } - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public int getRequestsCount() { - return requests_.size(); - } - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest getRequests(int index) { - return requests_.get(index); - } - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteUserLinkRequestOrBuilder getRequestsOrBuilder( - int index) { - return requests_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - for (int i = 0; i < requests_.size(); i++) { - output.writeMessage(2, requests_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest other = - (com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getRequestsList().equals(other.getRequestsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (getRequestsCount() > 0) { - hash = (37 * hash) + REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getRequestsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest parseFrom( - 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.BatchDeleteUserLinksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest parseFrom( - com.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.BatchDeleteUserLinksRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest 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.BatchDeleteUserLinksRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest parseFrom( - java.io.InputStream 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.BatchDeleteUserLinksRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest parseDelimitedFrom( - java.io.InputStream 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.BatchDeleteUserLinksRequest 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.BatchDeleteUserLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.BatchDeleteUserLinksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 BatchDeleteUserLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest) - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchDeleteUserLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchDeleteUserLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.class, - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - } else { - requests_ = null; - requestsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - 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_BatchDeleteUserLinksRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest build() { - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest buildPartial() { - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest result = - new com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest result) { - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.build(); - } - } - - private void buildPartial0( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.BatchDeleteUserLinksRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest other) { - if (other - == com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000002); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRequestsFieldBuilder() - : null; - } else { - requestsBuilder_.addAllMessages(other.requests_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest m = - input.readMessage( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.parser(), - extensionRegistry); - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(m); - } else { - requestsBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The account or property that all user links in the request are
-     * for. The parent of all values for user link names to delete must match this
-     * field.
-     * Example format: accounts/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. The account or property that all user links in the request are
-     * for. The parent of all values for user link names to delete must match this
-     * field.
-     * Example format: accounts/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. The account or property that all user links in the request are
-     * for. The parent of all values for user link names to delete must match this
-     * field.
-     * Example format: accounts/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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The account or property that all user links in the request are
-     * for. The parent of all values for user link names to delete must match this
-     * field.
-     * Example format: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The account or property that all user links in the request are
-     * for. The parent of all values for user link names to delete must match this
-     * field.
-     * Example format: accounts/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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.util.List requests_ = - java.util.Collections.emptyList(); - - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - requests_ = - new java.util.ArrayList( - requests_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest, - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.Builder, - com.google.analytics.admin.v1alpha.DeleteUserLinkRequestOrBuilder> - requestsBuilder_; - - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List - getRequestsList() { - if (requestsBuilder_ == null) { - return java.util.Collections.unmodifiableList(requests_); - } else { - return requestsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public int getRequestsCount() { - if (requestsBuilder_ == null) { - return requests_.size(); - } else { - return requestsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRequests( - int index, com.google.analytics.admin.v1alpha.DeleteUserLinkRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.set(index, value); - onChanged(); - } else { - requestsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRequests( - int index, - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.set(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests(com.google.analytics.admin.v1alpha.DeleteUserLinkRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(value); - onChanged(); - } else { - requestsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests( - int index, com.google.analytics.admin.v1alpha.DeleteUserLinkRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(index, value); - onChanged(); - } else { - requestsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests( - int index, - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addAllRequests( - java.lang.Iterable - values) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); - onChanged(); - } else { - requestsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder removeRequests(int index) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.remove(index); - onChanged(); - } else { - requestsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.Builder getRequestsBuilder( - int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.DeleteUserLinkRequestOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List< - ? extends com.google.analytics.admin.v1alpha.DeleteUserLinkRequestOrBuilder> - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder() - .addBuilder( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.getDefaultInstance()); - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder() - .addBuilder( - index, com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.getDefaultInstance()); - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List - getRequestsBuilderList() { - return getRequestsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest, - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.Builder, - com.google.analytics.admin.v1alpha.DeleteUserLinkRequestOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest, - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.Builder, - com.google.analytics.admin.v1alpha.DeleteUserLinkRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - requests_ = null; - } - return requestsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest) - private static final com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest(); - } - - public static com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchDeleteUserLinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequestOrBuilder.java deleted file mode 100644 index 465404c76240..000000000000 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequestOrBuilder.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 BatchDeleteUserLinksRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The account or property that all user links in the request are
-   * for. The parent of all values for user link names to delete must match this
-   * field.
-   * Example format: accounts/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The account or property that all user links in the request are
-   * for. The parent of all values for user link names to delete must match this
-   * field.
-   * Example format: accounts/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 requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getRequestsList(); - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest getRequests(int index); - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getRequestsCount(); - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getRequestsOrBuilderList(); - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.DeleteUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.DeleteUserLinkRequestOrBuilder getRequestsOrBuilder(int index); -} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequestOrBuilder.java deleted file mode 100644 index 2948fcecff0d..000000000000 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequestOrBuilder.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 BatchGetUserLinksRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchGetUserLinksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The account or property that all user links in the request are
-   * for. The parent of all provided values for the 'names' field must match
-   * this field.
-   * Example format: accounts/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The account or property that all user links in the request are
-   * for. The parent of all provided values for the 'names' field must match
-   * this field.
-   * Example format: accounts/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 names of the user links to retrieve.
-   * A maximum of 1000 user links can be retrieved in a batch.
-   * Format: accounts/{accountId}/userLinks/{userLinkId}
-   * 
- * - * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return A list containing the names. - */ - java.util.List getNamesList(); - /** - * - * - *
-   * Required. The names of the user links to retrieve.
-   * A maximum of 1000 user links can be retrieved in a batch.
-   * Format: accounts/{accountId}/userLinks/{userLinkId}
-   * 
- * - * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The count of names. - */ - int getNamesCount(); - /** - * - * - *
-   * Required. The names of the user links to retrieve.
-   * A maximum of 1000 user links can be retrieved in a batch.
-   * Format: accounts/{accountId}/userLinks/{userLinkId}
-   * 
- * - * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param index The index of the element to return. - * @return The names at the given index. - */ - java.lang.String getNames(int index); - /** - * - * - *
-   * Required. The names of the user links to retrieve.
-   * A maximum of 1000 user links can be retrieved in a batch.
-   * Format: accounts/{accountId}/userLinks/{userLinkId}
-   * 
- * - * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param index The index of the value to return. - * @return The bytes of the names at the given index. - */ - com.google.protobuf.ByteString getNamesBytes(int index); -} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksResponse.java deleted file mode 100644 index 2aa0678af6fb..000000000000 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksResponse.java +++ /dev/null @@ -1,942 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 BatchGetUserLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchGetUserLinksResponse} - */ -public final class BatchGetUserLinksResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchGetUserLinksResponse) - BatchGetUserLinksResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use BatchGetUserLinksResponse.newBuilder() to construct. - private BatchGetUserLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BatchGetUserLinksResponse() { - userLinks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BatchGetUserLinksResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse.class, - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse.Builder.class); - } - - public static final int USER_LINKS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List userLinks_; - /** - * - * - *
-   * The requested user links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public java.util.List getUserLinksList() { - return userLinks_; - } - /** - * - * - *
-   * The requested user links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public java.util.List - getUserLinksOrBuilderList() { - return userLinks_; - } - /** - * - * - *
-   * The requested user links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public int getUserLinksCount() { - return userLinks_.size(); - } - /** - * - * - *
-   * The requested user links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index) { - return userLinks_.get(index); - } - /** - * - * - *
-   * The requested user links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index) { - return userLinks_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < userLinks_.size(); i++) { - output.writeMessage(1, userLinks_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < userLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, userLinks_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse other = - (com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse) obj; - - if (!getUserLinksList().equals(other.getUserLinksList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getUserLinksCount() > 0) { - hash = (37 * hash) + USER_LINKS_FIELD_NUMBER; - hash = (53 * hash) + getUserLinksList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse parseFrom( - 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.BatchGetUserLinksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse parseFrom( - com.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.BatchGetUserLinksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse 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.BatchGetUserLinksResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse parseFrom( - java.io.InputStream 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.BatchGetUserLinksResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse parseDelimitedFrom( - java.io.InputStream 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.BatchGetUserLinksResponse 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.BatchGetUserLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.BatchGetUserLinksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 BatchGetUserLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchGetUserLinksResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchGetUserLinksResponse) - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse.class, - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (userLinksBuilder_ == null) { - userLinks_ = java.util.Collections.emptyList(); - } else { - userLinks_ = null; - userLinksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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_BatchGetUserLinksResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse build() { - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse buildPartial() { - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse result = - new com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse result) { - if (userLinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - userLinks_ = java.util.Collections.unmodifiableList(userLinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.userLinks_ = userLinks_; - } else { - result.userLinks_ = userLinksBuilder_.build(); - } - } - - private void buildPartial0( - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.BatchGetUserLinksResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse other) { - if (other - == com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse.getDefaultInstance()) - return this; - if (userLinksBuilder_ == null) { - if (!other.userLinks_.isEmpty()) { - if (userLinks_.isEmpty()) { - userLinks_ = other.userLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUserLinksIsMutable(); - userLinks_.addAll(other.userLinks_); - } - onChanged(); - } - } else { - if (!other.userLinks_.isEmpty()) { - if (userLinksBuilder_.isEmpty()) { - userLinksBuilder_.dispose(); - userLinksBuilder_ = null; - userLinks_ = other.userLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - userLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getUserLinksFieldBuilder() - : null; - } else { - userLinksBuilder_.addAllMessages(other.userLinks_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.admin.v1alpha.UserLink m = - input.readMessage( - com.google.analytics.admin.v1alpha.UserLink.parser(), extensionRegistry); - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(m); - } else { - userLinksBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List userLinks_ = - java.util.Collections.emptyList(); - - private void ensureUserLinksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - userLinks_ = - new java.util.ArrayList(userLinks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - userLinksBuilder_; - - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List getUserLinksList() { - if (userLinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(userLinks_); - } else { - return userLinksBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public int getUserLinksCount() { - if (userLinksBuilder_ == null) { - return userLinks_.size(); - } else { - return userLinksBuilder_.getCount(); - } - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index) { - if (userLinksBuilder_ == null) { - return userLinks_.get(index); - } else { - return userLinksBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder setUserLinks(int index, com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.set(index, value); - onChanged(); - } else { - userLinksBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder setUserLinks( - int index, com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.set(index, builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks(com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.add(value); - onChanged(); - } else { - userLinksBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks(int index, com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.add(index, value); - onChanged(); - } else { - userLinksBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks( - com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks( - int index, com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(index, builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addAllUserLinks( - java.lang.Iterable values) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userLinks_); - onChanged(); - } else { - userLinksBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder clearUserLinks() { - if (userLinksBuilder_ == null) { - userLinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - userLinksBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder removeUserLinks(int index) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.remove(index); - onChanged(); - } else { - userLinksBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder getUserLinksBuilder(int index) { - return getUserLinksFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index) { - if (userLinksBuilder_ == null) { - return userLinks_.get(index); - } else { - return userLinksBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List - getUserLinksOrBuilderList() { - if (userLinksBuilder_ != null) { - return userLinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(userLinks_); - } - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder addUserLinksBuilder() { - return getUserLinksFieldBuilder() - .addBuilder(com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance()); - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder addUserLinksBuilder(int index) { - return getUserLinksFieldBuilder() - .addBuilder(index, com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance()); - } - /** - * - * - *
-     * The requested user links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List - getUserLinksBuilderList() { - return getUserLinksFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - getUserLinksFieldBuilder() { - if (userLinksBuilder_ == null) { - userLinksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder>( - userLinks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - userLinks_ = null; - } - return userLinksBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @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.BatchGetUserLinksResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchGetUserLinksResponse) - private static final com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse(); - } - - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchGetUserLinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksResponseOrBuilder.java deleted file mode 100644 index 3991bf8f0c90..000000000000 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksResponseOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 BatchGetUserLinksResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchGetUserLinksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The requested user links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - java.util.List getUserLinksList(); - /** - * - * - *
-   * The requested user links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index); - /** - * - * - *
-   * The requested user links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - int getUserLinksCount(); - /** - * - * - *
-   * The requested user links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - java.util.List - getUserLinksOrBuilderList(); - /** - * - * - *
-   * The requested user links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index); -} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequest.java deleted file mode 100644 index 094dbe03c830..000000000000 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequest.java +++ /dev/null @@ -1,1246 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 BatchUpdateUserLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} - */ -public final class BatchUpdateUserLinksRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest) - BatchUpdateUserLinksRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use BatchUpdateUserLinksRequest.newBuilder() to construct. - private BatchUpdateUserLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BatchUpdateUserLinksRequest() { - parent_ = ""; - requests_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BatchUpdateUserLinksRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.class, - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - * - * - *
-   * Required. The account or property that all user links in the request are
-   * for. The parent field in the UpdateUserLinkRequest messages must either be
-   * empty or match this field.
-   * Example format: accounts/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. The account or property that all user links in the request are
-   * for. The parent field in the UpdateUserLinkRequest messages must either be
-   * empty or match this field.
-   * Example format: accounts/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 REQUESTS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private java.util.List requests_; - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getRequestsList() { - return requests_; - } - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public int getRequestsCount() { - return requests_.size(); - } - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest getRequests(int index) { - return requests_.get(index); - } - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateUserLinkRequestOrBuilder getRequestsOrBuilder( - int index) { - return requests_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - for (int i = 0; i < requests_.size(); i++) { - output.writeMessage(2, requests_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest other = - (com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getRequestsList().equals(other.getRequestsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (getRequestsCount() > 0) { - hash = (37 * hash) + REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getRequestsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest parseFrom( - 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.BatchUpdateUserLinksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest parseFrom( - com.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.BatchUpdateUserLinksRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest 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.BatchUpdateUserLinksRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest parseFrom( - java.io.InputStream 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.BatchUpdateUserLinksRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest parseDelimitedFrom( - java.io.InputStream 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.BatchUpdateUserLinksRequest 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.BatchUpdateUserLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.BatchUpdateUserLinksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 BatchUpdateUserLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest) - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.class, - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - } else { - requests_ = null; - requestsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - 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_BatchUpdateUserLinksRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest build() { - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest buildPartial() { - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest result = - new com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest result) { - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.build(); - } - } - - private void buildPartial0( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.BatchUpdateUserLinksRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest other) { - if (other - == com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000002); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRequestsFieldBuilder() - : null; - } else { - requestsBuilder_.addAllMessages(other.requests_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest m = - input.readMessage( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.parser(), - extensionRegistry); - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(m); - } else { - requestsBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The account or property that all user links in the request are
-     * for. The parent field in the UpdateUserLinkRequest messages must either be
-     * empty or match this field.
-     * Example format: accounts/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. The account or property that all user links in the request are
-     * for. The parent field in the UpdateUserLinkRequest messages must either be
-     * empty or match this field.
-     * Example format: accounts/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. The account or property that all user links in the request are
-     * for. The parent field in the UpdateUserLinkRequest messages must either be
-     * empty or match this field.
-     * Example format: accounts/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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The account or property that all user links in the request are
-     * for. The parent field in the UpdateUserLinkRequest messages must either be
-     * empty or match this field.
-     * Example format: accounts/1234
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The account or property that all user links in the request are
-     * for. The parent field in the UpdateUserLinkRequest messages must either be
-     * empty or match this field.
-     * Example format: accounts/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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.util.List requests_ = - java.util.Collections.emptyList(); - - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - requests_ = - new java.util.ArrayList( - requests_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest, - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.Builder, - com.google.analytics.admin.v1alpha.UpdateUserLinkRequestOrBuilder> - requestsBuilder_; - - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List - getRequestsList() { - if (requestsBuilder_ == null) { - return java.util.Collections.unmodifiableList(requests_); - } else { - return requestsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public int getRequestsCount() { - if (requestsBuilder_ == null) { - return requests_.size(); - } else { - return requestsBuilder_.getCount(); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRequests( - int index, com.google.analytics.admin.v1alpha.UpdateUserLinkRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.set(index, value); - onChanged(); - } else { - requestsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setRequests( - int index, - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.set(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests(com.google.analytics.admin.v1alpha.UpdateUserLinkRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(value); - onChanged(); - } else { - requestsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests( - int index, com.google.analytics.admin.v1alpha.UpdateUserLinkRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(index, value); - onChanged(); - } else { - requestsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addRequests( - int index, - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addAllRequests( - java.lang.Iterable - values) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); - onChanged(); - } else { - requestsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder removeRequests(int index) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.remove(index); - onChanged(); - } else { - requestsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.Builder getRequestsBuilder( - int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.UpdateUserLinkRequestOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List< - ? extends com.google.analytics.admin.v1alpha.UpdateUserLinkRequestOrBuilder> - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder() - .addBuilder( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.getDefaultInstance()); - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder() - .addBuilder( - index, com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.getDefaultInstance()); - } - /** - * - * - *
-     * Required. The requests specifying the user links to update.
-     * A maximum of 1000 user links can be updated in a batch.
-     * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List - getRequestsBuilderList() { - return getRequestsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest, - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.Builder, - com.google.analytics.admin.v1alpha.UpdateUserLinkRequestOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest, - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.Builder, - com.google.analytics.admin.v1alpha.UpdateUserLinkRequestOrBuilder>( - requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - requests_ = null; - } - return requestsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest) - private static final com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest(); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchUpdateUserLinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequestOrBuilder.java deleted file mode 100644 index d15dcca5b597..000000000000 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequestOrBuilder.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 BatchUpdateUserLinksRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The account or property that all user links in the request are
-   * for. The parent field in the UpdateUserLinkRequest messages must either be
-   * empty or match this field.
-   * Example format: accounts/1234
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The account or property that all user links in the request are
-   * for. The parent field in the UpdateUserLinkRequest messages must either be
-   * empty or match this field.
-   * Example format: accounts/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 requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getRequestsList(); - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest getRequests(int index); - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getRequestsCount(); - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getRequestsOrBuilderList(); - /** - * - * - *
-   * Required. The requests specifying the user links to update.
-   * A maximum of 1000 user links can be updated in a batch.
-   * 
- * - * - * repeated .google.analytics.admin.v1alpha.UpdateUserLinkRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.UpdateUserLinkRequestOrBuilder getRequestsOrBuilder(int index); -} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponse.java deleted file mode 100644 index 370bb3b39f00..000000000000 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponse.java +++ /dev/null @@ -1,945 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 BatchUpdateUserLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} - */ -public final class BatchUpdateUserLinksResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) - BatchUpdateUserLinksResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use BatchUpdateUserLinksResponse.newBuilder() to construct. - private BatchUpdateUserLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private BatchUpdateUserLinksResponse() { - userLinks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BatchUpdateUserLinksResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.class, - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.Builder.class); - } - - public static final int USER_LINKS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List userLinks_; - /** - * - * - *
-   * The user links updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public java.util.List getUserLinksList() { - return userLinks_; - } - /** - * - * - *
-   * The user links updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public java.util.List - getUserLinksOrBuilderList() { - return userLinks_; - } - /** - * - * - *
-   * The user links updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public int getUserLinksCount() { - return userLinks_.size(); - } - /** - * - * - *
-   * The user links updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index) { - return userLinks_.get(index); - } - /** - * - * - *
-   * The user links updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index) { - return userLinks_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < userLinks_.size(); i++) { - output.writeMessage(1, userLinks_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < userLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, userLinks_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse other = - (com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) obj; - - if (!getUserLinksList().equals(other.getUserLinksList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getUserLinksCount() > 0) { - hash = (37 * hash) + USER_LINKS_FIELD_NUMBER; - hash = (53 * hash) + getUserLinksList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse parseFrom( - 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.BatchUpdateUserLinksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse parseFrom( - com.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.BatchUpdateUserLinksResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse 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.BatchUpdateUserLinksResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse parseFrom( - java.io.InputStream 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.BatchUpdateUserLinksResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse parseDelimitedFrom( - java.io.InputStream 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.BatchUpdateUserLinksResponse 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.BatchUpdateUserLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.BatchUpdateUserLinksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 BatchUpdateUserLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchUpdateUserLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.class, - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (userLinksBuilder_ == null) { - userLinks_ = java.util.Collections.emptyList(); - } else { - userLinks_ = null; - userLinksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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_BatchUpdateUserLinksResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse build() { - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse buildPartial() { - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse result = - new com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse result) { - if (userLinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - userLinks_ = java.util.Collections.unmodifiableList(userLinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.userLinks_ = userLinks_; - } else { - result.userLinks_ = userLinksBuilder_.build(); - } - } - - private void buildPartial0( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.BatchUpdateUserLinksResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse other) { - if (other - == com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse.getDefaultInstance()) - return this; - if (userLinksBuilder_ == null) { - if (!other.userLinks_.isEmpty()) { - if (userLinks_.isEmpty()) { - userLinks_ = other.userLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUserLinksIsMutable(); - userLinks_.addAll(other.userLinks_); - } - onChanged(); - } - } else { - if (!other.userLinks_.isEmpty()) { - if (userLinksBuilder_.isEmpty()) { - userLinksBuilder_.dispose(); - userLinksBuilder_ = null; - userLinks_ = other.userLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - userLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getUserLinksFieldBuilder() - : null; - } else { - userLinksBuilder_.addAllMessages(other.userLinks_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.admin.v1alpha.UserLink m = - input.readMessage( - com.google.analytics.admin.v1alpha.UserLink.parser(), extensionRegistry); - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(m); - } else { - userLinksBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List userLinks_ = - java.util.Collections.emptyList(); - - private void ensureUserLinksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - userLinks_ = - new java.util.ArrayList(userLinks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - userLinksBuilder_; - - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List getUserLinksList() { - if (userLinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(userLinks_); - } else { - return userLinksBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public int getUserLinksCount() { - if (userLinksBuilder_ == null) { - return userLinks_.size(); - } else { - return userLinksBuilder_.getCount(); - } - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index) { - if (userLinksBuilder_ == null) { - return userLinks_.get(index); - } else { - return userLinksBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder setUserLinks(int index, com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.set(index, value); - onChanged(); - } else { - userLinksBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder setUserLinks( - int index, com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.set(index, builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks(com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.add(value); - onChanged(); - } else { - userLinksBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks(int index, com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.add(index, value); - onChanged(); - } else { - userLinksBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks( - com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks( - int index, com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(index, builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addAllUserLinks( - java.lang.Iterable values) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userLinks_); - onChanged(); - } else { - userLinksBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder clearUserLinks() { - if (userLinksBuilder_ == null) { - userLinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - userLinksBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder removeUserLinks(int index) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.remove(index); - onChanged(); - } else { - userLinksBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder getUserLinksBuilder(int index) { - return getUserLinksFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index) { - if (userLinksBuilder_ == null) { - return userLinks_.get(index); - } else { - return userLinksBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List - getUserLinksOrBuilderList() { - if (userLinksBuilder_ != null) { - return userLinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(userLinks_); - } - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder addUserLinksBuilder() { - return getUserLinksFieldBuilder() - .addBuilder(com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance()); - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder addUserLinksBuilder(int index) { - return getUserLinksFieldBuilder() - .addBuilder(index, com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance()); - } - /** - * - * - *
-     * The user links updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List - getUserLinksBuilderList() { - return getUserLinksFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - getUserLinksFieldBuilder() { - if (userLinksBuilder_ == null) { - userLinksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder>( - userLinks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - userLinks_ = null; - } - return userLinksBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @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.BatchUpdateUserLinksResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) - private static final com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse(); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchUpdateUserLinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponseOrBuilder.java deleted file mode 100644 index a3fcec097cb2..000000000000 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponseOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 BatchUpdateUserLinksResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The user links updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - java.util.List getUserLinksList(); - /** - * - * - *
-   * The user links updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index); - /** - * - * - *
-   * The user links updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - int getUserLinksCount(); - /** - * - * - *
-   * The user links updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - java.util.List - getUserLinksOrBuilderList(); - /** - * - * - *
-   * The user links updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index); -} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java index 78a87c9e18e4..043a73f36c4d 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java @@ -778,6 +778,45 @@ public interface ChangeHistoryResourceOrBuilder com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder getEnhancedMeasurementSettingsOrBuilder(); + /** + * + * + *
+     * A snapshot of DataRedactionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + * + * @return Whether the dataRedactionSettings field is set. + */ + boolean hasDataRedactionSettings(); + /** + * + * + *
+     * A snapshot of DataRedactionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + * + * @return The dataRedactionSettings. + */ + com.google.analytics.admin.v1alpha.DataRedactionSettings getDataRedactionSettings(); + /** + * + * + *
+     * A snapshot of DataRedactionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + */ + com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder + getDataRedactionSettingsOrBuilder(); + /** * * @@ -1004,6 +1043,7 @@ public enum ResourceCase CHANNEL_GROUP(22), BIGQUERY_LINK(23), ENHANCED_MEASUREMENT_SETTINGS(24), + DATA_REDACTION_SETTINGS(25), SKADNETWORK_CONVERSION_VALUE_SCHEMA(26), ADSENSE_LINK(27), AUDIENCE(28), @@ -1064,6 +1104,8 @@ public static ResourceCase forNumber(int value) { return BIGQUERY_LINK; case 24: return ENHANCED_MEASUREMENT_SETTINGS; + case 25: + return DATA_REDACTION_SETTINGS; case 26: return SKADNETWORK_CONVERSION_VALUE_SCHEMA; case 27: @@ -2110,6 +2152,61 @@ public boolean hasEnhancedMeasurementSettings() { return com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance(); } + public static final int DATA_REDACTION_SETTINGS_FIELD_NUMBER = 25; + /** + * + * + *
+     * A snapshot of DataRedactionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + * + * @return Whether the dataRedactionSettings field is set. + */ + @java.lang.Override + public boolean hasDataRedactionSettings() { + return resourceCase_ == 25; + } + /** + * + * + *
+     * A snapshot of DataRedactionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + * + * @return The dataRedactionSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRedactionSettings getDataRedactionSettings() { + if (resourceCase_ == 25) { + return (com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of DataRedactionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder + getDataRedactionSettingsOrBuilder() { + if (resourceCase_ == 25) { + return (com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance(); + } + public static final int SKADNETWORK_CONVERSION_VALUE_SCHEMA_FIELD_NUMBER = 26; /** * @@ -2406,6 +2503,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 24, (com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) resource_); } + if (resourceCase_ == 25) { + output.writeMessage( + 25, (com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_); + } if (resourceCase_ == 26) { output.writeMessage( 26, (com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) resource_); @@ -2525,6 +2626,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 24, (com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) resource_); } + if (resourceCase_ == 25) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 25, (com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_); + } if (resourceCase_ == 26) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -2627,6 +2733,9 @@ public boolean equals(final java.lang.Object obj) { if (!getEnhancedMeasurementSettings().equals(other.getEnhancedMeasurementSettings())) return false; break; + case 25: + if (!getDataRedactionSettings().equals(other.getDataRedactionSettings())) return false; + break; case 26: if (!getSkadnetworkConversionValueSchema() .equals(other.getSkadnetworkConversionValueSchema())) return false; @@ -2731,6 +2840,10 @@ public int hashCode() { hash = (37 * hash) + ENHANCED_MEASUREMENT_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getEnhancedMeasurementSettings().hashCode(); break; + case 25: + hash = (37 * hash) + DATA_REDACTION_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getDataRedactionSettings().hashCode(); + break; case 26: hash = (37 * hash) + SKADNETWORK_CONVERSION_VALUE_SCHEMA_FIELD_NUMBER; hash = (53 * hash) + getSkadnetworkConversionValueSchema().hashCode(); @@ -2959,6 +3072,9 @@ public Builder clear() { if (enhancedMeasurementSettingsBuilder_ != null) { enhancedMeasurementSettingsBuilder_.clear(); } + if (dataRedactionSettingsBuilder_ != null) { + dataRedactionSettingsBuilder_.clear(); + } if (skadnetworkConversionValueSchemaBuilder_ != null) { skadnetworkConversionValueSchemaBuilder_.clear(); } @@ -3078,6 +3194,9 @@ private void buildPartialOneofs( if (resourceCase_ == 24 && enhancedMeasurementSettingsBuilder_ != null) { result.resource_ = enhancedMeasurementSettingsBuilder_.build(); } + if (resourceCase_ == 25 && dataRedactionSettingsBuilder_ != null) { + result.resource_ = dataRedactionSettingsBuilder_.build(); + } if (resourceCase_ == 26 && skadnetworkConversionValueSchemaBuilder_ != null) { result.resource_ = skadnetworkConversionValueSchemaBuilder_.build(); } @@ -3242,6 +3361,11 @@ public Builder mergeFrom( mergeEnhancedMeasurementSettings(other.getEnhancedMeasurementSettings()); break; } + case DATA_REDACTION_SETTINGS: + { + mergeDataRedactionSettings(other.getDataRedactionSettings()); + break; + } case SKADNETWORK_CONVERSION_VALUE_SCHEMA: { mergeSkadnetworkConversionValueSchema(other.getSkadnetworkConversionValueSchema()); @@ -3420,6 +3544,13 @@ public Builder mergeFrom( resourceCase_ = 24; break; } // case 194 + case 202: + { + input.readMessage( + getDataRedactionSettingsFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 25; + break; + } // case 202 case 210: { input.readMessage( @@ -7651,6 +7782,231 @@ public Builder clearEnhancedMeasurementSettings() { return enhancedMeasurementSettingsBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataRedactionSettings, + com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder> + dataRedactionSettingsBuilder_; + /** + * + * + *
+       * A snapshot of DataRedactionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + * + * @return Whether the dataRedactionSettings field is set. + */ + @java.lang.Override + public boolean hasDataRedactionSettings() { + return resourceCase_ == 25; + } + /** + * + * + *
+       * A snapshot of DataRedactionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + * + * @return The dataRedactionSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRedactionSettings getDataRedactionSettings() { + if (dataRedactionSettingsBuilder_ == null) { + if (resourceCase_ == 25) { + return (com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance(); + } else { + if (resourceCase_ == 25) { + return dataRedactionSettingsBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of DataRedactionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + */ + public Builder setDataRedactionSettings( + com.google.analytics.admin.v1alpha.DataRedactionSettings value) { + if (dataRedactionSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + dataRedactionSettingsBuilder_.setMessage(value); + } + resourceCase_ = 25; + return this; + } + /** + * + * + *
+       * A snapshot of DataRedactionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + */ + public Builder setDataRedactionSettings( + com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder builderForValue) { + if (dataRedactionSettingsBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + dataRedactionSettingsBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 25; + return this; + } + /** + * + * + *
+       * A snapshot of DataRedactionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + */ + public Builder mergeDataRedactionSettings( + com.google.analytics.admin.v1alpha.DataRedactionSettings value) { + if (dataRedactionSettingsBuilder_ == null) { + if (resourceCase_ == 25 + && resource_ + != com.google.analytics.admin.v1alpha.DataRedactionSettings + .getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.DataRedactionSettings.newBuilder( + (com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 25) { + dataRedactionSettingsBuilder_.mergeFrom(value); + } else { + dataRedactionSettingsBuilder_.setMessage(value); + } + } + resourceCase_ = 25; + return this; + } + /** + * + * + *
+       * A snapshot of DataRedactionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + */ + public Builder clearDataRedactionSettings() { + if (dataRedactionSettingsBuilder_ == null) { + if (resourceCase_ == 25) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 25) { + resourceCase_ = 0; + resource_ = null; + } + dataRedactionSettingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of DataRedactionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + */ + public com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder + getDataRedactionSettingsBuilder() { + return getDataRedactionSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of DataRedactionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder + getDataRedactionSettingsOrBuilder() { + if ((resourceCase_ == 25) && (dataRedactionSettingsBuilder_ != null)) { + return dataRedactionSettingsBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 25) { + return (com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of DataRedactionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataRedactionSettings, + com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder> + getDataRedactionSettingsFieldBuilder() { + if (dataRedactionSettingsBuilder_ == null) { + if (!(resourceCase_ == 25)) { + resource_ = + com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance(); + } + dataRedactionSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataRedactionSettings, + com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder>( + (com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 25; + onChanged(); + return dataRedactionSettingsBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java index 06c66651a5f8..b801d532aca2 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java @@ -218,6 +218,16 @@ public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMes * ENHANCED_MEASUREMENT_SETTINGS = 24; */ ENHANCED_MEASUREMENT_SETTINGS(24), + /** + * + * + *
+   * DataRedactionSettings resource
+   * 
+ * + * DATA_REDACTION_SETTINGS = 25; + */ + DATA_REDACTION_SETTINGS(25), /** * * @@ -451,6 +461,16 @@ public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMes * ENHANCED_MEASUREMENT_SETTINGS = 24; */ public static final int ENHANCED_MEASUREMENT_SETTINGS_VALUE = 24; + /** + * + * + *
+   * DataRedactionSettings resource
+   * 
+ * + * DATA_REDACTION_SETTINGS = 25; + */ + public static final int DATA_REDACTION_SETTINGS_VALUE = 25; /** * * @@ -554,6 +574,8 @@ public static ChangeHistoryResourceType forNumber(int value) { return CHANNEL_GROUP; case 24: return ENHANCED_MEASUREMENT_SETTINGS; + case 25: + return DATA_REDACTION_SETTINGS; case 26: return SKADNETWORK_CONVERSION_VALUE_SCHEMA; case 27: diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyRequest.java new file mode 100644 index 000000000000..4c80ed350380 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyRequest.java @@ -0,0 +1,1030 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 CreateRollupProperty RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateRollupPropertyRequest} + */ +public final class CreateRollupPropertyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateRollupPropertyRequest) + CreateRollupPropertyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateRollupPropertyRequest.newBuilder() to construct. + private CreateRollupPropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateRollupPropertyRequest() { + sourceProperties_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateRollupPropertyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.class, + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.Builder.class); + } + + public static final int ROLLUP_PROPERTY_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.Property rollupProperty_; + /** + * + * + *
+   * Required. The roll-up property to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rollupProperty field is set. + */ + @java.lang.Override + public boolean hasRollupProperty() { + return rollupProperty_ != null; + } + /** + * + * + *
+   * Required. The roll-up property to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rollupProperty. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Property getRollupProperty() { + return rollupProperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : rollupProperty_; + } + /** + * + * + *
+   * Required. The roll-up property to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getRollupPropertyOrBuilder() { + return rollupProperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : rollupProperty_; + } + + public static final int SOURCE_PROPERTIES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList sourceProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Optional. The resource names of properties that will be sources to the
+   * created roll-up property.
+   * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the sourceProperties. + */ + public com.google.protobuf.ProtocolStringList getSourcePropertiesList() { + return sourceProperties_; + } + /** + * + * + *
+   * Optional. The resource names of properties that will be sources to the
+   * created roll-up property.
+   * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of sourceProperties. + */ + public int getSourcePropertiesCount() { + return sourceProperties_.size(); + } + /** + * + * + *
+   * Optional. The resource names of properties that will be sources to the
+   * created roll-up property.
+   * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The sourceProperties at the given index. + */ + public java.lang.String getSourceProperties(int index) { + return sourceProperties_.get(index); + } + /** + * + * + *
+   * Optional. The resource names of properties that will be sources to the
+   * created roll-up property.
+   * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the sourceProperties at the given index. + */ + public com.google.protobuf.ByteString getSourcePropertiesBytes(int index) { + return sourceProperties_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (rollupProperty_ != null) { + output.writeMessage(1, getRollupProperty()); + } + for (int i = 0; i < sourceProperties_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceProperties_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rollupProperty_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRollupProperty()); + } + { + int dataSize = 0; + for (int i = 0; i < sourceProperties_.size(); i++) { + dataSize += computeStringSizeNoTag(sourceProperties_.getRaw(i)); + } + size += dataSize; + size += 1 * getSourcePropertiesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest other = + (com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest) obj; + + if (hasRollupProperty() != other.hasRollupProperty()) return false; + if (hasRollupProperty()) { + if (!getRollupProperty().equals(other.getRollupProperty())) return false; + } + if (!getSourcePropertiesList().equals(other.getSourcePropertiesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRollupProperty()) { + hash = (37 * hash) + ROLLUP_PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getRollupProperty().hashCode(); + } + if (getSourcePropertiesCount() > 0) { + hash = (37 * hash) + SOURCE_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getSourcePropertiesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom( + 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.CreateRollupPropertyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom( + com.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.CreateRollupPropertyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest 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.CreateRollupPropertyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom( + java.io.InputStream 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.CreateRollupPropertyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseDelimitedFrom( + java.io.InputStream 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.CreateRollupPropertyRequest 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.CreateRollupPropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.CreateRollupPropertyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 CreateRollupProperty RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateRollupPropertyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateRollupPropertyRequest) + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.class, + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rollupProperty_ = null; + if (rollupPropertyBuilder_ != null) { + rollupPropertyBuilder_.dispose(); + rollupPropertyBuilder_ = null; + } + sourceProperties_ = com.google.protobuf.LazyStringArrayList.emptyList(); + 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_CreateRollupPropertyRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest build() { + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest result = + new com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rollupProperty_ = + rollupPropertyBuilder_ == null ? rollupProperty_ : rollupPropertyBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + sourceProperties_.makeImmutable(); + result.sourceProperties_ = sourceProperties_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.CreateRollupPropertyRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.getDefaultInstance()) + return this; + if (other.hasRollupProperty()) { + mergeRollupProperty(other.getRollupProperty()); + } + if (!other.sourceProperties_.isEmpty()) { + if (sourceProperties_.isEmpty()) { + sourceProperties_ = other.sourceProperties_; + bitField0_ |= 0x00000002; + } else { + ensureSourcePropertiesIsMutable(); + sourceProperties_.addAll(other.sourceProperties_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getRollupPropertyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSourcePropertiesIsMutable(); + sourceProperties_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.Property rollupProperty_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + rollupPropertyBuilder_; + /** + * + * + *
+     * Required. The roll-up property to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rollupProperty field is set. + */ + public boolean hasRollupProperty() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The roll-up property to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rollupProperty. + */ + public com.google.analytics.admin.v1alpha.Property getRollupProperty() { + if (rollupPropertyBuilder_ == null) { + return rollupProperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : rollupProperty_; + } else { + return rollupPropertyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The roll-up property to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRollupProperty(com.google.analytics.admin.v1alpha.Property value) { + if (rollupPropertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rollupProperty_ = value; + } else { + rollupPropertyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The roll-up property to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRollupProperty( + com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { + if (rollupPropertyBuilder_ == null) { + rollupProperty_ = builderForValue.build(); + } else { + rollupPropertyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The roll-up property to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRollupProperty(com.google.analytics.admin.v1alpha.Property value) { + if (rollupPropertyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && rollupProperty_ != null + && rollupProperty_ + != com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) { + getRollupPropertyBuilder().mergeFrom(value); + } else { + rollupProperty_ = value; + } + } else { + rollupPropertyBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The roll-up property to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRollupProperty() { + bitField0_ = (bitField0_ & ~0x00000001); + rollupProperty_ = null; + if (rollupPropertyBuilder_ != null) { + rollupPropertyBuilder_.dispose(); + rollupPropertyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The roll-up property to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.Property.Builder getRollupPropertyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getRollupPropertyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The roll-up property to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getRollupPropertyOrBuilder() { + if (rollupPropertyBuilder_ != null) { + return rollupPropertyBuilder_.getMessageOrBuilder(); + } else { + return rollupProperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : rollupProperty_; + } + } + /** + * + * + *
+     * Required. The roll-up property to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + getRollupPropertyFieldBuilder() { + if (rollupPropertyBuilder_ == null) { + rollupPropertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder>( + getRollupProperty(), getParentForChildren(), isClean()); + rollupProperty_ = null; + } + return rollupPropertyBuilder_; + } + + private com.google.protobuf.LazyStringArrayList sourceProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSourcePropertiesIsMutable() { + if (!sourceProperties_.isModifiable()) { + sourceProperties_ = new com.google.protobuf.LazyStringArrayList(sourceProperties_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+     * Optional. The resource names of properties that will be sources to the
+     * created roll-up property.
+     * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the sourceProperties. + */ + public com.google.protobuf.ProtocolStringList getSourcePropertiesList() { + sourceProperties_.makeImmutable(); + return sourceProperties_; + } + /** + * + * + *
+     * Optional. The resource names of properties that will be sources to the
+     * created roll-up property.
+     * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of sourceProperties. + */ + public int getSourcePropertiesCount() { + return sourceProperties_.size(); + } + /** + * + * + *
+     * Optional. The resource names of properties that will be sources to the
+     * created roll-up property.
+     * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The sourceProperties at the given index. + */ + public java.lang.String getSourceProperties(int index) { + return sourceProperties_.get(index); + } + /** + * + * + *
+     * Optional. The resource names of properties that will be sources to the
+     * created roll-up property.
+     * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the sourceProperties at the given index. + */ + public com.google.protobuf.ByteString getSourcePropertiesBytes(int index) { + return sourceProperties_.getByteString(index); + } + /** + * + * + *
+     * Optional. The resource names of properties that will be sources to the
+     * created roll-up property.
+     * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The sourceProperties to set. + * @return This builder for chaining. + */ + public Builder setSourceProperties(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourcePropertiesIsMutable(); + sourceProperties_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The resource names of properties that will be sources to the
+     * created roll-up property.
+     * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sourceProperties to add. + * @return This builder for chaining. + */ + public Builder addSourceProperties(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourcePropertiesIsMutable(); + sourceProperties_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The resource names of properties that will be sources to the
+     * created roll-up property.
+     * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The sourceProperties to add. + * @return This builder for chaining. + */ + public Builder addAllSourceProperties(java.lang.Iterable values) { + ensureSourcePropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sourceProperties_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The resource names of properties that will be sources to the
+     * created roll-up property.
+     * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSourceProperties() { + sourceProperties_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The resource names of properties that will be sources to the
+     * created roll-up property.
+     * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the sourceProperties to add. + * @return This builder for chaining. + */ + public Builder addSourcePropertiesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSourcePropertiesIsMutable(); + sourceProperties_.add(value); + bitField0_ |= 0x00000002; + 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.CreateRollupPropertyRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateRollupPropertyRequest) + private static final com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRollupPropertyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyRequestOrBuilder.java new file mode 100644 index 000000000000..9b75e1ca1dfc --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyRequestOrBuilder.java @@ -0,0 +1,121 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 CreateRollupPropertyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateRollupPropertyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The roll-up property to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rollupProperty field is set. + */ + boolean hasRollupProperty(); + /** + * + * + *
+   * Required. The roll-up property to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rollupProperty. + */ + com.google.analytics.admin.v1alpha.Property getRollupProperty(); + /** + * + * + *
+   * Required. The roll-up property to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.PropertyOrBuilder getRollupPropertyOrBuilder(); + + /** + * + * + *
+   * Optional. The resource names of properties that will be sources to the
+   * created roll-up property.
+   * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the sourceProperties. + */ + java.util.List getSourcePropertiesList(); + /** + * + * + *
+   * Optional. The resource names of properties that will be sources to the
+   * created roll-up property.
+   * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of sourceProperties. + */ + int getSourcePropertiesCount(); + /** + * + * + *
+   * Optional. The resource names of properties that will be sources to the
+   * created roll-up property.
+   * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The sourceProperties at the given index. + */ + java.lang.String getSourceProperties(int index); + /** + * + * + *
+   * Optional. The resource names of properties that will be sources to the
+   * created roll-up property.
+   * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the sourceProperties at the given index. + */ + com.google.protobuf.ByteString getSourcePropertiesBytes(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyResponse.java new file mode 100644 index 000000000000..587f1c65411f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyResponse.java @@ -0,0 +1,1288 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 CreateRollupProperty RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateRollupPropertyResponse} + */ +public final class CreateRollupPropertyResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateRollupPropertyResponse) + CreateRollupPropertyResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateRollupPropertyResponse.newBuilder() to construct. + private CreateRollupPropertyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateRollupPropertyResponse() { + rollupPropertySourceLinks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateRollupPropertyResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.class, + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.Builder.class); + } + + public static final int ROLLUP_PROPERTY_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.Property rollupProperty_; + /** + * + * + *
+   * The created roll-up property.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + * + * @return Whether the rollupProperty field is set. + */ + @java.lang.Override + public boolean hasRollupProperty() { + return rollupProperty_ != null; + } + /** + * + * + *
+   * The created roll-up property.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + * + * @return The rollupProperty. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Property getRollupProperty() { + return rollupProperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : rollupProperty_; + } + /** + * + * + *
+   * The created roll-up property.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getRollupPropertyOrBuilder() { + return rollupProperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : rollupProperty_; + } + + public static final int ROLLUP_PROPERTY_SOURCE_LINKS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + rollupPropertySourceLinks_; + /** + * + * + *
+   * The created roll-up property source links.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + @java.lang.Override + public java.util.List + getRollupPropertySourceLinksList() { + return rollupPropertySourceLinks_; + } + /** + * + * + *
+   * The created roll-up property source links.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> + getRollupPropertySourceLinksOrBuilderList() { + return rollupPropertySourceLinks_; + } + /** + * + * + *
+   * The created roll-up property source links.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + @java.lang.Override + public int getRollupPropertySourceLinksCount() { + return rollupPropertySourceLinks_.size(); + } + /** + * + * + *
+   * The created roll-up property source links.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLinks( + int index) { + return rollupPropertySourceLinks_.get(index); + } + /** + * + * + *
+   * The created roll-up property source links.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder + getRollupPropertySourceLinksOrBuilder(int index) { + return rollupPropertySourceLinks_.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 (rollupProperty_ != null) { + output.writeMessage(1, getRollupProperty()); + } + for (int i = 0; i < rollupPropertySourceLinks_.size(); i++) { + output.writeMessage(2, rollupPropertySourceLinks_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rollupProperty_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRollupProperty()); + } + for (int i = 0; i < rollupPropertySourceLinks_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, rollupPropertySourceLinks_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse other = + (com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse) obj; + + if (hasRollupProperty() != other.hasRollupProperty()) return false; + if (hasRollupProperty()) { + if (!getRollupProperty().equals(other.getRollupProperty())) return false; + } + if (!getRollupPropertySourceLinksList().equals(other.getRollupPropertySourceLinksList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRollupProperty()) { + hash = (37 * hash) + ROLLUP_PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getRollupProperty().hashCode(); + } + if (getRollupPropertySourceLinksCount() > 0) { + hash = (37 * hash) + ROLLUP_PROPERTY_SOURCE_LINKS_FIELD_NUMBER; + hash = (53 * hash) + getRollupPropertySourceLinksList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom( + 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.CreateRollupPropertyResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom( + com.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.CreateRollupPropertyResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse 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.CreateRollupPropertyResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom( + java.io.InputStream 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.CreateRollupPropertyResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseDelimitedFrom( + java.io.InputStream 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.CreateRollupPropertyResponse 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.CreateRollupPropertyResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.CreateRollupPropertyResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 CreateRollupProperty RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateRollupPropertyResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateRollupPropertyResponse) + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.class, + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rollupProperty_ = null; + if (rollupPropertyBuilder_ != null) { + rollupPropertyBuilder_.dispose(); + rollupPropertyBuilder_ = null; + } + if (rollupPropertySourceLinksBuilder_ == null) { + rollupPropertySourceLinks_ = java.util.Collections.emptyList(); + } else { + rollupPropertySourceLinks_ = null; + rollupPropertySourceLinksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + 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_CreateRollupPropertyResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse build() { + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse buildPartial() { + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse result = + new com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse result) { + if (rollupPropertySourceLinksBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + rollupPropertySourceLinks_ = + java.util.Collections.unmodifiableList(rollupPropertySourceLinks_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.rollupPropertySourceLinks_ = rollupPropertySourceLinks_; + } else { + result.rollupPropertySourceLinks_ = rollupPropertySourceLinksBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rollupProperty_ = + rollupPropertyBuilder_ == null ? rollupProperty_ : rollupPropertyBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.CreateRollupPropertyResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse other) { + if (other + == com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.getDefaultInstance()) + return this; + if (other.hasRollupProperty()) { + mergeRollupProperty(other.getRollupProperty()); + } + if (rollupPropertySourceLinksBuilder_ == null) { + if (!other.rollupPropertySourceLinks_.isEmpty()) { + if (rollupPropertySourceLinks_.isEmpty()) { + rollupPropertySourceLinks_ = other.rollupPropertySourceLinks_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.addAll(other.rollupPropertySourceLinks_); + } + onChanged(); + } + } else { + if (!other.rollupPropertySourceLinks_.isEmpty()) { + if (rollupPropertySourceLinksBuilder_.isEmpty()) { + rollupPropertySourceLinksBuilder_.dispose(); + rollupPropertySourceLinksBuilder_ = null; + rollupPropertySourceLinks_ = other.rollupPropertySourceLinks_; + bitField0_ = (bitField0_ & ~0x00000002); + rollupPropertySourceLinksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRollupPropertySourceLinksFieldBuilder() + : null; + } else { + rollupPropertySourceLinksBuilder_.addAllMessages(other.rollupPropertySourceLinks_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getRollupPropertyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.analytics.admin.v1alpha.RollupPropertySourceLink m = + input.readMessage( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.parser(), + extensionRegistry); + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.add(m); + } else { + rollupPropertySourceLinksBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.Property rollupProperty_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + rollupPropertyBuilder_; + /** + * + * + *
+     * The created roll-up property.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + * + * @return Whether the rollupProperty field is set. + */ + public boolean hasRollupProperty() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The created roll-up property.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + * + * @return The rollupProperty. + */ + public com.google.analytics.admin.v1alpha.Property getRollupProperty() { + if (rollupPropertyBuilder_ == null) { + return rollupProperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : rollupProperty_; + } else { + return rollupPropertyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The created roll-up property.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + */ + public Builder setRollupProperty(com.google.analytics.admin.v1alpha.Property value) { + if (rollupPropertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rollupProperty_ = value; + } else { + rollupPropertyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The created roll-up property.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + */ + public Builder setRollupProperty( + com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { + if (rollupPropertyBuilder_ == null) { + rollupProperty_ = builderForValue.build(); + } else { + rollupPropertyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The created roll-up property.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + */ + public Builder mergeRollupProperty(com.google.analytics.admin.v1alpha.Property value) { + if (rollupPropertyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && rollupProperty_ != null + && rollupProperty_ + != com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) { + getRollupPropertyBuilder().mergeFrom(value); + } else { + rollupProperty_ = value; + } + } else { + rollupPropertyBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The created roll-up property.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + */ + public Builder clearRollupProperty() { + bitField0_ = (bitField0_ & ~0x00000001); + rollupProperty_ = null; + if (rollupPropertyBuilder_ != null) { + rollupPropertyBuilder_.dispose(); + rollupPropertyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The created roll-up property.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + */ + public com.google.analytics.admin.v1alpha.Property.Builder getRollupPropertyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getRollupPropertyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The created roll-up property.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + */ + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getRollupPropertyOrBuilder() { + if (rollupPropertyBuilder_ != null) { + return rollupPropertyBuilder_.getMessageOrBuilder(); + } else { + return rollupProperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : rollupProperty_; + } + } + /** + * + * + *
+     * The created roll-up property.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + getRollupPropertyFieldBuilder() { + if (rollupPropertyBuilder_ == null) { + rollupPropertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder>( + getRollupProperty(), getParentForChildren(), isClean()); + rollupProperty_ = null; + } + return rollupPropertyBuilder_; + } + + private java.util.List + rollupPropertySourceLinks_ = java.util.Collections.emptyList(); + + private void ensureRollupPropertySourceLinksIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + rollupPropertySourceLinks_ = + new java.util.ArrayList( + rollupPropertySourceLinks_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> + rollupPropertySourceLinksBuilder_; + + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public java.util.List + getRollupPropertySourceLinksList() { + if (rollupPropertySourceLinksBuilder_ == null) { + return java.util.Collections.unmodifiableList(rollupPropertySourceLinks_); + } else { + return rollupPropertySourceLinksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public int getRollupPropertySourceLinksCount() { + if (rollupPropertySourceLinksBuilder_ == null) { + return rollupPropertySourceLinks_.size(); + } else { + return rollupPropertySourceLinksBuilder_.getCount(); + } + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLinks( + int index) { + if (rollupPropertySourceLinksBuilder_ == null) { + return rollupPropertySourceLinks_.get(index); + } else { + return rollupPropertySourceLinksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public Builder setRollupPropertySourceLinks( + int index, com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { + if (rollupPropertySourceLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.set(index, value); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public Builder setRollupPropertySourceLinks( + int index, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder builderForValue) { + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.set(index, builderForValue.build()); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public Builder addRollupPropertySourceLinks( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { + if (rollupPropertySourceLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.add(value); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public Builder addRollupPropertySourceLinks( + int index, com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { + if (rollupPropertySourceLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.add(index, value); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public Builder addRollupPropertySourceLinks( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder builderForValue) { + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.add(builderForValue.build()); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public Builder addRollupPropertySourceLinks( + int index, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder builderForValue) { + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.add(index, builderForValue.build()); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public Builder addAllRollupPropertySourceLinks( + java.lang.Iterable + values) { + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rollupPropertySourceLinks_); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public Builder clearRollupPropertySourceLinks() { + if (rollupPropertySourceLinksBuilder_ == null) { + rollupPropertySourceLinks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public Builder removeRollupPropertySourceLinks(int index) { + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.remove(index); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder + getRollupPropertySourceLinksBuilder(int index) { + return getRollupPropertySourceLinksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder + getRollupPropertySourceLinksOrBuilder(int index) { + if (rollupPropertySourceLinksBuilder_ == null) { + return rollupPropertySourceLinks_.get(index); + } else { + return rollupPropertySourceLinksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> + getRollupPropertySourceLinksOrBuilderList() { + if (rollupPropertySourceLinksBuilder_ != null) { + return rollupPropertySourceLinksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rollupPropertySourceLinks_); + } + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder + addRollupPropertySourceLinksBuilder() { + return getRollupPropertySourceLinksFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance()); + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder + addRollupPropertySourceLinksBuilder(int index) { + return getRollupPropertySourceLinksFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance()); + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public java.util.List + getRollupPropertySourceLinksBuilderList() { + return getRollupPropertySourceLinksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> + getRollupPropertySourceLinksFieldBuilder() { + if (rollupPropertySourceLinksBuilder_ == null) { + rollupPropertySourceLinksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder>( + rollupPropertySourceLinks_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + rollupPropertySourceLinks_ = null; + } + return rollupPropertySourceLinksBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.CreateRollupPropertyResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateRollupPropertyResponse) + private static final com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse(); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRollupPropertyResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyResponseOrBuilder.java new file mode 100644 index 000000000000..4f1a51e8a5ce --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyResponseOrBuilder.java @@ -0,0 +1,125 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 CreateRollupPropertyResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateRollupPropertyResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The created roll-up property.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + * + * @return Whether the rollupProperty field is set. + */ + boolean hasRollupProperty(); + /** + * + * + *
+   * The created roll-up property.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + * + * @return The rollupProperty. + */ + com.google.analytics.admin.v1alpha.Property getRollupProperty(); + /** + * + * + *
+   * The created roll-up property.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + */ + com.google.analytics.admin.v1alpha.PropertyOrBuilder getRollupPropertyOrBuilder(); + + /** + * + * + *
+   * The created roll-up property source links.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + java.util.List + getRollupPropertySourceLinksList(); + /** + * + * + *
+   * The created roll-up property source links.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLinks( + int index); + /** + * + * + *
+   * The created roll-up property source links.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + int getRollupPropertySourceLinksCount(); + /** + * + * + *
+   * The created roll-up property source links.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + java.util.List + getRollupPropertySourceLinksOrBuilderList(); + /** + * + * + *
+   * The created roll-up property source links.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder + getRollupPropertySourceLinksOrBuilder(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertySourceLinkRequest.java similarity index 52% rename from java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequest.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertySourceLinkRequest.java index 2254e22dbc7a..fe838f34b369 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertySourceLinkRequest.java @@ -22,45 +22,46 @@ * * *
- * Request message for BatchGetUserLinks RPC.
+ * Request message for CreateRollupPropertySourceLink RPC.
  * 
* - * Protobuf type {@code google.analytics.admin.v1alpha.BatchGetUserLinksRequest} + * Protobuf type {@code google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest} */ -public final class BatchGetUserLinksRequest extends com.google.protobuf.GeneratedMessageV3 +public final class CreateRollupPropertySourceLinkRequest + extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchGetUserLinksRequest) - BatchGetUserLinksRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) + CreateRollupPropertySourceLinkRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use BatchGetUserLinksRequest.newBuilder() to construct. - private BatchGetUserLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use CreateRollupPropertySourceLinkRequest.newBuilder() to construct. + private CreateRollupPropertySourceLinkRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchGetUserLinksRequest() { + private CreateRollupPropertySourceLinkRequest() { parent_ = ""; - names_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new BatchGetUserLinksRequest(); + return new CreateRollupPropertySourceLinkRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksRequest_fieldAccessorTable + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest.class, - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest.Builder.class); + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest.class, + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; @@ -71,10 +72,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The account or property that all user links in the request are
-   * for. The parent of all provided values for the 'names' field must match
-   * this field.
-   * Example format: accounts/1234
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
    * 
* * @@ -99,10 +98,8 @@ public java.lang.String getParent() { * * *
-   * Required. The account or property that all user links in the request are
-   * for. The parent of all provided values for the 'names' field must match
-   * this field.
-   * Example format: accounts/1234
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
    * 
* * @@ -124,84 +121,61 @@ public com.google.protobuf.ByteString getParentBytes() { } } - public static final int NAMES_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList names_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * Required. The names of the user links to retrieve.
-   * A maximum of 1000 user links can be retrieved in a batch.
-   * Format: accounts/{accountId}/userLinks/{userLinkId}
-   * 
- * - * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return A list containing the names. - */ - public com.google.protobuf.ProtocolStringList getNamesList() { - return names_; - } + public static final int ROLLUP_PROPERTY_SOURCE_LINK_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.RollupPropertySourceLink rollupPropertySourceLink_; /** * * *
-   * Required. The names of the user links to retrieve.
-   * A maximum of 1000 user links can be retrieved in a batch.
-   * Format: accounts/{accountId}/userLinks/{userLinkId}
+   * Required. The roll-up property source link to create.
    * 
* * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; * * - * @return The count of names. + * @return Whether the rollupPropertySourceLink field is set. */ - public int getNamesCount() { - return names_.size(); + @java.lang.Override + public boolean hasRollupPropertySourceLink() { + return rollupPropertySourceLink_ != null; } /** * * *
-   * Required. The names of the user links to retrieve.
-   * A maximum of 1000 user links can be retrieved in a batch.
-   * Format: accounts/{accountId}/userLinks/{userLinkId}
+   * Required. The roll-up property source link to create.
    * 
* * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; * * - * @param index The index of the element to return. - * @return The names at the given index. + * @return The rollupPropertySourceLink. */ - public java.lang.String getNames(int index) { - return names_.get(index); + @java.lang.Override + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLink() { + return rollupPropertySourceLink_ == null + ? com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance() + : rollupPropertySourceLink_; } /** * * *
-   * Required. The names of the user links to retrieve.
-   * A maximum of 1000 user links can be retrieved in a batch.
-   * Format: accounts/{accountId}/userLinks/{userLinkId}
+   * Required. The roll-up property source link to create.
    * 
* * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; * - * - * @param index The index of the value to return. - * @return The bytes of the names at the given index. */ - public com.google.protobuf.ByteString getNamesBytes(int index) { - return names_.getByteString(index); + @java.lang.Override + public com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder + getRollupPropertySourceLinkOrBuilder() { + return rollupPropertySourceLink_ == null + ? com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance() + : rollupPropertySourceLink_; } private byte memoizedIsInitialized = -1; @@ -221,8 +195,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - for (int i = 0; i < names_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, names_.getRaw(i)); + if (rollupPropertySourceLink_ != null) { + output.writeMessage(2, getRollupPropertySourceLink()); } getUnknownFields().writeTo(output); } @@ -236,13 +210,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - { - int dataSize = 0; - for (int i = 0; i < names_.size(); i++) { - dataSize += computeStringSizeNoTag(names_.getRaw(i)); - } - size += dataSize; - size += 1 * getNamesList().size(); + if (rollupPropertySourceLink_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getRollupPropertySourceLink()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -254,14 +225,18 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest)) { + if (!(obj + instanceof com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest)) { return super.equals(obj); } - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest other = - (com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest) obj; + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest other = + (com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) obj; if (!getParent().equals(other.getParent())) return false; - if (!getNamesList().equals(other.getNamesList())) return false; + if (hasRollupPropertySourceLink() != other.hasRollupPropertySourceLink()) return false; + if (hasRollupPropertySourceLink()) { + if (!getRollupPropertySourceLink().equals(other.getRollupPropertySourceLink())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -275,80 +250,81 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); - if (getNamesCount() > 0) { - hash = (37 * hash) + NAMES_FIELD_NUMBER; - hash = (53 * hash) + getNamesList().hashCode(); + if (hasRollupPropertySourceLink()) { + hash = (37 * hash) + ROLLUP_PROPERTY_SOURCE_LINK_FIELD_NUMBER; + hash = (53 * hash) + getRollupPropertySourceLink().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( 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.BatchGetUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( com.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.BatchGetUserLinksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest 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.BatchGetUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( java.io.InputStream 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.BatchGetUserLinksRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest + parseDelimitedFrom( + java.io.InputStream 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.BatchGetUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest 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.BatchGetUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -366,7 +342,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest prototype) { + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -384,31 +360,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for BatchGetUserLinks RPC.
+   * Request message for CreateRollupPropertySourceLink RPC.
    * 
* - * Protobuf type {@code google.analytics.admin.v1alpha.BatchGetUserLinksRequest} + * Protobuf type {@code google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchGetUserLinksRequest) - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_BatchGetUserLinksRequest_fieldAccessorTable + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest.class, - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest.Builder.class); + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest.class, + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest.Builder + .class); } - // Construct using com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest.newBuilder() + // Construct using + // com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -420,24 +398,31 @@ public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; - names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + rollupPropertySourceLink_ = null; + if (rollupPropertySourceLinkBuilder_ != null) { + rollupPropertySourceLinkBuilder_.dispose(); + rollupPropertySourceLinkBuilder_ = 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_BatchGetUserLinksRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_descriptor; } @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest.getDefaultInstance(); + public com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest build() { - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest result = buildPartial(); + public com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest build() { + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -445,9 +430,9 @@ public com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest build() { } @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest buildPartial() { - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest result = - new com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest(this); + public com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest result = + new com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -455,14 +440,17 @@ public com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest buildPartial( return result; } - private void buildPartial0(com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest result) { + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - names_.makeImmutable(); - result.names_ = names_; + result.rollupPropertySourceLink_ = + rollupPropertySourceLinkBuilder_ == null + ? rollupPropertySourceLink_ + : rollupPropertySourceLinkBuilder_.build(); } } @@ -501,31 +489,28 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest) other); + if (other + instanceof com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest other) { - if (other == com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest.getDefaultInstance()) - return this; + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.names_.isEmpty()) { - if (names_.isEmpty()) { - names_ = other.names_; - bitField0_ |= 0x00000002; - } else { - ensureNamesIsMutable(); - names_.addAll(other.names_); - } - onChanged(); + if (other.hasRollupPropertySourceLink()) { + mergeRollupPropertySourceLink(other.getRollupPropertySourceLink()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -561,9 +546,9 @@ public Builder mergeFrom( } // case 10 case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureNamesIsMutable(); - names_.add(s); + input.readMessage( + getRollupPropertySourceLinkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -590,10 +575,8 @@ public Builder mergeFrom( * * *
-     * Required. The account or property that all user links in the request are
-     * for. The parent of all provided values for the 'names' field must match
-     * this field.
-     * Example format: accounts/1234
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
      * 
* * @@ -617,10 +600,8 @@ public java.lang.String getParent() { * * *
-     * Required. The account or property that all user links in the request are
-     * for. The parent of all provided values for the 'names' field must match
-     * this field.
-     * Example format: accounts/1234
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
      * 
* * @@ -644,10 +625,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The account or property that all user links in the request are
-     * for. The parent of all provided values for the 'names' field must match
-     * this field.
-     * Example format: accounts/1234
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
      * 
* * @@ -670,10 +649,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The account or property that all user links in the request are
-     * for. The parent of all provided values for the 'names' field must match
-     * this field.
-     * Example format: accounts/1234
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
      * 
* * @@ -692,10 +669,8 @@ public Builder clearParent() { * * *
-     * Required. The account or property that all user links in the request are
-     * for. The parent of all provided values for the 'names' field must match
-     * this field.
-     * Example format: accounts/1234
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
      * 
* * @@ -716,113 +691,124 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringArrayList names_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureNamesIsMutable() { - if (!names_.isModifiable()) { - names_ = new com.google.protobuf.LazyStringArrayList(names_); - } - bitField0_ |= 0x00000002; - } + private com.google.analytics.admin.v1alpha.RollupPropertySourceLink rollupPropertySourceLink_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> + rollupPropertySourceLinkBuilder_; /** * * *
-     * Required. The names of the user links to retrieve.
-     * A maximum of 1000 user links can be retrieved in a batch.
-     * Format: accounts/{accountId}/userLinks/{userLinkId}
+     * Required. The roll-up property source link to create.
      * 
* * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; * * - * @return A list containing the names. + * @return Whether the rollupPropertySourceLink field is set. */ - public com.google.protobuf.ProtocolStringList getNamesList() { - names_.makeImmutable(); - return names_; + public boolean hasRollupPropertySourceLink() { + return ((bitField0_ & 0x00000002) != 0); } /** * * *
-     * Required. The names of the user links to retrieve.
-     * A maximum of 1000 user links can be retrieved in a batch.
-     * Format: accounts/{accountId}/userLinks/{userLinkId}
+     * Required. The roll-up property source link to create.
      * 
* * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; * * - * @return The count of names. + * @return The rollupPropertySourceLink. */ - public int getNamesCount() { - return names_.size(); + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink + getRollupPropertySourceLink() { + if (rollupPropertySourceLinkBuilder_ == null) { + return rollupPropertySourceLink_ == null + ? com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance() + : rollupPropertySourceLink_; + } else { + return rollupPropertySourceLinkBuilder_.getMessage(); + } } /** * * *
-     * Required. The names of the user links to retrieve.
-     * A maximum of 1000 user links can be retrieved in a batch.
-     * Format: accounts/{accountId}/userLinks/{userLinkId}
+     * Required. The roll-up property source link to create.
      * 
* * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; * - * - * @param index The index of the element to return. - * @return The names at the given index. */ - public java.lang.String getNames(int index) { - return names_.get(index); + public Builder setRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { + if (rollupPropertySourceLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rollupPropertySourceLink_ = value; + } else { + rollupPropertySourceLinkBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; } /** * * *
-     * Required. The names of the user links to retrieve.
-     * A maximum of 1000 user links can be retrieved in a batch.
-     * Format: accounts/{accountId}/userLinks/{userLinkId}
+     * Required. The roll-up property source link to create.
      * 
* * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; * - * - * @param index The index of the value to return. - * @return The bytes of the names at the given index. */ - public com.google.protobuf.ByteString getNamesBytes(int index) { - return names_.getByteString(index); + public Builder setRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder builderForValue) { + if (rollupPropertySourceLinkBuilder_ == null) { + rollupPropertySourceLink_ = builderForValue.build(); + } else { + rollupPropertySourceLinkBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; } /** * * *
-     * Required. The names of the user links to retrieve.
-     * A maximum of 1000 user links can be retrieved in a batch.
-     * Format: accounts/{accountId}/userLinks/{userLinkId}
+     * Required. The roll-up property source link to create.
      * 
* * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; * - * - * @param index The index to set the value at. - * @param value The names to set. - * @return This builder for chaining. */ - public Builder setNames(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { + if (rollupPropertySourceLinkBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && rollupPropertySourceLink_ != null + && rollupPropertySourceLink_ + != com.google.analytics.admin.v1alpha.RollupPropertySourceLink + .getDefaultInstance()) { + getRollupPropertySourceLinkBuilder().mergeFrom(value); + } else { + rollupPropertySourceLink_ = value; + } + } else { + rollupPropertySourceLinkBuilder_.mergeFrom(value); } - ensureNamesIsMutable(); - names_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; @@ -831,25 +817,20 @@ public Builder setNames(int index, java.lang.String value) { * * *
-     * Required. The names of the user links to retrieve.
-     * A maximum of 1000 user links can be retrieved in a batch.
-     * Format: accounts/{accountId}/userLinks/{userLinkId}
+     * Required. The roll-up property source link to create.
      * 
* * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; * - * - * @param value The names to add. - * @return This builder for chaining. */ - public Builder addNames(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearRollupPropertySourceLink() { + bitField0_ = (bitField0_ & ~0x00000002); + rollupPropertySourceLink_ = null; + if (rollupPropertySourceLinkBuilder_ != null) { + rollupPropertySourceLinkBuilder_.dispose(); + rollupPropertySourceLinkBuilder_ = null; } - ensureNamesIsMutable(); - names_.add(value); - bitField0_ |= 0x00000002; onChanged(); return this; } @@ -857,73 +838,66 @@ public Builder addNames(java.lang.String value) { * * *
-     * Required. The names of the user links to retrieve.
-     * A maximum of 1000 user links can be retrieved in a batch.
-     * Format: accounts/{accountId}/userLinks/{userLinkId}
+     * Required. The roll-up property source link to create.
      * 
* * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; * - * - * @param values The names to add. - * @return This builder for chaining. */ - public Builder addAllNames(java.lang.Iterable values) { - ensureNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder + getRollupPropertySourceLinkBuilder() { bitField0_ |= 0x00000002; onChanged(); - return this; + return getRollupPropertySourceLinkFieldBuilder().getBuilder(); } /** * * *
-     * Required. The names of the user links to retrieve.
-     * A maximum of 1000 user links can be retrieved in a batch.
-     * Format: accounts/{accountId}/userLinks/{userLinkId}
+     * Required. The roll-up property source link to create.
      * 
* * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; * - * - * @return This builder for chaining. */ - public Builder clearNames() { - names_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; - onChanged(); - return this; + public com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder + getRollupPropertySourceLinkOrBuilder() { + if (rollupPropertySourceLinkBuilder_ != null) { + return rollupPropertySourceLinkBuilder_.getMessageOrBuilder(); + } else { + return rollupPropertySourceLink_ == null + ? com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance() + : rollupPropertySourceLink_; + } } /** * * *
-     * Required. The names of the user links to retrieve.
-     * A maximum of 1000 user links can be retrieved in a batch.
-     * Format: accounts/{accountId}/userLinks/{userLinkId}
+     * Required. The roll-up property source link to create.
      * 
* * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; * - * - * @param value The bytes of the names to add. - * @return This builder for chaining. */ - public Builder addNamesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> + getRollupPropertySourceLinkFieldBuilder() { + if (rollupPropertySourceLinkBuilder_ == null) { + rollupPropertySourceLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder>( + getRollupPropertySourceLink(), getParentForChildren(), isClean()); + rollupPropertySourceLink_ = null; } - checkByteStringIsUtf8(value); - ensureNamesIsMutable(); - names_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; + return rollupPropertySourceLinkBuilder_; } @java.lang.Override @@ -937,24 +911,27 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BatchGetUserLinksRequest) + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) } - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchGetUserLinksRequest) - private static final com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) + private static final com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest + DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest(); + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest(); } - public static com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest getDefaultInstance() { + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public BatchGetUserLinksRequest parsePartialFrom( + public CreateRollupPropertySourceLinkRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -973,17 +950,18 @@ public BatchGetUserLinksRequest parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest getDefaultInstanceForType() { + public com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertySourceLinkRequestOrBuilder.java similarity index 57% rename from java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequestOrBuilder.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertySourceLinkRequestOrBuilder.java index 793167f465fd..cb5b773e2ea9 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertySourceLinkRequestOrBuilder.java @@ -18,16 +18,17 @@ package com.google.analytics.admin.v1alpha; -public interface CreateUserLinkRequestOrBuilder +public interface CreateRollupPropertySourceLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateUserLinkRequest) + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) com.google.protobuf.MessageOrBuilder { /** * * *
-   * Required. Example format: accounts/1234
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
    * 
* * @@ -41,7 +42,8 @@ public interface CreateUserLinkRequestOrBuilder * * *
-   * Required. Example format: accounts/1234
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
    * 
* * @@ -56,54 +58,41 @@ public interface CreateUserLinkRequestOrBuilder * * *
-   * Optional. If set, then email the new user notifying them that they've been
-   * granted permissions to the resource.
-   * 
- * - * bool notify_new_user = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The notifyNewUser. - */ - boolean getNotifyNewUser(); - - /** - * - * - *
-   * Required. The user link to create.
+   * Required. The roll-up property source link to create.
    * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; * * - * @return Whether the userLink field is set. + * @return Whether the rollupPropertySourceLink field is set. */ - boolean hasUserLink(); + boolean hasRollupPropertySourceLink(); /** * * *
-   * Required. The user link to create.
+   * Required. The roll-up property source link to create.
    * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; * * - * @return The userLink. + * @return The rollupPropertySourceLink. */ - com.google.analytics.admin.v1alpha.UserLink getUserLink(); + com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLink(); /** * * *
-   * Required. The user link to create.
+   * Required. The roll-up property source link to create.
    * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; * */ - com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinkOrBuilder(); + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder + getRollupPropertySourceLinkOrBuilder(); } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyEventFilterRequest.java similarity index 55% rename from java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequest.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyEventFilterRequest.java index ca05a43fa08e..74f79c656287 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyEventFilterRequest.java @@ -22,51 +22,46 @@ * * *
- * Request message for CreateUserLink RPC.
- *
- * Users can have multiple email addresses associated with their Google
- * account, and one of these email addresses is the "primary" email address.
- * Any of the email addresses associated with a Google account may be used
- * for a new UserLink, but the returned UserLink will always contain the
- * "primary" email address. As a result, the input and output email address
- * for this request may differ.
+ * Request message for CreateSubpropertyEventFilter RPC.
  * 
* - * Protobuf type {@code google.analytics.admin.v1alpha.CreateUserLinkRequest} + * Protobuf type {@code google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest} */ -public final class CreateUserLinkRequest extends com.google.protobuf.GeneratedMessageV3 +public final class CreateSubpropertyEventFilterRequest + extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateUserLinkRequest) - CreateUserLinkRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) + CreateSubpropertyEventFilterRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use CreateUserLinkRequest.newBuilder() to construct. - private CreateUserLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use CreateSubpropertyEventFilterRequest.newBuilder() to construct. + private CreateSubpropertyEventFilterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateUserLinkRequest() { + private CreateSubpropertyEventFilterRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateUserLinkRequest(); + return new CreateSubpropertyEventFilterRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateUserLinkRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateUserLinkRequest_fieldAccessorTable + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.class, - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder.class); + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest.class, + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; @@ -77,7 +72,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Example format: accounts/1234
+   * Required. The ordinary property for which to create a subproperty event
+   * filter. Format: properties/property_id Example: properties/123
    * 
* * @@ -102,7 +98,8 @@ public java.lang.String getParent() { * * *
-   * Required. Example format: accounts/1234
+   * Required. The ordinary property for which to create a subproperty event
+   * filter. Format: properties/property_id Example: properties/123
    * 
* * @@ -124,79 +121,61 @@ public com.google.protobuf.ByteString getParentBytes() { } } - public static final int NOTIFY_NEW_USER_FIELD_NUMBER = 2; - private boolean notifyNewUser_ = false; + public static final int SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; /** * * *
-   * Optional. If set, then email the new user notifying them that they've been
-   * granted permissions to the resource.
-   * 
- * - * bool notify_new_user = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The notifyNewUser. - */ - @java.lang.Override - public boolean getNotifyNewUser() { - return notifyNewUser_; - } - - public static final int USER_LINK_FIELD_NUMBER = 3; - private com.google.analytics.admin.v1alpha.UserLink userLink_; - /** - * - * - *
-   * Required. The user link to create.
+   * Required. The subproperty event filter to create.
    * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; * * - * @return Whether the userLink field is set. + * @return Whether the subpropertyEventFilter field is set. */ @java.lang.Override - public boolean hasUserLink() { - return userLink_ != null; + public boolean hasSubpropertyEventFilter() { + return subpropertyEventFilter_ != null; } /** * * *
-   * Required. The user link to create.
+   * Required. The subproperty event filter to create.
    * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; * * - * @return The userLink. + * @return The subpropertyEventFilter. */ @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLink getUserLink() { - return userLink_ == null - ? com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance() - : userLink_; + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; } /** * * *
-   * Required. The user link to create.
+   * Required. The subproperty event filter to create.
    * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinkOrBuilder() { - return userLink_ == null - ? com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance() - : userLink_; + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder() { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; } private byte memoizedIsInitialized = -1; @@ -216,11 +195,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (notifyNewUser_ != false) { - output.writeBool(2, notifyNewUser_); - } - if (userLink_ != null) { - output.writeMessage(3, getUserLink()); + if (subpropertyEventFilter_ != null) { + output.writeMessage(2, getSubpropertyEventFilter()); } getUnknownFields().writeTo(output); } @@ -234,11 +210,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (notifyNewUser_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, notifyNewUser_); - } - if (userLink_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUserLink()); + if (subpropertyEventFilter_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubpropertyEventFilter()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -250,17 +224,16 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.analytics.admin.v1alpha.CreateUserLinkRequest)) { + if (!(obj instanceof com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest)) { return super.equals(obj); } - com.google.analytics.admin.v1alpha.CreateUserLinkRequest other = - (com.google.analytics.admin.v1alpha.CreateUserLinkRequest) obj; + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest other = + (com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) obj; if (!getParent().equals(other.getParent())) return false; - if (getNotifyNewUser() != other.getNotifyNewUser()) return false; - if (hasUserLink() != other.hasUserLink()) return false; - if (hasUserLink()) { - if (!getUserLink().equals(other.getUserLink())) return false; + if (hasSubpropertyEventFilter() != other.hasSubpropertyEventFilter()) return false; + if (hasSubpropertyEventFilter()) { + if (!getSubpropertyEventFilter().equals(other.getSubpropertyEventFilter())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -275,82 +248,81 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + NOTIFY_NEW_USER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNotifyNewUser()); - if (hasUserLink()) { - hash = (37 * hash) + USER_LINK_FIELD_NUMBER; - hash = (53 * hash) + getUserLink().hashCode(); + if (hasSubpropertyEventFilter()) { + hash = (37 * hash) + SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSubpropertyEventFilter().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.analytics.admin.v1alpha.CreateUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.CreateUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( 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.CreateUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.CreateUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( com.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.CreateUserLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.CreateUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest 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.CreateUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.analytics.admin.v1alpha.CreateUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( java.io.InputStream 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.CreateUserLinkRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.analytics.admin.v1alpha.CreateUserLinkRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest + parseDelimitedFrom( + java.io.InputStream 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.CreateUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest 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.CreateUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -368,7 +340,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest prototype) { + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -386,38 +358,32 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for CreateUserLink RPC.
-   *
-   * Users can have multiple email addresses associated with their Google
-   * account, and one of these email addresses is the "primary" email address.
-   * Any of the email addresses associated with a Google account may be used
-   * for a new UserLink, but the returned UserLink will always contain the
-   * "primary" email address. As a result, the input and output email address
-   * for this request may differ.
+   * Request message for CreateSubpropertyEventFilter RPC.
    * 
* - * Protobuf type {@code google.analytics.admin.v1alpha.CreateUserLinkRequest} + * Protobuf type {@code google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateUserLinkRequest) - com.google.analytics.admin.v1alpha.CreateUserLinkRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateUserLinkRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateUserLinkRequest_fieldAccessorTable + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.class, - com.google.analytics.admin.v1alpha.CreateUserLinkRequest.Builder.class); + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest.class, + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest.Builder.class); } - // Construct using com.google.analytics.admin.v1alpha.CreateUserLinkRequest.newBuilder() + // Construct using + // com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -429,11 +395,10 @@ public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; - notifyNewUser_ = false; - userLink_ = null; - if (userLinkBuilder_ != null) { - userLinkBuilder_.dispose(); - userLinkBuilder_ = null; + subpropertyEventFilter_ = null; + if (subpropertyEventFilterBuilder_ != null) { + subpropertyEventFilterBuilder_.dispose(); + subpropertyEventFilterBuilder_ = null; } return this; } @@ -441,17 +406,20 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateUserLinkRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_descriptor; } @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateUserLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateUserLinkRequest.getDefaultInstance(); + public com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateUserLinkRequest build() { - com.google.analytics.admin.v1alpha.CreateUserLinkRequest result = buildPartial(); + public com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest build() { + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -459,9 +427,9 @@ public com.google.analytics.admin.v1alpha.CreateUserLinkRequest build() { } @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateUserLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateUserLinkRequest result = - new com.google.analytics.admin.v1alpha.CreateUserLinkRequest(this); + public com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest result = + new com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -469,16 +437,17 @@ public com.google.analytics.admin.v1alpha.CreateUserLinkRequest buildPartial() { return result; } - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateUserLinkRequest result) { + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.notifyNewUser_ = notifyNewUser_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.userLink_ = userLinkBuilder_ == null ? userLink_ : userLinkBuilder_.build(); + result.subpropertyEventFilter_ = + subpropertyEventFilterBuilder_ == null + ? subpropertyEventFilter_ + : subpropertyEventFilterBuilder_.build(); } } @@ -517,27 +486,27 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateUserLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateUserLinkRequest) other); + if (other instanceof com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateUserLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateUserLinkRequest.getDefaultInstance()) - return this; + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; onChanged(); } - if (other.getNotifyNewUser() != false) { - setNotifyNewUser(other.getNotifyNewUser()); - } - if (other.hasUserLink()) { - mergeUserLink(other.getUserLink()); + if (other.hasSubpropertyEventFilter()) { + mergeSubpropertyEventFilter(other.getSubpropertyEventFilter()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -571,18 +540,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 - case 16: + case 18: { - notifyNewUser_ = input.readBool(); + input.readMessage( + getSubpropertyEventFilterFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; - } // case 16 - case 26: - { - input.readMessage(getUserLinkFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -607,7 +571,8 @@ public Builder mergeFrom( * * *
-     * Required. Example format: accounts/1234
+     * Required. The ordinary property for which to create a subproperty event
+     * filter. Format: properties/property_id Example: properties/123
      * 
* * @@ -631,7 +596,8 @@ public java.lang.String getParent() { * * *
-     * Required. Example format: accounts/1234
+     * Required. The ordinary property for which to create a subproperty event
+     * filter. Format: properties/property_id Example: properties/123
      * 
* * @@ -655,7 +621,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. Example format: accounts/1234
+     * Required. The ordinary property for which to create a subproperty event
+     * filter. Format: properties/property_id Example: properties/123
      * 
* * @@ -678,7 +645,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. Example format: accounts/1234
+     * Required. The ordinary property for which to create a subproperty event
+     * filter. Format: properties/property_id Example: properties/123
      * 
* * @@ -697,7 +665,8 @@ public Builder clearParent() { * * *
-     * Required. Example format: accounts/1234
+     * Required. The ordinary property for which to create a subproperty event
+     * filter. Format: properties/property_id Example: properties/123
      * 
* * @@ -718,127 +687,72 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private boolean notifyNewUser_; - /** - * - * - *
-     * Optional. If set, then email the new user notifying them that they've been
-     * granted permissions to the resource.
-     * 
- * - * bool notify_new_user = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The notifyNewUser. - */ - @java.lang.Override - public boolean getNotifyNewUser() { - return notifyNewUser_; - } - /** - * - * - *
-     * Optional. If set, then email the new user notifying them that they've been
-     * granted permissions to the resource.
-     * 
- * - * bool notify_new_user = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The notifyNewUser to set. - * @return This builder for chaining. - */ - public Builder setNotifyNewUser(boolean value) { - - notifyNewUser_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. If set, then email the new user notifying them that they've been
-     * granted permissions to the resource.
-     * 
- * - * bool notify_new_user = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearNotifyNewUser() { - bitField0_ = (bitField0_ & ~0x00000002); - notifyNewUser_ = false; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.UserLink userLink_; + private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - userLinkBuilder_; + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + subpropertyEventFilterBuilder_; /** * * *
-     * Required. The user link to create.
+     * Required. The subproperty event filter to create.
      * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; * * - * @return Whether the userLink field is set. + * @return Whether the subpropertyEventFilter field is set. */ - public boolean hasUserLink() { - return ((bitField0_ & 0x00000004) != 0); + public boolean hasSubpropertyEventFilter() { + return ((bitField0_ & 0x00000002) != 0); } /** * * *
-     * Required. The user link to create.
+     * Required. The subproperty event filter to create.
      * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; * * - * @return The userLink. + * @return The subpropertyEventFilter. */ - public com.google.analytics.admin.v1alpha.UserLink getUserLink() { - if (userLinkBuilder_ == null) { - return userLink_ == null - ? com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance() - : userLink_; + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { + if (subpropertyEventFilterBuilder_ == null) { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; } else { - return userLinkBuilder_.getMessage(); + return subpropertyEventFilterBuilder_.getMessage(); } } /** * * *
-     * Required. The user link to create.
+     * Required. The subproperty event filter to create.
      * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; * */ - public Builder setUserLink(com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinkBuilder_ == null) { + public Builder setSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { + if (subpropertyEventFilterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - userLink_ = value; + subpropertyEventFilter_ = value; } else { - userLinkBuilder_.setMessage(value); + subpropertyEventFilterBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -846,21 +760,21 @@ public Builder setUserLink(com.google.analytics.admin.v1alpha.UserLink value) { * * *
-     * Required. The user link to create.
+     * Required. The subproperty event filter to create.
      * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; * */ - public Builder setUserLink( - com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinkBuilder_ == null) { - userLink_ = builderForValue.build(); + public Builder setSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder builderForValue) { + if (subpropertyEventFilterBuilder_ == null) { + subpropertyEventFilter_ = builderForValue.build(); } else { - userLinkBuilder_.setMessage(builderForValue.build()); + subpropertyEventFilterBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -868,26 +782,28 @@ public Builder setUserLink( * * *
-     * Required. The user link to create.
+     * Required. The subproperty event filter to create.
      * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; * */ - public Builder mergeUserLink(com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinkBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && userLink_ != null - && userLink_ != com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance()) { - getUserLinkBuilder().mergeFrom(value); + public Builder mergeSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { + if (subpropertyEventFilterBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && subpropertyEventFilter_ != null + && subpropertyEventFilter_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance()) { + getSubpropertyEventFilterBuilder().mergeFrom(value); } else { - userLink_ = value; + subpropertyEventFilter_ = value; } } else { - userLinkBuilder_.mergeFrom(value); + subpropertyEventFilterBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -895,19 +811,19 @@ public Builder mergeUserLink(com.google.analytics.admin.v1alpha.UserLink value) * * *
-     * Required. The user link to create.
+     * Required. The subproperty event filter to create.
      * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; * */ - public Builder clearUserLink() { - bitField0_ = (bitField0_ & ~0x00000004); - userLink_ = null; - if (userLinkBuilder_ != null) { - userLinkBuilder_.dispose(); - userLinkBuilder_ = null; + public Builder clearSubpropertyEventFilter() { + bitField0_ = (bitField0_ & ~0x00000002); + subpropertyEventFilter_ = null; + if (subpropertyEventFilterBuilder_ != null) { + subpropertyEventFilterBuilder_.dispose(); + subpropertyEventFilterBuilder_ = null; } onChanged(); return this; @@ -916,64 +832,66 @@ public Builder clearUserLink() { * * *
-     * Required. The user link to create.
+     * Required. The subproperty event filter to create.
      * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; * */ - public com.google.analytics.admin.v1alpha.UserLink.Builder getUserLinkBuilder() { - bitField0_ |= 0x00000004; + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder + getSubpropertyEventFilterBuilder() { + bitField0_ |= 0x00000002; onChanged(); - return getUserLinkFieldBuilder().getBuilder(); + return getSubpropertyEventFilterFieldBuilder().getBuilder(); } /** * * *
-     * Required. The user link to create.
+     * Required. The subproperty event filter to create.
      * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; * */ - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinkOrBuilder() { - if (userLinkBuilder_ != null) { - return userLinkBuilder_.getMessageOrBuilder(); + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder() { + if (subpropertyEventFilterBuilder_ != null) { + return subpropertyEventFilterBuilder_.getMessageOrBuilder(); } else { - return userLink_ == null - ? com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance() - : userLink_; + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; } } /** * * *
-     * Required. The user link to create.
+     * Required. The subproperty event filter to create.
      * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - getUserLinkFieldBuilder() { - if (userLinkBuilder_ == null) { - userLinkBuilder_ = + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + getSubpropertyEventFilterFieldBuilder() { + if (subpropertyEventFilterBuilder_ == null) { + subpropertyEventFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder>( - getUserLink(), getParentForChildren(), isClean()); - userLink_ = null; + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder>( + getSubpropertyEventFilter(), getParentForChildren(), isClean()); + subpropertyEventFilter_ = null; } - return userLinkBuilder_; + return subpropertyEventFilterBuilder_; } @java.lang.Override @@ -987,24 +905,26 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateUserLinkRequest) + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) } - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateUserLinkRequest) - private static final com.google.analytics.admin.v1alpha.CreateUserLinkRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) + private static final com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest + DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateUserLinkRequest(); + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest(); } - public static com.google.analytics.admin.v1alpha.CreateUserLinkRequest getDefaultInstance() { + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public CreateUserLinkRequest parsePartialFrom( + public CreateSubpropertyEventFilterRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1023,17 +943,18 @@ public CreateUserLinkRequest parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateUserLinkRequest getDefaultInstanceForType() { + public com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyEventFilterRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyEventFilterRequestOrBuilder.java new file mode 100644 index 000000000000..f45fc7fba43c --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyEventFilterRequestOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 CreateSubpropertyEventFilterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The ordinary property for which to create a subproperty event
+   * filter. Format: properties/property_id Example: properties/123
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The ordinary property for which to create a subproperty event
+   * filter. Format: properties/property_id 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(); + + /** + * + * + *
+   * Required. The subproperty event filter to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the subpropertyEventFilter field is set. + */ + boolean hasSubpropertyEventFilter(); + /** + * + * + *
+   * Required. The subproperty event filter to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subpropertyEventFilter. + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter(); + /** + * + * + *
+   * Required. The subproperty event filter to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyRequest.java new file mode 100644 index 000000000000..702859f450f2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyRequest.java @@ -0,0 +1,1243 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 CreateSubproperty RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateSubpropertyRequest} + */ +public final class CreateSubpropertyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateSubpropertyRequest) + CreateSubpropertyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateSubpropertyRequest.newBuilder() to construct. + private CreateSubpropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateSubpropertyRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateSubpropertyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.class, + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The ordinary property for which to create a subproperty.
+   * Format: properties/property_id
+   * 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 ordinary property for which to create a subproperty.
+   * Format: properties/property_id
+   * 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 SUBPROPERTY_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.Property subproperty_; + /** + * + * + *
+   * Required. The subproperty to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the subproperty field is set. + */ + @java.lang.Override + public boolean hasSubproperty() { + return subproperty_ != null; + } + /** + * + * + *
+   * Required. The subproperty to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subproperty. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Property getSubproperty() { + return subproperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : subproperty_; + } + /** + * + * + *
+   * Required. The subproperty to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getSubpropertyOrBuilder() { + return subproperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : subproperty_; + } + + public static final int SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER = 3; + private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; + /** + * + * + *
+   * Optional. The subproperty event filter to create on an ordinary property.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the subpropertyEventFilter field is set. + */ + @java.lang.Override + public boolean hasSubpropertyEventFilter() { + return subpropertyEventFilter_ != null; + } + /** + * + * + *
+   * Optional. The subproperty event filter to create on an ordinary property.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The subpropertyEventFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } + /** + * + * + *
+   * Optional. The subproperty event filter to create on an ordinary property.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder() { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (subproperty_ != null) { + output.writeMessage(2, getSubproperty()); + } + if (subpropertyEventFilter_ != null) { + output.writeMessage(3, getSubpropertyEventFilter()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (subproperty_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubproperty()); + } + if (subpropertyEventFilter_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubpropertyEventFilter()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.CreateSubpropertyRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest other = + (com.google.analytics.admin.v1alpha.CreateSubpropertyRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasSubproperty() != other.hasSubproperty()) return false; + if (hasSubproperty()) { + if (!getSubproperty().equals(other.getSubproperty())) return false; + } + if (hasSubpropertyEventFilter() != other.hasSubpropertyEventFilter()) return false; + if (hasSubpropertyEventFilter()) { + if (!getSubpropertyEventFilter().equals(other.getSubpropertyEventFilter())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasSubproperty()) { + hash = (37 * hash) + SUBPROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getSubproperty().hashCode(); + } + if (hasSubpropertyEventFilter()) { + hash = (37 * hash) + SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSubpropertyEventFilter().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom( + 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.CreateSubpropertyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom( + com.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.CreateSubpropertyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest 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.CreateSubpropertyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom( + java.io.InputStream 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.CreateSubpropertyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseDelimitedFrom( + java.io.InputStream 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.CreateSubpropertyRequest 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.CreateSubpropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.CreateSubpropertyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 CreateSubproperty RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateSubpropertyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateSubpropertyRequest) + com.google.analytics.admin.v1alpha.CreateSubpropertyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.class, + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + subproperty_ = null; + if (subpropertyBuilder_ != null) { + subpropertyBuilder_.dispose(); + subpropertyBuilder_ = null; + } + subpropertyEventFilter_ = null; + if (subpropertyEventFilterBuilder_ != null) { + subpropertyEventFilterBuilder_.dispose(); + subpropertyEventFilterBuilder_ = 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_CreateSubpropertyRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSubpropertyRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSubpropertyRequest build() { + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSubpropertyRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest result = + new com.google.analytics.admin.v1alpha.CreateSubpropertyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.CreateSubpropertyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.subproperty_ = + subpropertyBuilder_ == null ? subproperty_ : subpropertyBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.subpropertyEventFilter_ = + subpropertyEventFilterBuilder_ == null + ? subpropertyEventFilter_ + : subpropertyEventFilterBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.CreateSubpropertyRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateSubpropertyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateSubpropertyRequest other) { + if (other == com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSubproperty()) { + mergeSubproperty(other.getSubproperty()); + } + if (other.hasSubpropertyEventFilter()) { + mergeSubpropertyEventFilter(other.getSubpropertyEventFilter()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSubpropertyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getSubpropertyEventFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The ordinary property for which to create a subproperty.
+     * Format: properties/property_id
+     * 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 ordinary property for which to create a subproperty.
+     * Format: properties/property_id
+     * 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 ordinary property for which to create a subproperty.
+     * Format: properties/property_id
+     * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ordinary property for which to create a subproperty.
+     * Format: properties/property_id
+     * 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(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ordinary property for which to create a subproperty.
+     * Format: properties/property_id
+     * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.Property subproperty_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + subpropertyBuilder_; + /** + * + * + *
+     * Required. The subproperty to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the subproperty field is set. + */ + public boolean hasSubproperty() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The subproperty to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subproperty. + */ + public com.google.analytics.admin.v1alpha.Property getSubproperty() { + if (subpropertyBuilder_ == null) { + return subproperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : subproperty_; + } else { + return subpropertyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The subproperty to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSubproperty(com.google.analytics.admin.v1alpha.Property value) { + if (subpropertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subproperty_ = value; + } else { + subpropertyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The subproperty to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSubproperty( + com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { + if (subpropertyBuilder_ == null) { + subproperty_ = builderForValue.build(); + } else { + subpropertyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The subproperty to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSubproperty(com.google.analytics.admin.v1alpha.Property value) { + if (subpropertyBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && subproperty_ != null + && subproperty_ != com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) { + getSubpropertyBuilder().mergeFrom(value); + } else { + subproperty_ = value; + } + } else { + subpropertyBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The subproperty to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSubproperty() { + bitField0_ = (bitField0_ & ~0x00000002); + subproperty_ = null; + if (subpropertyBuilder_ != null) { + subpropertyBuilder_.dispose(); + subpropertyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The subproperty to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.Property.Builder getSubpropertyBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSubpropertyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The subproperty to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getSubpropertyOrBuilder() { + if (subpropertyBuilder_ != null) { + return subpropertyBuilder_.getMessageOrBuilder(); + } else { + return subproperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : subproperty_; + } + } + /** + * + * + *
+     * Required. The subproperty to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + getSubpropertyFieldBuilder() { + if (subpropertyBuilder_ == null) { + subpropertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder>( + getSubproperty(), getParentForChildren(), isClean()); + subproperty_ = null; + } + return subpropertyBuilder_; + } + + private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + subpropertyEventFilterBuilder_; + /** + * + * + *
+     * Optional. The subproperty event filter to create on an ordinary property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the subpropertyEventFilter field is set. + */ + public boolean hasSubpropertyEventFilter() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Optional. The subproperty event filter to create on an ordinary property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The subpropertyEventFilter. + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { + if (subpropertyEventFilterBuilder_ == null) { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } else { + return subpropertyEventFilterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The subproperty event filter to create on an ordinary property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { + if (subpropertyEventFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subpropertyEventFilter_ = value; + } else { + subpropertyEventFilterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The subproperty event filter to create on an ordinary property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder builderForValue) { + if (subpropertyEventFilterBuilder_ == null) { + subpropertyEventFilter_ = builderForValue.build(); + } else { + subpropertyEventFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The subproperty event filter to create on an ordinary property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { + if (subpropertyEventFilterBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && subpropertyEventFilter_ != null + && subpropertyEventFilter_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance()) { + getSubpropertyEventFilterBuilder().mergeFrom(value); + } else { + subpropertyEventFilter_ = value; + } + } else { + subpropertyEventFilterBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The subproperty event filter to create on an ordinary property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSubpropertyEventFilter() { + bitField0_ = (bitField0_ & ~0x00000004); + subpropertyEventFilter_ = null; + if (subpropertyEventFilterBuilder_ != null) { + subpropertyEventFilterBuilder_.dispose(); + subpropertyEventFilterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The subproperty event filter to create on an ordinary property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder + getSubpropertyEventFilterBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getSubpropertyEventFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The subproperty event filter to create on an ordinary property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder() { + if (subpropertyEventFilterBuilder_ != null) { + return subpropertyEventFilterBuilder_.getMessageOrBuilder(); + } else { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } + } + /** + * + * + *
+     * Optional. The subproperty event filter to create on an ordinary property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + getSubpropertyEventFilterFieldBuilder() { + if (subpropertyEventFilterBuilder_ == null) { + subpropertyEventFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder>( + getSubpropertyEventFilter(), getParentForChildren(), isClean()); + subpropertyEventFilter_ = null; + } + return subpropertyEventFilterBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.CreateSubpropertyRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateSubpropertyRequest) + private static final com.google.analytics.admin.v1alpha.CreateSubpropertyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateSubpropertyRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSubpropertyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSubpropertyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyRequestOrBuilder.java new file mode 100644 index 000000000000..e9b8d29ea8da --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyRequestOrBuilder.java @@ -0,0 +1,141 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 CreateSubpropertyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateSubpropertyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The ordinary property for which to create a subproperty.
+   * Format: properties/property_id
+   * Example: properties/123
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The ordinary property for which to create a subproperty.
+   * Format: properties/property_id
+   * 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(); + + /** + * + * + *
+   * Required. The subproperty to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the subproperty field is set. + */ + boolean hasSubproperty(); + /** + * + * + *
+   * Required. The subproperty to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subproperty. + */ + com.google.analytics.admin.v1alpha.Property getSubproperty(); + /** + * + * + *
+   * Required. The subproperty to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.PropertyOrBuilder getSubpropertyOrBuilder(); + + /** + * + * + *
+   * Optional. The subproperty event filter to create on an ordinary property.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the subpropertyEventFilter field is set. + */ + boolean hasSubpropertyEventFilter(); + /** + * + * + *
+   * Optional. The subproperty event filter to create on an ordinary property.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The subpropertyEventFilter. + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter(); + /** + * + * + *
+   * Optional. The subproperty event filter to create on an ordinary property.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyResponse.java new file mode 100644 index 000000000000..94c4378e0c6f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyResponse.java @@ -0,0 +1,1000 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 CreateSubproperty RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateSubpropertyResponse} + */ +public final class CreateSubpropertyResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateSubpropertyResponse) + CreateSubpropertyResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateSubpropertyResponse.newBuilder() to construct. + private CreateSubpropertyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateSubpropertyResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateSubpropertyResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.class, + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.Builder.class); + } + + public static final int SUBPROPERTY_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.Property subproperty_; + /** + * + * + *
+   * The created subproperty.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + * + * @return Whether the subproperty field is set. + */ + @java.lang.Override + public boolean hasSubproperty() { + return subproperty_ != null; + } + /** + * + * + *
+   * The created subproperty.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + * + * @return The subproperty. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Property getSubproperty() { + return subproperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : subproperty_; + } + /** + * + * + *
+   * The created subproperty.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getSubpropertyOrBuilder() { + return subproperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : subproperty_; + } + + public static final int SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; + /** + * + * + *
+   * The created subproperty event filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + * + * @return Whether the subpropertyEventFilter field is set. + */ + @java.lang.Override + public boolean hasSubpropertyEventFilter() { + return subpropertyEventFilter_ != null; + } + /** + * + * + *
+   * The created subproperty event filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + * + * @return The subpropertyEventFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } + /** + * + * + *
+   * The created subproperty event filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder() { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (subproperty_ != null) { + output.writeMessage(1, getSubproperty()); + } + if (subpropertyEventFilter_ != null) { + output.writeMessage(2, getSubpropertyEventFilter()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (subproperty_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubproperty()); + } + if (subpropertyEventFilter_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubpropertyEventFilter()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.CreateSubpropertyResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse other = + (com.google.analytics.admin.v1alpha.CreateSubpropertyResponse) obj; + + if (hasSubproperty() != other.hasSubproperty()) return false; + if (hasSubproperty()) { + if (!getSubproperty().equals(other.getSubproperty())) return false; + } + if (hasSubpropertyEventFilter() != other.hasSubpropertyEventFilter()) return false; + if (hasSubpropertyEventFilter()) { + if (!getSubpropertyEventFilter().equals(other.getSubpropertyEventFilter())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSubproperty()) { + hash = (37 * hash) + SUBPROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getSubproperty().hashCode(); + } + if (hasSubpropertyEventFilter()) { + hash = (37 * hash) + SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSubpropertyEventFilter().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom( + 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.CreateSubpropertyResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom( + com.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.CreateSubpropertyResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse 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.CreateSubpropertyResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom( + java.io.InputStream 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.CreateSubpropertyResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseDelimitedFrom( + java.io.InputStream 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.CreateSubpropertyResponse 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.CreateSubpropertyResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.CreateSubpropertyResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 CreateSubproperty RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateSubpropertyResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateSubpropertyResponse) + com.google.analytics.admin.v1alpha.CreateSubpropertyResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.class, + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + subproperty_ = null; + if (subpropertyBuilder_ != null) { + subpropertyBuilder_.dispose(); + subpropertyBuilder_ = null; + } + subpropertyEventFilter_ = null; + if (subpropertyEventFilterBuilder_ != null) { + subpropertyEventFilterBuilder_.dispose(); + subpropertyEventFilterBuilder_ = 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_CreateSubpropertyResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSubpropertyResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSubpropertyResponse build() { + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSubpropertyResponse buildPartial() { + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse result = + new com.google.analytics.admin.v1alpha.CreateSubpropertyResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subproperty_ = + subpropertyBuilder_ == null ? subproperty_ : subpropertyBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.subpropertyEventFilter_ = + subpropertyEventFilterBuilder_ == null + ? subpropertyEventFilter_ + : subpropertyEventFilterBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.CreateSubpropertyResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateSubpropertyResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateSubpropertyResponse other) { + if (other + == com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.getDefaultInstance()) + return this; + if (other.hasSubproperty()) { + mergeSubproperty(other.getSubproperty()); + } + if (other.hasSubpropertyEventFilter()) { + mergeSubpropertyEventFilter(other.getSubpropertyEventFilter()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getSubpropertyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getSubpropertyEventFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.Property subproperty_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + subpropertyBuilder_; + /** + * + * + *
+     * The created subproperty.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + * + * @return Whether the subproperty field is set. + */ + public boolean hasSubproperty() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The created subproperty.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + * + * @return The subproperty. + */ + public com.google.analytics.admin.v1alpha.Property getSubproperty() { + if (subpropertyBuilder_ == null) { + return subproperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : subproperty_; + } else { + return subpropertyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The created subproperty.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + */ + public Builder setSubproperty(com.google.analytics.admin.v1alpha.Property value) { + if (subpropertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subproperty_ = value; + } else { + subpropertyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The created subproperty.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + */ + public Builder setSubproperty( + com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { + if (subpropertyBuilder_ == null) { + subproperty_ = builderForValue.build(); + } else { + subpropertyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The created subproperty.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + */ + public Builder mergeSubproperty(com.google.analytics.admin.v1alpha.Property value) { + if (subpropertyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && subproperty_ != null + && subproperty_ != com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) { + getSubpropertyBuilder().mergeFrom(value); + } else { + subproperty_ = value; + } + } else { + subpropertyBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The created subproperty.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + */ + public Builder clearSubproperty() { + bitField0_ = (bitField0_ & ~0x00000001); + subproperty_ = null; + if (subpropertyBuilder_ != null) { + subpropertyBuilder_.dispose(); + subpropertyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The created subproperty.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + */ + public com.google.analytics.admin.v1alpha.Property.Builder getSubpropertyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSubpropertyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The created subproperty.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + */ + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getSubpropertyOrBuilder() { + if (subpropertyBuilder_ != null) { + return subpropertyBuilder_.getMessageOrBuilder(); + } else { + return subproperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : subproperty_; + } + } + /** + * + * + *
+     * The created subproperty.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + getSubpropertyFieldBuilder() { + if (subpropertyBuilder_ == null) { + subpropertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder>( + getSubproperty(), getParentForChildren(), isClean()); + subproperty_ = null; + } + return subpropertyBuilder_; + } + + private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + subpropertyEventFilterBuilder_; + /** + * + * + *
+     * The created subproperty event filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + * + * @return Whether the subpropertyEventFilter field is set. + */ + public boolean hasSubpropertyEventFilter() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The created subproperty event filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + * + * @return The subpropertyEventFilter. + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { + if (subpropertyEventFilterBuilder_ == null) { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } else { + return subpropertyEventFilterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The created subproperty event filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + */ + public Builder setSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { + if (subpropertyEventFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subpropertyEventFilter_ = value; + } else { + subpropertyEventFilterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The created subproperty event filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + */ + public Builder setSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder builderForValue) { + if (subpropertyEventFilterBuilder_ == null) { + subpropertyEventFilter_ = builderForValue.build(); + } else { + subpropertyEventFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The created subproperty event filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + */ + public Builder mergeSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { + if (subpropertyEventFilterBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && subpropertyEventFilter_ != null + && subpropertyEventFilter_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance()) { + getSubpropertyEventFilterBuilder().mergeFrom(value); + } else { + subpropertyEventFilter_ = value; + } + } else { + subpropertyEventFilterBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The created subproperty event filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + */ + public Builder clearSubpropertyEventFilter() { + bitField0_ = (bitField0_ & ~0x00000002); + subpropertyEventFilter_ = null; + if (subpropertyEventFilterBuilder_ != null) { + subpropertyEventFilterBuilder_.dispose(); + subpropertyEventFilterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The created subproperty event filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder + getSubpropertyEventFilterBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSubpropertyEventFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The created subproperty event filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder() { + if (subpropertyEventFilterBuilder_ != null) { + return subpropertyEventFilterBuilder_.getMessageOrBuilder(); + } else { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } + } + /** + * + * + *
+     * The created subproperty event filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + getSubpropertyEventFilterFieldBuilder() { + if (subpropertyEventFilterBuilder_ == null) { + subpropertyEventFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder>( + getSubpropertyEventFilter(), getParentForChildren(), isClean()); + subpropertyEventFilter_ = null; + } + return subpropertyEventFilterBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.CreateSubpropertyResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateSubpropertyResponse) + private static final com.google.analytics.admin.v1alpha.CreateSubpropertyResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateSubpropertyResponse(); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSubpropertyResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSubpropertyResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyResponseOrBuilder.java new file mode 100644 index 000000000000..92cd1a374a4f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyResponseOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 CreateSubpropertyResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateSubpropertyResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The created subproperty.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + * + * @return Whether the subproperty field is set. + */ + boolean hasSubproperty(); + /** + * + * + *
+   * The created subproperty.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + * + * @return The subproperty. + */ + com.google.analytics.admin.v1alpha.Property getSubproperty(); + /** + * + * + *
+   * The created subproperty.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + */ + com.google.analytics.admin.v1alpha.PropertyOrBuilder getSubpropertyOrBuilder(); + + /** + * + * + *
+   * The created subproperty event filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + * + * @return Whether the subpropertyEventFilter field is set. + */ + boolean hasSubpropertyEventFilter(); + /** + * + * + *
+   * The created subproperty event filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + * + * @return The subpropertyEventFilter. + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter(); + /** + * + * + *
+   * The created subproperty event filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettings.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettings.java new file mode 100644 index 000000000000..1ca895bb81aa --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettings.java @@ -0,0 +1,1186 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 for client-side data redaction. Singleton resource under a Web
+ * Stream.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataRedactionSettings} + */ +public final class DataRedactionSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataRedactionSettings) + DataRedactionSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataRedactionSettings.newBuilder() to construct. + private DataRedactionSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataRedactionSettings() { + name_ = ""; + queryParameterKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataRedactionSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataRedactionSettings.class, + com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Name of this Data Redaction Settings resource.
+   * Format:
+   * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
+   * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Name of this Data Redaction Settings resource.
+   * Format:
+   * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
+   * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+   * 
+ * + * 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 EMAIL_REDACTION_ENABLED_FIELD_NUMBER = 2; + private boolean emailRedactionEnabled_ = false; + /** + * + * + *
+   * If enabled, any event parameter or user property values that look like an
+   * email will be redacted.
+   * 
+ * + * bool email_redaction_enabled = 2; + * + * @return The emailRedactionEnabled. + */ + @java.lang.Override + public boolean getEmailRedactionEnabled() { + return emailRedactionEnabled_; + } + + public static final int QUERY_PARAMETER_REDACTION_ENABLED_FIELD_NUMBER = 3; + private boolean queryParameterRedactionEnabled_ = false; + /** + * + * + *
+   * Query Parameter redaction removes the key and value portions of a
+   * query parameter if it is in the configured set of query parameters.
+   *
+   * If enabled, URL query replacement logic will be run for the Stream. Any
+   * query parameters defined in query_parameter_keys will be redacted.
+   * 
+ * + * bool query_parameter_redaction_enabled = 3; + * + * @return The queryParameterRedactionEnabled. + */ + @java.lang.Override + public boolean getQueryParameterRedactionEnabled() { + return queryParameterRedactionEnabled_; + } + + public static final int QUERY_PARAMETER_KEYS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList queryParameterKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * The query parameter keys to apply redaction logic to if present in the URL.
+   * Query parameter matching is case-insensitive.
+   *
+   * Must contain at least one element if query_parameter_replacement_enabled
+   * is true. Keys cannot contain commas.
+   * 
+ * + * repeated string query_parameter_keys = 4; + * + * @return A list containing the queryParameterKeys. + */ + public com.google.protobuf.ProtocolStringList getQueryParameterKeysList() { + return queryParameterKeys_; + } + /** + * + * + *
+   * The query parameter keys to apply redaction logic to if present in the URL.
+   * Query parameter matching is case-insensitive.
+   *
+   * Must contain at least one element if query_parameter_replacement_enabled
+   * is true. Keys cannot contain commas.
+   * 
+ * + * repeated string query_parameter_keys = 4; + * + * @return The count of queryParameterKeys. + */ + public int getQueryParameterKeysCount() { + return queryParameterKeys_.size(); + } + /** + * + * + *
+   * The query parameter keys to apply redaction logic to if present in the URL.
+   * Query parameter matching is case-insensitive.
+   *
+   * Must contain at least one element if query_parameter_replacement_enabled
+   * is true. Keys cannot contain commas.
+   * 
+ * + * repeated string query_parameter_keys = 4; + * + * @param index The index of the element to return. + * @return The queryParameterKeys at the given index. + */ + public java.lang.String getQueryParameterKeys(int index) { + return queryParameterKeys_.get(index); + } + /** + * + * + *
+   * The query parameter keys to apply redaction logic to if present in the URL.
+   * Query parameter matching is case-insensitive.
+   *
+   * Must contain at least one element if query_parameter_replacement_enabled
+   * is true. Keys cannot contain commas.
+   * 
+ * + * repeated string query_parameter_keys = 4; + * + * @param index The index of the value to return. + * @return The bytes of the queryParameterKeys at the given index. + */ + public com.google.protobuf.ByteString getQueryParameterKeysBytes(int index) { + return queryParameterKeys_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (emailRedactionEnabled_ != false) { + output.writeBool(2, emailRedactionEnabled_); + } + if (queryParameterRedactionEnabled_ != false) { + output.writeBool(3, queryParameterRedactionEnabled_); + } + for (int i = 0; i < queryParameterKeys_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, queryParameterKeys_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (emailRedactionEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, emailRedactionEnabled_); + } + if (queryParameterRedactionEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(3, queryParameterRedactionEnabled_); + } + { + int dataSize = 0; + for (int i = 0; i < queryParameterKeys_.size(); i++) { + dataSize += computeStringSizeNoTag(queryParameterKeys_.getRaw(i)); + } + size += dataSize; + size += 1 * getQueryParameterKeysList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.DataRedactionSettings)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DataRedactionSettings other = + (com.google.analytics.admin.v1alpha.DataRedactionSettings) obj; + + if (!getName().equals(other.getName())) return false; + if (getEmailRedactionEnabled() != other.getEmailRedactionEnabled()) return false; + if (getQueryParameterRedactionEnabled() != other.getQueryParameterRedactionEnabled()) + return false; + if (!getQueryParameterKeysList().equals(other.getQueryParameterKeysList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + EMAIL_REDACTION_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEmailRedactionEnabled()); + hash = (37 * hash) + QUERY_PARAMETER_REDACTION_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getQueryParameterRedactionEnabled()); + if (getQueryParameterKeysCount() > 0) { + hash = (37 * hash) + QUERY_PARAMETER_KEYS_FIELD_NUMBER; + hash = (53 * hash) + getQueryParameterKeysList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom( + 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.DataRedactionSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom( + com.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.DataRedactionSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataRedactionSettings 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.DataRedactionSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom( + java.io.InputStream 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.DataRedactionSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseDelimitedFrom( + java.io.InputStream 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.DataRedactionSettings 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.DataRedactionSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.DataRedactionSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 for client-side data redaction. Singleton resource under a Web
+   * Stream.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataRedactionSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DataRedactionSettings) + com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataRedactionSettings.class, + com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DataRedactionSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + emailRedactionEnabled_ = false; + queryParameterRedactionEnabled_ = false; + queryParameterKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + 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_DataRedactionSettings_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRedactionSettings getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRedactionSettings build() { + com.google.analytics.admin.v1alpha.DataRedactionSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRedactionSettings buildPartial() { + com.google.analytics.admin.v1alpha.DataRedactionSettings result = + new com.google.analytics.admin.v1alpha.DataRedactionSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.DataRedactionSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.emailRedactionEnabled_ = emailRedactionEnabled_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.queryParameterRedactionEnabled_ = queryParameterRedactionEnabled_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + queryParameterKeys_.makeImmutable(); + result.queryParameterKeys_ = queryParameterKeys_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.DataRedactionSettings) { + return mergeFrom((com.google.analytics.admin.v1alpha.DataRedactionSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.DataRedactionSettings other) { + if (other == com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getEmailRedactionEnabled() != false) { + setEmailRedactionEnabled(other.getEmailRedactionEnabled()); + } + if (other.getQueryParameterRedactionEnabled() != false) { + setQueryParameterRedactionEnabled(other.getQueryParameterRedactionEnabled()); + } + if (!other.queryParameterKeys_.isEmpty()) { + if (queryParameterKeys_.isEmpty()) { + queryParameterKeys_ = other.queryParameterKeys_; + bitField0_ |= 0x00000008; + } else { + ensureQueryParameterKeysIsMutable(); + queryParameterKeys_.addAll(other.queryParameterKeys_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + emailRedactionEnabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + queryParameterRedactionEnabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureQueryParameterKeysIsMutable(); + queryParameterKeys_.add(s); + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Name of this Data Redaction Settings resource.
+     * Format:
+     * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
+     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Name of this Data Redaction Settings resource.
+     * Format:
+     * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
+     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Name of this Data Redaction Settings resource.
+     * Format:
+     * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
+     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of this Data Redaction Settings resource.
+     * Format:
+     * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
+     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of this Data Redaction Settings resource.
+     * Format:
+     * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
+     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean emailRedactionEnabled_; + /** + * + * + *
+     * If enabled, any event parameter or user property values that look like an
+     * email will be redacted.
+     * 
+ * + * bool email_redaction_enabled = 2; + * + * @return The emailRedactionEnabled. + */ + @java.lang.Override + public boolean getEmailRedactionEnabled() { + return emailRedactionEnabled_; + } + /** + * + * + *
+     * If enabled, any event parameter or user property values that look like an
+     * email will be redacted.
+     * 
+ * + * bool email_redaction_enabled = 2; + * + * @param value The emailRedactionEnabled to set. + * @return This builder for chaining. + */ + public Builder setEmailRedactionEnabled(boolean value) { + + emailRedactionEnabled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * If enabled, any event parameter or user property values that look like an
+     * email will be redacted.
+     * 
+ * + * bool email_redaction_enabled = 2; + * + * @return This builder for chaining. + */ + public Builder clearEmailRedactionEnabled() { + bitField0_ = (bitField0_ & ~0x00000002); + emailRedactionEnabled_ = false; + onChanged(); + return this; + } + + private boolean queryParameterRedactionEnabled_; + /** + * + * + *
+     * Query Parameter redaction removes the key and value portions of a
+     * query parameter if it is in the configured set of query parameters.
+     *
+     * If enabled, URL query replacement logic will be run for the Stream. Any
+     * query parameters defined in query_parameter_keys will be redacted.
+     * 
+ * + * bool query_parameter_redaction_enabled = 3; + * + * @return The queryParameterRedactionEnabled. + */ + @java.lang.Override + public boolean getQueryParameterRedactionEnabled() { + return queryParameterRedactionEnabled_; + } + /** + * + * + *
+     * Query Parameter redaction removes the key and value portions of a
+     * query parameter if it is in the configured set of query parameters.
+     *
+     * If enabled, URL query replacement logic will be run for the Stream. Any
+     * query parameters defined in query_parameter_keys will be redacted.
+     * 
+ * + * bool query_parameter_redaction_enabled = 3; + * + * @param value The queryParameterRedactionEnabled to set. + * @return This builder for chaining. + */ + public Builder setQueryParameterRedactionEnabled(boolean value) { + + queryParameterRedactionEnabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Query Parameter redaction removes the key and value portions of a
+     * query parameter if it is in the configured set of query parameters.
+     *
+     * If enabled, URL query replacement logic will be run for the Stream. Any
+     * query parameters defined in query_parameter_keys will be redacted.
+     * 
+ * + * bool query_parameter_redaction_enabled = 3; + * + * @return This builder for chaining. + */ + public Builder clearQueryParameterRedactionEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + queryParameterRedactionEnabled_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList queryParameterKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureQueryParameterKeysIsMutable() { + if (!queryParameterKeys_.isModifiable()) { + queryParameterKeys_ = new com.google.protobuf.LazyStringArrayList(queryParameterKeys_); + } + bitField0_ |= 0x00000008; + } + /** + * + * + *
+     * The query parameter keys to apply redaction logic to if present in the URL.
+     * Query parameter matching is case-insensitive.
+     *
+     * Must contain at least one element if query_parameter_replacement_enabled
+     * is true. Keys cannot contain commas.
+     * 
+ * + * repeated string query_parameter_keys = 4; + * + * @return A list containing the queryParameterKeys. + */ + public com.google.protobuf.ProtocolStringList getQueryParameterKeysList() { + queryParameterKeys_.makeImmutable(); + return queryParameterKeys_; + } + /** + * + * + *
+     * The query parameter keys to apply redaction logic to if present in the URL.
+     * Query parameter matching is case-insensitive.
+     *
+     * Must contain at least one element if query_parameter_replacement_enabled
+     * is true. Keys cannot contain commas.
+     * 
+ * + * repeated string query_parameter_keys = 4; + * + * @return The count of queryParameterKeys. + */ + public int getQueryParameterKeysCount() { + return queryParameterKeys_.size(); + } + /** + * + * + *
+     * The query parameter keys to apply redaction logic to if present in the URL.
+     * Query parameter matching is case-insensitive.
+     *
+     * Must contain at least one element if query_parameter_replacement_enabled
+     * is true. Keys cannot contain commas.
+     * 
+ * + * repeated string query_parameter_keys = 4; + * + * @param index The index of the element to return. + * @return The queryParameterKeys at the given index. + */ + public java.lang.String getQueryParameterKeys(int index) { + return queryParameterKeys_.get(index); + } + /** + * + * + *
+     * The query parameter keys to apply redaction logic to if present in the URL.
+     * Query parameter matching is case-insensitive.
+     *
+     * Must contain at least one element if query_parameter_replacement_enabled
+     * is true. Keys cannot contain commas.
+     * 
+ * + * repeated string query_parameter_keys = 4; + * + * @param index The index of the value to return. + * @return The bytes of the queryParameterKeys at the given index. + */ + public com.google.protobuf.ByteString getQueryParameterKeysBytes(int index) { + return queryParameterKeys_.getByteString(index); + } + /** + * + * + *
+     * The query parameter keys to apply redaction logic to if present in the URL.
+     * Query parameter matching is case-insensitive.
+     *
+     * Must contain at least one element if query_parameter_replacement_enabled
+     * is true. Keys cannot contain commas.
+     * 
+ * + * repeated string query_parameter_keys = 4; + * + * @param index The index to set the value at. + * @param value The queryParameterKeys to set. + * @return This builder for chaining. + */ + public Builder setQueryParameterKeys(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueryParameterKeysIsMutable(); + queryParameterKeys_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The query parameter keys to apply redaction logic to if present in the URL.
+     * Query parameter matching is case-insensitive.
+     *
+     * Must contain at least one element if query_parameter_replacement_enabled
+     * is true. Keys cannot contain commas.
+     * 
+ * + * repeated string query_parameter_keys = 4; + * + * @param value The queryParameterKeys to add. + * @return This builder for chaining. + */ + public Builder addQueryParameterKeys(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueryParameterKeysIsMutable(); + queryParameterKeys_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The query parameter keys to apply redaction logic to if present in the URL.
+     * Query parameter matching is case-insensitive.
+     *
+     * Must contain at least one element if query_parameter_replacement_enabled
+     * is true. Keys cannot contain commas.
+     * 
+ * + * repeated string query_parameter_keys = 4; + * + * @param values The queryParameterKeys to add. + * @return This builder for chaining. + */ + public Builder addAllQueryParameterKeys(java.lang.Iterable values) { + ensureQueryParameterKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queryParameterKeys_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The query parameter keys to apply redaction logic to if present in the URL.
+     * Query parameter matching is case-insensitive.
+     *
+     * Must contain at least one element if query_parameter_replacement_enabled
+     * is true. Keys cannot contain commas.
+     * 
+ * + * repeated string query_parameter_keys = 4; + * + * @return This builder for chaining. + */ + public Builder clearQueryParameterKeys() { + queryParameterKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * The query parameter keys to apply redaction logic to if present in the URL.
+     * Query parameter matching is case-insensitive.
+     *
+     * Must contain at least one element if query_parameter_replacement_enabled
+     * is true. Keys cannot contain commas.
+     * 
+ * + * repeated string query_parameter_keys = 4; + * + * @param value The bytes of the queryParameterKeys to add. + * @return This builder for chaining. + */ + public Builder addQueryParameterKeysBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureQueryParameterKeysIsMutable(); + queryParameterKeys_.add(value); + bitField0_ |= 0x00000008; + 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.DataRedactionSettings) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataRedactionSettings) + private static final com.google.analytics.admin.v1alpha.DataRedactionSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataRedactionSettings(); + } + + public static com.google.analytics.admin.v1alpha.DataRedactionSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataRedactionSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRedactionSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettingsName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettingsName.java new file mode 100644 index 000000000000..46305cd6cbfd --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettingsName.java @@ -0,0 +1,194 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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 DataRedactionSettingsName implements ResourceName { + private static final PathTemplate PROPERTY_DATA_STREAM = + PathTemplate.createWithoutUrlEncoding( + "properties/{property}/dataStreams/{data_stream}/dataRedactionSettings"); + private volatile Map fieldValuesMap; + private final String property; + private final String dataStream; + + @Deprecated + protected DataRedactionSettingsName() { + property = null; + dataStream = null; + } + + private DataRedactionSettingsName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + dataStream = Preconditions.checkNotNull(builder.getDataStream()); + } + + public String getProperty() { + return property; + } + + public String getDataStream() { + return dataStream; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DataRedactionSettingsName of(String property, String dataStream) { + return newBuilder().setProperty(property).setDataStream(dataStream).build(); + } + + public static String format(String property, String dataStream) { + return newBuilder().setProperty(property).setDataStream(dataStream).build().toString(); + } + + public static DataRedactionSettingsName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY_DATA_STREAM.validatedMatch( + formattedString, + "DataRedactionSettingsName.parse: formattedString not in valid format"); + return of(matchMap.get("property"), matchMap.get("data_stream")); + } + + 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 (DataRedactionSettingsName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROPERTY_DATA_STREAM.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 (dataStream != null) { + fieldMapBuilder.put("data_stream", dataStream); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROPERTY_DATA_STREAM.instantiate("property", property, "data_stream", dataStream); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DataRedactionSettingsName that = ((DataRedactionSettingsName) o); + return Objects.equals(this.property, that.property) + && Objects.equals(this.dataStream, that.dataStream); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(property); + h *= 1000003; + h ^= Objects.hashCode(dataStream); + return h; + } + + /** Builder for properties/{property}/dataStreams/{data_stream}/dataRedactionSettings. */ + public static class Builder { + private String property; + private String dataStream; + + protected Builder() {} + + public String getProperty() { + return property; + } + + public String getDataStream() { + return dataStream; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + public Builder setDataStream(String dataStream) { + this.dataStream = dataStream; + return this; + } + + private Builder(DataRedactionSettingsName dataRedactionSettingsName) { + this.property = dataRedactionSettingsName.property; + this.dataStream = dataRedactionSettingsName.dataStream; + } + + public DataRedactionSettingsName build() { + return new DataRedactionSettingsName(this); + } + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettingsOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettingsOrBuilder.java new file mode 100644 index 000000000000..1e3f93b42ea5 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettingsOrBuilder.java @@ -0,0 +1,154 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 DataRedactionSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DataRedactionSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Name of this Data Redaction Settings resource.
+   * Format:
+   * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
+   * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Name of this Data Redaction Settings resource.
+   * Format:
+   * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
+   * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * If enabled, any event parameter or user property values that look like an
+   * email will be redacted.
+   * 
+ * + * bool email_redaction_enabled = 2; + * + * @return The emailRedactionEnabled. + */ + boolean getEmailRedactionEnabled(); + + /** + * + * + *
+   * Query Parameter redaction removes the key and value portions of a
+   * query parameter if it is in the configured set of query parameters.
+   *
+   * If enabled, URL query replacement logic will be run for the Stream. Any
+   * query parameters defined in query_parameter_keys will be redacted.
+   * 
+ * + * bool query_parameter_redaction_enabled = 3; + * + * @return The queryParameterRedactionEnabled. + */ + boolean getQueryParameterRedactionEnabled(); + + /** + * + * + *
+   * The query parameter keys to apply redaction logic to if present in the URL.
+   * Query parameter matching is case-insensitive.
+   *
+   * Must contain at least one element if query_parameter_replacement_enabled
+   * is true. Keys cannot contain commas.
+   * 
+ * + * repeated string query_parameter_keys = 4; + * + * @return A list containing the queryParameterKeys. + */ + java.util.List getQueryParameterKeysList(); + /** + * + * + *
+   * The query parameter keys to apply redaction logic to if present in the URL.
+   * Query parameter matching is case-insensitive.
+   *
+   * Must contain at least one element if query_parameter_replacement_enabled
+   * is true. Keys cannot contain commas.
+   * 
+ * + * repeated string query_parameter_keys = 4; + * + * @return The count of queryParameterKeys. + */ + int getQueryParameterKeysCount(); + /** + * + * + *
+   * The query parameter keys to apply redaction logic to if present in the URL.
+   * Query parameter matching is case-insensitive.
+   *
+   * Must contain at least one element if query_parameter_replacement_enabled
+   * is true. Keys cannot contain commas.
+   * 
+ * + * repeated string query_parameter_keys = 4; + * + * @param index The index of the element to return. + * @return The queryParameterKeys at the given index. + */ + java.lang.String getQueryParameterKeys(int index); + /** + * + * + *
+   * The query parameter keys to apply redaction logic to if present in the URL.
+   * Query parameter matching is case-insensitive.
+   *
+   * Must contain at least one element if query_parameter_replacement_enabled
+   * is true. Keys cannot contain commas.
+   * 
+ * + * repeated string query_parameter_keys = 4; + * + * @param index The index of the value to return. + * @return The bytes of the queryParameterKeys at the given index. + */ + com.google.protobuf.ByteString getQueryParameterKeysBytes(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteRollupPropertySourceLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteRollupPropertySourceLinkRequest.java new file mode 100644 index 000000000000..12736e599766 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteRollupPropertySourceLinkRequest.java @@ -0,0 +1,671 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 DeleteRollupPropertySourceLink RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest} + */ +public final class DeleteRollupPropertySourceLinkRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) + DeleteRollupPropertySourceLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteRollupPropertySourceLinkRequest.newBuilder() to construct. + private DeleteRollupPropertySourceLinkRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteRollupPropertySourceLinkRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteRollupPropertySourceLinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.class, + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Format:
+   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+   * Example: properties/1234/rollupPropertySourceLinks/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. Format:
+   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+   * Example: properties/1234/rollupPropertySourceLinks/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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest other = + (com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom( + 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.DeleteRollupPropertySourceLinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom( + com.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.DeleteRollupPropertySourceLinkRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest 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.DeleteRollupPropertySourceLinkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom( + java.io.InputStream 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.DeleteRollupPropertySourceLinkRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest + parseDelimitedFrom( + java.io.InputStream 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.DeleteRollupPropertySourceLinkRequest 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.DeleteRollupPropertySourceLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.DeleteRollupPropertySourceLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 DeleteRollupPropertySourceLink RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.class, + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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_DeleteRollupPropertySourceLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest build() { + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest result = + new com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.DeleteRollupPropertySourceLinkRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Format:
+     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+     * Example: properties/1234/rollupPropertySourceLinks/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. Format:
+     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+     * Example: properties/1234/rollupPropertySourceLinks/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. Format:
+     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+     * Example: properties/1234/rollupPropertySourceLinks/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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format:
+     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+     * Example: properties/1234/rollupPropertySourceLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format:
+     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+     * Example: properties/1234/rollupPropertySourceLinks/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; + bitField0_ |= 0x00000001; + 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.DeleteRollupPropertySourceLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) + private static final com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRollupPropertySourceLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteRollupPropertySourceLinkRequestOrBuilder.java similarity index 74% rename from java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequestOrBuilder.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteRollupPropertySourceLinkRequestOrBuilder.java index 24963e162f5a..97b4513255d6 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteRollupPropertySourceLinkRequestOrBuilder.java @@ -18,16 +18,18 @@ package com.google.analytics.admin.v1alpha; -public interface GetUserLinkRequestOrBuilder +public interface DeleteRollupPropertySourceLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetUserLinkRequest) + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) com.google.protobuf.MessageOrBuilder { /** * * *
-   * Required. Example format: accounts/1234/userLinks/5678
+   * Required. Format:
+   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+   * Example: properties/1234/rollupPropertySourceLinks/5678
    * 
* * @@ -41,7 +43,9 @@ public interface GetUserLinkRequestOrBuilder * * *
-   * Required. Example format: accounts/1234/userLinks/5678
+   * Required. Format:
+   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+   * Example: properties/1234/rollupPropertySourceLinks/5678
    * 
* * diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSubpropertyEventFilterRequest.java similarity index 69% rename from java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequest.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSubpropertyEventFilterRequest.java index 392c483be4a9..03c1083bf563 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSubpropertyEventFilterRequest.java @@ -22,44 +22,46 @@ * * *
- * Request message for DeleteUserLink RPC.
+ * Request message for DeleteSubpropertyEventFilter RPC.
  * 
* - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteUserLinkRequest} + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest} */ -public final class DeleteUserLinkRequest extends com.google.protobuf.GeneratedMessageV3 +public final class DeleteSubpropertyEventFilterRequest + extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteUserLinkRequest) - DeleteUserLinkRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) + DeleteSubpropertyEventFilterRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use DeleteUserLinkRequest.newBuilder() to construct. - private DeleteUserLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use DeleteSubpropertyEventFilterRequest.newBuilder() to construct. + private DeleteSubpropertyEventFilterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteUserLinkRequest() { + private DeleteSubpropertyEventFilterRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteUserLinkRequest(); + return new DeleteSubpropertyEventFilterRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteUserLinkRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteUserLinkRequest_fieldAccessorTable + .internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.class, - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.Builder.class); + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.class, + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -70,7 +72,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Example format: accounts/1234/userLinks/5678
+   * Required. Resource name of the subproperty event filter to delete.
+   * Format:
+   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+   * Example: properties/123/subpropertyEventFilters/456
    * 
* * @@ -95,7 +100,10 @@ public java.lang.String getName() { * * *
-   * Required. Example format: accounts/1234/userLinks/5678
+   * Required. Resource name of the subproperty event filter to delete.
+   * Format:
+   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+   * Example: properties/123/subpropertyEventFilters/456
    * 
* * @@ -156,11 +164,11 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.analytics.admin.v1alpha.DeleteUserLinkRequest)) { + if (!(obj instanceof com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest)) { return super.equals(obj); } - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest other = - (com.google.analytics.admin.v1alpha.DeleteUserLinkRequest) obj; + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest other = + (com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) obj; if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -181,71 +189,72 @@ public int hashCode() { return hash; } - public static com.google.analytics.admin.v1alpha.DeleteUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.DeleteUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( 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.DeleteUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.DeleteUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( com.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.DeleteUserLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.DeleteUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest 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.DeleteUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.analytics.admin.v1alpha.DeleteUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( java.io.InputStream 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.DeleteUserLinkRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.analytics.admin.v1alpha.DeleteUserLinkRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest + parseDelimitedFrom( + java.io.InputStream 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.DeleteUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest 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.DeleteUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -263,7 +272,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest prototype) { + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -281,31 +290,32 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for DeleteUserLink RPC.
+   * Request message for DeleteSubpropertyEventFilter RPC.
    * 
* - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteUserLinkRequest} + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteUserLinkRequest) - com.google.analytics.admin.v1alpha.DeleteUserLinkRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteUserLinkRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteUserLinkRequest_fieldAccessorTable + .internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.class, - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.Builder.class); + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.class, + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.Builder.class); } - // Construct using com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.newBuilder() + // Construct using + // com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -323,17 +333,20 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_DeleteUserLinkRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_descriptor; } @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.getDefaultInstance(); + public com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest build() { - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest result = buildPartial(); + public com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest build() { + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -341,9 +354,9 @@ public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest build() { } @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest result = - new com.google.analytics.admin.v1alpha.DeleteUserLinkRequest(this); + public com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest result = + new com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -351,7 +364,8 @@ public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest buildPartial() { return result; } - private void buildPartial0(com.google.analytics.admin.v1alpha.DeleteUserLinkRequest result) { + private void buildPartial0( + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -393,17 +407,20 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeleteUserLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.DeleteUserLinkRequest) other); + if (other instanceof com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteUserLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.DeleteUserLinkRequest.getDefaultInstance()) - return this; + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -465,7 +482,10 @@ public Builder mergeFrom( * * *
-     * Required. Example format: accounts/1234/userLinks/5678
+     * Required. Resource name of the subproperty event filter to delete.
+     * Format:
+     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+     * Example: properties/123/subpropertyEventFilters/456
      * 
* * @@ -489,7 +509,10 @@ public java.lang.String getName() { * * *
-     * Required. Example format: accounts/1234/userLinks/5678
+     * Required. Resource name of the subproperty event filter to delete.
+     * Format:
+     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+     * Example: properties/123/subpropertyEventFilters/456
      * 
* * @@ -513,7 +536,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. Example format: accounts/1234/userLinks/5678
+     * Required. Resource name of the subproperty event filter to delete.
+     * Format:
+     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+     * Example: properties/123/subpropertyEventFilters/456
      * 
* * @@ -536,7 +562,10 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. Example format: accounts/1234/userLinks/5678
+     * Required. Resource name of the subproperty event filter to delete.
+     * Format:
+     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+     * Example: properties/123/subpropertyEventFilters/456
      * 
* * @@ -555,7 +584,10 @@ public Builder clearName() { * * *
-     * Required. Example format: accounts/1234/userLinks/5678
+     * Required. Resource name of the subproperty event filter to delete.
+     * Format:
+     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+     * Example: properties/123/subpropertyEventFilters/456
      * 
* * @@ -587,24 +619,26 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DeleteUserLinkRequest) + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) } - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteUserLinkRequest) - private static final com.google.analytics.admin.v1alpha.DeleteUserLinkRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) + private static final com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest + DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteUserLinkRequest(); + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest(); } - public static com.google.analytics.admin.v1alpha.DeleteUserLinkRequest getDefaultInstance() { + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public DeleteUserLinkRequest parsePartialFrom( + public DeleteSubpropertyEventFilterRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -623,17 +657,18 @@ public DeleteUserLinkRequest parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteUserLinkRequest getDefaultInstanceForType() { + public com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSubpropertyEventFilterRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSubpropertyEventFilterRequestOrBuilder.java new file mode 100644 index 000000000000..3011cbc04ac7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSubpropertyEventFilterRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 DeleteSubpropertyEventFilterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the subproperty event filter to delete.
+   * Format:
+   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+   * Example: properties/123/subpropertyEventFilters/456
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the subproperty event filter to delete.
+   * Format:
+   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+   * Example: properties/123/subpropertyEventFilters/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/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRedactionSettingsRequest.java similarity index 68% rename from java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequest.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRedactionSettingsRequest.java index 280438bd0387..4dc8e309e8b9 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRedactionSettingsRequest.java @@ -22,44 +22,45 @@ * * *
- * Request message for GetUserLink RPC.
+ * Request message for GetDataRedactionSettings RPC.
  * 
* - * Protobuf type {@code google.analytics.admin.v1alpha.GetUserLinkRequest} + * Protobuf type {@code google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest} */ -public final class GetUserLinkRequest extends com.google.protobuf.GeneratedMessageV3 +public final class GetDataRedactionSettingsRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetUserLinkRequest) - GetUserLinkRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) + GetDataRedactionSettingsRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use GetUserLinkRequest.newBuilder() to construct. - private GetUserLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use GetDataRedactionSettingsRequest.newBuilder() to construct. + private GetDataRedactionSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetUserLinkRequest() { + private GetDataRedactionSettingsRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetUserLinkRequest(); + return new GetDataRedactionSettingsRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetUserLinkRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetUserLinkRequest_fieldAccessorTable + .internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetUserLinkRequest.class, - com.google.analytics.admin.v1alpha.GetUserLinkRequest.Builder.class); + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -70,7 +71,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Example format: accounts/1234/userLinks/5678
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
+   * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
    * 
* * @@ -95,7 +99,10 @@ public java.lang.String getName() { * * *
-   * Required. Example format: accounts/1234/userLinks/5678
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
+   * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
    * 
* * @@ -156,11 +163,11 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.analytics.admin.v1alpha.GetUserLinkRequest)) { + if (!(obj instanceof com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest)) { return super.equals(obj); } - com.google.analytics.admin.v1alpha.GetUserLinkRequest other = - (com.google.analytics.admin.v1alpha.GetUserLinkRequest) obj; + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest other = + (com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) obj; if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -181,71 +188,72 @@ public int hashCode() { return hash; } - public static com.google.analytics.admin.v1alpha.GetUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.GetUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( 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.GetUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.GetUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( com.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.GetUserLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.GetUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest 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.GetUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.analytics.admin.v1alpha.GetUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( java.io.InputStream 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.GetUserLinkRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.analytics.admin.v1alpha.GetUserLinkRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest + parseDelimitedFrom( + java.io.InputStream 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.GetUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest 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.GetUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -263,7 +271,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.analytics.admin.v1alpha.GetUserLinkRequest prototype) { + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -281,31 +289,32 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for GetUserLink RPC.
+   * Request message for GetDataRedactionSettings RPC.
    * 
* - * Protobuf type {@code google.analytics.admin.v1alpha.GetUserLinkRequest} + * Protobuf type {@code google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetUserLinkRequest) - com.google.analytics.admin.v1alpha.GetUserLinkRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetUserLinkRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetUserLinkRequest_fieldAccessorTable + .internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetUserLinkRequest.class, - com.google.analytics.admin.v1alpha.GetUserLinkRequest.Builder.class); + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest.Builder.class); } - // Construct using com.google.analytics.admin.v1alpha.GetUserLinkRequest.newBuilder() + // Construct using + // com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -323,17 +332,19 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_GetUserLinkRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_descriptor; } @java.lang.Override - public com.google.analytics.admin.v1alpha.GetUserLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetUserLinkRequest.getDefaultInstance(); + public com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.analytics.admin.v1alpha.GetUserLinkRequest build() { - com.google.analytics.admin.v1alpha.GetUserLinkRequest result = buildPartial(); + public com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest build() { + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -341,9 +352,9 @@ public com.google.analytics.admin.v1alpha.GetUserLinkRequest build() { } @java.lang.Override - public com.google.analytics.admin.v1alpha.GetUserLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetUserLinkRequest result = - new com.google.analytics.admin.v1alpha.GetUserLinkRequest(this); + public com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest result = + new com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -351,7 +362,8 @@ public com.google.analytics.admin.v1alpha.GetUserLinkRequest buildPartial() { return result; } - private void buildPartial0(com.google.analytics.admin.v1alpha.GetUserLinkRequest result) { + private void buildPartial0( + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -393,17 +405,20 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetUserLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetUserLinkRequest) other); + if (other instanceof com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetUserLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetUserLinkRequest.getDefaultInstance()) - return this; + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -465,7 +480,10 @@ public Builder mergeFrom( * * *
-     * Required. Example format: accounts/1234/userLinks/5678
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
+     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
      * 
* * @@ -489,7 +507,10 @@ public java.lang.String getName() { * * *
-     * Required. Example format: accounts/1234/userLinks/5678
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
+     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
      * 
* * @@ -513,7 +534,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. Example format: accounts/1234/userLinks/5678
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
+     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
      * 
* * @@ -536,7 +560,10 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. Example format: accounts/1234/userLinks/5678
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
+     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
      * 
* * @@ -555,7 +582,10 @@ public Builder clearName() { * * *
-     * Required. Example format: accounts/1234/userLinks/5678
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
+     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
      * 
* * @@ -587,24 +617,26 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GetUserLinkRequest) + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) } - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetUserLinkRequest) - private static final com.google.analytics.admin.v1alpha.GetUserLinkRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) + private static final com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest + DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetUserLinkRequest(); + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest(); } - public static com.google.analytics.admin.v1alpha.GetUserLinkRequest getDefaultInstance() { + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public GetUserLinkRequest parsePartialFrom( + public GetDataRedactionSettingsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -623,17 +655,18 @@ public GetUserLinkRequest parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.analytics.admin.v1alpha.GetUserLinkRequest getDefaultInstanceForType() { + public com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRedactionSettingsRequestOrBuilder.java similarity index 72% rename from java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequestOrBuilder.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRedactionSettingsRequestOrBuilder.java index 066b46cf77c4..ca43a6cc64fe 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRedactionSettingsRequestOrBuilder.java @@ -18,16 +18,19 @@ package com.google.analytics.admin.v1alpha; -public interface DeleteUserLinkRequestOrBuilder +public interface GetDataRedactionSettingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteUserLinkRequest) + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) com.google.protobuf.MessageOrBuilder { /** * * *
-   * Required. Example format: accounts/1234/userLinks/5678
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
+   * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
    * 
* * @@ -41,7 +44,10 @@ public interface DeleteUserLinkRequestOrBuilder * * *
-   * Required. Example format: accounts/1234/userLinks/5678
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
+   * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
    * 
* * diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateUserLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetRollupPropertySourceLinkRequest.java similarity index 50% rename from java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateUserLinkRequest.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetRollupPropertySourceLinkRequest.java index 3bdb55b9e46e..56815f11e4e2 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateUserLinkRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetRollupPropertySourceLinkRequest.java @@ -22,98 +22,106 @@ * * *
- * Request message for UpdateUserLink RPC.
+ * Request message for GetRollupPropertySourceLink RPC.
  * 
* - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateUserLinkRequest} + * Protobuf type {@code google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest} */ -public final class UpdateUserLinkRequest extends com.google.protobuf.GeneratedMessageV3 +public final class GetRollupPropertySourceLinkRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateUserLinkRequest) - UpdateUserLinkRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) + GetRollupPropertySourceLinkRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use UpdateUserLinkRequest.newBuilder() to construct. - private UpdateUserLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use GetRollupPropertySourceLinkRequest.newBuilder() to construct. + private GetRollupPropertySourceLinkRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateUserLinkRequest() {} + private GetRollupPropertySourceLinkRequest() { + name_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateUserLinkRequest(); + return new GetRollupPropertySourceLinkRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateUserLinkRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateUserLinkRequest_fieldAccessorTable + .internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.class, - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.Builder.class); + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest.class, + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest.Builder.class); } - public static final int USER_LINK_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.UserLink userLink_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * *
-   * Required. The user link to update.
+   * Required. The name of the roll-up property source link to lookup.
+   * Format:
+   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+   * Example: properties/123/rollupPropertySourceLinks/456
    * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * - * @return Whether the userLink field is set. + * @return The name. */ @java.lang.Override - public boolean hasUserLink() { - return userLink_ != null; + 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 user link to update.
+   * Required. The name of the roll-up property source link to lookup.
+   * Format:
+   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+   * Example: properties/123/rollupPropertySourceLinks/456
    * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * - * @return The userLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLink getUserLink() { - return userLink_ == null - ? com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance() - : userLink_; - } - /** - * - * - *
-   * Required. The user link to update.
-   * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * @return The bytes for name. */ @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinkOrBuilder() { - return userLink_ == null - ? com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance() - : userLink_; + 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; @@ -130,8 +138,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (userLink_ != null) { - output.writeMessage(1, getUserLink()); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } getUnknownFields().writeTo(output); } @@ -142,8 +150,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (userLink_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUserLink()); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -155,16 +163,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.analytics.admin.v1alpha.UpdateUserLinkRequest)) { + if (!(obj instanceof com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest)) { return super.equals(obj); } - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest other = - (com.google.analytics.admin.v1alpha.UpdateUserLinkRequest) obj; + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest other = + (com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) obj; - if (hasUserLink() != other.hasUserLink()) return false; - if (hasUserLink()) { - if (!getUserLink().equals(other.getUserLink())) return false; - } + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -176,80 +181,79 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasUserLink()) { - hash = (37 * hash) + USER_LINK_FIELD_NUMBER; - hash = (53 * hash) + getUserLink().hashCode(); - } + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.analytics.admin.v1alpha.UpdateUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.UpdateUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( 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.UpdateUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.UpdateUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( com.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.UpdateUserLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.UpdateUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest 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.UpdateUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.analytics.admin.v1alpha.UpdateUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( java.io.InputStream 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.UpdateUserLinkRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.analytics.admin.v1alpha.UpdateUserLinkRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest + parseDelimitedFrom( + java.io.InputStream 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.UpdateUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest 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.UpdateUserLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -267,7 +271,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest prototype) { + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -285,31 +289,32 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for UpdateUserLink RPC.
+   * Request message for GetRollupPropertySourceLink RPC.
    * 
* - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateUserLinkRequest} + * Protobuf type {@code google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateUserLinkRequest) - com.google.analytics.admin.v1alpha.UpdateUserLinkRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateUserLinkRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateUserLinkRequest_fieldAccessorTable + .internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.class, - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.Builder.class); + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest.class, + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest.Builder.class); } - // Construct using com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.newBuilder() + // Construct using + // com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -320,28 +325,26 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - userLink_ = null; - if (userLinkBuilder_ != null) { - userLinkBuilder_.dispose(); - userLinkBuilder_ = null; - } + 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_UpdateUserLinkRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_descriptor; } @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.getDefaultInstance(); + public com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest build() { - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest result = buildPartial(); + public com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest build() { + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -349,9 +352,9 @@ public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest build() { } @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest result = - new com.google.analytics.admin.v1alpha.UpdateUserLinkRequest(this); + public com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest result = + new com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -359,10 +362,11 @@ public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest buildPartial() { return result; } - private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateUserLinkRequest result) { + private void buildPartial0( + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.userLink_ = userLinkBuilder_ == null ? userLink_ : userLinkBuilder_.build(); + result.name_ = name_; } } @@ -401,19 +405,24 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateUserLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateUserLinkRequest) other); + if (other instanceof com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateUserLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateUserLinkRequest.getDefaultInstance()) - return this; - if (other.hasUserLink()) { - mergeUserLink(other.getUserLink()); + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -443,7 +452,7 @@ public Builder mergeFrom( break; case 10: { - input.readMessage(getUserLinkFieldBuilder().getBuilder(), extensionRegistry); + name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 @@ -466,119 +475,83 @@ public Builder mergeFrom( private int bitField0_; - private com.google.analytics.admin.v1alpha.UserLink userLink_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - userLinkBuilder_; + private java.lang.Object name_ = ""; /** * * *
-     * Required. The user link to update.
+     * Required. The name of the roll-up property source link to lookup.
+     * Format:
+     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+     * Example: properties/123/rollupPropertySourceLinks/456
      * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * - * @return Whether the userLink field is set. + * @return The name. */ - public boolean hasUserLink() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Required. The user link to update.
-     * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The userLink. - */ - public com.google.analytics.admin.v1alpha.UserLink getUserLink() { - if (userLinkBuilder_ == null) { - return userLink_ == null - ? com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance() - : userLink_; + 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 userLinkBuilder_.getMessage(); + return (java.lang.String) ref; } } /** * * *
-     * Required. The user link to update.
+     * Required. The name of the roll-up property source link to lookup.
+     * Format:
+     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+     * Example: properties/123/rollupPropertySourceLinks/456
      * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * - */ - public Builder setUserLink(com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - userLink_ = value; - } else { - userLinkBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The user link to update.
-     * 
* - * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * @return The bytes for name. */ - public Builder setUserLink( - com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinkBuilder_ == null) { - userLink_ = builderForValue.build(); + 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 { - userLinkBuilder_.setMessage(builderForValue.build()); + return (com.google.protobuf.ByteString) ref; } - bitField0_ |= 0x00000001; - onChanged(); - return this; } /** * * *
-     * Required. The user link to update.
+     * Required. The name of the roll-up property source link to lookup.
+     * Format:
+     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+     * Example: properties/123/rollupPropertySourceLinks/456
      * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * 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 mergeUserLink(com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinkBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && userLink_ != null - && userLink_ != com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance()) { - getUserLinkBuilder().mergeFrom(value); - } else { - userLink_ = value; - } - } else { - userLinkBuilder_.mergeFrom(value); + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -587,20 +560,21 @@ public Builder mergeUserLink(com.google.analytics.admin.v1alpha.UserLink value) * * *
-     * Required. The user link to update.
+     * Required. The name of the roll-up property source link to lookup.
+     * Format:
+     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+     * Example: properties/123/rollupPropertySourceLinks/456
      * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * + * + * @return This builder for chaining. */ - public Builder clearUserLink() { + public Builder clearName() { + name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); - userLink_ = null; - if (userLinkBuilder_ != null) { - userLinkBuilder_.dispose(); - userLinkBuilder_ = null; - } onChanged(); return this; } @@ -608,64 +582,28 @@ public Builder clearUserLink() { * * *
-     * Required. The user link to update.
-     * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder getUserLinkBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getUserLinkFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The user link to update.
+     * Required. The name of the roll-up property source link to lookup.
+     * Format:
+     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+     * Example: properties/123/rollupPropertySourceLinks/456
      * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * - */ - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinkOrBuilder() { - if (userLinkBuilder_ != null) { - return userLinkBuilder_.getMessageOrBuilder(); - } else { - return userLink_ == null - ? com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance() - : userLink_; - } - } - /** - * - * - *
-     * Required. The user link to update.
-     * 
* - * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * @param value The bytes for name to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - getUserLinkFieldBuilder() { - if (userLinkBuilder_ == null) { - userLinkBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder>( - getUserLink(), getParentForChildren(), isClean()); - userLink_ = null; + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return userLinkBuilder_; + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } @java.lang.Override @@ -679,24 +617,26 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateUserLinkRequest) + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) } - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateUserLinkRequest) - private static final com.google.analytics.admin.v1alpha.UpdateUserLinkRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) + private static final com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest + DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateUserLinkRequest(); + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest(); } - public static com.google.analytics.admin.v1alpha.UpdateUserLinkRequest getDefaultInstance() { + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public UpdateUserLinkRequest parsePartialFrom( + public GetRollupPropertySourceLinkRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -715,17 +655,18 @@ public UpdateUserLinkRequest parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateUserLinkRequest getDefaultInstanceForType() { + public com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetRollupPropertySourceLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetRollupPropertySourceLinkRequestOrBuilder.java new file mode 100644 index 000000000000..2dfe1507bae7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetRollupPropertySourceLinkRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 GetRollupPropertySourceLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the roll-up property source link to lookup.
+   * Format:
+   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+   * Example: properties/123/rollupPropertySourceLinks/456
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the roll-up property source link to lookup.
+   * Format:
+   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+   * Example: properties/123/rollupPropertySourceLinks/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/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSubpropertyEventFilterRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSubpropertyEventFilterRequest.java new file mode 100644 index 000000000000..4feef93da8cd --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSubpropertyEventFilterRequest.java @@ -0,0 +1,672 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 GetSubpropertyEventFilter RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest} + */ +public final class GetSubpropertyEventFilterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest) + GetSubpropertyEventFilterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetSubpropertyEventFilterRequest.newBuilder() to construct. + private GetSubpropertyEventFilterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetSubpropertyEventFilterRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSubpropertyEventFilterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest.class, + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Resource name of the subproperty event filter to lookup.
+   * Format:
+   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+   * Example: properties/123/subpropertyEventFilters/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. Resource name of the subproperty event filter to lookup.
+   * Format:
+   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+   * Example: properties/123/subpropertyEventFilters/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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest other = + (com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom( + 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.GetSubpropertyEventFilterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom( + com.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.GetSubpropertyEventFilterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest 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.GetSubpropertyEventFilterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom( + java.io.InputStream 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.GetSubpropertyEventFilterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest + parseDelimitedFrom( + java.io.InputStream 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.GetSubpropertyEventFilterRequest 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.GetSubpropertyEventFilterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.GetSubpropertyEventFilterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 GetSubpropertyEventFilter RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest) + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest.class, + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + 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_GetSubpropertyEventFilterRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest build() { + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest result = + new com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.GetSubpropertyEventFilterRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Resource name of the subproperty event filter to lookup.
+     * Format:
+     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+     * Example: properties/123/subpropertyEventFilters/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. Resource name of the subproperty event filter to lookup.
+     * Format:
+     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+     * Example: properties/123/subpropertyEventFilters/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. Resource name of the subproperty event filter to lookup.
+     * Format:
+     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+     * Example: properties/123/subpropertyEventFilters/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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the subproperty event filter to lookup.
+     * Format:
+     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+     * Example: properties/123/subpropertyEventFilters/456
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the subproperty event filter to lookup.
+     * Format:
+     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+     * Example: properties/123/subpropertyEventFilters/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; + bitField0_ |= 0x00000001; + 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.GetSubpropertyEventFilterRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest) + private static final com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSubpropertyEventFilterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateUserLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSubpropertyEventFilterRequestOrBuilder.java similarity index 53% rename from java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateUserLinkRequestOrBuilder.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSubpropertyEventFilterRequestOrBuilder.java index e05215161dee..64a6c5aef7f4 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateUserLinkRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSubpropertyEventFilterRequestOrBuilder.java @@ -18,49 +18,43 @@ package com.google.analytics.admin.v1alpha; -public interface UpdateUserLinkRequestOrBuilder +public interface GetSubpropertyEventFilterRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateUserLinkRequest) + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest) com.google.protobuf.MessageOrBuilder { /** * * *
-   * Required. The user link to update.
+   * Required. Resource name of the subproperty event filter to lookup.
+   * Format:
+   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+   * Example: properties/123/subpropertyEventFilters/456
    * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * - * @return Whether the userLink field is set. + * @return The name. */ - boolean hasUserLink(); + java.lang.String getName(); /** * * *
-   * Required. The user link to update.
+   * Required. Resource name of the subproperty event filter to lookup.
+   * Format:
+   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+   * Example: properties/123/subpropertyEventFilters/456
    * 
* * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * - * @return The userLink. + * @return The bytes for name. */ - com.google.analytics.admin.v1alpha.UserLink getUserLink(); - /** - * - * - *
-   * Required. The user link to update.
-   * 
- * - * - * .google.analytics.admin.v1alpha.UserLink user_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinkOrBuilder(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksRequest.java similarity index 65% rename from java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequest.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksRequest.java index 126fc516333c..e698fe393203 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksRequest.java @@ -22,22 +22,24 @@ * * *
- * Request message for AuditUserLinks RPC.
+ * Request message for ListRollupPropertySourceLinks RPC.
  * 
* - * Protobuf type {@code google.analytics.admin.v1alpha.AuditUserLinksRequest} + * Protobuf type {@code google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest} */ -public final class AuditUserLinksRequest extends com.google.protobuf.GeneratedMessageV3 +public final class ListRollupPropertySourceLinksRequest + extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AuditUserLinksRequest) - AuditUserLinksRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) + ListRollupPropertySourceLinksRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use AuditUserLinksRequest.newBuilder() to construct. - private AuditUserLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ListRollupPropertySourceLinksRequest.newBuilder() to construct. + private ListRollupPropertySourceLinksRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AuditUserLinksRequest() { + private ListRollupPropertySourceLinksRequest() { parent_ = ""; pageToken_ = ""; } @@ -45,22 +47,22 @@ private AuditUserLinksRequest() { @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AuditUserLinksRequest(); + return new ListRollupPropertySourceLinksRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLinksRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLinksRequest_fieldAccessorTable + .internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AuditUserLinksRequest.class, - com.google.analytics.admin.v1alpha.AuditUserLinksRequest.Builder.class); + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest.class, + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; @@ -71,7 +73,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Example format: accounts/1234
+   * Required. The name of the roll-up property to list roll-up property source
+   * links under. Format: properties/{property_id} Example: properties/1234
    * 
* * @@ -96,7 +99,8 @@ public java.lang.String getParent() { * * *
-   * Required. Example format: accounts/1234
+   * Required. The name of the roll-up property to list roll-up property source
+   * links under. Format: properties/{property_id} Example: properties/1234
    * 
* * @@ -124,13 +128,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of user links to return.
-   * The service may return fewer than this value.
-   * If unspecified, at most 1000 user links will be returned.
-   * The maximum value is 5000; values above 5000 will be coerced to 5000.
+   * Optional. The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages.
+   * 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -147,13 +151,14 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `AuditUserLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `AuditUserLinks` must
-   * match the call that provided the page token.
+   * Optional. A page token, received from a previous
+   * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
+   * subsequent page. When paginating, all other parameters provided to
+   * `ListRollupPropertySourceLinks` must match the call that provided the page
+   * token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -173,13 +178,14 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `AuditUserLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `AuditUserLinks` must
-   * match the call that provided the page token.
+   * Optional. A page token, received from a previous
+   * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
+   * subsequent page. When paginating, all other parameters provided to
+   * `ListRollupPropertySourceLinks` must match the call that provided the page
+   * token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -247,11 +253,11 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.analytics.admin.v1alpha.AuditUserLinksRequest)) { + if (!(obj instanceof com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest)) { return super.equals(obj); } - com.google.analytics.admin.v1alpha.AuditUserLinksRequest other = - (com.google.analytics.admin.v1alpha.AuditUserLinksRequest) obj; + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest other = + (com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) obj; if (!getParent().equals(other.getParent())) return false; if (getPageSize() != other.getPageSize()) return false; @@ -278,71 +284,72 @@ public int hashCode() { return hash; } - public static com.google.analytics.admin.v1alpha.AuditUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.AuditUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( 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.AuditUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.AuditUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( com.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.AuditUserLinksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.AuditUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest 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.AuditUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.analytics.admin.v1alpha.AuditUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( java.io.InputStream 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.AuditUserLinksRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.analytics.admin.v1alpha.AuditUserLinksRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest + parseDelimitedFrom( + java.io.InputStream 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.AuditUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest 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.AuditUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -360,7 +367,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.analytics.admin.v1alpha.AuditUserLinksRequest prototype) { + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -378,31 +385,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for AuditUserLinks RPC.
+   * Request message for ListRollupPropertySourceLinks RPC.
    * 
* - * Protobuf type {@code google.analytics.admin.v1alpha.AuditUserLinksRequest} + * Protobuf type {@code google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AuditUserLinksRequest) - com.google.analytics.admin.v1alpha.AuditUserLinksRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLinksRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLinksRequest_fieldAccessorTable + .internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AuditUserLinksRequest.class, - com.google.analytics.admin.v1alpha.AuditUserLinksRequest.Builder.class); + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest.class, + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest.Builder + .class); } - // Construct using com.google.analytics.admin.v1alpha.AuditUserLinksRequest.newBuilder() + // Construct using + // com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -422,17 +431,20 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_AuditUserLinksRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_descriptor; } @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLinksRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AuditUserLinksRequest.getDefaultInstance(); + public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLinksRequest build() { - com.google.analytics.admin.v1alpha.AuditUserLinksRequest result = buildPartial(); + public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest build() { + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -440,9 +452,9 @@ public com.google.analytics.admin.v1alpha.AuditUserLinksRequest build() { } @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLinksRequest buildPartial() { - com.google.analytics.admin.v1alpha.AuditUserLinksRequest result = - new com.google.analytics.admin.v1alpha.AuditUserLinksRequest(this); + public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest result = + new com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -450,7 +462,8 @@ public com.google.analytics.admin.v1alpha.AuditUserLinksRequest buildPartial() { return result; } - private void buildPartial0(com.google.analytics.admin.v1alpha.AuditUserLinksRequest result) { + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -498,17 +511,21 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AuditUserLinksRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.AuditUserLinksRequest) other); + if (other + instanceof com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AuditUserLinksRequest other) { - if (other == com.google.analytics.admin.v1alpha.AuditUserLinksRequest.getDefaultInstance()) - return this; + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -590,7 +607,8 @@ public Builder mergeFrom( * * *
-     * Required. Example format: accounts/1234
+     * Required. The name of the roll-up property to list roll-up property source
+     * links under. Format: properties/{property_id} Example: properties/1234
      * 
* * @@ -614,7 +632,8 @@ public java.lang.String getParent() { * * *
-     * Required. Example format: accounts/1234
+     * Required. The name of the roll-up property to list roll-up property source
+     * links under. Format: properties/{property_id} Example: properties/1234
      * 
* * @@ -638,7 +657,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. Example format: accounts/1234
+     * Required. The name of the roll-up property to list roll-up property source
+     * links under. Format: properties/{property_id} Example: properties/1234
      * 
* * @@ -661,7 +681,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. Example format: accounts/1234
+     * Required. The name of the roll-up property to list roll-up property source
+     * links under. Format: properties/{property_id} Example: properties/1234
      * 
* * @@ -680,7 +701,8 @@ public Builder clearParent() { * * *
-     * Required. Example format: accounts/1234
+     * Required. The name of the roll-up property to list roll-up property source
+     * links under. Format: properties/{property_id} Example: properties/1234
      * 
* * @@ -706,13 +728,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of user links to return.
-     * The service may return fewer than this value.
-     * If unspecified, at most 1000 user links will be returned.
-     * The maximum value is 5000; values above 5000 will be coerced to 5000.
+     * Optional. The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -724,13 +746,13 @@ public int getPageSize() { * * *
-     * The maximum number of user links to return.
-     * The service may return fewer than this value.
-     * If unspecified, at most 1000 user links will be returned.
-     * The maximum value is 5000; values above 5000 will be coerced to 5000.
+     * Optional. The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -746,13 +768,13 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of user links to return.
-     * The service may return fewer than this value.
-     * If unspecified, at most 1000 user links will be returned.
-     * The maximum value is 5000; values above 5000 will be coerced to 5000.
+     * Optional. The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -768,13 +790,14 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `AuditUserLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `AuditUserLinks` must
-     * match the call that provided the page token.
+     * Optional. A page token, received from a previous
+     * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListRollupPropertySourceLinks` must match the call that provided the page
+     * token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -793,13 +816,14 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `AuditUserLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `AuditUserLinks` must
-     * match the call that provided the page token.
+     * Optional. A page token, received from a previous
+     * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListRollupPropertySourceLinks` must match the call that provided the page
+     * token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -818,13 +842,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `AuditUserLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `AuditUserLinks` must
-     * match the call that provided the page token.
+     * Optional. A page token, received from a previous
+     * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListRollupPropertySourceLinks` must match the call that provided the page
+     * token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -842,13 +867,14 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `AuditUserLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `AuditUserLinks` must
-     * match the call that provided the page token.
+     * Optional. A page token, received from a previous
+     * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListRollupPropertySourceLinks` must match the call that provided the page
+     * token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -862,13 +888,14 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `AuditUserLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `AuditUserLinks` must
-     * match the call that provided the page token.
+     * Optional. A page token, received from a previous
+     * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListRollupPropertySourceLinks` must match the call that provided the page
+     * token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. @@ -895,24 +922,27 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AuditUserLinksRequest) + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) } - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AuditUserLinksRequest) - private static final com.google.analytics.admin.v1alpha.AuditUserLinksRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) + private static final com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest + DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AuditUserLinksRequest(); + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest(); } - public static com.google.analytics.admin.v1alpha.AuditUserLinksRequest getDefaultInstance() { + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public AuditUserLinksRequest parsePartialFrom( + public ListRollupPropertySourceLinksRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -931,17 +961,18 @@ public AuditUserLinksRequest parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.analytics.admin.v1alpha.AuditUserLinksRequest getDefaultInstanceForType() { + public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksRequestOrBuilder.java similarity index 53% rename from java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequestOrBuilder.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksRequestOrBuilder.java index dfd8bda291dd..291a2ecb5d31 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksRequestOrBuilder.java @@ -18,16 +18,17 @@ package com.google.analytics.admin.v1alpha; -public interface AuditUserLinksRequestOrBuilder +public interface ListRollupPropertySourceLinksRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AuditUserLinksRequest) + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) com.google.protobuf.MessageOrBuilder { /** * * *
-   * Required. Example format: accounts/1234
+   * Required. The name of the roll-up property to list roll-up property source
+   * links under. Format: properties/{property_id} Example: properties/1234
    * 
* * @@ -41,7 +42,8 @@ public interface AuditUserLinksRequestOrBuilder * * *
-   * Required. Example format: accounts/1234
+   * Required. The name of the roll-up property to list roll-up property source
+   * links under. Format: properties/{property_id} Example: properties/1234
    * 
* * @@ -56,13 +58,13 @@ public interface AuditUserLinksRequestOrBuilder * * *
-   * The maximum number of user links to return.
-   * The service may return fewer than this value.
-   * If unspecified, at most 1000 user links will be returned.
-   * The maximum value is 5000; values above 5000 will be coerced to 5000.
+   * Optional. The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages.
+   * 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -72,13 +74,14 @@ public interface AuditUserLinksRequestOrBuilder * * *
-   * A page token, received from a previous `AuditUserLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `AuditUserLinks` must
-   * match the call that provided the page token.
+   * Optional. A page token, received from a previous
+   * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
+   * subsequent page. When paginating, all other parameters provided to
+   * `ListRollupPropertySourceLinks` must match the call that provided the page
+   * token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -87,13 +90,14 @@ public interface AuditUserLinksRequestOrBuilder * * *
-   * A page token, received from a previous `AuditUserLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `AuditUserLinks` must
-   * match the call that provided the page token.
+   * Optional. A page token, received from a previous
+   * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
+   * subsequent page. When paginating, all other parameters provided to
+   * `ListRollupPropertySourceLinks` must match the call that provided the page
+   * token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksResponse.java new file mode 100644 index 000000000000..b2f92c7ffaa2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksResponse.java @@ -0,0 +1,1221 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 ListRollupPropertySourceLinks RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse} + */ +public final class ListRollupPropertySourceLinksResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse) + ListRollupPropertySourceLinksResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListRollupPropertySourceLinksResponse.newBuilder() to construct. + private ListRollupPropertySourceLinksResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListRollupPropertySourceLinksResponse() { + rollupPropertySourceLinks_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListRollupPropertySourceLinksResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse.class, + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse.Builder.class); + } + + public static final int ROLLUP_PROPERTY_SOURCE_LINKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + rollupPropertySourceLinks_; + /** + * + * + *
+   * List of RollupPropertySourceLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + @java.lang.Override + public java.util.List + getRollupPropertySourceLinksList() { + return rollupPropertySourceLinks_; + } + /** + * + * + *
+   * List of RollupPropertySourceLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> + getRollupPropertySourceLinksOrBuilderList() { + return rollupPropertySourceLinks_; + } + /** + * + * + *
+   * List of RollupPropertySourceLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + @java.lang.Override + public int getRollupPropertySourceLinksCount() { + return rollupPropertySourceLinks_.size(); + } + /** + * + * + *
+   * List of RollupPropertySourceLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLinks( + int index) { + return rollupPropertySourceLinks_.get(index); + } + /** + * + * + *
+   * List of RollupPropertySourceLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder + getRollupPropertySourceLinksOrBuilder(int index) { + return rollupPropertySourceLinks_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + 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 < rollupPropertySourceLinks_.size(); i++) { + output.writeMessage(1, rollupPropertySourceLinks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < rollupPropertySourceLinks_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, rollupPropertySourceLinks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse other = + (com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse) obj; + + if (!getRollupPropertySourceLinksList().equals(other.getRollupPropertySourceLinksList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRollupPropertySourceLinksCount() > 0) { + hash = (37 * hash) + ROLLUP_PROPERTY_SOURCE_LINKS_FIELD_NUMBER; + hash = (53 * hash) + getRollupPropertySourceLinksList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom( + 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.ListRollupPropertySourceLinksResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom( + com.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.ListRollupPropertySourceLinksResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse 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.ListRollupPropertySourceLinksResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom( + java.io.InputStream 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.ListRollupPropertySourceLinksResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse + parseDelimitedFrom( + java.io.InputStream 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.ListRollupPropertySourceLinksResponse 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.ListRollupPropertySourceLinksResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ListRollupPropertySourceLinksResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ListRollupPropertySourceLinks RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse) + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse.class, + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (rollupPropertySourceLinksBuilder_ == null) { + rollupPropertySourceLinks_ = java.util.Collections.emptyList(); + } else { + rollupPropertySourceLinks_ = null; + rollupPropertySourceLinksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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_ListRollupPropertySourceLinksResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse build() { + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse result = + new com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse result) { + if (rollupPropertySourceLinksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + rollupPropertySourceLinks_ = + java.util.Collections.unmodifiableList(rollupPropertySourceLinks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rollupPropertySourceLinks_ = rollupPropertySourceLinks_; + } else { + result.rollupPropertySourceLinks_ = rollupPropertySourceLinksBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.ListRollupPropertySourceLinksResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse + .getDefaultInstance()) return this; + if (rollupPropertySourceLinksBuilder_ == null) { + if (!other.rollupPropertySourceLinks_.isEmpty()) { + if (rollupPropertySourceLinks_.isEmpty()) { + rollupPropertySourceLinks_ = other.rollupPropertySourceLinks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.addAll(other.rollupPropertySourceLinks_); + } + onChanged(); + } + } else { + if (!other.rollupPropertySourceLinks_.isEmpty()) { + if (rollupPropertySourceLinksBuilder_.isEmpty()) { + rollupPropertySourceLinksBuilder_.dispose(); + rollupPropertySourceLinksBuilder_ = null; + rollupPropertySourceLinks_ = other.rollupPropertySourceLinks_; + bitField0_ = (bitField0_ & ~0x00000001); + rollupPropertySourceLinksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRollupPropertySourceLinksFieldBuilder() + : null; + } else { + rollupPropertySourceLinksBuilder_.addAllMessages(other.rollupPropertySourceLinks_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.RollupPropertySourceLink m = + input.readMessage( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.parser(), + extensionRegistry); + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.add(m); + } else { + rollupPropertySourceLinksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + rollupPropertySourceLinks_ = java.util.Collections.emptyList(); + + private void ensureRollupPropertySourceLinksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + rollupPropertySourceLinks_ = + new java.util.ArrayList( + rollupPropertySourceLinks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> + rollupPropertySourceLinksBuilder_; + + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public java.util.List + getRollupPropertySourceLinksList() { + if (rollupPropertySourceLinksBuilder_ == null) { + return java.util.Collections.unmodifiableList(rollupPropertySourceLinks_); + } else { + return rollupPropertySourceLinksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public int getRollupPropertySourceLinksCount() { + if (rollupPropertySourceLinksBuilder_ == null) { + return rollupPropertySourceLinks_.size(); + } else { + return rollupPropertySourceLinksBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLinks( + int index) { + if (rollupPropertySourceLinksBuilder_ == null) { + return rollupPropertySourceLinks_.get(index); + } else { + return rollupPropertySourceLinksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public Builder setRollupPropertySourceLinks( + int index, com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { + if (rollupPropertySourceLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.set(index, value); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public Builder setRollupPropertySourceLinks( + int index, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder builderForValue) { + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.set(index, builderForValue.build()); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public Builder addRollupPropertySourceLinks( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { + if (rollupPropertySourceLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.add(value); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public Builder addRollupPropertySourceLinks( + int index, com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { + if (rollupPropertySourceLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.add(index, value); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public Builder addRollupPropertySourceLinks( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder builderForValue) { + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.add(builderForValue.build()); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public Builder addRollupPropertySourceLinks( + int index, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder builderForValue) { + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.add(index, builderForValue.build()); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public Builder addAllRollupPropertySourceLinks( + java.lang.Iterable + values) { + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rollupPropertySourceLinks_); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public Builder clearRollupPropertySourceLinks() { + if (rollupPropertySourceLinksBuilder_ == null) { + rollupPropertySourceLinks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public Builder removeRollupPropertySourceLinks(int index) { + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.remove(index); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder + getRollupPropertySourceLinksBuilder(int index) { + return getRollupPropertySourceLinksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder + getRollupPropertySourceLinksOrBuilder(int index) { + if (rollupPropertySourceLinksBuilder_ == null) { + return rollupPropertySourceLinks_.get(index); + } else { + return rollupPropertySourceLinksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> + getRollupPropertySourceLinksOrBuilderList() { + if (rollupPropertySourceLinksBuilder_ != null) { + return rollupPropertySourceLinksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rollupPropertySourceLinks_); + } + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder + addRollupPropertySourceLinksBuilder() { + return getRollupPropertySourceLinksFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance()); + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder + addRollupPropertySourceLinksBuilder(int index) { + return getRollupPropertySourceLinksFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance()); + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public java.util.List + getRollupPropertySourceLinksBuilderList() { + return getRollupPropertySourceLinksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> + getRollupPropertySourceLinksFieldBuilder() { + if (rollupPropertySourceLinksBuilder_ == null) { + rollupPropertySourceLinksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder>( + rollupPropertySourceLinks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + rollupPropertySourceLinks_ = null; + } + return rollupPropertySourceLinksBuilder_; + } + + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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.ListRollupPropertySourceLinksResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse) + private static final com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRollupPropertySourceLinksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksResponseOrBuilder.java similarity index 54% rename from java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponseOrBuilder.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksResponseOrBuilder.java index c292ccf09a55..e4275d113c65 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponseOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksResponseOrBuilder.java @@ -18,67 +18,75 @@ package com.google.analytics.admin.v1alpha; -public interface AuditUserLinksResponseOrBuilder +public interface ListRollupPropertySourceLinksResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AuditUserLinksResponse) + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse) com.google.protobuf.MessageOrBuilder { /** * * *
-   * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-   * order.
+   * List of RollupPropertySourceLinks.
    * 
* - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * */ - java.util.List getUserLinksList(); + java.util.List + getRollupPropertySourceLinksList(); /** * * *
-   * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-   * order.
+   * List of RollupPropertySourceLinks.
    * 
* - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * */ - com.google.analytics.admin.v1alpha.AuditUserLink getUserLinks(int index); + com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLinks( + int index); /** * * *
-   * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-   * order.
+   * List of RollupPropertySourceLinks.
    * 
* - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * */ - int getUserLinksCount(); + int getRollupPropertySourceLinksCount(); /** * * *
-   * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-   * order.
+   * List of RollupPropertySourceLinks.
    * 
* - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * */ - java.util.List - getUserLinksOrBuilderList(); + java.util.List + getRollupPropertySourceLinksOrBuilderList(); /** * * *
-   * List of AuditUserLinks. These will be ordered stably, but in an arbitrary
-   * order.
+   * List of RollupPropertySourceLinks.
    * 
* - * repeated .google.analytics.admin.v1alpha.AuditUserLink user_links = 1; + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * */ - com.google.analytics.admin.v1alpha.AuditUserLinkOrBuilder getUserLinksOrBuilder(int index); + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder + getRollupPropertySourceLinksOrBuilder(int index); /** * diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequest.java index 0d1d990ca88d..5c90aab6e190 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequest.java @@ -74,9 +74,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Format:
-   * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
-   * Example: properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema
+   * Required. The DataStream resource to list schemas for.
+   * Format:
+   * properties/{property_id}/dataStreams/{dataStream}
+   * Example: properties/1234/dataStreams/5678
    * 
* * @@ -101,9 +102,10 @@ public java.lang.String getParent() { * * *
-   * Required. Format:
-   * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
-   * Example: properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema
+   * Required. The DataStream resource to list schemas for.
+   * Format:
+   * properties/{property_id}/dataStreams/{dataStream}
+   * Example: properties/1234/dataStreams/5678
    * 
* * @@ -621,9 +623,10 @@ public Builder mergeFrom( * * *
-     * Required. Format:
-     * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
-     * Example: properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema
+     * Required. The DataStream resource to list schemas for.
+     * Format:
+     * properties/{property_id}/dataStreams/{dataStream}
+     * Example: properties/1234/dataStreams/5678
      * 
* * @@ -647,9 +650,10 @@ public java.lang.String getParent() { * * *
-     * Required. Format:
-     * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
-     * Example: properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema
+     * Required. The DataStream resource to list schemas for.
+     * Format:
+     * properties/{property_id}/dataStreams/{dataStream}
+     * Example: properties/1234/dataStreams/5678
      * 
* * @@ -673,9 +677,10 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. Format:
-     * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
-     * Example: properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema
+     * Required. The DataStream resource to list schemas for.
+     * Format:
+     * properties/{property_id}/dataStreams/{dataStream}
+     * Example: properties/1234/dataStreams/5678
      * 
* * @@ -698,9 +703,10 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. Format:
-     * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
-     * Example: properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema
+     * Required. The DataStream resource to list schemas for.
+     * Format:
+     * properties/{property_id}/dataStreams/{dataStream}
+     * Example: properties/1234/dataStreams/5678
      * 
* * @@ -719,9 +725,10 @@ public Builder clearParent() { * * *
-     * Required. Format:
-     * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
-     * Example: properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema
+     * Required. The DataStream resource to list schemas for.
+     * Format:
+     * properties/{property_id}/dataStreams/{dataStream}
+     * Example: properties/1234/dataStreams/5678
      * 
* * diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequestOrBuilder.java index c0ec5cfbe90d..8a08ddbc335c 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequestOrBuilder.java @@ -27,9 +27,10 @@ public interface ListSKAdNetworkConversionValueSchemasRequestOrBuilder * * *
-   * Required. Format:
-   * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
-   * Example: properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema
+   * Required. The DataStream resource to list schemas for.
+   * Format:
+   * properties/{property_id}/dataStreams/{dataStream}
+   * Example: properties/1234/dataStreams/5678
    * 
* * @@ -43,9 +44,10 @@ public interface ListSKAdNetworkConversionValueSchemasRequestOrBuilder * * *
-   * Required. Format:
-   * properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
-   * Example: properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema
+   * Required. The DataStream resource to list schemas for.
+   * Format:
+   * properties/{property_id}/dataStreams/{dataStream}
+   * Example: properties/1234/dataStreams/5678
    * 
* * diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersRequest.java similarity index 67% rename from java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequest.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersRequest.java index bb1dfbf39dbd..f36309b40ff9 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersRequest.java @@ -22,22 +22,23 @@ * * *
- * Request message for ListUserLinks RPC.
+ * Request message for ListSubpropertyEventFilters RPC.
  * 
* - * Protobuf type {@code google.analytics.admin.v1alpha.ListUserLinksRequest} + * Protobuf type {@code google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest} */ -public final class ListUserLinksRequest extends com.google.protobuf.GeneratedMessageV3 +public final class ListSubpropertyEventFiltersRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListUserLinksRequest) - ListUserLinksRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) + ListSubpropertyEventFiltersRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use ListUserLinksRequest.newBuilder() to construct. - private ListUserLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ListSubpropertyEventFiltersRequest.newBuilder() to construct. + private ListSubpropertyEventFiltersRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListUserLinksRequest() { + private ListSubpropertyEventFiltersRequest() { parent_ = ""; pageToken_ = ""; } @@ -45,22 +46,22 @@ private ListUserLinksRequest() { @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListUserLinksRequest(); + return new ListSubpropertyEventFiltersRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListUserLinksRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListUserLinksRequest_fieldAccessorTable + .internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListUserLinksRequest.class, - com.google.analytics.admin.v1alpha.ListUserLinksRequest.Builder.class); + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest.class, + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; @@ -71,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Example format: accounts/1234
+   * Required. Resource name of the ordinary property.
+   * Format: properties/property_id
+   * Example: properties/123
    * 
* * @@ -96,7 +99,9 @@ public java.lang.String getParent() { * * *
-   * Required. Example format: accounts/1234
+   * Required. Resource name of the ordinary property.
+   * Format: properties/property_id
+   * Example: properties/123
    * 
* * @@ -124,13 +129,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of user links to return.
-   * The service may return fewer than this value.
-   * If unspecified, at most 200 user links will be returned.
-   * The maximum value is 500; values above 500 will be coerced to 500.
+   * Optional. The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -147,13 +152,14 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListUserLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListUserLinks` must
-   * match the call that provided the page token.
+   * Optional. A page token, received from a previous
+   * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
+   * page. When paginating, all other parameters provided to
+   * `ListSubpropertyEventFilters` must match the call that provided the page
+   * token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -173,13 +179,14 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListUserLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListUserLinks` must
-   * match the call that provided the page token.
+   * Optional. A page token, received from a previous
+   * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
+   * page. When paginating, all other parameters provided to
+   * `ListSubpropertyEventFilters` must match the call that provided the page
+   * token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -247,11 +254,11 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.analytics.admin.v1alpha.ListUserLinksRequest)) { + if (!(obj instanceof com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest)) { return super.equals(obj); } - com.google.analytics.admin.v1alpha.ListUserLinksRequest other = - (com.google.analytics.admin.v1alpha.ListUserLinksRequest) obj; + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest other = + (com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) obj; if (!getParent().equals(other.getParent())) return false; if (getPageSize() != other.getPageSize()) return false; @@ -278,71 +285,72 @@ public int hashCode() { return hash; } - public static com.google.analytics.admin.v1alpha.ListUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.ListUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( 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.ListUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.ListUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( com.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.ListUserLinksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.ListUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest 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.ListUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.analytics.admin.v1alpha.ListUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( java.io.InputStream 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.ListUserLinksRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.analytics.admin.v1alpha.ListUserLinksRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest + parseDelimitedFrom( + java.io.InputStream 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.ListUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest 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.ListUserLinksRequest parseFrom( + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -360,7 +368,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.analytics.admin.v1alpha.ListUserLinksRequest prototype) { + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -378,31 +386,32 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for ListUserLinks RPC.
+   * Request message for ListSubpropertyEventFilters RPC.
    * 
* - * Protobuf type {@code google.analytics.admin.v1alpha.ListUserLinksRequest} + * Protobuf type {@code google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListUserLinksRequest) - com.google.analytics.admin.v1alpha.ListUserLinksRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListUserLinksRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListUserLinksRequest_fieldAccessorTable + .internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListUserLinksRequest.class, - com.google.analytics.admin.v1alpha.ListUserLinksRequest.Builder.class); + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest.class, + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest.Builder.class); } - // Construct using com.google.analytics.admin.v1alpha.ListUserLinksRequest.newBuilder() + // Construct using + // com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @@ -422,17 +431,19 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListUserLinksRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_descriptor; } @java.lang.Override - public com.google.analytics.admin.v1alpha.ListUserLinksRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListUserLinksRequest.getDefaultInstance(); + public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.analytics.admin.v1alpha.ListUserLinksRequest build() { - com.google.analytics.admin.v1alpha.ListUserLinksRequest result = buildPartial(); + public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest build() { + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -440,9 +451,9 @@ public com.google.analytics.admin.v1alpha.ListUserLinksRequest build() { } @java.lang.Override - public com.google.analytics.admin.v1alpha.ListUserLinksRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListUserLinksRequest result = - new com.google.analytics.admin.v1alpha.ListUserLinksRequest(this); + public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest result = + new com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -450,7 +461,8 @@ public com.google.analytics.admin.v1alpha.ListUserLinksRequest buildPartial() { return result; } - private void buildPartial0(com.google.analytics.admin.v1alpha.ListUserLinksRequest result) { + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -498,17 +510,20 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListUserLinksRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListUserLinksRequest) other); + if (other instanceof com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListUserLinksRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListUserLinksRequest.getDefaultInstance()) - return this; + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -590,7 +605,9 @@ public Builder mergeFrom( * * *
-     * Required. Example format: accounts/1234
+     * Required. Resource name of the ordinary property.
+     * Format: properties/property_id
+     * Example: properties/123
      * 
* * @@ -614,7 +631,9 @@ public java.lang.String getParent() { * * *
-     * Required. Example format: accounts/1234
+     * Required. Resource name of the ordinary property.
+     * Format: properties/property_id
+     * Example: properties/123
      * 
* * @@ -638,7 +657,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. Example format: accounts/1234
+     * Required. Resource name of the ordinary property.
+     * Format: properties/property_id
+     * Example: properties/123
      * 
* * @@ -661,7 +682,9 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. Example format: accounts/1234
+     * Required. Resource name of the ordinary property.
+     * Format: properties/property_id
+     * Example: properties/123
      * 
* * @@ -680,7 +703,9 @@ public Builder clearParent() { * * *
-     * Required. Example format: accounts/1234
+     * Required. Resource name of the ordinary property.
+     * Format: properties/property_id
+     * Example: properties/123
      * 
* * @@ -706,13 +731,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of user links to return.
-     * The service may return fewer than this value.
-     * If unspecified, at most 200 user links will be returned.
-     * The maximum value is 500; values above 500 will be coerced to 500.
+     * Optional. The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -724,13 +749,13 @@ public int getPageSize() { * * *
-     * The maximum number of user links to return.
-     * The service may return fewer than this value.
-     * If unspecified, at most 200 user links will be returned.
-     * The maximum value is 500; values above 500 will be coerced to 500.
+     * Optional. The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -746,13 +771,13 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of user links to return.
-     * The service may return fewer than this value.
-     * If unspecified, at most 200 user links will be returned.
-     * The maximum value is 500; values above 500 will be coerced to 500.
+     * Optional. The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -768,13 +793,14 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListUserLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListUserLinks` must
-     * match the call that provided the page token.
+     * Optional. A page token, received from a previous
+     * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
+     * page. When paginating, all other parameters provided to
+     * `ListSubpropertyEventFilters` must match the call that provided the page
+     * token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -793,13 +819,14 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListUserLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListUserLinks` must
-     * match the call that provided the page token.
+     * Optional. A page token, received from a previous
+     * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
+     * page. When paginating, all other parameters provided to
+     * `ListSubpropertyEventFilters` must match the call that provided the page
+     * token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -818,13 +845,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListUserLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListUserLinks` must
-     * match the call that provided the page token.
+     * Optional. A page token, received from a previous
+     * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
+     * page. When paginating, all other parameters provided to
+     * `ListSubpropertyEventFilters` must match the call that provided the page
+     * token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -842,13 +870,14 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListUserLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListUserLinks` must
-     * match the call that provided the page token.
+     * Optional. A page token, received from a previous
+     * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
+     * page. When paginating, all other parameters provided to
+     * `ListSubpropertyEventFilters` must match the call that provided the page
+     * token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -862,13 +891,14 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListUserLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListUserLinks` must
-     * match the call that provided the page token.
+     * Optional. A page token, received from a previous
+     * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
+     * page. When paginating, all other parameters provided to
+     * `ListSubpropertyEventFilters` must match the call that provided the page
+     * token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. @@ -895,24 +925,26 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListUserLinksRequest) + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) } - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListUserLinksRequest) - private static final com.google.analytics.admin.v1alpha.ListUserLinksRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) + private static final com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest + DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListUserLinksRequest(); + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest(); } - public static com.google.analytics.admin.v1alpha.ListUserLinksRequest getDefaultInstance() { + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public ListUserLinksRequest parsePartialFrom( + public ListSubpropertyEventFiltersRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -931,17 +963,18 @@ public ListUserLinksRequest parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.analytics.admin.v1alpha.ListUserLinksRequest getDefaultInstanceForType() { + public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersRequestOrBuilder.java similarity index 54% rename from java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequestOrBuilder.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersRequestOrBuilder.java index fdf4b7470efc..1d0f66132f19 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersRequestOrBuilder.java @@ -18,16 +18,18 @@ package com.google.analytics.admin.v1alpha; -public interface ListUserLinksRequestOrBuilder +public interface ListSubpropertyEventFiltersRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListUserLinksRequest) + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) com.google.protobuf.MessageOrBuilder { /** * * *
-   * Required. Example format: accounts/1234
+   * Required. Resource name of the ordinary property.
+   * Format: properties/property_id
+   * Example: properties/123
    * 
* * @@ -41,7 +43,9 @@ public interface ListUserLinksRequestOrBuilder * * *
-   * Required. Example format: accounts/1234
+   * Required. Resource name of the ordinary property.
+   * Format: properties/property_id
+   * Example: properties/123
    * 
* * @@ -56,13 +60,13 @@ public interface ListUserLinksRequestOrBuilder * * *
-   * The maximum number of user links to return.
-   * The service may return fewer than this value.
-   * If unspecified, at most 200 user links will be returned.
-   * The maximum value is 500; values above 500 will be coerced to 500.
+   * Optional. The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages. 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; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -72,13 +76,14 @@ public interface ListUserLinksRequestOrBuilder * * *
-   * A page token, received from a previous `ListUserLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListUserLinks` must
-   * match the call that provided the page token.
+   * Optional. A page token, received from a previous
+   * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
+   * page. When paginating, all other parameters provided to
+   * `ListSubpropertyEventFilters` must match the call that provided the page
+   * token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -87,13 +92,14 @@ public interface ListUserLinksRequestOrBuilder * * *
-   * A page token, received from a previous `ListUserLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListUserLinks` must
-   * match the call that provided the page token.
+   * Optional. A page token, received from a previous
+   * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
+   * page. When paginating, all other parameters provided to
+   * `ListSubpropertyEventFilters` must match the call that provided the page
+   * token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersResponse.java new file mode 100644 index 000000000000..7c86f8b68da9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersResponse.java @@ -0,0 +1,1217 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 ListSubpropertyEventFilter RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse} + */ +public final class ListSubpropertyEventFiltersResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse) + ListSubpropertyEventFiltersResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSubpropertyEventFiltersResponse.newBuilder() to construct. + private ListSubpropertyEventFiltersResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSubpropertyEventFiltersResponse() { + subpropertyEventFilters_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSubpropertyEventFiltersResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse.class, + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse.Builder.class); + } + + public static final int SUBPROPERTY_EVENT_FILTERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + subpropertyEventFilters_; + /** + * + * + *
+   * List of subproperty event filters.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + @java.lang.Override + public java.util.List + getSubpropertyEventFiltersList() { + return subpropertyEventFilters_; + } + /** + * + * + *
+   * List of subproperty event filters.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + getSubpropertyEventFiltersOrBuilderList() { + return subpropertyEventFilters_; + } + /** + * + * + *
+   * List of subproperty event filters.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + @java.lang.Override + public int getSubpropertyEventFiltersCount() { + return subpropertyEventFilters_.size(); + } + /** + * + * + *
+   * List of subproperty event filters.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilters( + int index) { + return subpropertyEventFilters_.get(index); + } + /** + * + * + *
+   * List of subproperty event filters.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFiltersOrBuilder(int index) { + return subpropertyEventFilters_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + 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 < subpropertyEventFilters_.size(); i++) { + output.writeMessage(1, subpropertyEventFilters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < subpropertyEventFilters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, subpropertyEventFilters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse other = + (com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse) obj; + + if (!getSubpropertyEventFiltersList().equals(other.getSubpropertyEventFiltersList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSubpropertyEventFiltersCount() > 0) { + hash = (37 * hash) + SUBPROPERTY_EVENT_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getSubpropertyEventFiltersList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom( + 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.ListSubpropertyEventFiltersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom( + com.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.ListSubpropertyEventFiltersResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse 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.ListSubpropertyEventFiltersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom( + java.io.InputStream 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.ListSubpropertyEventFiltersResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse + parseDelimitedFrom( + java.io.InputStream 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.ListSubpropertyEventFiltersResponse 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.ListSubpropertyEventFiltersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ListSubpropertyEventFiltersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ListSubpropertyEventFilter RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse) + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse.class, + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (subpropertyEventFiltersBuilder_ == null) { + subpropertyEventFilters_ = java.util.Collections.emptyList(); + } else { + subpropertyEventFilters_ = null; + subpropertyEventFiltersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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_ListSubpropertyEventFiltersResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse build() { + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse result = + new com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse result) { + if (subpropertyEventFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + subpropertyEventFilters_ = + java.util.Collections.unmodifiableList(subpropertyEventFilters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.subpropertyEventFilters_ = subpropertyEventFilters_; + } else { + result.subpropertyEventFilters_ = subpropertyEventFiltersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.ListSubpropertyEventFiltersResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse + .getDefaultInstance()) return this; + if (subpropertyEventFiltersBuilder_ == null) { + if (!other.subpropertyEventFilters_.isEmpty()) { + if (subpropertyEventFilters_.isEmpty()) { + subpropertyEventFilters_ = other.subpropertyEventFilters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSubpropertyEventFiltersIsMutable(); + subpropertyEventFilters_.addAll(other.subpropertyEventFilters_); + } + onChanged(); + } + } else { + if (!other.subpropertyEventFilters_.isEmpty()) { + if (subpropertyEventFiltersBuilder_.isEmpty()) { + subpropertyEventFiltersBuilder_.dispose(); + subpropertyEventFiltersBuilder_ = null; + subpropertyEventFilters_ = other.subpropertyEventFilters_; + bitField0_ = (bitField0_ & ~0x00000001); + subpropertyEventFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSubpropertyEventFiltersFieldBuilder() + : null; + } else { + subpropertyEventFiltersBuilder_.addAllMessages(other.subpropertyEventFilters_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.SubpropertyEventFilter m = + input.readMessage( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.parser(), + extensionRegistry); + if (subpropertyEventFiltersBuilder_ == null) { + ensureSubpropertyEventFiltersIsMutable(); + subpropertyEventFilters_.add(m); + } else { + subpropertyEventFiltersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + subpropertyEventFilters_ = java.util.Collections.emptyList(); + + private void ensureSubpropertyEventFiltersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + subpropertyEventFilters_ = + new java.util.ArrayList( + subpropertyEventFilters_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + subpropertyEventFiltersBuilder_; + + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public java.util.List + getSubpropertyEventFiltersList() { + if (subpropertyEventFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(subpropertyEventFilters_); + } else { + return subpropertyEventFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public int getSubpropertyEventFiltersCount() { + if (subpropertyEventFiltersBuilder_ == null) { + return subpropertyEventFilters_.size(); + } else { + return subpropertyEventFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilters( + int index) { + if (subpropertyEventFiltersBuilder_ == null) { + return subpropertyEventFilters_.get(index); + } else { + return subpropertyEventFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public Builder setSubpropertyEventFilters( + int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { + if (subpropertyEventFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubpropertyEventFiltersIsMutable(); + subpropertyEventFilters_.set(index, value); + onChanged(); + } else { + subpropertyEventFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public Builder setSubpropertyEventFilters( + int index, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder builderForValue) { + if (subpropertyEventFiltersBuilder_ == null) { + ensureSubpropertyEventFiltersIsMutable(); + subpropertyEventFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + subpropertyEventFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public Builder addSubpropertyEventFilters( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { + if (subpropertyEventFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubpropertyEventFiltersIsMutable(); + subpropertyEventFilters_.add(value); + onChanged(); + } else { + subpropertyEventFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public Builder addSubpropertyEventFilters( + int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { + if (subpropertyEventFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubpropertyEventFiltersIsMutable(); + subpropertyEventFilters_.add(index, value); + onChanged(); + } else { + subpropertyEventFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public Builder addSubpropertyEventFilters( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder builderForValue) { + if (subpropertyEventFiltersBuilder_ == null) { + ensureSubpropertyEventFiltersIsMutable(); + subpropertyEventFilters_.add(builderForValue.build()); + onChanged(); + } else { + subpropertyEventFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public Builder addSubpropertyEventFilters( + int index, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder builderForValue) { + if (subpropertyEventFiltersBuilder_ == null) { + ensureSubpropertyEventFiltersIsMutable(); + subpropertyEventFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + subpropertyEventFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public Builder addAllSubpropertyEventFilters( + java.lang.Iterable + values) { + if (subpropertyEventFiltersBuilder_ == null) { + ensureSubpropertyEventFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subpropertyEventFilters_); + onChanged(); + } else { + subpropertyEventFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public Builder clearSubpropertyEventFilters() { + if (subpropertyEventFiltersBuilder_ == null) { + subpropertyEventFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + subpropertyEventFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public Builder removeSubpropertyEventFilters(int index) { + if (subpropertyEventFiltersBuilder_ == null) { + ensureSubpropertyEventFiltersIsMutable(); + subpropertyEventFilters_.remove(index); + onChanged(); + } else { + subpropertyEventFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder + getSubpropertyEventFiltersBuilder(int index) { + return getSubpropertyEventFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFiltersOrBuilder(int index) { + if (subpropertyEventFiltersBuilder_ == null) { + return subpropertyEventFilters_.get(index); + } else { + return subpropertyEventFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + getSubpropertyEventFiltersOrBuilderList() { + if (subpropertyEventFiltersBuilder_ != null) { + return subpropertyEventFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subpropertyEventFilters_); + } + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder + addSubpropertyEventFiltersBuilder() { + return getSubpropertyEventFiltersFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance()); + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder + addSubpropertyEventFiltersBuilder(int index) { + return getSubpropertyEventFiltersFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance()); + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public java.util.List + getSubpropertyEventFiltersBuilderList() { + return getSubpropertyEventFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + getSubpropertyEventFiltersFieldBuilder() { + if (subpropertyEventFiltersBuilder_ == null) { + subpropertyEventFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder>( + subpropertyEventFilters_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + subpropertyEventFilters_ = null; + } + return subpropertyEventFiltersBuilder_; + } + + 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; + bitField0_ |= 0x00000002; + 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(); + bitField0_ = (bitField0_ & ~0x00000002); + 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; + bitField0_ |= 0x00000002; + 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.ListSubpropertyEventFiltersResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse) + private static final com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSubpropertyEventFiltersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersResponseOrBuilder.java similarity index 50% rename from java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponseOrBuilder.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersResponseOrBuilder.java index bcf8b7a64aeb..e580e0ddee87 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponseOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersResponseOrBuilder.java @@ -18,69 +18,81 @@ package com.google.analytics.admin.v1alpha; -public interface ListUserLinksResponseOrBuilder +public interface ListSubpropertyEventFiltersResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListUserLinksResponse) + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse) com.google.protobuf.MessageOrBuilder { /** * * *
-   * List of UserLinks. These will be ordered stably, but in an arbitrary order.
+   * List of subproperty event filters.
    * 
* - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * */ - java.util.List getUserLinksList(); + java.util.List + getSubpropertyEventFiltersList(); /** * * *
-   * List of UserLinks. These will be ordered stably, but in an arbitrary order.
+   * List of subproperty event filters.
    * 
* - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * */ - com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index); + com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilters(int index); /** * * *
-   * List of UserLinks. These will be ordered stably, but in an arbitrary order.
+   * List of subproperty event filters.
    * 
* - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * */ - int getUserLinksCount(); + int getSubpropertyEventFiltersCount(); /** * * *
-   * List of UserLinks. These will be ordered stably, but in an arbitrary order.
+   * List of subproperty event filters.
    * 
* - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * */ - java.util.List - getUserLinksOrBuilderList(); + java.util.List + getSubpropertyEventFiltersOrBuilderList(); /** * * *
-   * List of UserLinks. These will be ordered stably, but in an arbitrary order.
+   * List of subproperty event filters.
    * 
* - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * */ - com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index); + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFiltersOrBuilder(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.
+   * 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; @@ -92,8 +104,8 @@ public interface ListUserLinksResponseOrBuilder * * *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
+   * 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/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponse.java deleted file mode 100644 index b5e70009d01a..000000000000 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponse.java +++ /dev/null @@ -1,1127 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 ListUserLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListUserLinksResponse} - */ -public final class ListUserLinksResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListUserLinksResponse) - ListUserLinksResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListUserLinksResponse.newBuilder() to construct. - private ListUserLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListUserLinksResponse() { - userLinks_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListUserLinksResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListUserLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListUserLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListUserLinksResponse.class, - com.google.analytics.admin.v1alpha.ListUserLinksResponse.Builder.class); - } - - public static final int USER_LINKS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List userLinks_; - /** - * - * - *
-   * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public java.util.List getUserLinksList() { - return userLinks_; - } - /** - * - * - *
-   * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public java.util.List - getUserLinksOrBuilderList() { - return userLinks_; - } - /** - * - * - *
-   * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public int getUserLinksCount() { - return userLinks_.size(); - } - /** - * - * - *
-   * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index) { - return userLinks_.get(index); - } - /** - * - * - *
-   * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index) { - return userLinks_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - 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 < userLinks_.size(); i++) { - output.writeMessage(1, userLinks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < userLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, userLinks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.ListUserLinksResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListUserLinksResponse other = - (com.google.analytics.admin.v1alpha.ListUserLinksResponse) obj; - - if (!getUserLinksList().equals(other.getUserLinksList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getUserLinksCount() > 0) { - hash = (37 * hash) + USER_LINKS_FIELD_NUMBER; - hash = (53 * hash) + getUserLinksList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksResponse parseFrom( - 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.ListUserLinksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksResponse parseFrom( - com.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.ListUserLinksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksResponse 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.ListUserLinksResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksResponse parseFrom( - java.io.InputStream 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.ListUserLinksResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksResponse parseDelimitedFrom( - java.io.InputStream 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.ListUserLinksResponse 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.ListUserLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.ListUserLinksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 ListUserLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListUserLinksResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListUserLinksResponse) - com.google.analytics.admin.v1alpha.ListUserLinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListUserLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_ListUserLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListUserLinksResponse.class, - com.google.analytics.admin.v1alpha.ListUserLinksResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListUserLinksResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (userLinksBuilder_ == null) { - userLinks_ = java.util.Collections.emptyList(); - } else { - userLinks_ = null; - userLinksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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_ListUserLinksResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListUserLinksResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListUserLinksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListUserLinksResponse build() { - com.google.analytics.admin.v1alpha.ListUserLinksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListUserLinksResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListUserLinksResponse result = - new com.google.analytics.admin.v1alpha.ListUserLinksResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.analytics.admin.v1alpha.ListUserLinksResponse result) { - if (userLinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - userLinks_ = java.util.Collections.unmodifiableList(userLinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.userLinks_ = userLinks_; - } else { - result.userLinks_ = userLinksBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListUserLinksResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.ListUserLinksResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListUserLinksResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListUserLinksResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListUserLinksResponse.getDefaultInstance()) - return this; - if (userLinksBuilder_ == null) { - if (!other.userLinks_.isEmpty()) { - if (userLinks_.isEmpty()) { - userLinks_ = other.userLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUserLinksIsMutable(); - userLinks_.addAll(other.userLinks_); - } - onChanged(); - } - } else { - if (!other.userLinks_.isEmpty()) { - if (userLinksBuilder_.isEmpty()) { - userLinksBuilder_.dispose(); - userLinksBuilder_ = null; - userLinks_ = other.userLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - userLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getUserLinksFieldBuilder() - : null; - } else { - userLinksBuilder_.addAllMessages(other.userLinks_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.admin.v1alpha.UserLink m = - input.readMessage( - com.google.analytics.admin.v1alpha.UserLink.parser(), extensionRegistry); - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(m); - } else { - userLinksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List userLinks_ = - java.util.Collections.emptyList(); - - private void ensureUserLinksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - userLinks_ = - new java.util.ArrayList(userLinks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - userLinksBuilder_; - - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List getUserLinksList() { - if (userLinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(userLinks_); - } else { - return userLinksBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public int getUserLinksCount() { - if (userLinksBuilder_ == null) { - return userLinks_.size(); - } else { - return userLinksBuilder_.getCount(); - } - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink getUserLinks(int index) { - if (userLinksBuilder_ == null) { - return userLinks_.get(index); - } else { - return userLinksBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder setUserLinks(int index, com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.set(index, value); - onChanged(); - } else { - userLinksBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder setUserLinks( - int index, com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.set(index, builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks(com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.add(value); - onChanged(); - } else { - userLinksBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks(int index, com.google.analytics.admin.v1alpha.UserLink value) { - if (userLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserLinksIsMutable(); - userLinks_.add(index, value); - onChanged(); - } else { - userLinksBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks( - com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addUserLinks( - int index, com.google.analytics.admin.v1alpha.UserLink.Builder builderForValue) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.add(index, builderForValue.build()); - onChanged(); - } else { - userLinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder addAllUserLinks( - java.lang.Iterable values) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userLinks_); - onChanged(); - } else { - userLinksBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder clearUserLinks() { - if (userLinksBuilder_ == null) { - userLinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - userLinksBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public Builder removeUserLinks(int index) { - if (userLinksBuilder_ == null) { - ensureUserLinksIsMutable(); - userLinks_.remove(index); - onChanged(); - } else { - userLinksBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder getUserLinksBuilder(int index) { - return getUserLinksFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLinkOrBuilder getUserLinksOrBuilder(int index) { - if (userLinksBuilder_ == null) { - return userLinks_.get(index); - } else { - return userLinksBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List - getUserLinksOrBuilderList() { - if (userLinksBuilder_ != null) { - return userLinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(userLinks_); - } - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder addUserLinksBuilder() { - return getUserLinksFieldBuilder() - .addBuilder(com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance()); - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public com.google.analytics.admin.v1alpha.UserLink.Builder addUserLinksBuilder(int index) { - return getUserLinksFieldBuilder() - .addBuilder(index, com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance()); - } - /** - * - * - *
-     * List of UserLinks. These will be ordered stably, but in an arbitrary order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UserLink user_links = 1; - */ - public java.util.List - getUserLinksBuilderList() { - return getUserLinksFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder> - getUserLinksFieldBuilder() { - if (userLinksBuilder_ == null) { - userLinksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UserLink, - com.google.analytics.admin.v1alpha.UserLink.Builder, - com.google.analytics.admin.v1alpha.UserLinkOrBuilder>( - userLinks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - userLinks_ = null; - } - return userLinksBuilder_; - } - - 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; - bitField0_ |= 0x00000002; - 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(); - bitField0_ = (bitField0_ & ~0x00000002); - 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; - bitField0_ |= 0x00000002; - 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.ListUserLinksResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListUserLinksResponse) - private static final com.google.analytics.admin.v1alpha.ListUserLinksResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListUserLinksResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListUserLinksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUserLinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListUserLinksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java index 690962abcd9e..7a3d028640b9 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java @@ -133,8 +133,7 @@ public com.google.protobuf.ByteString getNameBytes() { *
    * Immutable. The property type for this Property resource. When creating a
    * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-   * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
-   * types cannot yet be created with the Google Analytics Admin API.
+   * "ORDINARY_PROPERTY" will be implied.
    * 
* * @@ -153,8 +152,7 @@ public int getPropertyTypeValue() { *
    * Immutable. The property type for this Property resource. When creating a
    * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-   * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
-   * types cannot yet be created with the Google Analytics Admin API.
+   * "ORDINARY_PROPERTY" will be implied.
    * 
* * @@ -1536,8 +1534,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { *
      * Immutable. The property type for this Property resource. When creating a
      * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-     * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
-     * types cannot yet be created with the Google Analytics Admin API.
+     * "ORDINARY_PROPERTY" will be implied.
      * 
* * @@ -1556,8 +1553,7 @@ public int getPropertyTypeValue() { *
      * Immutable. The property type for this Property resource. When creating a
      * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-     * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
-     * types cannot yet be created with the Google Analytics Admin API.
+     * "ORDINARY_PROPERTY" will be implied.
      * 
* * @@ -1579,8 +1575,7 @@ public Builder setPropertyTypeValue(int value) { *
      * Immutable. The property type for this Property resource. When creating a
      * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-     * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
-     * types cannot yet be created with the Google Analytics Admin API.
+     * "ORDINARY_PROPERTY" will be implied.
      * 
* * @@ -1601,8 +1596,7 @@ public com.google.analytics.admin.v1alpha.PropertyType getPropertyType() { *
      * Immutable. The property type for this Property resource. When creating a
      * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-     * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
-     * types cannot yet be created with the Google Analytics Admin API.
+     * "ORDINARY_PROPERTY" will be implied.
      * 
* * @@ -1627,8 +1621,7 @@ public Builder setPropertyType(com.google.analytics.admin.v1alpha.PropertyType v *
      * Immutable. The property type for this Property resource. When creating a
      * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-     * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
-     * types cannot yet be created with the Google Analytics Admin API.
+     * "ORDINARY_PROPERTY" will be implied.
      * 
* * diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java index 4c99b25662ce..5d1a12f94230 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java @@ -58,8 +58,7 @@ public interface PropertyOrBuilder *
    * Immutable. The property type for this Property resource. When creating a
    * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-   * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
-   * types cannot yet be created with the Google Analytics Admin API.
+   * "ORDINARY_PROPERTY" will be implied.
    * 
* * @@ -75,8 +74,7 @@ public interface PropertyOrBuilder *
    * Immutable. The property type for this Property resource. When creating a
    * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-   * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
-   * types cannot yet be created with the Google Analytics Admin API.
+   * "ORDINARY_PROPERTY" will be implied.
    * 
* * diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java index 4fbd32a688fc..de387a927ad1 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java @@ -51,14 +51,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UserLink_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UserLink_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AuditUserLink_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AuditUserLink_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_FirebaseLink_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -171,10 +163,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_AdSenseLink_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_AdSenseLink_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -244,403 +244,412 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_DATA_STREAM\020\002\022\027\n\023IOS_APP_DATA_STREAM\020\003:" + "^\352A[\n(analyticsadmin.googleapis.com/Data" + "Stream\022/properties/{property}/dataStream" - + "s/{data_stream}B\r\n\013stream_data\"\326\001\n\010UserL" - + "ink\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\033\n\remail_address" - + "\030\002 \001(\tB\004\342A\001\005\022\024\n\014direct_roles\030\003 \003(\t:\202\001\352A\177" - + "\n&analyticsadmin.googleapis.com/UserLink" - + "\022(accounts/{account}/userLinks/{user_lin" - + "k}\022+properties/{property}/userLinks/{use" - + "r_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\"\326\001\n\014Firebas" - + "eLink\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\025\n\007project\030\002 \001" - + "(\tB\004\342A\001\005\0225\n\013create_time\030\003 \001(\0132\032.google.p" - + "rotobuf.TimestampB\004\342A\001\003:d\352Aa\n*analyticsa" - + "dmin.googleapis.com/FirebaseLink\0223proper" - + "ties/{property}/firebaseLinks/{firebase_" - + "link}\"\253\001\n\rGlobalSiteTag\022\022\n\004name\030\001 \001(\tB\004\342" - + "A\001\003\022\025\n\007snippet\030\002 \001(\tB\004\342A\001\005:o\352Al\n+analyti" - + "csadmin.googleapis.com/GlobalSiteTag\022=pr" - + "operties/{property}/dataStreams/{data_st" - + "ream}/globalSiteTag\"\236\003\n\rGoogleAdsLink\022\022\n" - + "\004name\030\001 \001(\tB\004\342A\001\003\022\031\n\013customer_id\030\003 \001(\tB\004" - + "\342A\001\005\022 \n\022can_manage_clients\030\004 \001(\010B\004\342A\001\003\022?" - + "\n\033ads_personalization_enabled\030\005 \001(\0132\032.go" - + "ogle.protobuf.BoolValue\0225\n\013create_time\030\007" - + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225" - + "\n\013update_time\030\010 \001(\0132\032.google.protobuf.Ti" - + "mestampB\004\342A\001\003\022#\n\025creator_email_address\030\t" - + " \001(\tB\004\342A\001\003:h\352Ae\n+analyticsadmin.googleap" - + "is.com/GoogleAdsLink\0226properties/{proper" - + "ty}/googleAdsLinks/{google_ads_link}\"\354\002\n" - + "\023DataSharingSettings\022\022\n\004name\030\001 \001(\tB\004\342A\001\003" - + "\022+\n#sharing_with_google_support_enabled\030" - + "\002 \001(\010\0222\n*sharing_with_google_assigned_sa" - + "les_enabled\030\003 \001(\010\022-\n%sharing_with_google" - + "_any_sales_enabled\030\004 \001(\010\022,\n$sharing_with" - + "_google_products_enabled\030\005 \001(\010\022#\n\033sharin" - + "g_with_others_enabled\030\006 \001(\010:^\352A[\n1analyt" - + "icsadmin.googleapis.com/DataSharingSetti" - + "ngs\022&accounts/{account}/dataSharingSetti" - + "ngs\"\225\002\n\016AccountSummary\022\014\n\004name\030\001 \001(\t\022;\n\007" - + "account\030\002 \001(\tB*\372A\'\n%analyticsadmin.googl" - + "eapis.com/Account\022\024\n\014display_name\030\003 \001(\t\022" - + "K\n\022property_summaries\030\004 \003(\0132/.google.ana" - + "lytics.admin.v1alpha.PropertySummary:U\352A" - + "R\n,analyticsadmin.googleapis.com/Account" - + "Summary\022\"accountSummaries/{account_summa" - + "ry}\"\273\001\n\017PropertySummary\022=\n\010property\030\001 \001(" - + "\tB+\372A(\n&analyticsadmin.googleapis.com/Pr" - + "operty\022\024\n\014display_name\030\002 \001(\t\022C\n\rproperty" - + "_type\030\003 \001(\0162,.google.analytics.admin.v1a" - + "lpha.PropertyType\022\016\n\006parent\030\004 \001(\t\"\221\002\n\031Me" - + "asurementProtocolSecret\022\022\n\004name\030\001 \001(\tB\004\342" - + "A\001\003\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\002\022\032\n\014secre" - + "t_value\030\003 \001(\tB\004\342A\001\003:\247\001\352A\243\001\n7analyticsadm" - + "in.googleapis.com/MeasurementProtocolSec" - + "ret\022hproperties/{property}/dataStreams/{" - + "data_stream}/measurementProtocolSecrets/" - + "{measurement_protocol_secret}\"\205\004\n SKAdNe" - + "tworkConversionValueSchema\022\022\n\004name\030\001 \001(\t" - + "B\004\342A\001\003\022Q\n\023postback_window_one\030\002 \001(\0132..go" - + "ogle.analytics.admin.v1alpha.PostbackWin" - + "dowB\004\342A\001\002\022K\n\023postback_window_two\030\003 \001(\0132." - + ".google.analytics.admin.v1alpha.Postback" - + "Window\022M\n\025postback_window_three\030\004 \001(\0132.." + + "s/{data_stream}B\r\n\013stream_data\"\326\001\n\014Fireb" + + "aseLink\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\025\n\007project\030\002" + + " \001(\tB\004\342A\001\005\0225\n\013create_time\030\003 \001(\0132\032.google" + + ".protobuf.TimestampB\004\342A\001\003:d\352Aa\n*analytic" + + "sadmin.googleapis.com/FirebaseLink\0223prop" + + "erties/{property}/firebaseLinks/{firebas" + + "e_link}\"\253\001\n\rGlobalSiteTag\022\022\n\004name\030\001 \001(\tB" + + "\004\342A\001\003\022\025\n\007snippet\030\002 \001(\tB\004\342A\001\005:o\352Al\n+analy" + + "ticsadmin.googleapis.com/GlobalSiteTag\022=" + + "properties/{property}/dataStreams/{data_" + + "stream}/globalSiteTag\"\236\003\n\rGoogleAdsLink\022" + + "\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\031\n\013customer_id\030\003 \001(\t" + + "B\004\342A\001\005\022 \n\022can_manage_clients\030\004 \001(\010B\004\342A\001\003" + + "\022?\n\033ads_personalization_enabled\030\005 \001(\0132\032." + + "google.protobuf.BoolValue\0225\n\013create_time" + + "\030\007 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" + + "\0225\n\013update_time\030\010 \001(\0132\032.google.protobuf." + + "TimestampB\004\342A\001\003\022#\n\025creator_email_address" + + "\030\t \001(\tB\004\342A\001\003:h\352Ae\n+analyticsadmin.google" + + "apis.com/GoogleAdsLink\0226properties/{prop" + + "erty}/googleAdsLinks/{google_ads_link}\"\354" + + "\002\n\023DataSharingSettings\022\022\n\004name\030\001 \001(\tB\004\342A" + + "\001\003\022+\n#sharing_with_google_support_enable" + + "d\030\002 \001(\010\0222\n*sharing_with_google_assigned_" + + "sales_enabled\030\003 \001(\010\022-\n%sharing_with_goog" + + "le_any_sales_enabled\030\004 \001(\010\022,\n$sharing_wi" + + "th_google_products_enabled\030\005 \001(\010\022#\n\033shar" + + "ing_with_others_enabled\030\006 \001(\010:^\352A[\n1anal" + + "yticsadmin.googleapis.com/DataSharingSet" + + "tings\022&accounts/{account}/dataSharingSet" + + "tings\"\225\002\n\016AccountSummary\022\014\n\004name\030\001 \001(\t\022;" + + "\n\007account\030\002 \001(\tB*\372A\'\n%analyticsadmin.goo" + + "gleapis.com/Account\022\024\n\014display_name\030\003 \001(" + + "\t\022K\n\022property_summaries\030\004 \003(\0132/.google.a" + + "nalytics.admin.v1alpha.PropertySummary:U" + + "\352AR\n,analyticsadmin.googleapis.com/Accou" + + "ntSummary\022\"accountSummaries/{account_sum" + + "mary}\"\273\001\n\017PropertySummary\022=\n\010property\030\001 " + + "\001(\tB+\372A(\n&analyticsadmin.googleapis.com/" + + "Property\022\024\n\014display_name\030\002 \001(\t\022C\n\rproper" + + "ty_type\030\003 \001(\0162,.google.analytics.admin.v" + + "1alpha.PropertyType\022\016\n\006parent\030\004 \001(\t\"\221\002\n\031" + + "MeasurementProtocolSecret\022\022\n\004name\030\001 \001(\tB" + + "\004\342A\001\003\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\002\022\032\n\014sec" + + "ret_value\030\003 \001(\tB\004\342A\001\003:\247\001\352A\243\001\n7analyticsa" + + "dmin.googleapis.com/MeasurementProtocolS" + + "ecret\022hproperties/{property}/dataStreams" + + "/{data_stream}/measurementProtocolSecret" + + "s/{measurement_protocol_secret}\"\205\004\n SKAd" + + "NetworkConversionValueSchema\022\022\n\004name\030\001 \001" + + "(\tB\004\342A\001\003\022Q\n\023postback_window_one\030\002 \001(\0132.." + "google.analytics.admin.v1alpha.PostbackW" - + "indow\022\037\n\027apply_conversion_values\030\005 \001(\010:\274" - + "\001\352A\270\001\n>analyticsadmin.googleapis.com/SKA" - + "dNetworkConversionValueSchema\022vpropertie" - + "s/{property}/dataStreams/{data_stream}/s" - + "KAdNetworkConversionValueSchema/{skadnet" - + "work_conversion_value_schema}\"\207\001\n\016Postba" - + "ckWindow\022K\n\021conversion_values\030\001 \003(\01320.go" - + "ogle.analytics.admin.v1alpha.ConversionV" - + "alues\022(\n postback_window_settings_enable" - + "d\030\002 \001(\010\"\365\001\n\020ConversionValues\022\024\n\014display_" - + "name\030\001 \001(\t\022\027\n\nfine_value\030\002 \001(\005H\000\210\001\001\022G\n\014c" - + "oarse_value\030\003 \001(\0162+.google.analytics.adm" - + "in.v1alpha.CoarseValueB\004\342A\001\002\022D\n\016event_ma" - + "ppings\030\004 \003(\0132,.google.analytics.admin.v1" - + "alpha.EventMapping\022\024\n\014lock_enabled\030\005 \001(\010" - + "B\r\n\013_fine_value\"\360\001\n\014EventMapping\022\030\n\neven" - + "t_name\030\001 \001(\tB\004\342A\001\002\022\034\n\017min_event_count\030\002 " - + "\001(\003H\000\210\001\001\022\034\n\017max_event_count\030\003 \001(\003H\001\210\001\001\022\034" - + "\n\017min_event_value\030\004 \001(\001H\002\210\001\001\022\034\n\017max_even" - + "t_value\030\005 \001(\001H\003\210\001\001B\022\n\020_min_event_countB\022" - + "\n\020_max_event_countB\022\n\020_min_event_valueB\022" - + "\n\020_max_event_value\"\212\002\n\022ChangeHistoryEven" - + "t\022\n\n\002id\030\001 \001(\t\022/\n\013change_time\030\002 \001(\0132\032.goo" - + "gle.protobuf.Timestamp\022=\n\nactor_type\030\003 \001" - + "(\0162).google.analytics.admin.v1alpha.Acto" - + "rType\022\030\n\020user_actor_email\030\004 \001(\t\022\030\n\020chang" - + "es_filtered\030\005 \001(\010\022D\n\007changes\030\006 \003(\01323.goo" - + "gle.analytics.admin.v1alpha.ChangeHistor" - + "yChange\"\266\021\n\023ChangeHistoryChange\022\020\n\010resou" - + "rce\030\001 \001(\t\022:\n\006action\030\002 \001(\0162*.google.analy" - + "tics.admin.v1alpha.ActionType\022i\n\026resourc" - + "e_before_change\030\003 \001(\0132I.google.analytics" - + ".admin.v1alpha.ChangeHistoryChange.Chang" - + "eHistoryResource\022h\n\025resource_after_chang" - + "e\030\004 \001(\0132I.google.analytics.admin.v1alpha" - + ".ChangeHistoryChange.ChangeHistoryResour" - + "ce\032\373\016\n\025ChangeHistoryResource\022:\n\007account\030" - + "\001 \001(\0132\'.google.analytics.admin.v1alpha.A" - + "ccountH\000\022<\n\010property\030\002 \001(\0132(.google.anal" - + "ytics.admin.v1alpha.PropertyH\000\022E\n\rfireba" - + "se_link\030\006 \001(\0132,.google.analytics.admin.v" - + "1alpha.FirebaseLinkH\000\022H\n\017google_ads_link" - + "\030\007 \001(\0132-.google.analytics.admin.v1alpha." - + "GoogleAdsLinkH\000\022X\n\027google_signals_settin" - + "gs\030\010 \001(\01325.google.analytics.admin.v1alph" - + "a.GoogleSignalsSettingsH\000\022j\n!display_vid" - + "eo_360_advertiser_link\030\t \001(\0132=.google.an" - + "alytics.admin.v1alpha.DisplayVideo360Adv" - + "ertiserLinkH\000\022{\n*display_video_360_adver" - + "tiser_link_proposal\030\n \001(\0132E.google.analy" - + "tics.admin.v1alpha.DisplayVideo360Advert" - + "iserLinkProposalH\000\022K\n\020conversion_event\030\013" - + " \001(\0132/.google.analytics.admin.v1alpha.Co" - + "nversionEventH\000\022`\n\033measurement_protocol_" - + "secret\030\014 \001(\01329.google.analytics.admin.v1" - + "alpha.MeasurementProtocolSecretH\000\022K\n\020cus" - + "tom_dimension\030\r \001(\0132/.google.analytics.a" - + "dmin.v1alpha.CustomDimensionH\000\022E\n\rcustom" - + "_metric\030\016 \001(\0132,.google.analytics.admin.v" - + "1alpha.CustomMetricH\000\022X\n\027data_retention_" - + "settings\030\017 \001(\01325.google.analytics.admin." - + "v1alpha.DataRetentionSettingsH\000\022O\n\023searc" - + "h_ads_360_link\030\020 \001(\01320.google.analytics." - + "admin.v1alpha.SearchAds360LinkH\000\022A\n\013data" - + "_stream\030\022 \001(\0132*.google.analytics.admin.v" - + "1alpha.DataStreamH\000\022S\n\024attribution_setti" - + "ngs\030\024 \001(\01323.google.analytics.admin.v1alp" - + "ha.AttributionSettingsH\000\022L\n\021expanded_dat" - + "a_set\030\025 \001(\0132/.google.analytics.admin.v1a" - + "lpha.ExpandedDataSetH\000\022E\n\rchannel_group\030" - + "\026 \001(\0132,.google.analytics.admin.v1alpha.C" - + "hannelGroupH\000\022E\n\rbigquery_link\030\027 \001(\0132,.g" - + "oogle.analytics.admin.v1alpha.BigQueryLi" - + "nkH\000\022d\n\035enhanced_measurement_settings\030\030 " - + "\001(\0132;.google.analytics.admin.v1alpha.Enh" - + "ancedMeasurementSettingsH\000\022o\n#skadnetwor" - + "k_conversion_value_schema\030\032 \001(\0132@.google" - + ".analytics.admin.v1alpha.SKAdNetworkConv" - + "ersionValueSchemaH\000\022C\n\014adsense_link\030\033 \001(" - + "\0132+.google.analytics.admin.v1alpha.AdSen" - + "seLinkH\000\022<\n\010audience\030\034 \001(\0132(.google.anal" - + "ytics.admin.v1alpha.AudienceH\000\022L\n\021event_" - + "create_rule\030\035 \001(\0132/.google.analytics.adm" - + "in.v1alpha.EventCreateRuleH\000B\n\n\010resource" - + "\"\344\003\n\035DisplayVideo360AdvertiserLink\022\022\n\004na" - + "me\030\001 \001(\tB\004\342A\001\003\022\033\n\radvertiser_id\030\002 \001(\tB\004\342" - + "A\001\005\022%\n\027advertiser_display_name\030\003 \001(\tB\004\342A" - + "\001\003\022?\n\033ads_personalization_enabled\030\004 \001(\0132" - + "\032.google.protobuf.BoolValue\022G\n\035campaign_" - + "data_sharing_enabled\030\005 \001(\0132\032.google.prot" - + "obuf.BoolValueB\004\342A\001\005\022C\n\031cost_data_sharin" - + "g_enabled\030\006 \001(\0132\032.google.protobuf.BoolVa" - + "lueB\004\342A\001\005:\233\001\352A\227\001\n;analyticsadmin.googlea" - + "pis.com/DisplayVideo360AdvertiserLink\022Xp" - + "roperties/{property}/displayVideo360Adve" - + "rtiserLinks/{display_video_360_advertise" - + "r_link}\"\222\005\n%DisplayVideo360AdvertiserLin" - + "kProposal\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\033\n\radverti" - + "ser_id\030\002 \001(\tB\004\342A\001\005\022e\n\034link_proposal_stat" - + "us_details\030\003 \001(\01329.google.analytics.admi" - + "n.v1alpha.LinkProposalStatusDetailsB\004\342A\001" - + "\003\022%\n\027advertiser_display_name\030\004 \001(\tB\004\342A\001\003" - + "\022\036\n\020validation_email\030\005 \001(\tB\004\342A\001\004\022E\n\033ads_" - + "personalization_enabled\030\006 \001(\0132\032.google.p" - + "rotobuf.BoolValueB\004\342A\001\005\022G\n\035campaign_data" - + "_sharing_enabled\030\007 \001(\0132\032.google.protobuf" - + ".BoolValueB\004\342A\001\005\022C\n\031cost_data_sharing_en" - + "abled\030\010 \001(\0132\032.google.protobuf.BoolValueB" - + "\004\342A\001\005:\264\001\352A\260\001\nCanalyticsadmin.googleapis." - + "com/DisplayVideo360AdvertiserLinkProposa" - + "l\022iproperties/{property}/displayVideo360" - + "AdvertiserLinkProposals/{display_video_3" - + "60_advertiser_link_proposal}\"\355\003\n\020SearchA" - + "ds360Link\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\033\n\radverti" - + "ser_id\030\002 \001(\tB\004\342A\001\005\022G\n\035campaign_data_shar" - + "ing_enabled\030\003 \001(\0132\032.google.protobuf.Bool" - + "ValueB\004\342A\001\005\022C\n\031cost_data_sharing_enabled" - + "\030\004 \001(\0132\032.google.protobuf.BoolValueB\004\342A\001\005" - + "\022%\n\027advertiser_display_name\030\005 \001(\tB\004\342A\001\003\022" - + "?\n\033ads_personalization_enabled\030\006 \001(\0132\032.g" - + "oogle.protobuf.BoolValue\022>\n\032site_stats_s" - + "haring_enabled\030\007 \001(\0132\032.google.protobuf.B" - + "oolValue:r\352Ao\n.analyticsadmin.googleapis" - + ".com/SearchAds360Link\022=properties/{prope" - + "rty}/searchAds360Links/{search_ads_360_l" - + "ink}\"\377\001\n\031LinkProposalStatusDetails\022m\n li" - + "nk_proposal_initiating_product\030\001 \001(\0162=.g" - + "oogle.analytics.admin.v1alpha.LinkPropos" - + "alInitiatingProductB\004\342A\001\003\022\035\n\017requestor_e" - + "mail\030\002 \001(\tB\004\342A\001\003\022T\n\023link_proposal_state\030" - + "\003 \001(\01621.google.analytics.admin.v1alpha.L" - + "inkProposalStateB\004\342A\001\003\"\357\003\n\017ConversionEve" - + "nt\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\030\n\nevent_name\030\002 \001" - + "(\tB\004\342A\001\005\0225\n\013create_time\030\003 \001(\0132\032.google.p" - + "rotobuf.TimestampB\004\342A\001\003\022\027\n\tdeletable\030\004 \001" - + "(\010B\004\342A\001\003\022\024\n\006custom\030\005 \001(\010B\004\342A\001\003\022g\n\017counti" - + "ng_method\030\006 \001(\0162H.google.analytics.admin" - + ".v1alpha.ConversionEvent.ConversionCount" - + "ingMethodB\004\342A\001\001\"p\n\030ConversionCountingMet" - + "hod\022*\n&CONVERSION_COUNTING_METHOD_UNSPEC" - + "IFIED\020\000\022\022\n\016ONCE_PER_EVENT\020\001\022\024\n\020ONCE_PER_" - + "SESSION\020\002:m\352Aj\n-analyticsadmin.googleapi" - + "s.com/ConversionEvent\0229properties/{prope" - + "rty}/conversionEvents/{conversion_event}" - + "\"\242\002\n\025GoogleSignalsSettings\022\022\n\004name\030\001 \001(\t" - + "B\004\342A\001\003\022A\n\005state\030\003 \001(\01622.google.analytics" - + ".admin.v1alpha.GoogleSignalsState\022K\n\007con" - + "sent\030\004 \001(\01624.google.analytics.admin.v1al" - + "pha.GoogleSignalsConsentB\004\342A\001\003:e\352Ab\n3ana" - + "lyticsadmin.googleapis.com/GoogleSignals" - + "Settings\022+properties/{property}/googleSi" - + "gnalsSettings\"\276\003\n\017CustomDimension\022\022\n\004nam" - + "e\030\001 \001(\tB\004\342A\001\003\022\035\n\016parameter_name\030\002 \001(\tB\005\342" - + "A\002\002\005\022\032\n\014display_name\030\003 \001(\tB\004\342A\001\002\022\031\n\013desc" - + "ription\030\004 \001(\tB\004\342A\001\001\022T\n\005scope\030\005 \001(\0162>.goo" - + "gle.analytics.admin.v1alpha.CustomDimens" - + "ion.DimensionScopeB\005\342A\002\002\005\022*\n\034disallow_ad" - + "s_personalization\030\006 \001(\010B\004\342A\001\001\"P\n\016Dimensi" - + "onScope\022\037\n\033DIMENSION_SCOPE_UNSPECIFIED\020\000" - + "\022\t\n\005EVENT\020\001\022\010\n\004USER\020\002\022\010\n\004ITEM\020\003:m\352Aj\n-an" - + "alyticsadmin.googleapis.com/CustomDimens" - + "ion\0229properties/{property}/customDimensi" - + "ons/{custom_dimension}\"\310\006\n\014CustomMetric\022" - + "\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\035\n\016parameter_name\030\002 " - + "\001(\tB\005\342A\002\002\005\022\032\n\014display_name\030\003 \001(\tB\004\342A\001\002\022\031" - + "\n\013description\030\004 \001(\tB\004\342A\001\001\022\\\n\020measurement" - + "_unit\030\005 \001(\0162<.google.analytics.admin.v1a" - + "lpha.CustomMetric.MeasurementUnitB\004\342A\001\002\022" - + "N\n\005scope\030\006 \001(\01628.google.analytics.admin." - + "v1alpha.CustomMetric.MetricScopeB\005\342A\002\002\005\022" - + "g\n\026restricted_metric_type\030\010 \003(\0162A.google" - + ".analytics.admin.v1alpha.CustomMetric.Re" - + "strictedMetricTypeB\004\342A\001\001\"\267\001\n\017Measurement" - + "Unit\022 \n\034MEASUREMENT_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\006" - + "METERS\020\004\022\016\n\nKILOMETERS\020\005\022\t\n\005MILES\020\006\022\020\n\014M" - + "ILLISECONDS\020\007\022\013\n\007SECONDS\020\010\022\013\n\007MINUTES\020\t\022" - + "\t\n\005HOURS\020\n\"6\n\013MetricScope\022\034\n\030METRIC_SCOP" - + "E_UNSPECIFIED\020\000\022\t\n\005EVENT\020\001\"_\n\024Restricted" - + "MetricType\022&\n\"RESTRICTED_METRIC_TYPE_UNS" - + "PECIFIED\020\000\022\r\n\tCOST_DATA\020\001\022\020\n\014REVENUE_DAT" - + "A\020\002:d\352Aa\n*analyticsadmin.googleapis.com/" - + "CustomMetric\0223properties/{property}/cust" - + "omMetrics/{custom_metric}\"\303\003\n\025DataRetent" - + "ionSettings\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022e\n\024event" - + "_data_retention\030\002 \001(\0162G.google.analytics" - + ".admin.v1alpha.DataRetentionSettings.Ret" - + "entionDuration\022\'\n\037reset_user_data_on_new" - + "_activity\030\003 \001(\010\"\236\001\n\021RetentionDuration\022\"\n" - + "\036RETENTION_DURATION_UNSPECIFIED\020\000\022\016\n\nTWO" - + "_MONTHS\020\001\022\023\n\017FOURTEEN_MONTHS\020\003\022\025\n\021TWENTY" - + "_SIX_MONTHS\020\004\022\027\n\023THIRTY_EIGHT_MONTHS\020\005\022\020" - + "\n\014FIFTY_MONTHS\020\006:e\352Ab\n3analyticsadmin.go" - + "ogleapis.com/DataRetentionSettings\022+prop" - + "erties/{property}/dataRetentionSettings\"" - + "\252\r\n\023AttributionSettings\022\022\n\004name\030\001 \001(\tB\004\342" - + "A\001\003\022\230\001\n,acquisition_conversion_event_loo" - + "kback_window\030\002 \001(\0162\\.google.analytics.ad" - + "min.v1alpha.AttributionSettings.Acquisit" - + "ionConversionEventLookbackWindowB\004\342A\001\002\022\214" - + "\001\n&other_conversion_event_lookback_windo" - + "w\030\003 \001(\0162V.google.analytics.admin.v1alpha" - + ".AttributionSettings.OtherConversionEven" - + "tLookbackWindowB\004\342A\001\002\022x\n\033reporting_attri" - + "bution_model\030\004 \001(\0162M.google.analytics.ad" - + "min.v1alpha.AttributionSettings.Reportin" - + "gAttributionModelB\004\342A\001\002\022\207\001\n$ads_web_conv" - + "ersion_data_export_scope\030\005 \001(\0162S.google." + + "indowB\004\342A\001\002\022K\n\023postback_window_two\030\003 \001(\013" + + "2..google.analytics.admin.v1alpha.Postba" + + "ckWindow\022M\n\025postback_window_three\030\004 \001(\0132" + + "..google.analytics.admin.v1alpha.Postbac" + + "kWindow\022\037\n\027apply_conversion_values\030\005 \001(\010" + + ":\274\001\352A\270\001\n>analyticsadmin.googleapis.com/S" + + "KAdNetworkConversionValueSchema\022vpropert" + + "ies/{property}/dataStreams/{data_stream}" + + "/sKAdNetworkConversionValueSchema/{skadn" + + "etwork_conversion_value_schema}\"\207\001\n\016Post" + + "backWindow\022K\n\021conversion_values\030\001 \003(\01320." + + "google.analytics.admin.v1alpha.Conversio" + + "nValues\022(\n postback_window_settings_enab" + + "led\030\002 \001(\010\"\365\001\n\020ConversionValues\022\024\n\014displa" + + "y_name\030\001 \001(\t\022\027\n\nfine_value\030\002 \001(\005H\000\210\001\001\022G\n" + + "\014coarse_value\030\003 \001(\0162+.google.analytics.a" + + "dmin.v1alpha.CoarseValueB\004\342A\001\002\022D\n\016event_" + + "mappings\030\004 \003(\0132,.google.analytics.admin." + + "v1alpha.EventMapping\022\024\n\014lock_enabled\030\005 \001" + + "(\010B\r\n\013_fine_value\"\360\001\n\014EventMapping\022\030\n\nev" + + "ent_name\030\001 \001(\tB\004\342A\001\002\022\034\n\017min_event_count\030" + + "\002 \001(\003H\000\210\001\001\022\034\n\017max_event_count\030\003 \001(\003H\001\210\001\001" + + "\022\034\n\017min_event_value\030\004 \001(\001H\002\210\001\001\022\034\n\017max_ev" + + "ent_value\030\005 \001(\001H\003\210\001\001B\022\n\020_min_event_count" + + "B\022\n\020_max_event_countB\022\n\020_min_event_value" + + "B\022\n\020_max_event_value\"\212\002\n\022ChangeHistoryEv" + + "ent\022\n\n\002id\030\001 \001(\t\022/\n\013change_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022=\n\nactor_type\030\003" + + " \001(\0162).google.analytics.admin.v1alpha.Ac" + + "torType\022\030\n\020user_actor_email\030\004 \001(\t\022\030\n\020cha" + + "nges_filtered\030\005 \001(\010\022D\n\007changes\030\006 \003(\01323.g" + + "oogle.analytics.admin.v1alpha.ChangeHist" + + "oryChange\"\220\022\n\023ChangeHistoryChange\022\020\n\010res" + + "ource\030\001 \001(\t\022:\n\006action\030\002 \001(\0162*.google.ana" + + "lytics.admin.v1alpha.ActionType\022i\n\026resou" + + "rce_before_change\030\003 \001(\0132I.google.analyti" + + "cs.admin.v1alpha.ChangeHistoryChange.Cha" + + "ngeHistoryResource\022h\n\025resource_after_cha" + + "nge\030\004 \001(\0132I.google.analytics.admin.v1alp" + + "ha.ChangeHistoryChange.ChangeHistoryReso" + + "urce\032\325\017\n\025ChangeHistoryResource\022:\n\007accoun" + + "t\030\001 \001(\0132\'.google.analytics.admin.v1alpha" + + ".AccountH\000\022<\n\010property\030\002 \001(\0132(.google.an" + + "alytics.admin.v1alpha.PropertyH\000\022E\n\rfire" + + "base_link\030\006 \001(\0132,.google.analytics.admin" + + ".v1alpha.FirebaseLinkH\000\022H\n\017google_ads_li" + + "nk\030\007 \001(\0132-.google.analytics.admin.v1alph" + + "a.GoogleAdsLinkH\000\022X\n\027google_signals_sett" + + "ings\030\010 \001(\01325.google.analytics.admin.v1al" + + "pha.GoogleSignalsSettingsH\000\022j\n!display_v" + + "ideo_360_advertiser_link\030\t \001(\0132=.google." + + "analytics.admin.v1alpha.DisplayVideo360A" + + "dvertiserLinkH\000\022{\n*display_video_360_adv" + + "ertiser_link_proposal\030\n \001(\0132E.google.ana" + + "lytics.admin.v1alpha.DisplayVideo360Adve" + + "rtiserLinkProposalH\000\022K\n\020conversion_event" + + "\030\013 \001(\0132/.google.analytics.admin.v1alpha." + + "ConversionEventH\000\022`\n\033measurement_protoco" + + "l_secret\030\014 \001(\01329.google.analytics.admin." + + "v1alpha.MeasurementProtocolSecretH\000\022K\n\020c" + + "ustom_dimension\030\r \001(\0132/.google.analytics" + + ".admin.v1alpha.CustomDimensionH\000\022E\n\rcust" + + "om_metric\030\016 \001(\0132,.google.analytics.admin" + + ".v1alpha.CustomMetricH\000\022X\n\027data_retentio" + + "n_settings\030\017 \001(\01325.google.analytics.admi" + + "n.v1alpha.DataRetentionSettingsH\000\022O\n\023sea" + + "rch_ads_360_link\030\020 \001(\01320.google.analytic" + + "s.admin.v1alpha.SearchAds360LinkH\000\022A\n\013da" + + "ta_stream\030\022 \001(\0132*.google.analytics.admin" + + ".v1alpha.DataStreamH\000\022S\n\024attribution_set" + + "tings\030\024 \001(\01323.google.analytics.admin.v1a" + + "lpha.AttributionSettingsH\000\022L\n\021expanded_d" + + "ata_set\030\025 \001(\0132/.google.analytics.admin.v" + + "1alpha.ExpandedDataSetH\000\022E\n\rchannel_grou" + + "p\030\026 \001(\0132,.google.analytics.admin.v1alpha" + + ".ChannelGroupH\000\022E\n\rbigquery_link\030\027 \001(\0132," + + ".google.analytics.admin.v1alpha.BigQuery" + + "LinkH\000\022d\n\035enhanced_measurement_settings\030" + + "\030 \001(\0132;.google.analytics.admin.v1alpha.E" + + "nhancedMeasurementSettingsH\000\022X\n\027data_red" + + "action_settings\030\031 \001(\01325.google.analytics" + + ".admin.v1alpha.DataRedactionSettingsH\000\022o" + + "\n#skadnetwork_conversion_value_schema\030\032 " + + "\001(\0132@.google.analytics.admin.v1alpha.SKA" + + "dNetworkConversionValueSchemaH\000\022C\n\014adsen" + + "se_link\030\033 \001(\0132+.google.analytics.admin.v" + + "1alpha.AdSenseLinkH\000\022<\n\010audience\030\034 \001(\0132(" + + ".google.analytics.admin.v1alpha.Audience" + + "H\000\022L\n\021event_create_rule\030\035 \001(\0132/.google.a" + + "nalytics.admin.v1alpha.EventCreateRuleH\000" + + "B\n\n\010resource\"\344\003\n\035DisplayVideo360Advertis" + + "erLink\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\033\n\radvertiser" + + "_id\030\002 \001(\tB\004\342A\001\005\022%\n\027advertiser_display_na" + + "me\030\003 \001(\tB\004\342A\001\003\022?\n\033ads_personalization_en" + + "abled\030\004 \001(\0132\032.google.protobuf.BoolValue\022" + + "G\n\035campaign_data_sharing_enabled\030\005 \001(\0132\032" + + ".google.protobuf.BoolValueB\004\342A\001\005\022C\n\031cost" + + "_data_sharing_enabled\030\006 \001(\0132\032.google.pro" + + "tobuf.BoolValueB\004\342A\001\005:\233\001\352A\227\001\n;analyticsa" + + "dmin.googleapis.com/DisplayVideo360Adver" + + "tiserLink\022Xproperties/{property}/display" + + "Video360AdvertiserLinks/{display_video_3" + + "60_advertiser_link}\"\222\005\n%DisplayVideo360A" + + "dvertiserLinkProposal\022\022\n\004name\030\001 \001(\tB\004\342A\001" + + "\003\022\033\n\radvertiser_id\030\002 \001(\tB\004\342A\001\005\022e\n\034link_p" + + "roposal_status_details\030\003 \001(\01329.google.an" + + "alytics.admin.v1alpha.LinkProposalStatus" + + "DetailsB\004\342A\001\003\022%\n\027advertiser_display_name" + + "\030\004 \001(\tB\004\342A\001\003\022\036\n\020validation_email\030\005 \001(\tB\004" + + "\342A\001\004\022E\n\033ads_personalization_enabled\030\006 \001(" + + "\0132\032.google.protobuf.BoolValueB\004\342A\001\005\022G\n\035c" + + "ampaign_data_sharing_enabled\030\007 \001(\0132\032.goo" + + "gle.protobuf.BoolValueB\004\342A\001\005\022C\n\031cost_dat" + + "a_sharing_enabled\030\010 \001(\0132\032.google.protobu" + + "f.BoolValueB\004\342A\001\005:\264\001\352A\260\001\nCanalyticsadmin" + + ".googleapis.com/DisplayVideo360Advertise" + + "rLinkProposal\022iproperties/{property}/dis" + + "playVideo360AdvertiserLinkProposals/{dis" + + "play_video_360_advertiser_link_proposal}" + + "\"\355\003\n\020SearchAds360Link\022\022\n\004name\030\001 \001(\tB\004\342A\001" + + "\003\022\033\n\radvertiser_id\030\002 \001(\tB\004\342A\001\005\022G\n\035campai" + + "gn_data_sharing_enabled\030\003 \001(\0132\032.google.p" + + "rotobuf.BoolValueB\004\342A\001\005\022C\n\031cost_data_sha" + + "ring_enabled\030\004 \001(\0132\032.google.protobuf.Boo" + + "lValueB\004\342A\001\005\022%\n\027advertiser_display_name\030" + + "\005 \001(\tB\004\342A\001\003\022?\n\033ads_personalization_enabl" + + "ed\030\006 \001(\0132\032.google.protobuf.BoolValue\022>\n\032" + + "site_stats_sharing_enabled\030\007 \001(\0132\032.googl" + + "e.protobuf.BoolValue:r\352Ao\n.analyticsadmi" + + "n.googleapis.com/SearchAds360Link\022=prope" + + "rties/{property}/searchAds360Links/{sear" + + "ch_ads_360_link}\"\377\001\n\031LinkProposalStatusD" + + "etails\022m\n link_proposal_initiating_produ" + + "ct\030\001 \001(\0162=.google.analytics.admin.v1alph" + + "a.LinkProposalInitiatingProductB\004\342A\001\003\022\035\n" + + "\017requestor_email\030\002 \001(\tB\004\342A\001\003\022T\n\023link_pro" + + "posal_state\030\003 \001(\01621.google.analytics.adm" + + "in.v1alpha.LinkProposalStateB\004\342A\001\003\"\357\003\n\017C" + + "onversionEvent\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\030\n\nev" + + "ent_name\030\002 \001(\tB\004\342A\001\005\0225\n\013create_time\030\003 \001(" + + "\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\027\n\td" + + "eletable\030\004 \001(\010B\004\342A\001\003\022\024\n\006custom\030\005 \001(\010B\004\342A" + + "\001\003\022g\n\017counting_method\030\006 \001(\0162H.google.ana" + + "lytics.admin.v1alpha.ConversionEvent.Con" + + "versionCountingMethodB\004\342A\001\001\"p\n\030Conversio" + + "nCountingMethod\022*\n&CONVERSION_COUNTING_M" + + "ETHOD_UNSPECIFIED\020\000\022\022\n\016ONCE_PER_EVENT\020\001\022" + + "\024\n\020ONCE_PER_SESSION\020\002:m\352Aj\n-analyticsadm" + + "in.googleapis.com/ConversionEvent\0229prope" + + "rties/{property}/conversionEvents/{conve" + + "rsion_event}\"\242\002\n\025GoogleSignalsSettings\022\022" + + "\n\004name\030\001 \001(\tB\004\342A\001\003\022A\n\005state\030\003 \001(\01622.goog" + + "le.analytics.admin.v1alpha.GoogleSignals" + + "State\022K\n\007consent\030\004 \001(\01624.google.analytic" + + "s.admin.v1alpha.GoogleSignalsConsentB\004\342A" + + "\001\003:e\352Ab\n3analyticsadmin.googleapis.com/G" + + "oogleSignalsSettings\022+properties/{proper" + + "ty}/googleSignalsSettings\"\276\003\n\017CustomDime" + + "nsion\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\035\n\016parameter_n" + + "ame\030\002 \001(\tB\005\342A\002\002\005\022\032\n\014display_name\030\003 \001(\tB\004" + + "\342A\001\002\022\031\n\013description\030\004 \001(\tB\004\342A\001\001\022T\n\005scope" + + "\030\005 \001(\0162>.google.analytics.admin.v1alpha." + + "CustomDimension.DimensionScopeB\005\342A\002\002\005\022*\n" + + "\034disallow_ads_personalization\030\006 \001(\010B\004\342A\001" + + "\001\"P\n\016DimensionScope\022\037\n\033DIMENSION_SCOPE_U" + + "NSPECIFIED\020\000\022\t\n\005EVENT\020\001\022\010\n\004USER\020\002\022\010\n\004ITE" + + "M\020\003:m\352Aj\n-analyticsadmin.googleapis.com/" + + "CustomDimension\0229properties/{property}/c" + + "ustomDimensions/{custom_dimension}\"\310\006\n\014C" + + "ustomMetric\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\035\n\016param" + + "eter_name\030\002 \001(\tB\005\342A\002\002\005\022\032\n\014display_name\030\003" + + " \001(\tB\004\342A\001\002\022\031\n\013description\030\004 \001(\tB\004\342A\001\001\022\\\n" + + "\020measurement_unit\030\005 \001(\0162<.google.analyti" + + "cs.admin.v1alpha.CustomMetric.Measuremen" + + "tUnitB\004\342A\001\002\022N\n\005scope\030\006 \001(\01628.google.anal" + + "ytics.admin.v1alpha.CustomMetric.MetricS" + + "copeB\005\342A\002\002\005\022g\n\026restricted_metric_type\030\010 " + + "\003(\0162A.google.analytics.admin.v1alpha.Cus" + + "tomMetric.RestrictedMetricTypeB\004\342A\001\001\"\267\001\n" + + "\017MeasurementUnit\022 \n\034MEASUREMENT_UNIT_UNS" + + "PECIFIED\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\nKILOMETERS\020\005\022\t\n\005" + + "MILES\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\013MetricScope\022\034\n" + + "\030METRIC_SCOPE_UNSPECIFIED\020\000\022\t\n\005EVENT\020\001\"_" + + "\n\024RestrictedMetricType\022&\n\"RESTRICTED_MET" + + "RIC_TYPE_UNSPECIFIED\020\000\022\r\n\tCOST_DATA\020\001\022\020\n" + + "\014REVENUE_DATA\020\002:d\352Aa\n*analyticsadmin.goo" + + "gleapis.com/CustomMetric\0223properties/{pr" + + "operty}/customMetrics/{custom_metric}\"\303\003" + + "\n\025DataRetentionSettings\022\022\n\004name\030\001 \001(\tB\004\342" + + "A\001\003\022e\n\024event_data_retention\030\002 \001(\0162G.goog" + + "le.analytics.admin.v1alpha.DataRetention" + + "Settings.RetentionDuration\022\'\n\037reset_user" + + "_data_on_new_activity\030\003 \001(\010\"\236\001\n\021Retentio" + + "nDuration\022\"\n\036RETENTION_DURATION_UNSPECIF" + + "IED\020\000\022\016\n\nTWO_MONTHS\020\001\022\023\n\017FOURTEEN_MONTHS" + + "\020\003\022\025\n\021TWENTY_SIX_MONTHS\020\004\022\027\n\023THIRTY_EIGH" + + "T_MONTHS\020\005\022\020\n\014FIFTY_MONTHS\020\006:e\352Ab\n3analy" + + "ticsadmin.googleapis.com/DataRetentionSe" + + "ttings\022+properties/{property}/dataRetent" + + "ionSettings\"\252\r\n\023AttributionSettings\022\022\n\004n" + + "ame\030\001 \001(\tB\004\342A\001\003\022\230\001\n,acquisition_conversi" + + "on_event_lookback_window\030\002 \001(\0162\\.google." + "analytics.admin.v1alpha.AttributionSetti" - + "ngs.AdsWebConversionDataExportScopeB\004\342A\001" - + "\002\"\333\001\n(AcquisitionConversionEventLookback" - + "Window\022<\n8ACQUISITION_CONVERSION_EVENT_L" - + "OOKBACK_WINDOW_UNSPECIFIED\020\000\0227\n3ACQUISIT" - + "ION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_D" - + "AYS\020\001\0228\n4ACQUISITION_CONVERSION_EVENT_LO" - + "OKBACK_WINDOW_30_DAYS\020\002\"\370\001\n\"OtherConvers" - + "ionEventLookbackWindow\0226\n2OTHER_CONVERSI" - + "ON_EVENT_LOOKBACK_WINDOW_UNSPECIFIED\020\000\0222" - + "\n.OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW" - + "_30_DAYS\020\001\0222\n.OTHER_CONVERSION_EVENT_LOO" - + "KBACK_WINDOW_60_DAYS\020\002\0222\n.OTHER_CONVERSI" - + "ON_EVENT_LOOKBACK_WINDOW_90_DAYS\020\003\"\353\002\n\031R" - + "eportingAttributionModel\022+\n\'REPORTING_AT" - + "TRIBUTION_MODEL_UNSPECIFIED\020\000\022)\n%PAID_AN" - + "D_ORGANIC_CHANNELS_DATA_DRIVEN\020\001\022(\n$PAID" - + "_AND_ORGANIC_CHANNELS_LAST_CLICK\020\002\022)\n%PA" - + "ID_AND_ORGANIC_CHANNELS_FIRST_CLICK\020\003\022$\n" - + " PAID_AND_ORGANIC_CHANNELS_LINEAR\020\004\022,\n(P" - + "AID_AND_ORGANIC_CHANNELS_POSITION_BASED\020" - + "\005\022(\n$PAID_AND_ORGANIC_CHANNELS_TIME_DECA" - + "Y\020\006\022#\n\037GOOGLE_PAID_CHANNELS_LAST_CLICK\020\007" - + "\"\246\001\n\037AdsWebConversionDataExportScope\0224\n0" - + "ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNS" - + "PECIFIED\020\000\022\024\n\020NOT_SELECTED_YET\020\001\022\035\n\031PAID" - + "_AND_ORGANIC_CHANNELS\020\002\022\030\n\024GOOGLE_PAID_C" - + "HANNELS\020\003:a\352A^\n1analyticsadmin.googleapi" - + "s.com/AttributionSettings\022)properties/{p" - + "roperty}/attributionSettings\"\362\001\n\rAccessB" - + "inding\022\016\n\004user\030\002 \001(\tH\000\022\022\n\004name\030\001 \001(\tB\004\342A" - + "\001\003\022\r\n\005roles\030\003 \003(\t:\234\001\352A\230\001\n+analyticsadmin" - + ".googleapis.com/AccessBinding\0222accounts/" - + "{account}/accessBindings/{access_binding" - + "}\0225properties/{property}/accessBindings/" - + "{access_binding}B\017\n\raccess_target\"\213\003\n\014Bi" - + "gQueryLink\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\025\n\007projec" - + "t\030\002 \001(\tB\004\342A\001\005\0225\n\013create_time\030\003 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\004\342A\001\003\022\034\n\024daily_ex" - + "port_enabled\030\004 \001(\010\022 \n\030streaming_export_e" - + "nabled\030\005 \001(\010\022\"\n\032fresh_daily_export_enabl" - + "ed\030\t \001(\010\022\036\n\026include_advertising_id\030\006 \001(\010" - + "\022\026\n\016export_streams\030\007 \003(\t\022\027\n\017excluded_eve" - + "nts\030\010 \003(\t:d\352Aa\n*analyticsadmin.googleapi" - + "s.com/BigQueryLink\0223properties/{property" - + "}/bigQueryLinks/{bigquery_link}\"\365\003\n\033Enha" - + "ncedMeasurementSettings\022\022\n\004name\030\001 \001(\tB\004\342" - + "A\001\003\022\026\n\016stream_enabled\030\002 \001(\010\022\027\n\017scrolls_e" - + "nabled\030\003 \001(\010\022\037\n\027outbound_clicks_enabled\030" - + "\004 \001(\010\022\033\n\023site_search_enabled\030\005 \001(\010\022 \n\030vi" - + "deo_engagement_enabled\030\006 \001(\010\022\036\n\026file_dow" - + "nloads_enabled\030\007 \001(\010\022\034\n\024page_changes_ena" - + "bled\030\010 \001(\010\022!\n\031form_interactions_enabled\030" - + "\t \001(\010\022$\n\026search_query_parameter\030\n \001(\tB\004\342" - + "A\001\002\022\033\n\023uri_query_parameter\030\013 \001(\t:\214\001\352A\210\001\n" - + "9analyticsadmin.googleapis.com/EnhancedM" - + "easurementSettings\022Kproperties/{property" - + "}/dataStreams/{data_stream}/enhancedMeas" - + "urementSettings\"D\n\020ConnectedSiteTag\022\032\n\014d" - + "isplay_name\030\001 \001(\tB\004\342A\001\002\022\024\n\006tag_id\030\002 \001(\tB" - + "\004\342A\001\002\"\242\001\n\013AdSenseLink\022\022\n\004name\030\001 \001(\tB\004\342A\001" - + "\003\022\034\n\016ad_client_code\030\002 \001(\tB\004\342A\001\005:a\352A^\n)an" - + "alyticsadmin.googleapis.com/AdSenseLink\022" - + "1properties/{property}/adSenseLinks/{ads" - + "ense_link}*\252\004\n\020IndustryCategory\022!\n\035INDUS" - + "TRY_CATEGORY_UNSPECIFIED\020\000\022\016\n\nAUTOMOTIVE" - + "\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\nTECHNOLO", - "GY\020\005\022\n\n\006TRAVEL\020\006\022\t\n\005OTHER\020\007\022\032\n\026ARTS_AND_" - + "ENTERTAINMENT\020\010\022\026\n\022BEAUTY_AND_FITNESS\020\t\022" - + "\030\n\024BOOKS_AND_LITERATURE\020\n\022\022\n\016FOOD_AND_DR" - + "INK\020\013\022\t\n\005GAMES\020\014\022\027\n\023HOBBIES_AND_LEISURE\020" - + "\r\022\023\n\017HOME_AND_GARDEN\020\016\022\030\n\024INTERNET_AND_T" - + "ELECOM\020\017\022\026\n\022LAW_AND_GOVERNMENT\020\020\022\010\n\004NEWS" - + "\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\013REAL" - + "_ESTATE\020\025\022\r\n\tREFERENCE\020\026\022\013\n\007SCIENCE\020\027\022\n\n" - + "\006SPORTS\020\030\022\026\n\022JOBS_AND_EDUCATION\020\031\022\014\n\010SHO" - + "PPING\020\032*f\n\014ServiceLevel\022\035\n\031SERVICE_LEVEL" - + "_UNSPECIFIED\020\000\022\035\n\031GOOGLE_ANALYTICS_STAND" - + "ARD\020\001\022\030\n\024GOOGLE_ANALYTICS_360\020\002*J\n\tActor" - + "Type\022\032\n\026ACTOR_TYPE_UNSPECIFIED\020\000\022\010\n\004USER" - + "\020\001\022\n\n\006SYSTEM\020\002\022\013\n\007SUPPORT\020\003*P\n\nActionTyp" - + "e\022\033\n\027ACTION_TYPE_UNSPECIFIED\020\000\022\013\n\007CREATE" - + "D\020\001\022\013\n\007UPDATED\020\002\022\013\n\007DELETED\020\003*\356\004\n\031Change" - + "HistoryResourceType\022,\n(CHANGE_HISTORY_RE" - + "SOURCE_TYPE_UNSPECIFIED\020\000\022\013\n\007ACCOUNT\020\001\022\014" - + "\n\010PROPERTY\020\002\022\021\n\rFIREBASE_LINK\020\006\022\023\n\017GOOGL" - + "E_ADS_LINK\020\007\022\033\n\027GOOGLE_SIGNALS_SETTINGS\020" - + "\010\022\024\n\020CONVERSION_EVENT\020\t\022\037\n\033MEASUREMENT_P" - + "ROTOCOL_SECRET\020\n\022\024\n\020CUSTOM_DIMENSION\020\013\022\021" - + "\n\rCUSTOM_METRIC\020\014\022\033\n\027DATA_RETENTION_SETT" - + "INGS\020\r\022%\n!DISPLAY_VIDEO_360_ADVERTISER_L" - + "INK\020\016\022.\n*DISPLAY_VIDEO_360_ADVERTISER_LI" - + "NK_PROPOSAL\020\017\022\027\n\023SEARCH_ADS_360_LINK\020\020\022\017" - + "\n\013DATA_STREAM\020\022\022\030\n\024ATTRIBUTION_SETTINGS\020" - + "\024\022\025\n\021EXPANDED_DATA_SET\020\025\022\021\n\rCHANNEL_GROU" - + "P\020\026\022!\n\035ENHANCED_MEASUREMENT_SETTINGS\020\030\022\'" - + "\n#SKADNETWORK_CONVERSION_VALUE_SCHEMA\020\032\022" - + "\020\n\014ADSENSE_LINK\020\033\022\014\n\010AUDIENCE\020\034\022\025\n\021EVENT" - + "_CREATE_RULE\020\035*s\n\022GoogleSignalsState\022$\n " - + "GOOGLE_SIGNALS_STATE_UNSPECIFIED\020\000\022\032\n\026GO" - + "OGLE_SIGNALS_ENABLED\020\001\022\033\n\027GOOGLE_SIGNALS" - + "_DISABLED\020\002*\216\001\n\024GoogleSignalsConsent\022&\n\"" - + "GOOGLE_SIGNALS_CONSENT_UNSPECIFIED\020\000\022$\n " - + "GOOGLE_SIGNALS_CONSENT_CONSENTED\020\002\022(\n$GO" - + "OGLE_SIGNALS_CONSENT_NOT_CONSENTED\020\001*{\n\035" - + "LinkProposalInitiatingProduct\0220\n,LINK_PR" - + "OPOSAL_INITIATING_PRODUCT_UNSPECIFIED\020\000\022" - + "\024\n\020GOOGLE_ANALYTICS\020\001\022\022\n\016LINKED_PRODUCT\020" - + "\002*\304\001\n\021LinkProposalState\022#\n\037LINK_PROPOSAL" - + "_STATE_UNSPECIFIED\020\000\022)\n%AWAITING_REVIEW_" - + "FROM_GOOGLE_ANALYTICS\020\001\022\'\n#AWAITING_REVI" - + "EW_FROM_LINKED_PRODUCT\020\002\022\r\n\tWITHDRAWN\020\003\022" - + "\014\n\010DECLINED\020\004\022\013\n\007EXPIRED\020\005\022\014\n\010OBSOLETE\020\006" - + "*\202\001\n\014PropertyType\022\035\n\031PROPERTY_TYPE_UNSPE" - + "CIFIED\020\000\022\032\n\026PROPERTY_TYPE_ORDINARY\020\001\022\035\n\031" - + "PROPERTY_TYPE_SUBPROPERTY\020\002\022\030\n\024PROPERTY_" - + "TYPE_ROLLUP\020\003*q\n\013CoarseValue\022\034\n\030COARSE_V" - + "ALUE_UNSPECIFIED\020\000\022\024\n\020COARSE_VALUE_LOW\020\001" - + "\022\027\n\023COARSE_VALUE_MEDIUM\020\002\022\025\n\021COARSE_VALU" - + "E_HIGH\020\003Bv\n\"com.google.analytics.admin.v" - + "1alphaB\016ResourcesProtoP\001Z>cloud.google.c" - + "om/go/analytics/admin/apiv1alpha/adminpb" - + ";adminpbb\006proto3" + + "ngs.AcquisitionConversionEventLookbackWi" + + "ndowB\004\342A\001\002\022\214\001\n&other_conversion_event_lo" + + "okback_window\030\003 \001(\0162V.google.analytics.a" + + "dmin.v1alpha.AttributionSettings.OtherCo" + + "nversionEventLookbackWindowB\004\342A\001\002\022x\n\033rep" + + "orting_attribution_model\030\004 \001(\0162M.google." + + "analytics.admin.v1alpha.AttributionSetti" + + "ngs.ReportingAttributionModelB\004\342A\001\002\022\207\001\n$" + + "ads_web_conversion_data_export_scope\030\005 \001" + + "(\0162S.google.analytics.admin.v1alpha.Attr" + + "ibutionSettings.AdsWebConversionDataExpo" + + "rtScopeB\004\342A\001\002\"\333\001\n(AcquisitionConversionE" + + "ventLookbackWindow\022<\n8ACQUISITION_CONVER" + + "SION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED\020\000" + + "\0227\n3ACQUISITION_CONVERSION_EVENT_LOOKBAC" + + "K_WINDOW_7_DAYS\020\001\0228\n4ACQUISITION_CONVERS" + + "ION_EVENT_LOOKBACK_WINDOW_30_DAYS\020\002\"\370\001\n\"" + + "OtherConversionEventLookbackWindow\0226\n2OT" + + "HER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNS" + + "PECIFIED\020\000\0222\n.OTHER_CONVERSION_EVENT_LOO" + + "KBACK_WINDOW_30_DAYS\020\001\0222\n.OTHER_CONVERSI" + + "ON_EVENT_LOOKBACK_WINDOW_60_DAYS\020\002\0222\n.OT" + + "HER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_" + + "DAYS\020\003\"\353\002\n\031ReportingAttributionModel\022+\n\'" + + "REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED\020" + + "\000\022)\n%PAID_AND_ORGANIC_CHANNELS_DATA_DRIV" + + "EN\020\001\022(\n$PAID_AND_ORGANIC_CHANNELS_LAST_C" + + "LICK\020\002\022)\n%PAID_AND_ORGANIC_CHANNELS_FIRS" + + "T_CLICK\020\003\022$\n PAID_AND_ORGANIC_CHANNELS_L" + + "INEAR\020\004\022,\n(PAID_AND_ORGANIC_CHANNELS_POS" + + "ITION_BASED\020\005\022(\n$PAID_AND_ORGANIC_CHANNE" + + "LS_TIME_DECAY\020\006\022#\n\037GOOGLE_PAID_CHANNELS_" + + "LAST_CLICK\020\007\"\246\001\n\037AdsWebConversionDataExp" + + "ortScope\0224\n0ADS_WEB_CONVERSION_DATA_EXPO" + + "RT_SCOPE_UNSPECIFIED\020\000\022\024\n\020NOT_SELECTED_Y" + + "ET\020\001\022\035\n\031PAID_AND_ORGANIC_CHANNELS\020\002\022\030\n\024G" + + "OOGLE_PAID_CHANNELS\020\003:a\352A^\n1analyticsadm" + + "in.googleapis.com/AttributionSettings\022)p" + + "roperties/{property}/attributionSettings" + + "\"\362\001\n\rAccessBinding\022\016\n\004user\030\002 \001(\tH\000\022\022\n\004na" + + "me\030\001 \001(\tB\004\342A\001\003\022\r\n\005roles\030\003 \003(\t:\234\001\352A\230\001\n+an" + + "alyticsadmin.googleapis.com/AccessBindin" + + "g\0222accounts/{account}/accessBindings/{ac" + + "cess_binding}\0225properties/{property}/acc" + + "essBindings/{access_binding}B\017\n\raccess_t" + + "arget\"\213\003\n\014BigQueryLink\022\022\n\004name\030\001 \001(\tB\004\342A" + + "\001\003\022\025\n\007project\030\002 \001(\tB\004\342A\001\005\0225\n\013create_time" + + "\030\003 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" + + "\022\034\n\024daily_export_enabled\030\004 \001(\010\022 \n\030stream" + + "ing_export_enabled\030\005 \001(\010\022\"\n\032fresh_daily_" + + "export_enabled\030\t \001(\010\022\036\n\026include_advertis" + + "ing_id\030\006 \001(\010\022\026\n\016export_streams\030\007 \003(\t\022\027\n\017" + + "excluded_events\030\010 \003(\t:d\352Aa\n*analyticsadm" + + "in.googleapis.com/BigQueryLink\0223properti" + + "es/{property}/bigQueryLinks/{bigquery_li" + + "nk}\"\365\003\n\033EnhancedMeasurementSettings\022\022\n\004n" + + "ame\030\001 \001(\tB\004\342A\001\003\022\026\n\016stream_enabled\030\002 \001(\010\022" + + "\027\n\017scrolls_enabled\030\003 \001(\010\022\037\n\027outbound_cli" + + "cks_enabled\030\004 \001(\010\022\033\n\023site_search_enabled" + + "\030\005 \001(\010\022 \n\030video_engagement_enabled\030\006 \001(\010" + + "\022\036\n\026file_downloads_enabled\030\007 \001(\010\022\034\n\024page" + + "_changes_enabled\030\010 \001(\010\022!\n\031form_interacti" + + "ons_enabled\030\t \001(\010\022$\n\026search_query_parame" + + "ter\030\n \001(\tB\004\342A\001\002\022\033\n\023uri_query_parameter\030\013" + + " \001(\t:\214\001\352A\210\001\n9analyticsadmin.googleapis.c" + + "om/EnhancedMeasurementSettings\022Kproperti" + + "es/{property}/dataStreams/{data_stream}/" + + "enhancedMeasurementSettings\"D\n\020Connected" + + "SiteTag\022\032\n\014display_name\030\001 \001(\tB\004\342A\001\002\022\024\n\006t" + + "ag_id\030\002 \001(\tB\004\342A\001\002\"\226\002\n\025DataRedactionSetti" + + "ngs\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\037\n\027email_redacti" + + "on_enabled\030\002 \001(\010\022)\n!query_parameter_reda" + + "ction_enabled\030\003 \001(\010\022\034\n\024query_parameter_k" + + "eys\030\004 \003(\t:\177\352A|\n3analyticsadmin.googleapi" + + "s.com/DataRedactionSettings\022Eproperties/" + + "{property}/dataStreams/{data_stream}/dat" + + "aRedactionSettings\"\242\001\n\013AdSenseLink\022\022\n\004na" + + "me\030\001 \001(\tB\004\342A\001\003\022\034\n\016ad_client_code\030\002 \001(\tB\004" + + "\342A\001\005:a\352A^\n)analyticsadmin.googleapis.com" + + "/AdSenseLink\0221properties/{property}/adSe" + + "nseLinks/{adsense_link}\"\220\002\n\030RollupProper" + + "tySourceLink\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\035\n\017sour" + + "ce_property\030\002 \001(\tB\004\342A\001\005:\300\001\352A\274\001\n6analytic", + "sadmin.googleapis.com/RollupPropertySour" + + "ceLink\022Mproperties/{property}/rollupProp" + + "ertySourceLinks/{rollup_property_source_" + + "link}*\031rollupPropertySourceLinks2\030rollup" + + "PropertySourceLink*\252\004\n\020IndustryCategory\022" + + "!\n\035INDUSTRY_CATEGORY_UNSPECIFIED\020\000\022\016\n\nAU" + + "TOMOTIVE\020\001\022#\n\037BUSINESS_AND_INDUSTRIAL_MA" + + "RKETS\020\002\022\013\n\007FINANCE\020\003\022\016\n\nHEALTHCARE\020\004\022\016\n\n" + + "TECHNOLOGY\020\005\022\n\n\006TRAVEL\020\006\022\t\n\005OTHER\020\007\022\032\n\026A" + + "RTS_AND_ENTERTAINMENT\020\010\022\026\n\022BEAUTY_AND_FI" + + "TNESS\020\t\022\030\n\024BOOKS_AND_LITERATURE\020\n\022\022\n\016FOO" + + "D_AND_DRINK\020\013\022\t\n\005GAMES\020\014\022\027\n\023HOBBIES_AND_" + + "LEISURE\020\r\022\023\n\017HOME_AND_GARDEN\020\016\022\030\n\024INTERN" + + "ET_AND_TELECOM\020\017\022\026\n\022LAW_AND_GOVERNMENT\020\020" + + "\022\010\n\004NEWS\020\021\022\026\n\022ONLINE_COMMUNITIES\020\022\022\026\n\022PE" + + "OPLE_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\007SCIE" + + "NCE\020\027\022\n\n\006SPORTS\020\030\022\026\n\022JOBS_AND_EDUCATION\020" + + "\031\022\014\n\010SHOPPING\020\032*f\n\014ServiceLevel\022\035\n\031SERVI" + + "CE_LEVEL_UNSPECIFIED\020\000\022\035\n\031GOOGLE_ANALYTI" + + "CS_STANDARD\020\001\022\030\n\024GOOGLE_ANALYTICS_360\020\002*" + + "J\n\tActorType\022\032\n\026ACTOR_TYPE_UNSPECIFIED\020\000" + + "\022\010\n\004USER\020\001\022\n\n\006SYSTEM\020\002\022\013\n\007SUPPORT\020\003*P\n\nA" + + "ctionType\022\033\n\027ACTION_TYPE_UNSPECIFIED\020\000\022\013" + + "\n\007CREATED\020\001\022\013\n\007UPDATED\020\002\022\013\n\007DELETED\020\003*\213\005" + + "\n\031ChangeHistoryResourceType\022,\n(CHANGE_HI" + + "STORY_RESOURCE_TYPE_UNSPECIFIED\020\000\022\013\n\007ACC" + + "OUNT\020\001\022\014\n\010PROPERTY\020\002\022\021\n\rFIREBASE_LINK\020\006\022" + + "\023\n\017GOOGLE_ADS_LINK\020\007\022\033\n\027GOOGLE_SIGNALS_S" + + "ETTINGS\020\010\022\024\n\020CONVERSION_EVENT\020\t\022\037\n\033MEASU" + + "REMENT_PROTOCOL_SECRET\020\n\022\024\n\020CUSTOM_DIMEN" + + "SION\020\013\022\021\n\rCUSTOM_METRIC\020\014\022\033\n\027DATA_RETENT" + + "ION_SETTINGS\020\r\022%\n!DISPLAY_VIDEO_360_ADVE" + + "RTISER_LINK\020\016\022.\n*DISPLAY_VIDEO_360_ADVER" + + "TISER_LINK_PROPOSAL\020\017\022\027\n\023SEARCH_ADS_360_" + + "LINK\020\020\022\017\n\013DATA_STREAM\020\022\022\030\n\024ATTRIBUTION_S" + + "ETTINGS\020\024\022\025\n\021EXPANDED_DATA_SET\020\025\022\021\n\rCHAN" + + "NEL_GROUP\020\026\022!\n\035ENHANCED_MEASUREMENT_SETT" + + "INGS\020\030\022\033\n\027DATA_REDACTION_SETTINGS\020\031\022\'\n#S" + + "KADNETWORK_CONVERSION_VALUE_SCHEMA\020\032\022\020\n\014" + + "ADSENSE_LINK\020\033\022\014\n\010AUDIENCE\020\034\022\025\n\021EVENT_CR" + + "EATE_RULE\020\035*s\n\022GoogleSignalsState\022$\n GOO" + + "GLE_SIGNALS_STATE_UNSPECIFIED\020\000\022\032\n\026GOOGL" + + "E_SIGNALS_ENABLED\020\001\022\033\n\027GOOGLE_SIGNALS_DI" + + "SABLED\020\002*\216\001\n\024GoogleSignalsConsent\022&\n\"GOO" + + "GLE_SIGNALS_CONSENT_UNSPECIFIED\020\000\022$\n GOO" + + "GLE_SIGNALS_CONSENT_CONSENTED\020\002\022(\n$GOOGL" + + "E_SIGNALS_CONSENT_NOT_CONSENTED\020\001*{\n\035Lin" + + "kProposalInitiatingProduct\0220\n,LINK_PROPO" + + "SAL_INITIATING_PRODUCT_UNSPECIFIED\020\000\022\024\n\020" + + "GOOGLE_ANALYTICS\020\001\022\022\n\016LINKED_PRODUCT\020\002*\304" + + "\001\n\021LinkProposalState\022#\n\037LINK_PROPOSAL_ST" + + "ATE_UNSPECIFIED\020\000\022)\n%AWAITING_REVIEW_FRO" + + "M_GOOGLE_ANALYTICS\020\001\022\'\n#AWAITING_REVIEW_" + + "FROM_LINKED_PRODUCT\020\002\022\r\n\tWITHDRAWN\020\003\022\014\n\010" + + "DECLINED\020\004\022\013\n\007EXPIRED\020\005\022\014\n\010OBSOLETE\020\006*\202\001" + + "\n\014PropertyType\022\035\n\031PROPERTY_TYPE_UNSPECIF" + + "IED\020\000\022\032\n\026PROPERTY_TYPE_ORDINARY\020\001\022\035\n\031PRO" + + "PERTY_TYPE_SUBPROPERTY\020\002\022\030\n\024PROPERTY_TYP" + + "E_ROLLUP\020\003*q\n\013CoarseValue\022\034\n\030COARSE_VALU" + + "E_UNSPECIFIED\020\000\022\024\n\020COARSE_VALUE_LOW\020\001\022\027\n" + + "\023COARSE_VALUE_MEDIUM\020\002\022\025\n\021COARSE_VALUE_H" + + "IGH\020\003Bv\n\"com.google.analytics.admin.v1al" + + "phaB\016ResourcesProtoP\001Z>cloud.google.com/" + + "go/analytics/admin/apiv1alpha/adminpb;ad" + + "minpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -729,24 +738,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "FirebaseAppId", "BundleId", }); - internal_static_google_analytics_admin_v1alpha_UserLink_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_analytics_admin_v1alpha_UserLink_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UserLink_descriptor, - new java.lang.String[] { - "Name", "EmailAddress", "DirectRoles", - }); - internal_static_google_analytics_admin_v1alpha_AuditUserLink_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_analytics_admin_v1alpha_AuditUserLink_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AuditUserLink_descriptor, - new java.lang.String[] { - "Name", "EmailAddress", "DirectRoles", "EffectiveRoles", - }); internal_static_google_analytics_admin_v1alpha_FirebaseLink_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(3); internal_static_google_analytics_admin_v1alpha_FirebaseLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_FirebaseLink_descriptor, @@ -754,7 +747,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Project", "CreateTime", }); internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(4); internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_descriptor, @@ -762,7 +755,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Snippet", }); internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(5); internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_descriptor, @@ -776,7 +769,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreatorEmailAddress", }); internal_static_google_analytics_admin_v1alpha_DataSharingSettings_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(6); internal_static_google_analytics_admin_v1alpha_DataSharingSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DataSharingSettings_descriptor, @@ -789,7 +782,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SharingWithOthersEnabled", }); internal_static_google_analytics_admin_v1alpha_AccountSummary_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(7); internal_static_google_analytics_admin_v1alpha_AccountSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_AccountSummary_descriptor, @@ -797,7 +790,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Account", "DisplayName", "PropertySummaries", }); internal_static_google_analytics_admin_v1alpha_PropertySummary_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(8); internal_static_google_analytics_admin_v1alpha_PropertySummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_PropertySummary_descriptor, @@ -805,7 +798,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Property", "DisplayName", "PropertyType", "Parent", }); internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(9); internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor, @@ -813,7 +806,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DisplayName", "SecretValue", }); internal_static_google_analytics_admin_v1alpha_SKAdNetworkConversionValueSchema_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(10); internal_static_google_analytics_admin_v1alpha_SKAdNetworkConversionValueSchema_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_SKAdNetworkConversionValueSchema_descriptor, @@ -825,7 +818,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApplyConversionValues", }); internal_static_google_analytics_admin_v1alpha_PostbackWindow_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(11); internal_static_google_analytics_admin_v1alpha_PostbackWindow_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_PostbackWindow_descriptor, @@ -833,7 +826,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversionValues", "PostbackWindowSettingsEnabled", }); internal_static_google_analytics_admin_v1alpha_ConversionValues_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(12); internal_static_google_analytics_admin_v1alpha_ConversionValues_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ConversionValues_descriptor, @@ -846,7 +839,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FineValue", }); internal_static_google_analytics_admin_v1alpha_EventMapping_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(13); internal_static_google_analytics_admin_v1alpha_EventMapping_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_EventMapping_descriptor, @@ -862,7 +855,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaxEventValue", }); internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor = - getDescriptor().getMessageTypes().get(16); + 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, @@ -870,7 +863,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(17); + 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, @@ -904,6 +897,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ChannelGroup", "BigqueryLink", "EnhancedMeasurementSettings", + "DataRedactionSettings", "SkadnetworkConversionValueSchema", "AdsenseLink", "Audience", @@ -911,7 +905,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Resource", }); internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(16); internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor, @@ -924,7 +918,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CostDataSharingEnabled", }); internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(17); internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_descriptor, @@ -939,7 +933,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CostDataSharingEnabled", }); internal_static_google_analytics_admin_v1alpha_SearchAds360Link_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(18); internal_static_google_analytics_admin_v1alpha_SearchAds360Link_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_SearchAds360Link_descriptor, @@ -953,7 +947,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SiteStatsSharingEnabled", }); internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(19); internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_descriptor, @@ -961,7 +955,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LinkProposalInitiatingProduct", "RequestorEmail", "LinkProposalState", }); internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(20); internal_static_google_analytics_admin_v1alpha_ConversionEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor, @@ -969,7 +963,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "EventName", "CreateTime", "Deletable", "Custom", "CountingMethod", }); internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(21); internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor, @@ -977,7 +971,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "State", "Consent", }); internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(22); internal_static_google_analytics_admin_v1alpha_CustomDimension_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor, @@ -990,7 +984,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisallowAdsPersonalization", }); internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(23); internal_static_google_analytics_admin_v1alpha_CustomMetric_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor, @@ -1004,7 +998,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RestrictedMetricType", }); internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(24); internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_descriptor, @@ -1012,7 +1006,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "EventDataRetention", "ResetUserDataOnNewActivity", }); internal_static_google_analytics_admin_v1alpha_AttributionSettings_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(25); internal_static_google_analytics_admin_v1alpha_AttributionSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_AttributionSettings_descriptor, @@ -1024,7 +1018,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AdsWebConversionDataExportScope", }); internal_static_google_analytics_admin_v1alpha_AccessBinding_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(26); internal_static_google_analytics_admin_v1alpha_AccessBinding_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_AccessBinding_descriptor, @@ -1032,7 +1026,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "User", "Name", "Roles", "AccessTarget", }); internal_static_google_analytics_admin_v1alpha_BigQueryLink_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(27); internal_static_google_analytics_admin_v1alpha_BigQueryLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_BigQueryLink_descriptor, @@ -1048,7 +1042,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExcludedEvents", }); internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(28); internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_descriptor, @@ -1066,21 +1060,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UriQueryParameter", }); internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(29); internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_descriptor, new java.lang.String[] { "DisplayName", "TagId", }); + internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_descriptor, + new java.lang.String[] { + "Name", + "EmailRedactionEnabled", + "QueryParameterRedactionEnabled", + "QueryParameterKeys", + }); internal_static_google_analytics_admin_v1alpha_AdSenseLink_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(31); internal_static_google_analytics_admin_v1alpha_AdSenseLink_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_AdSenseLink_descriptor, new java.lang.String[] { "Name", "AdClientCode", }); + internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_descriptor, + new java.lang.String[] { + "Name", "SourceProperty", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLink.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLink.java new file mode 100644 index 000000000000..bce793f3358d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLink.java @@ -0,0 +1,842 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A link that references a source property under the parent rollup property.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.RollupPropertySourceLink} + */ +public final class RollupPropertySourceLink extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.RollupPropertySourceLink) + RollupPropertySourceLinkOrBuilder { + private static final long serialVersionUID = 0L; + // Use RollupPropertySourceLink.newBuilder() to construct. + private RollupPropertySourceLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RollupPropertySourceLink() { + name_ = ""; + sourceProperty_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RollupPropertySourceLink(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.class, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name of this RollupPropertySourceLink.
+   * Format:
+   * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
+   * Format: 'properties/123/rollupPropertySourceLinks/456'
+   * 
+ * + * 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 RollupPropertySourceLink.
+   * Format:
+   * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
+   * Format: 'properties/123/rollupPropertySourceLinks/456'
+   * 
+ * + * 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 SOURCE_PROPERTY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceProperty_ = ""; + /** + * + * + *
+   * Immutable. Resource name of the source property.
+   * Format: properties/{property_id}
+   * Example: "properties/789"
+   * 
+ * + * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The sourceProperty. + */ + @java.lang.Override + public java.lang.String getSourceProperty() { + java.lang.Object ref = sourceProperty_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceProperty_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. Resource name of the source property.
+   * Format: properties/{property_id}
+   * Example: "properties/789"
+   * 
+ * + * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for sourceProperty. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourcePropertyBytes() { + java.lang.Object ref = sourceProperty_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceProperty_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceProperty_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceProperty_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceProperty_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceProperty_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.RollupPropertySourceLink)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.RollupPropertySourceLink other = + (com.google.analytics.admin.v1alpha.RollupPropertySourceLink) obj; + + if (!getName().equals(other.getName())) return false; + if (!getSourceProperty().equals(other.getSourceProperty())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + SOURCE_PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getSourceProperty().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom( + 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.RollupPropertySourceLink parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom( + com.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.RollupPropertySourceLink parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink 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.RollupPropertySourceLink parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom( + java.io.InputStream 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.RollupPropertySourceLink parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseDelimitedFrom( + java.io.InputStream 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.RollupPropertySourceLink 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.RollupPropertySourceLink parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.RollupPropertySourceLink prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A link that references a source property under the parent rollup property.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.RollupPropertySourceLink} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.RollupPropertySourceLink) + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.class, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.RollupPropertySourceLink.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + sourceProperty_ = ""; + 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_RollupPropertySourceLink_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink build() { + com.google.analytics.admin.v1alpha.RollupPropertySourceLink result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink buildPartial() { + com.google.analytics.admin.v1alpha.RollupPropertySourceLink result = + new com.google.analytics.admin.v1alpha.RollupPropertySourceLink(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.RollupPropertySourceLink result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sourceProperty_ = sourceProperty_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.RollupPropertySourceLink) { + return mergeFrom((com.google.analytics.admin.v1alpha.RollupPropertySourceLink) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.RollupPropertySourceLink other) { + if (other == com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSourceProperty().isEmpty()) { + sourceProperty_ = other.sourceProperty_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sourceProperty_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this RollupPropertySourceLink.
+     * Format:
+     * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
+     * Format: 'properties/123/rollupPropertySourceLinks/456'
+     * 
+ * + * 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 RollupPropertySourceLink.
+     * Format:
+     * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
+     * Format: 'properties/123/rollupPropertySourceLinks/456'
+     * 
+ * + * 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 RollupPropertySourceLink.
+     * Format:
+     * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
+     * Format: 'properties/123/rollupPropertySourceLinks/456'
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this RollupPropertySourceLink.
+     * Format:
+     * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
+     * Format: 'properties/123/rollupPropertySourceLinks/456'
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this RollupPropertySourceLink.
+     * Format:
+     * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
+     * Format: 'properties/123/rollupPropertySourceLinks/456'
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object sourceProperty_ = ""; + /** + * + * + *
+     * Immutable. Resource name of the source property.
+     * Format: properties/{property_id}
+     * Example: "properties/789"
+     * 
+ * + * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The sourceProperty. + */ + public java.lang.String getSourceProperty() { + java.lang.Object ref = sourceProperty_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceProperty_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. Resource name of the source property.
+     * Format: properties/{property_id}
+     * Example: "properties/789"
+     * 
+ * + * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for sourceProperty. + */ + public com.google.protobuf.ByteString getSourcePropertyBytes() { + java.lang.Object ref = sourceProperty_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceProperty_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. Resource name of the source property.
+     * Format: properties/{property_id}
+     * Example: "properties/789"
+     * 
+ * + * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The sourceProperty to set. + * @return This builder for chaining. + */ + public Builder setSourceProperty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceProperty_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Resource name of the source property.
+     * Format: properties/{property_id}
+     * Example: "properties/789"
+     * 
+ * + * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearSourceProperty() { + sourceProperty_ = getDefaultInstance().getSourceProperty(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Resource name of the source property.
+     * Format: properties/{property_id}
+     * Example: "properties/789"
+     * 
+ * + * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for sourceProperty to set. + * @return This builder for chaining. + */ + public Builder setSourcePropertyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceProperty_ = value; + bitField0_ |= 0x00000002; + 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.RollupPropertySourceLink) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.RollupPropertySourceLink) + private static final com.google.analytics.admin.v1alpha.RollupPropertySourceLink DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.RollupPropertySourceLink(); + } + + public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RollupPropertySourceLink parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLinkName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLinkName.java new file mode 100644 index 000000000000..9b9da87541d2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLinkName.java @@ -0,0 +1,202 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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 RollupPropertySourceLinkName implements ResourceName { + private static final PathTemplate PROPERTY_ROLLUP_PROPERTY_SOURCE_LINK = + PathTemplate.createWithoutUrlEncoding( + "properties/{property}/rollupPropertySourceLinks/{rollup_property_source_link}"); + private volatile Map fieldValuesMap; + private final String property; + private final String rollupPropertySourceLink; + + @Deprecated + protected RollupPropertySourceLinkName() { + property = null; + rollupPropertySourceLink = null; + } + + private RollupPropertySourceLinkName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + rollupPropertySourceLink = Preconditions.checkNotNull(builder.getRollupPropertySourceLink()); + } + + public String getProperty() { + return property; + } + + public String getRollupPropertySourceLink() { + return rollupPropertySourceLink; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static RollupPropertySourceLinkName of(String property, String rollupPropertySourceLink) { + return newBuilder() + .setProperty(property) + .setRollupPropertySourceLink(rollupPropertySourceLink) + .build(); + } + + public static String format(String property, String rollupPropertySourceLink) { + return newBuilder() + .setProperty(property) + .setRollupPropertySourceLink(rollupPropertySourceLink) + .build() + .toString(); + } + + public static RollupPropertySourceLinkName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY_ROLLUP_PROPERTY_SOURCE_LINK.validatedMatch( + formattedString, + "RollupPropertySourceLinkName.parse: formattedString not in valid format"); + return of(matchMap.get("property"), matchMap.get("rollup_property_source_link")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (RollupPropertySourceLinkName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROPERTY_ROLLUP_PROPERTY_SOURCE_LINK.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (property != null) { + fieldMapBuilder.put("property", property); + } + if (rollupPropertySourceLink != null) { + fieldMapBuilder.put("rollup_property_source_link", rollupPropertySourceLink); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROPERTY_ROLLUP_PROPERTY_SOURCE_LINK.instantiate( + "property", property, "rollup_property_source_link", rollupPropertySourceLink); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + RollupPropertySourceLinkName that = ((RollupPropertySourceLinkName) o); + return Objects.equals(this.property, that.property) + && Objects.equals(this.rollupPropertySourceLink, that.rollupPropertySourceLink); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(property); + h *= 1000003; + h ^= Objects.hashCode(rollupPropertySourceLink); + return h; + } + + /** Builder for properties/{property}/rollupPropertySourceLinks/{rollup_property_source_link}. */ + public static class Builder { + private String property; + private String rollupPropertySourceLink; + + protected Builder() {} + + public String getProperty() { + return property; + } + + public String getRollupPropertySourceLink() { + return rollupPropertySourceLink; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + public Builder setRollupPropertySourceLink(String rollupPropertySourceLink) { + this.rollupPropertySourceLink = rollupPropertySourceLink; + return this; + } + + private Builder(RollupPropertySourceLinkName rollupPropertySourceLinkName) { + this.property = rollupPropertySourceLinkName.property; + this.rollupPropertySourceLink = rollupPropertySourceLinkName.rollupPropertySourceLink; + } + + public RollupPropertySourceLinkName build() { + return new RollupPropertySourceLinkName(this); + } + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLinkOrBuilder.java new file mode 100644 index 000000000000..73247d52cdf2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLinkOrBuilder.java @@ -0,0 +1,85 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 RollupPropertySourceLinkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.RollupPropertySourceLink) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this RollupPropertySourceLink.
+   * Format:
+   * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
+   * Format: 'properties/123/rollupPropertySourceLinks/456'
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of this RollupPropertySourceLink.
+   * Format:
+   * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
+   * Format: 'properties/123/rollupPropertySourceLinks/456'
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Immutable. Resource name of the source property.
+   * Format: properties/{property_id}
+   * Example: "properties/789"
+   * 
+ * + * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The sourceProperty. + */ + java.lang.String getSourceProperty(); + /** + * + * + *
+   * Immutable. Resource name of the source property.
+   * Format: properties/{property_id}
+   * Example: "properties/789"
+   * 
+ * + * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for sourceProperty. + */ + com.google.protobuf.ByteString getSourcePropertyBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequest.java index 7ac9e9b034fd..aae2b03385a7 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequest.java @@ -706,6 +706,49 @@ public boolean getReturnEntityQuota() { return returnEntityQuota_; } + public static final int INCLUDE_ALL_USERS_FIELD_NUMBER = 12; + private boolean includeAllUsers_ = false; + /** + * + * + *
+   * Optional. Determines whether to include users who have never made an API
+   * call in the response. If true, all users with access to the specified
+   * property or account are included in the response, regardless of whether
+   * they have made an API call or not. If false, only the users who have made
+   * an API call will be included.
+   * 
+ * + * bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeAllUsers. + */ + @java.lang.Override + public boolean getIncludeAllUsers() { + return includeAllUsers_; + } + + public static final int EXPAND_GROUPS_FIELD_NUMBER = 13; + private boolean expandGroups_ = false; + /** + * + * + *
+   * Optional. Decides whether to return the users within user groups. This
+   * field works only when include_all_users is set to true. If true, it will
+   * return all users with access to the specified property or account.
+   * If false, only the users with direct access will be returned.
+   * 
+ * + * bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The expandGroups. + */ + @java.lang.Override + public boolean getExpandGroups() { + return expandGroups_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -753,6 +796,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (returnEntityQuota_ != false) { output.writeBool(11, returnEntityQuota_); } + if (includeAllUsers_ != false) { + output.writeBool(12, includeAllUsers_); + } + if (expandGroups_ != false) { + output.writeBool(13, expandGroups_); + } getUnknownFields().writeTo(output); } @@ -795,6 +844,12 @@ public int getSerializedSize() { if (returnEntityQuota_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, returnEntityQuota_); } + if (includeAllUsers_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, includeAllUsers_); + } + if (expandGroups_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, expandGroups_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -828,6 +883,8 @@ public boolean equals(final java.lang.Object obj) { if (!getTimeZone().equals(other.getTimeZone())) return false; if (!getOrderBysList().equals(other.getOrderBysList())) return false; if (getReturnEntityQuota() != other.getReturnEntityQuota()) return false; + if (getIncludeAllUsers() != other.getIncludeAllUsers()) return false; + if (getExpandGroups() != other.getExpandGroups()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -873,6 +930,10 @@ public int hashCode() { } hash = (37 * hash) + RETURN_ENTITY_QUOTA_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnEntityQuota()); + hash = (37 * hash) + INCLUDE_ALL_USERS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeAllUsers()); + hash = (37 * hash) + EXPAND_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExpandGroups()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1056,6 +1117,8 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000200); returnEntityQuota_ = false; + includeAllUsers_ = false; + expandGroups_ = false; return this; } @@ -1156,6 +1219,12 @@ private void buildPartial0(com.google.analytics.admin.v1alpha.RunAccessReportReq if (((from_bitField0_ & 0x00000400) != 0)) { result.returnEntityQuota_ = returnEntityQuota_; } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.includeAllUsers_ = includeAllUsers_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.expandGroups_ = expandGroups_; + } } @java.lang.Override @@ -1337,6 +1406,12 @@ public Builder mergeFrom(com.google.analytics.admin.v1alpha.RunAccessReportReque if (other.getReturnEntityQuota() != false) { setReturnEntityQuota(other.getReturnEntityQuota()); } + if (other.getIncludeAllUsers() != false) { + setIncludeAllUsers(other.getIncludeAllUsers()); + } + if (other.getExpandGroups() != false) { + setExpandGroups(other.getExpandGroups()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1461,6 +1536,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000400; break; } // case 88 + case 96: + { + includeAllUsers_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 104: + { + expandGroups_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 104 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3938,6 +4025,133 @@ public Builder clearReturnEntityQuota() { return this; } + private boolean includeAllUsers_; + /** + * + * + *
+     * Optional. Determines whether to include users who have never made an API
+     * call in the response. If true, all users with access to the specified
+     * property or account are included in the response, regardless of whether
+     * they have made an API call or not. If false, only the users who have made
+     * an API call will be included.
+     * 
+ * + * bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeAllUsers. + */ + @java.lang.Override + public boolean getIncludeAllUsers() { + return includeAllUsers_; + } + /** + * + * + *
+     * Optional. Determines whether to include users who have never made an API
+     * call in the response. If true, all users with access to the specified
+     * property or account are included in the response, regardless of whether
+     * they have made an API call or not. If false, only the users who have made
+     * an API call will be included.
+     * 
+ * + * bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The includeAllUsers to set. + * @return This builder for chaining. + */ + public Builder setIncludeAllUsers(boolean value) { + + includeAllUsers_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Determines whether to include users who have never made an API
+     * call in the response. If true, all users with access to the specified
+     * property or account are included in the response, regardless of whether
+     * they have made an API call or not. If false, only the users who have made
+     * an API call will be included.
+     * 
+ * + * bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIncludeAllUsers() { + bitField0_ = (bitField0_ & ~0x00000800); + includeAllUsers_ = false; + onChanged(); + return this; + } + + private boolean expandGroups_; + /** + * + * + *
+     * Optional. Decides whether to return the users within user groups. This
+     * field works only when include_all_users is set to true. If true, it will
+     * return all users with access to the specified property or account.
+     * If false, only the users with direct access will be returned.
+     * 
+ * + * bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The expandGroups. + */ + @java.lang.Override + public boolean getExpandGroups() { + return expandGroups_; + } + /** + * + * + *
+     * Optional. Decides whether to return the users within user groups. This
+     * field works only when include_all_users is set to true. If true, it will
+     * return all users with access to the specified property or account.
+     * If false, only the users with direct access will be returned.
+     * 
+ * + * bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The expandGroups to set. + * @return This builder for chaining. + */ + public Builder setExpandGroups(boolean value) { + + expandGroups_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Decides whether to return the users within user groups. This
+     * field works only when include_all_users is set to true. If true, it will
+     * return all users with access to the specified property or account.
+     * If false, only the users with direct access will be returned.
+     * 
+ * + * bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearExpandGroups() { + bitField0_ = (bitField0_ & ~0x00001000); + expandGroups_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequestOrBuilder.java index 7ea1bb64cbb1..5461495c7937 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequestOrBuilder.java @@ -484,4 +484,37 @@ public interface RunAccessReportRequestOrBuilder * @return The returnEntityQuota. */ boolean getReturnEntityQuota(); + + /** + * + * + *
+   * Optional. Determines whether to include users who have never made an API
+   * call in the response. If true, all users with access to the specified
+   * property or account are included in the response, regardless of whether
+   * they have made an API call or not. If false, only the users who have made
+   * an API call will be included.
+   * 
+ * + * bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeAllUsers. + */ + boolean getIncludeAllUsers(); + + /** + * + * + *
+   * Optional. Decides whether to return the users within user groups. This
+   * field works only when include_all_users is set to true. If true, it will
+   * return all users with access to the specified property or account.
+   * If false, only the users with direct access will be returned.
+   * 
+ * + * bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The expandGroups. + */ + boolean getExpandGroups(); } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilter.java new file mode 100644 index 000000000000..8e7896e963f6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilter.java @@ -0,0 +1,1479 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/subproperty_event_filter.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A resource message representing a GA4 Subproperty event filter.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilter} + */ +public final class SubpropertyEventFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SubpropertyEventFilter) + SubpropertyEventFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use SubpropertyEventFilter.newBuilder() to construct. + private SubpropertyEventFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SubpropertyEventFilter() { + name_ = ""; + applyToProperty_ = ""; + filterClauses_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SubpropertyEventFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Format:
+   * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
+   * Example: properties/1234/subpropertyEventFilters/5678
+   * 
+ * + * 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. Format:
+   * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
+   * Example: properties/1234/subpropertyEventFilters/5678
+   * 
+ * + * 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 APPLY_TO_PROPERTY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object applyToProperty_ = ""; + /** + * + * + *
+   * Immutable. Resource name of the Subproperty that uses this filter.
+   * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the applyToProperty field is set. + */ + @java.lang.Override + public boolean hasApplyToProperty() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Immutable. Resource name of the Subproperty that uses this filter.
+   * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The applyToProperty. + */ + @java.lang.Override + public java.lang.String getApplyToProperty() { + java.lang.Object ref = applyToProperty_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applyToProperty_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. Resource name of the Subproperty that uses this filter.
+   * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for applyToProperty. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApplyToPropertyBytes() { + java.lang.Object ref = applyToProperty_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applyToProperty_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_CLAUSES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List + filterClauses_; + /** + * + * + *
+   * Required. Unordered list. Filter clauses that define the
+   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+   * data is sent to the subproperty.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public java.util.List + getFilterClausesList() { + return filterClauses_; + } + /** + * + * + *
+   * Required. Unordered list. Filter clauses that define the
+   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+   * data is sent to the subproperty.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder> + getFilterClausesOrBuilderList() { + return filterClauses_; + } + /** + * + * + *
+   * Required. Unordered list. Filter clauses that define the
+   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+   * data is sent to the subproperty.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public int getFilterClausesCount() { + return filterClauses_.size(); + } + /** + * + * + *
+   * Required. Unordered list. Filter clauses that define the
+   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+   * data is sent to the subproperty.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause getFilterClauses( + int index) { + return filterClauses_.get(index); + } + /** + * + * + *
+   * Required. Unordered list. Filter clauses that define the
+   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+   * data is sent to the subproperty.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder + getFilterClausesOrBuilder(int index) { + return filterClauses_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, applyToProperty_); + } + for (int i = 0; i < filterClauses_.size(); i++) { + output.writeMessage(3, filterClauses_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, applyToProperty_); + } + for (int i = 0; i < filterClauses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, filterClauses_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.SubpropertyEventFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.SubpropertyEventFilter other = + (com.google.analytics.admin.v1alpha.SubpropertyEventFilter) obj; + + if (!getName().equals(other.getName())) return false; + if (hasApplyToProperty() != other.hasApplyToProperty()) return false; + if (hasApplyToProperty()) { + if (!getApplyToProperty().equals(other.getApplyToProperty())) return false; + } + if (!getFilterClausesList().equals(other.getFilterClausesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasApplyToProperty()) { + hash = (37 * hash) + APPLY_TO_PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getApplyToProperty().hashCode(); + } + if (getFilterClausesCount() > 0) { + hash = (37 * hash) + FILTER_CLAUSES_FIELD_NUMBER; + hash = (53 * hash) + getFilterClausesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom( + 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.SubpropertyEventFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom( + com.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.SubpropertyEventFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter 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.SubpropertyEventFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom( + java.io.InputStream 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.SubpropertyEventFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseDelimitedFrom( + java.io.InputStream 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.SubpropertyEventFilter 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.SubpropertyEventFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.SubpropertyEventFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 resource message representing a GA4 Subproperty event filter.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SubpropertyEventFilter) + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.SubpropertyEventFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + applyToProperty_ = ""; + if (filterClausesBuilder_ == null) { + filterClauses_ = java.util.Collections.emptyList(); + } else { + filterClauses_ = null; + filterClausesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter build() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter buildPartial() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilter result = + new com.google.analytics.admin.v1alpha.SubpropertyEventFilter(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter result) { + if (filterClausesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + filterClauses_ = java.util.Collections.unmodifiableList(filterClauses_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.filterClauses_ = filterClauses_; + } else { + result.filterClauses_ = filterClausesBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.SubpropertyEventFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.applyToProperty_ = applyToProperty_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.SubpropertyEventFilter) { + return mergeFrom((com.google.analytics.admin.v1alpha.SubpropertyEventFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.SubpropertyEventFilter other) { + if (other == com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasApplyToProperty()) { + applyToProperty_ = other.applyToProperty_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (filterClausesBuilder_ == null) { + if (!other.filterClauses_.isEmpty()) { + if (filterClauses_.isEmpty()) { + filterClauses_ = other.filterClauses_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFilterClausesIsMutable(); + filterClauses_.addAll(other.filterClauses_); + } + onChanged(); + } + } else { + if (!other.filterClauses_.isEmpty()) { + if (filterClausesBuilder_.isEmpty()) { + filterClausesBuilder_.dispose(); + filterClausesBuilder_ = null; + filterClauses_ = other.filterClauses_; + bitField0_ = (bitField0_ & ~0x00000004); + filterClausesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFilterClausesFieldBuilder() + : null; + } else { + filterClausesBuilder_.addAllMessages(other.filterClauses_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + applyToProperty_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause m = + input.readMessage( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.parser(), + extensionRegistry); + if (filterClausesBuilder_ == null) { + ensureFilterClausesIsMutable(); + filterClauses_.add(m); + } else { + filterClausesBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Format:
+     * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
+     * Example: properties/1234/subpropertyEventFilters/5678
+     * 
+ * + * 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. Format:
+     * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
+     * Example: properties/1234/subpropertyEventFilters/5678
+     * 
+ * + * 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. Format:
+     * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
+     * Example: properties/1234/subpropertyEventFilters/5678
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Format:
+     * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
+     * Example: properties/1234/subpropertyEventFilters/5678
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Format:
+     * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
+     * Example: properties/1234/subpropertyEventFilters/5678
+     * 
+ * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object applyToProperty_ = ""; + /** + * + * + *
+     * Immutable. Resource name of the Subproperty that uses this filter.
+     * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the applyToProperty field is set. + */ + public boolean hasApplyToProperty() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Immutable. Resource name of the Subproperty that uses this filter.
+     * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The applyToProperty. + */ + public java.lang.String getApplyToProperty() { + java.lang.Object ref = applyToProperty_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applyToProperty_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. Resource name of the Subproperty that uses this filter.
+     * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for applyToProperty. + */ + public com.google.protobuf.ByteString getApplyToPropertyBytes() { + java.lang.Object ref = applyToProperty_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applyToProperty_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. Resource name of the Subproperty that uses this filter.
+     * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The applyToProperty to set. + * @return This builder for chaining. + */ + public Builder setApplyToProperty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + applyToProperty_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Resource name of the Subproperty that uses this filter.
+     * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearApplyToProperty() { + applyToProperty_ = getDefaultInstance().getApplyToProperty(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Resource name of the Subproperty that uses this filter.
+     * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for applyToProperty to set. + * @return This builder for chaining. + */ + public Builder setApplyToPropertyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + applyToProperty_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List + filterClauses_ = java.util.Collections.emptyList(); + + private void ensureFilterClausesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + filterClauses_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause>(filterClauses_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder> + filterClausesBuilder_; + + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public java.util.List + getFilterClausesList() { + if (filterClausesBuilder_ == null) { + return java.util.Collections.unmodifiableList(filterClauses_); + } else { + return filterClausesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public int getFilterClausesCount() { + if (filterClausesBuilder_ == null) { + return filterClauses_.size(); + } else { + return filterClausesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause getFilterClauses( + int index) { + if (filterClausesBuilder_ == null) { + return filterClauses_.get(index); + } else { + return filterClausesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder setFilterClauses( + int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause value) { + if (filterClausesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterClausesIsMutable(); + filterClauses_.set(index, value); + onChanged(); + } else { + filterClausesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder setFilterClauses( + int index, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder builderForValue) { + if (filterClausesBuilder_ == null) { + ensureFilterClausesIsMutable(); + filterClauses_.set(index, builderForValue.build()); + onChanged(); + } else { + filterClausesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterClauses( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause value) { + if (filterClausesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterClausesIsMutable(); + filterClauses_.add(value); + onChanged(); + } else { + filterClausesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterClauses( + int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause value) { + if (filterClausesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterClausesIsMutable(); + filterClauses_.add(index, value); + onChanged(); + } else { + filterClausesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterClauses( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder builderForValue) { + if (filterClausesBuilder_ == null) { + ensureFilterClausesIsMutable(); + filterClauses_.add(builderForValue.build()); + onChanged(); + } else { + filterClausesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterClauses( + int index, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder builderForValue) { + if (filterClausesBuilder_ == null) { + ensureFilterClausesIsMutable(); + filterClauses_.add(index, builderForValue.build()); + onChanged(); + } else { + filterClausesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addAllFilterClauses( + java.lang.Iterable< + ? extends com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause> + values) { + if (filterClausesBuilder_ == null) { + ensureFilterClausesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filterClauses_); + onChanged(); + } else { + filterClausesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder clearFilterClauses() { + if (filterClausesBuilder_ == null) { + filterClauses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + filterClausesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder removeFilterClauses(int index) { + if (filterClausesBuilder_ == null) { + ensureFilterClausesIsMutable(); + filterClauses_.remove(index); + onChanged(); + } else { + filterClausesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder + getFilterClausesBuilder(int index) { + return getFilterClausesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder + getFilterClausesOrBuilder(int index) { + if (filterClausesBuilder_ == null) { + return filterClauses_.get(index); + } else { + return filterClausesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder> + getFilterClausesOrBuilderList() { + if (filterClausesBuilder_ != null) { + return filterClausesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(filterClauses_); + } + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder + addFilterClausesBuilder() { + return getFilterClausesFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder + addFilterClausesBuilder(int index) { + return getFilterClausesFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public java.util.List + getFilterClausesBuilderList() { + return getFilterClausesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder> + getFilterClausesFieldBuilder() { + if (filterClausesBuilder_ == null) { + filterClausesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder>( + filterClauses_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + filterClauses_ = null; + } + return filterClausesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.SubpropertyEventFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SubpropertyEventFilter) + private static final com.google.analytics.admin.v1alpha.SubpropertyEventFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SubpropertyEventFilter(); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubpropertyEventFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterClause.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterClause.java new file mode 100644 index 000000000000..3d22d1281c14 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterClause.java @@ -0,0 +1,1113 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/subproperty_event_filter.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A clause for defining a filter. A filter may be inclusive (events satisfying
+ * the filter clause are included in the subproperty's data) or exclusive
+ * (events satisfying the filter clause are excluded from the subproperty's
+ * data).
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterClause} + */ +public final class SubpropertyEventFilterClause extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterClause) + SubpropertyEventFilterClauseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SubpropertyEventFilterClause.newBuilder() to construct. + private SubpropertyEventFilterClause(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SubpropertyEventFilterClause() { + filterClauseType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SubpropertyEventFilterClause(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder.class); + } + + /** + * + * + *
+   * Specifies whether this is an include or exclude filter clause.
+   * 
+ * + * Protobuf enum {@code + * google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType} + */ + public enum FilterClauseType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Filter clause type unknown or not specified.
+     * 
+ * + * FILTER_CLAUSE_TYPE_UNSPECIFIED = 0; + */ + FILTER_CLAUSE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Events will be included in the Sub property if the filter clause is met.
+     * 
+ * + * INCLUDE = 1; + */ + INCLUDE(1), + /** + * + * + *
+     * Events will be excluded from the Sub property if the filter clause is
+     * met.
+     * 
+ * + * EXCLUDE = 2; + */ + EXCLUDE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Filter clause type unknown or not specified.
+     * 
+ * + * FILTER_CLAUSE_TYPE_UNSPECIFIED = 0; + */ + public static final int FILTER_CLAUSE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Events will be included in the Sub property if the filter clause is met.
+     * 
+ * + * INCLUDE = 1; + */ + public static final int INCLUDE_VALUE = 1; + /** + * + * + *
+     * Events will be excluded from the Sub property if the filter clause is
+     * met.
+     * 
+ * + * EXCLUDE = 2; + */ + public static final int EXCLUDE_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 FilterClauseType 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 FilterClauseType forNumber(int value) { + switch (value) { + case 0: + return FILTER_CLAUSE_TYPE_UNSPECIFIED; + case 1: + return INCLUDE; + case 2: + return EXCLUDE; + 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 FilterClauseType findValueByNumber(int number) { + return FilterClauseType.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.SubpropertyEventFilterClause.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final FilterClauseType[] VALUES = values(); + + public static FilterClauseType 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 FilterClauseType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType) + } + + public static final int FILTER_CLAUSE_TYPE_FIELD_NUMBER = 1; + private int filterClauseType_ = 0; + /** + * + * + *
+   * Required. The type for the filter clause.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for filterClauseType. + */ + @java.lang.Override + public int getFilterClauseTypeValue() { + return filterClauseType_; + } + /** + * + * + *
+   * Required. The type for the filter clause.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The filterClauseType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType + getFilterClauseType() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType result = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType.forNumber( + filterClauseType_); + return result == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType + .UNRECOGNIZED + : result; + } + + public static final int FILTER_EXPRESSION_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filterExpression_; + /** + * + * + *
+   * Required. The logical expression for what events are sent to the
+   * subproperty.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the filterExpression field is set. + */ + @java.lang.Override + public boolean hasFilterExpression() { + return filterExpression_ != null; + } + /** + * + * + *
+   * Required. The logical expression for what events are sent to the
+   * subproperty.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The filterExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getFilterExpression() { + return filterExpression_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance() + : filterExpression_; + } + /** + * + * + *
+   * Required. The logical expression for what events are sent to the
+   * subproperty.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder + getFilterExpressionOrBuilder() { + return filterExpression_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance() + : filterExpression_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (filterClauseType_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType + .FILTER_CLAUSE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, filterClauseType_); + } + if (filterExpression_ != null) { + output.writeMessage(2, getFilterExpression()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (filterClauseType_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType + .FILTER_CLAUSE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, filterClauseType_); + } + if (filterExpression_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFilterExpression()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause other = + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause) obj; + + if (filterClauseType_ != other.filterClauseType_) return false; + if (hasFilterExpression() != other.hasFilterExpression()) return false; + if (hasFilterExpression()) { + if (!getFilterExpression().equals(other.getFilterExpression())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FILTER_CLAUSE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + filterClauseType_; + if (hasFilterExpression()) { + hash = (37 * hash) + FILTER_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getFilterExpression().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom( + 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.SubpropertyEventFilterClause parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom( + com.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.SubpropertyEventFilterClause parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause 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.SubpropertyEventFilterClause parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom( + java.io.InputStream 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.SubpropertyEventFilterClause parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseDelimitedFrom( + java.io.InputStream 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.SubpropertyEventFilterClause 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.SubpropertyEventFilterClause parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.SubpropertyEventFilterClause prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 clause for defining a filter. A filter may be inclusive (events satisfying
+   * the filter clause are included in the subproperty's data) or exclusive
+   * (events satisfying the filter clause are excluded from the subproperty's
+   * data).
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterClause} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterClause) + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filterClauseType_ = 0; + filterExpression_ = null; + if (filterExpressionBuilder_ != null) { + filterExpressionBuilder_.dispose(); + filterExpressionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause build() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause buildPartial() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause result = + new com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filterClauseType_ = filterClauseType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filterExpression_ = + filterExpressionBuilder_ == null ? filterExpression_ : filterExpressionBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.SubpropertyEventFilterClause) { + return mergeFrom((com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause other) { + if (other + == com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.getDefaultInstance()) + return this; + if (other.filterClauseType_ != 0) { + setFilterClauseTypeValue(other.getFilterClauseTypeValue()); + } + if (other.hasFilterExpression()) { + mergeFilterExpression(other.getFilterExpression()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + filterClauseType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + getFilterExpressionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int filterClauseType_ = 0; + /** + * + * + *
+     * Required. The type for the filter clause.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for filterClauseType. + */ + @java.lang.Override + public int getFilterClauseTypeValue() { + return filterClauseType_; + } + /** + * + * + *
+     * Required. The type for the filter clause.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for filterClauseType to set. + * @return This builder for chaining. + */ + public Builder setFilterClauseTypeValue(int value) { + filterClauseType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The type for the filter clause.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The filterClauseType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType + getFilterClauseType() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType result = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType + .forNumber(filterClauseType_); + return result == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. The type for the filter clause.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The filterClauseType to set. + * @return This builder for chaining. + */ + public Builder setFilterClauseType( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + filterClauseType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The type for the filter clause.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearFilterClauseType() { + bitField0_ = (bitField0_ & ~0x00000001); + filterClauseType_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filterExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> + filterExpressionBuilder_; + /** + * + * + *
+     * Required. The logical expression for what events are sent to the
+     * subproperty.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the filterExpression field is set. + */ + public boolean hasFilterExpression() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The logical expression for what events are sent to the
+     * subproperty.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The filterExpression. + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + getFilterExpression() { + if (filterExpressionBuilder_ == null) { + return filterExpression_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance() + : filterExpression_; + } else { + return filterExpressionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The logical expression for what events are sent to the
+     * subproperty.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFilterExpression( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression value) { + if (filterExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filterExpression_ = value; + } else { + filterExpressionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The logical expression for what events are sent to the
+     * subproperty.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFilterExpression( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder + builderForValue) { + if (filterExpressionBuilder_ == null) { + filterExpression_ = builderForValue.build(); + } else { + filterExpressionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The logical expression for what events are sent to the
+     * subproperty.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFilterExpression( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression value) { + if (filterExpressionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && filterExpression_ != null + && filterExpression_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance()) { + getFilterExpressionBuilder().mergeFrom(value); + } else { + filterExpression_ = value; + } + } else { + filterExpressionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The logical expression for what events are sent to the
+     * subproperty.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFilterExpression() { + bitField0_ = (bitField0_ & ~0x00000002); + filterExpression_ = null; + if (filterExpressionBuilder_ != null) { + filterExpressionBuilder_.dispose(); + filterExpressionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The logical expression for what events are sent to the
+     * subproperty.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder + getFilterExpressionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getFilterExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The logical expression for what events are sent to the
+     * subproperty.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder + getFilterExpressionOrBuilder() { + if (filterExpressionBuilder_ != null) { + return filterExpressionBuilder_.getMessageOrBuilder(); + } else { + return filterExpression_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance() + : filterExpression_; + } + } + /** + * + * + *
+     * Required. The logical expression for what events are sent to the
+     * subproperty.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> + getFilterExpressionFieldBuilder() { + if (filterExpressionBuilder_ == null) { + filterExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder>( + getFilterExpression(), getParentForChildren(), isClean()); + filterExpression_ = null; + } + return filterExpressionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterClause) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterClause) + private static final com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause(); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubpropertyEventFilterClause parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterClauseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterClauseOrBuilder.java new file mode 100644 index 000000000000..92a13b314662 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterClauseOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/subproperty_event_filter.proto + +package com.google.analytics.admin.v1alpha; + +public interface SubpropertyEventFilterClauseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SubpropertyEventFilterClause) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The type for the filter clause.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for filterClauseType. + */ + int getFilterClauseTypeValue(); + /** + * + * + *
+   * Required. The type for the filter clause.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The filterClauseType. + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType + getFilterClauseType(); + + /** + * + * + *
+   * Required. The logical expression for what events are sent to the
+   * subproperty.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the filterExpression field is set. + */ + boolean hasFilterExpression(); + /** + * + * + *
+   * Required. The logical expression for what events are sent to the
+   * subproperty.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The filterExpression. + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getFilterExpression(); + /** + * + * + *
+   * Required. The logical expression for what events are sent to the
+   * subproperty.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder + getFilterExpressionOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterCondition.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterCondition.java new file mode 100644 index 000000000000..224b88803494 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterCondition.java @@ -0,0 +1,2452 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/subproperty_event_filter.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A specific filter expression
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterCondition} + */ +public final class SubpropertyEventFilterCondition extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) + SubpropertyEventFilterConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use SubpropertyEventFilterCondition.newBuilder() to construct. + private SubpropertyEventFilterCondition( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SubpropertyEventFilterCondition() { + fieldName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SubpropertyEventFilterCondition(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.Builder.class); + } + + public interface StringFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + int getMatchTypeValue(); + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchType. + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType + getMatchType(); + + /** + * + * + *
+     * Required. The string value used for the matching.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+     * Required. The string value used for the matching.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + + /** + * + * + *
+     * Optional. If true, the string value is case sensitive. If false, the
+     * match is case-insensitive.
+     * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + boolean getCaseSensitive(); + } + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter} + */ + public static final class StringFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + StringFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use StringFilter.newBuilder() to construct. + private StringFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StringFilter() { + matchType_ = 0; + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StringFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .Builder.class); + } + + /** + * + * + *
+     * How the filter will be used to determine a match.
+     * 
+ * + * Protobuf enum {@code + * google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType} + */ + public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Match type unknown or not specified.
+       * 
+ * + * MATCH_TYPE_UNSPECIFIED = 0; + */ + MATCH_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * Exact match of the string value.
+       * 
+ * + * EXACT = 1; + */ + EXACT(1), + /** + * + * + *
+       * Begins with the string value.
+       * 
+ * + * BEGINS_WITH = 2; + */ + BEGINS_WITH(2), + /** + * + * + *
+       * Ends with the string value.
+       * 
+ * + * ENDS_WITH = 3; + */ + ENDS_WITH(3), + /** + * + * + *
+       * Contains the string value.
+       * 
+ * + * CONTAINS = 4; + */ + CONTAINS(4), + /** + * + * + *
+       * Full regular expression matches with the string value.
+       * 
+ * + * FULL_REGEXP = 5; + */ + FULL_REGEXP(5), + /** + * + * + *
+       * Partial regular expression matches with the string value.
+       * 
+ * + * PARTIAL_REGEXP = 6; + */ + PARTIAL_REGEXP(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Match type unknown or not specified.
+       * 
+ * + * MATCH_TYPE_UNSPECIFIED = 0; + */ + public static final int MATCH_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Exact match of the string value.
+       * 
+ * + * EXACT = 1; + */ + public static final int EXACT_VALUE = 1; + /** + * + * + *
+       * Begins with the string value.
+       * 
+ * + * BEGINS_WITH = 2; + */ + public static final int BEGINS_WITH_VALUE = 2; + /** + * + * + *
+       * Ends with the string value.
+       * 
+ * + * ENDS_WITH = 3; + */ + public static final int ENDS_WITH_VALUE = 3; + /** + * + * + *
+       * Contains the string value.
+       * 
+ * + * CONTAINS = 4; + */ + public static final int CONTAINS_VALUE = 4; + /** + * + * + *
+       * Full regular expression matches with the string value.
+       * 
+ * + * FULL_REGEXP = 5; + */ + public static final int FULL_REGEXP_VALUE = 5; + /** + * + * + *
+       * Partial regular expression matches with the string value.
+       * 
+ * + * PARTIAL_REGEXP = 6; + */ + public static final int PARTIAL_REGEXP_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MatchType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static MatchType forNumber(int value) { + switch (value) { + case 0: + return MATCH_TYPE_UNSPECIFIED; + case 1: + return EXACT; + case 2: + return BEGINS_WITH; + case 3: + return ENDS_WITH; + case 4: + return CONTAINS; + case 5: + return FULL_REGEXP; + case 6: + return PARTIAL_REGEXP; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MatchType findValueByNumber(int number) { + return MatchType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MatchType[] VALUES = values(); + + public static MatchType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MatchType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType) + } + + public static final int MATCH_TYPE_FIELD_NUMBER = 1; + private int matchType_ = 0; + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType + getMatchType() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType + result = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .MatchType.forNumber(matchType_); + return result == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .MatchType.UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + * + * + *
+     * Required. The string value used for the matching.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The string value used for the matching.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; + private boolean caseSensitive_ = false; + /** + * + * + *
+     * Optional. If true, the string value is case sensitive. If false, the
+     * match is case-insensitive.
+     * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (matchType_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .MatchType.MATCH_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, matchType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + if (caseSensitive_ != false) { + output.writeBool(3, caseSensitive_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (matchType_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .MatchType.MATCH_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, matchType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + if (caseSensitive_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, caseSensitive_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter other = + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) obj; + + if (matchType_ != other.matchType_) return false; + if (!getValue().equals(other.getValue())) return false; + if (getCaseSensitive() != other.getCaseSensitive()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MATCH_TYPE_FIELD_NUMBER; + hash = (53 * hash) + matchType_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + 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.SubpropertyEventFilterCondition.StringFilter + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + 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.SubpropertyEventFilterCondition.StringFilter + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + matchType_ = 0; + value_ = ""; + caseSensitive_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + build() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + buildPartial() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter result = + new com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.matchType_ = matchType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.caseSensitive_ = caseSensitive_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.SubpropertyEventFilterCondition.StringFilter) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter other) { + if (other + == com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .getDefaultInstance()) return this; + if (other.matchType_ != 0) { + setMatchTypeValue(other.getMatchTypeValue()); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getCaseSensitive() != false) { + setCaseSensitive(other.getCaseSensitive()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + matchType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + caseSensitive_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int matchType_ = 0; + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchTypeValue(int value) { + matchType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .MatchType + getMatchType() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType + result = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .MatchType.forNumber(matchType_); + return result == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .MatchType.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchType( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + matchType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearMatchType() { + bitField0_ = (bitField0_ & ~0x00000001); + matchType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * + * + *
+       * Required. The string value used for the matching.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The string value used for the matching.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The string value used for the matching.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The string value used for the matching.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The string value used for the matching.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean caseSensitive_; + /** + * + * + *
+       * Optional. If true, the string value is case sensitive. If false, the
+       * match is case-insensitive.
+       * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + /** + * + * + *
+       * Optional. If true, the string value is case sensitive. If false, the
+       * match is case-insensitive.
+       * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The caseSensitive to set. + * @return This builder for chaining. + */ + public Builder setCaseSensitive(boolean value) { + + caseSensitive_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. If true, the string value is case sensitive. If false, the
+       * match is case-insensitive.
+       * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCaseSensitive() { + bitField0_ = (bitField0_ & ~0x00000004); + caseSensitive_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + private static final com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .StringFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter(); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StringFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int oneFilterCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object oneFilter_; + + public enum OneFilterCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + NULL_FILTER(2), + STRING_FILTER(3), + ONEFILTER_NOT_SET(0); + private final int value; + + private OneFilterCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneFilterCase valueOf(int value) { + return forNumber(value); + } + + public static OneFilterCase forNumber(int value) { + switch (value) { + case 2: + return NULL_FILTER; + case 3: + return STRING_FILTER; + case 0: + return ONEFILTER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneFilterCase getOneFilterCase() { + return OneFilterCase.forNumber(oneFilterCase_); + } + + public static final int NULL_FILTER_FIELD_NUMBER = 2; + /** + * + * + *
+   * A filter for null values.
+   * 
+ * + * bool null_filter = 2; + * + * @return Whether the nullFilter field is set. + */ + @java.lang.Override + public boolean hasNullFilter() { + return oneFilterCase_ == 2; + } + /** + * + * + *
+   * A filter for null values.
+   * 
+ * + * bool null_filter = 2; + * + * @return The nullFilter. + */ + @java.lang.Override + public boolean getNullFilter() { + if (oneFilterCase_ == 2) { + return (java.lang.Boolean) oneFilter_; + } + return false; + } + + public static final int STRING_FILTER_FIELD_NUMBER = 3; + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 3; + } + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + getStringFilter() { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .getDefaultInstance(); + } + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilterOrBuilder + getStringFilterOrBuilder() { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .getDefaultInstance(); + } + + public static final int FIELD_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldName_ = ""; + /** + * + * + *
+   * Required. The field that is being filtered.
+   * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fieldName. + */ + @java.lang.Override + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The field that is being filtered.
+   * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for fieldName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); + } + if (oneFilterCase_ == 2) { + output.writeBool(2, (boolean) ((java.lang.Boolean) oneFilter_)); + } + if (oneFilterCase_ == 3) { + output.writeMessage( + 3, + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + oneFilter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); + } + if (oneFilterCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 2, (boolean) ((java.lang.Boolean) oneFilter_)); + } + if (oneFilterCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + oneFilter_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition other = + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) obj; + + if (!getFieldName().equals(other.getFieldName())) return false; + if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; + switch (oneFilterCase_) { + case 2: + if (getNullFilter() != other.getNullFilter()) return false; + break; + case 3: + if (!getStringFilter().equals(other.getStringFilter())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFieldName().hashCode(); + switch (oneFilterCase_) { + case 2: + hash = (37 * hash) + NULL_FILTER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullFilter()); + break; + case 3: + hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getStringFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom( + 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.SubpropertyEventFilterCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom( + com.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.SubpropertyEventFilterCondition parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition 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.SubpropertyEventFilterCondition parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom( + java.io.InputStream 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.SubpropertyEventFilterCondition + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + parseDelimitedFrom( + java.io.InputStream 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.SubpropertyEventFilterCondition 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.SubpropertyEventFilterCondition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.SubpropertyEventFilterCondition prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 specific filter expression
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterCondition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) + com.google.analytics.admin.v1alpha.SubpropertyEventFilterConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (stringFilterBuilder_ != null) { + stringFilterBuilder_.clear(); + } + fieldName_ = ""; + oneFilterCase_ = 0; + oneFilter_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition build() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition buildPartial() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition result = + new com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.fieldName_ = fieldName_; + } + } + + private void buildPartialOneofs( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition result) { + result.oneFilterCase_ = oneFilterCase_; + result.oneFilter_ = this.oneFilter_; + if (oneFilterCase_ == 3 && stringFilterBuilder_ != null) { + result.oneFilter_ = stringFilterBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.SubpropertyEventFilterCondition) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition other) { + if (other + == com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .getDefaultInstance()) return this; + if (!other.getFieldName().isEmpty()) { + fieldName_ = other.fieldName_; + bitField0_ |= 0x00000004; + onChanged(); + } + switch (other.getOneFilterCase()) { + case NULL_FILTER: + { + setNullFilter(other.getNullFilter()); + break; + } + case STRING_FILTER: + { + mergeStringFilter(other.getStringFilter()); + break; + } + case ONEFILTER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fieldName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 16: + { + oneFilter_ = input.readBool(); + oneFilterCase_ = 2; + break; + } // case 16 + case 26: + { + input.readMessage(getStringFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int oneFilterCase_ = 0; + private java.lang.Object oneFilter_; + + public OneFilterCase getOneFilterCase() { + return OneFilterCase.forNumber(oneFilterCase_); + } + + public Builder clearOneFilter() { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * A filter for null values.
+     * 
+ * + * bool null_filter = 2; + * + * @return Whether the nullFilter field is set. + */ + public boolean hasNullFilter() { + return oneFilterCase_ == 2; + } + /** + * + * + *
+     * A filter for null values.
+     * 
+ * + * bool null_filter = 2; + * + * @return The nullFilter. + */ + public boolean getNullFilter() { + if (oneFilterCase_ == 2) { + return (java.lang.Boolean) oneFilter_; + } + return false; + } + /** + * + * + *
+     * A filter for null values.
+     * 
+ * + * bool null_filter = 2; + * + * @param value The nullFilter to set. + * @return This builder for chaining. + */ + public Builder setNullFilter(boolean value) { + + oneFilterCase_ = 2; + oneFilter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A filter for null values.
+     * 
+ * + * bool null_filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearNullFilter() { + if (oneFilterCase_ == 2) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .StringFilterOrBuilder> + stringFilterBuilder_; + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 3; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + getStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .getDefaultInstance(); + } else { + if (oneFilterCase_ == 3) { + return stringFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + */ + public Builder setStringFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter value) { + if (stringFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + stringFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + */ + public Builder setStringFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.Builder + builderForValue) { + if (stringFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + stringFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + */ + public Builder mergeStringFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter value) { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 3 + && oneFilter_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .newBuilder( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .StringFilter) + oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 3) { + stringFilterBuilder_.mergeFrom(value); + } else { + stringFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + */ + public Builder clearStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 3) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 3) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + stringFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.Builder + getStringFilterBuilder() { + return getStringFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilterOrBuilder + getStringFilterOrBuilder() { + if ((oneFilterCase_ == 3) && (stringFilterBuilder_ != null)) { + return stringFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .StringFilterOrBuilder> + getStringFilterFieldBuilder() { + if (stringFilterBuilder_ == null) { + if (!(oneFilterCase_ == 3)) { + oneFilter_ = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .getDefaultInstance(); + } + stringFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .StringFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 3; + onChanged(); + return stringFilterBuilder_; + } + + private java.lang.Object fieldName_ = ""; + /** + * + * + *
+     * Required. The field that is being filtered.
+     * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fieldName. + */ + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The field that is being filtered.
+     * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for fieldName. + */ + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The field that is being filtered.
+     * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The field that is being filtered.
+     * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFieldName() { + fieldName_ = getDefaultInstance().getFieldName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The field that is being filtered.
+     * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldName_ = value; + bitField0_ |= 0x00000004; + 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.SubpropertyEventFilterCondition) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) + private static final com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition(); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubpropertyEventFilterCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterConditionOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterConditionOrBuilder.java new file mode 100644 index 000000000000..f334741b9030 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterConditionOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/subproperty_event_filter.proto + +package com.google.analytics.admin.v1alpha; + +public interface SubpropertyEventFilterConditionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A filter for null values.
+   * 
+ * + * bool null_filter = 2; + * + * @return Whether the nullFilter field is set. + */ + boolean hasNullFilter(); + /** + * + * + *
+   * A filter for null values.
+   * 
+ * + * bool null_filter = 2; + * + * @return The nullFilter. + */ + boolean getNullFilter(); + + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + * + * @return Whether the stringFilter field is set. + */ + boolean hasStringFilter(); + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + * + * @return The stringFilter. + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter getStringFilter(); + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilterOrBuilder + getStringFilterOrBuilder(); + + /** + * + * + *
+   * Required. The field that is being filtered.
+   * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fieldName. + */ + java.lang.String getFieldName(); + /** + * + * + *
+   * Required. The field that is being filtered.
+   * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for fieldName. + */ + com.google.protobuf.ByteString getFieldNameBytes(); + + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.OneFilterCase + getOneFilterCase(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpression.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpression.java new file mode 100644 index 000000000000..b0d3d9c158ab --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpression.java @@ -0,0 +1,1546 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/subproperty_event_filter.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A logical expression of Subproperty event filters.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterExpression} + */ +public final class SubpropertyEventFilterExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) + SubpropertyEventFilterExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use SubpropertyEventFilterExpression.newBuilder() to construct. + private SubpropertyEventFilterExpression( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SubpropertyEventFilterExpression() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SubpropertyEventFilterExpression(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder.class); + } + + private int exprCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object expr_; + + public enum ExprCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + OR_GROUP(1), + NOT_EXPRESSION(2), + FILTER_CONDITION(3), + EXPR_NOT_SET(0); + private final int value; + + private ExprCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExprCase valueOf(int value) { + return forNumber(value); + } + + public static ExprCase forNumber(int value) { + switch (value) { + case 1: + return OR_GROUP; + case 2: + return NOT_EXPRESSION; + case 3: + return FILTER_CONDITION; + case 0: + return EXPR_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ExprCase getExprCase() { + return ExprCase.forNumber(exprCase_); + } + + public static final int OR_GROUP_FIELD_NUMBER = 1; + /** + * + * + *
+   * A list of expressions to OR’ed together. Must only contain
+   * not_expression or filter_condition expressions.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return exprCase_ == 1; + } + /** + * + * + *
+   * A list of expressions to OR’ed together. Must only contain
+   * not_expression or filter_condition expressions.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList getOrGroup() { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + .getDefaultInstance(); + } + /** + * + * + *
+   * A list of expressions to OR’ed together. Must only contain
+   * not_expression or filter_condition expressions.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + .getDefaultInstance(); + } + + public static final int NOT_EXPRESSION_FIELD_NUMBER = 2; + /** + * + * + *
+   * A filter expression to be NOT'ed (inverted, complemented). It can only
+   * include a filter. This cannot be set on the top level
+   * SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return exprCase_ == 2; + } + /** + * + * + *
+   * A filter expression to be NOT'ed (inverted, complemented). It can only
+   * include a filter. This cannot be set on the top level
+   * SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getNotExpression() { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance(); + } + /** + * + * + *
+   * A filter expression to be NOT'ed (inverted, complemented). It can only
+   * include a filter. This cannot be set on the top level
+   * SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance(); + } + + public static final int FILTER_CONDITION_FIELD_NUMBER = 3; + /** + * + * + *
+   * Creates a filter that matches a specific event. This cannot be set on the
+   * top level SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + * + * @return Whether the filterCondition field is set. + */ + @java.lang.Override + public boolean hasFilterCondition() { + return exprCase_ == 3; + } + /** + * + * + *
+   * Creates a filter that matches a specific event. This cannot be set on the
+   * top level SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + * + * @return The filterCondition. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition getFilterCondition() { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.getDefaultInstance(); + } + /** + * + * + *
+   * Creates a filter that matches a specific event. This cannot be set on the
+   * top level SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterConditionOrBuilder + getFilterConditionOrBuilder() { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (exprCase_ == 1) { + output.writeMessage( + 1, (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) expr_); + } + if (exprCase_ == 2) { + output.writeMessage( + 2, (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_); + } + if (exprCase_ == 3) { + output.writeMessage( + 3, (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (exprCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) expr_); + } + if (exprCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_); + } + if (exprCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression other = + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) obj; + + if (!getExprCase().equals(other.getExprCase())) return false; + switch (exprCase_) { + case 1: + if (!getOrGroup().equals(other.getOrGroup())) return false; + break; + case 2: + if (!getNotExpression().equals(other.getNotExpression())) return false; + break; + case 3: + if (!getFilterCondition().equals(other.getFilterCondition())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (exprCase_) { + case 1: + hash = (37 * hash) + OR_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getOrGroup().hashCode(); + break; + case 2: + hash = (37 * hash) + NOT_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getNotExpression().hashCode(); + break; + case 3: + hash = (37 * hash) + FILTER_CONDITION_FIELD_NUMBER; + hash = (53 * hash) + getFilterCondition().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom( + 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.SubpropertyEventFilterExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom( + com.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.SubpropertyEventFilterExpression parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression 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.SubpropertyEventFilterExpression parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom( + java.io.InputStream 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.SubpropertyEventFilterExpression + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + parseDelimitedFrom( + java.io.InputStream 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.SubpropertyEventFilterExpression 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.SubpropertyEventFilterExpression parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.SubpropertyEventFilterExpression prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 logical expression of Subproperty event filters.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterExpression} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (orGroupBuilder_ != null) { + orGroupBuilder_.clear(); + } + if (notExpressionBuilder_ != null) { + notExpressionBuilder_.clear(); + } + if (filterConditionBuilder_ != null) { + filterConditionBuilder_.clear(); + } + exprCase_ = 0; + expr_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression build() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression buildPartial() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression result = + new com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression result) { + result.exprCase_ = exprCase_; + result.expr_ = this.expr_; + if (exprCase_ == 1 && orGroupBuilder_ != null) { + result.expr_ = orGroupBuilder_.build(); + } + if (exprCase_ == 2 && notExpressionBuilder_ != null) { + result.expr_ = notExpressionBuilder_.build(); + } + if (exprCase_ == 3 && filterConditionBuilder_ != null) { + result.expr_ = filterConditionBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.SubpropertyEventFilterExpression) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression other) { + if (other + == com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance()) return this; + switch (other.getExprCase()) { + case OR_GROUP: + { + mergeOrGroup(other.getOrGroup()); + break; + } + case NOT_EXPRESSION: + { + mergeNotExpression(other.getNotExpression()); + break; + } + case FILTER_CONDITION: + { + mergeFilterCondition(other.getFilterCondition()); + break; + } + case EXPR_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getOrGroupFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getNotExpressionFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getFilterConditionFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int exprCase_ = 0; + private java.lang.Object expr_; + + public ExprCase getExprCase() { + return ExprCase.forNumber(exprCase_); + } + + public Builder clearExpr() { + exprCase_ = 0; + expr_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionListOrBuilder> + orGroupBuilder_; + /** + * + * + *
+     * A list of expressions to OR’ed together. Must only contain
+     * not_expression or filter_condition expressions.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return exprCase_ == 1; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. Must only contain
+     * not_expression or filter_condition expressions.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList getOrGroup() { + if (orGroupBuilder_ == null) { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + .getDefaultInstance(); + } else { + if (exprCase_ == 1) { + return orGroupBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of expressions to OR’ed together. Must only contain
+     * not_expression or filter_condition expressions.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + */ + public Builder setOrGroup( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + orGroupBuilder_.setMessage(value); + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. Must only contain
+     * not_expression or filter_condition expressions.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + */ + public Builder setOrGroup( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.Builder + builderForValue) { + if (orGroupBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + orGroupBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. Must only contain
+     * not_expression or filter_condition expressions.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + */ + public Builder mergeOrGroup( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (exprCase_ == 1 + && expr_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + .getDefaultInstance()) { + expr_ = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.newBuilder( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) + expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 1) { + orGroupBuilder_.mergeFrom(value); + } else { + orGroupBuilder_.setMessage(value); + } + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. Must only contain
+     * not_expression or filter_condition expressions.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + */ + public Builder clearOrGroup() { + if (orGroupBuilder_ == null) { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + } + orGroupBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. Must only contain
+     * not_expression or filter_condition expressions.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.Builder + getOrGroupBuilder() { + return getOrGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A list of expressions to OR’ed together. Must only contain
+     * not_expression or filter_condition expressions.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if ((exprCase_ == 1) && (orGroupBuilder_ != null)) { + return orGroupBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of expressions to OR’ed together. Must only contain
+     * not_expression or filter_condition expressions.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionListOrBuilder> + getOrGroupFieldBuilder() { + if (orGroupBuilder_ == null) { + if (!(exprCase_ == 1)) { + expr_ = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + .getDefaultInstance(); + } + orGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionListOrBuilder>( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 1; + onChanged(); + return orGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> + notExpressionBuilder_; + /** + * + * + *
+     * A filter expression to be NOT'ed (inverted, complemented). It can only
+     * include a filter. This cannot be set on the top level
+     * SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return exprCase_ == 2; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (inverted, complemented). It can only
+     * include a filter. This cannot be set on the top level
+     * SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getNotExpression() { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance(); + } else { + if (exprCase_ == 2) { + return notExpressionBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter expression to be NOT'ed (inverted, complemented). It can only
+     * include a filter. This cannot be set on the top level
+     * SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + */ + public Builder setNotExpression( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + notExpressionBuilder_.setMessage(value); + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (inverted, complemented). It can only
+     * include a filter. This cannot be set on the top level
+     * SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + */ + public Builder setNotExpression( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder + builderForValue) { + if (notExpressionBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + notExpressionBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (inverted, complemented). It can only
+     * include a filter. This cannot be set on the top level
+     * SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + */ + public Builder mergeNotExpression( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 2 + && expr_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance()) { + expr_ = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.newBuilder( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 2) { + notExpressionBuilder_.mergeFrom(value); + } else { + notExpressionBuilder_.setMessage(value); + } + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (inverted, complemented). It can only
+     * include a filter. This cannot be set on the top level
+     * SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + */ + public Builder clearNotExpression() { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + } + notExpressionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (inverted, complemented). It can only
+     * include a filter. This cannot be set on the top level
+     * SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder + getNotExpressionBuilder() { + return getNotExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter expression to be NOT'ed (inverted, complemented). It can only
+     * include a filter. This cannot be set on the top level
+     * SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if ((exprCase_ == 2) && (notExpressionBuilder_ != null)) { + return notExpressionBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter expression to be NOT'ed (inverted, complemented). It can only
+     * include a filter. This cannot be set on the top level
+     * SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> + getNotExpressionFieldBuilder() { + if (notExpressionBuilder_ == null) { + if (!(exprCase_ == 2)) { + expr_ = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance(); + } + notExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder>( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 2; + onChanged(); + return notExpressionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterConditionOrBuilder> + filterConditionBuilder_; + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + * + * @return Whether the filterCondition field is set. + */ + @java.lang.Override + public boolean hasFilterCondition() { + return exprCase_ == 3; + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + * + * @return The filterCondition. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition getFilterCondition() { + if (filterConditionBuilder_ == null) { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .getDefaultInstance(); + } else { + if (exprCase_ == 3) { + return filterConditionBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + */ + public Builder setFilterCondition( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition value) { + if (filterConditionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + filterConditionBuilder_.setMessage(value); + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + */ + public Builder setFilterCondition( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.Builder + builderForValue) { + if (filterConditionBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + filterConditionBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + */ + public Builder mergeFilterCondition( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition value) { + if (filterConditionBuilder_ == null) { + if (exprCase_ == 3 + && expr_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .getDefaultInstance()) { + expr_ = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.newBuilder( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 3) { + filterConditionBuilder_.mergeFrom(value); + } else { + filterConditionBuilder_.setMessage(value); + } + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + */ + public Builder clearFilterCondition() { + if (filterConditionBuilder_ == null) { + if (exprCase_ == 3) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 3) { + exprCase_ = 0; + expr_ = null; + } + filterConditionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.Builder + getFilterConditionBuilder() { + return getFilterConditionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterConditionOrBuilder + getFilterConditionOrBuilder() { + if ((exprCase_ == 3) && (filterConditionBuilder_ != null)) { + return filterConditionBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterConditionOrBuilder> + getFilterConditionFieldBuilder() { + if (filterConditionBuilder_ == null) { + if (!(exprCase_ == 3)) { + expr_ = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .getDefaultInstance(); + } + filterConditionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterConditionOrBuilder>( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 3; + onChanged(); + return filterConditionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.SubpropertyEventFilterExpression) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) + private static final com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression(); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubpropertyEventFilterExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionList.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionList.java new file mode 100644 index 000000000000..87cf420aa05a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionList.java @@ -0,0 +1,1037 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/subproperty_event_filter.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A list of Subproperty event filter expressions.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList} + */ +public final class SubpropertyEventFilterExpressionList + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) + SubpropertyEventFilterExpressionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use SubpropertyEventFilterExpressionList.newBuilder() to construct. + private SubpropertyEventFilterExpressionList( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SubpropertyEventFilterExpressionList() { + filterExpressions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SubpropertyEventFilterExpressionList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.Builder.class); + } + + public static final int FILTER_EXPRESSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + filterExpressions_; + /** + * + * + *
+   * Required. Unordered list. A list of Subproperty event filter expressions
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public java.util.List + getFilterExpressionsList() { + return filterExpressions_; + } + /** + * + * + *
+   * Required. Unordered list. A list of Subproperty event filter expressions
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> + getFilterExpressionsOrBuilderList() { + return filterExpressions_; + } + /** + * + * + *
+   * Required. Unordered list. A list of Subproperty event filter expressions
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public int getFilterExpressionsCount() { + return filterExpressions_.size(); + } + /** + * + * + *
+   * Required. Unordered list. A list of Subproperty event filter expressions
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getFilterExpressions( + int index) { + return filterExpressions_.get(index); + } + /** + * + * + *
+   * Required. Unordered list. A list of Subproperty event filter expressions
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder + getFilterExpressionsOrBuilder(int index) { + return filterExpressions_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < filterExpressions_.size(); i++) { + output.writeMessage(1, filterExpressions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < filterExpressions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, filterExpressions_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList other = + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) obj; + + if (!getFilterExpressionsList().equals(other.getFilterExpressionsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFilterExpressionsCount() > 0) { + hash = (37 * hash) + FILTER_EXPRESSIONS_FIELD_NUMBER; + hash = (53 * hash) + getFilterExpressionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom( + 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.SubpropertyEventFilterExpressionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom( + com.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.SubpropertyEventFilterExpressionList parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList 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.SubpropertyEventFilterExpressionList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom( + java.io.InputStream 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.SubpropertyEventFilterExpressionList + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + parseDelimitedFrom( + java.io.InputStream 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.SubpropertyEventFilterExpressionList 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.SubpropertyEventFilterExpressionList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.SubpropertyEventFilterExpressionList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A list of Subproperty event filter expressions.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (filterExpressionsBuilder_ == null) { + filterExpressions_ = java.util.Collections.emptyList(); + } else { + filterExpressions_ = null; + filterExpressionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList build() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList buildPartial() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList result = + new com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList result) { + if (filterExpressionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + filterExpressions_ = java.util.Collections.unmodifiableList(filterExpressions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.filterExpressions_ = filterExpressions_; + } else { + result.filterExpressions_ = filterExpressionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.SubpropertyEventFilterExpressionList) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList other) { + if (other + == com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + .getDefaultInstance()) return this; + if (filterExpressionsBuilder_ == null) { + if (!other.filterExpressions_.isEmpty()) { + if (filterExpressions_.isEmpty()) { + filterExpressions_ = other.filterExpressions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFilterExpressionsIsMutable(); + filterExpressions_.addAll(other.filterExpressions_); + } + onChanged(); + } + } else { + if (!other.filterExpressions_.isEmpty()) { + if (filterExpressionsBuilder_.isEmpty()) { + filterExpressionsBuilder_.dispose(); + filterExpressionsBuilder_ = null; + filterExpressions_ = other.filterExpressions_; + bitField0_ = (bitField0_ & ~0x00000001); + filterExpressionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFilterExpressionsFieldBuilder() + : null; + } else { + filterExpressionsBuilder_.addAllMessages(other.filterExpressions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression m = + input.readMessage( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .parser(), + extensionRegistry); + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(m); + } else { + filterExpressionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + filterExpressions_ = java.util.Collections.emptyList(); + + private void ensureFilterExpressionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + filterExpressions_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression>( + filterExpressions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> + filterExpressionsBuilder_; + + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public java.util.List + getFilterExpressionsList() { + if (filterExpressionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(filterExpressions_); + } else { + return filterExpressionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public int getFilterExpressionsCount() { + if (filterExpressionsBuilder_ == null) { + return filterExpressions_.size(); + } else { + return filterExpressionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getFilterExpressions( + int index) { + if (filterExpressionsBuilder_ == null) { + return filterExpressions_.get(index); + } else { + return filterExpressionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder setFilterExpressions( + int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression value) { + if (filterExpressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterExpressionsIsMutable(); + filterExpressions_.set(index, value); + onChanged(); + } else { + filterExpressionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder setFilterExpressions( + int index, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder + builderForValue) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.set(index, builderForValue.build()); + onChanged(); + } else { + filterExpressionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterExpressions( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression value) { + if (filterExpressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(value); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterExpressions( + int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression value) { + if (filterExpressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(index, value); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterExpressions( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder + builderForValue) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(builderForValue.build()); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterExpressions( + int index, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder + builderForValue) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(index, builderForValue.build()); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addAllFilterExpressions( + java.lang.Iterable< + ? extends com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression> + values) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filterExpressions_); + onChanged(); + } else { + filterExpressionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder clearFilterExpressions() { + if (filterExpressionsBuilder_ == null) { + filterExpressions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + filterExpressionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder removeFilterExpressions(int index) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.remove(index); + onChanged(); + } else { + filterExpressionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder + getFilterExpressionsBuilder(int index) { + return getFilterExpressionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder + getFilterExpressionsOrBuilder(int index) { + if (filterExpressionsBuilder_ == null) { + return filterExpressions_.get(index); + } else { + return filterExpressionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> + getFilterExpressionsOrBuilderList() { + if (filterExpressionsBuilder_ != null) { + return filterExpressionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(filterExpressions_); + } + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder + addFilterExpressionsBuilder() { + return getFilterExpressionsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder + addFilterExpressionsBuilder(int index) { + return getFilterExpressionsFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public java.util.List< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder> + getFilterExpressionsBuilderList() { + return getFilterExpressionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> + getFilterExpressionsFieldBuilder() { + if (filterExpressionsBuilder_ == null) { + filterExpressionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder>( + filterExpressions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + filterExpressions_ = null; + } + return filterExpressionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.SubpropertyEventFilterExpressionList) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) + private static final com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList(); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubpropertyEventFilterExpressionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionListOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionListOrBuilder.java new file mode 100644 index 000000000000..1e74881f418f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionListOrBuilder.java @@ -0,0 +1,91 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/subproperty_event_filter.proto + +package com.google.analytics.admin.v1alpha; + +public interface SubpropertyEventFilterExpressionListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Unordered list. A list of Subproperty event filter expressions
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + java.util.List + getFilterExpressionsList(); + /** + * + * + *
+   * Required. Unordered list. A list of Subproperty event filter expressions
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getFilterExpressions( + int index); + /** + * + * + *
+   * Required. Unordered list. A list of Subproperty event filter expressions
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + int getFilterExpressionsCount(); + /** + * + * + *
+   * Required. Unordered list. A list of Subproperty event filter expressions
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + java.util.List< + ? extends com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> + getFilterExpressionsOrBuilderList(); + /** + * + * + *
+   * Required. Unordered list. A list of Subproperty event filter expressions
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder + getFilterExpressionsOrBuilder(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionOrBuilder.java new file mode 100644 index 000000000000..bb4d99e9179e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionOrBuilder.java @@ -0,0 +1,153 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/subproperty_event_filter.proto + +package com.google.analytics.admin.v1alpha; + +public interface SubpropertyEventFilterExpressionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of expressions to OR’ed together. Must only contain
+   * not_expression or filter_condition expressions.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + * @return Whether the orGroup field is set. + */ + boolean hasOrGroup(); + /** + * + * + *
+   * A list of expressions to OR’ed together. Must only contain
+   * not_expression or filter_condition expressions.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + * @return The orGroup. + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList getOrGroup(); + /** + * + * + *
+   * A list of expressions to OR’ed together. Must only contain
+   * not_expression or filter_condition expressions.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionListOrBuilder + getOrGroupOrBuilder(); + + /** + * + * + *
+   * A filter expression to be NOT'ed (inverted, complemented). It can only
+   * include a filter. This cannot be set on the top level
+   * SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + * + * @return Whether the notExpression field is set. + */ + boolean hasNotExpression(); + /** + * + * + *
+   * A filter expression to be NOT'ed (inverted, complemented). It can only
+   * include a filter. This cannot be set on the top level
+   * SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + * + * @return The notExpression. + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getNotExpression(); + /** + * + * + *
+   * A filter expression to be NOT'ed (inverted, complemented). It can only
+   * include a filter. This cannot be set on the top level
+   * SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder + getNotExpressionOrBuilder(); + + /** + * + * + *
+   * Creates a filter that matches a specific event. This cannot be set on the
+   * top level SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + * + * @return Whether the filterCondition field is set. + */ + boolean hasFilterCondition(); + /** + * + * + *
+   * Creates a filter that matches a specific event. This cannot be set on the
+   * top level SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + * + * @return The filterCondition. + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition getFilterCondition(); + /** + * + * + *
+   * Creates a filter that matches a specific event. This cannot be set on the
+   * top level SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterConditionOrBuilder + getFilterConditionOrBuilder(); + + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.ExprCase getExprCase(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterName.java new file mode 100644 index 000000000000..b160ace54854 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterName.java @@ -0,0 +1,202 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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 SubpropertyEventFilterName implements ResourceName { + private static final PathTemplate PROPERTY_SUB_PROPERTY_EVENT_FILTER = + PathTemplate.createWithoutUrlEncoding( + "properties/{property}/subpropertyEventFilters/{sub_property_event_filter}"); + private volatile Map fieldValuesMap; + private final String property; + private final String subPropertyEventFilter; + + @Deprecated + protected SubpropertyEventFilterName() { + property = null; + subPropertyEventFilter = null; + } + + private SubpropertyEventFilterName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + subPropertyEventFilter = Preconditions.checkNotNull(builder.getSubPropertyEventFilter()); + } + + public String getProperty() { + return property; + } + + public String getSubPropertyEventFilter() { + return subPropertyEventFilter; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SubpropertyEventFilterName of(String property, String subPropertyEventFilter) { + return newBuilder() + .setProperty(property) + .setSubPropertyEventFilter(subPropertyEventFilter) + .build(); + } + + public static String format(String property, String subPropertyEventFilter) { + return newBuilder() + .setProperty(property) + .setSubPropertyEventFilter(subPropertyEventFilter) + .build() + .toString(); + } + + public static SubpropertyEventFilterName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY_SUB_PROPERTY_EVENT_FILTER.validatedMatch( + formattedString, + "SubpropertyEventFilterName.parse: formattedString not in valid format"); + return of(matchMap.get("property"), matchMap.get("sub_property_event_filter")); + } + + 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 (SubpropertyEventFilterName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROPERTY_SUB_PROPERTY_EVENT_FILTER.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 (subPropertyEventFilter != null) { + fieldMapBuilder.put("sub_property_event_filter", subPropertyEventFilter); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROPERTY_SUB_PROPERTY_EVENT_FILTER.instantiate( + "property", property, "sub_property_event_filter", subPropertyEventFilter); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + SubpropertyEventFilterName that = ((SubpropertyEventFilterName) o); + return Objects.equals(this.property, that.property) + && Objects.equals(this.subPropertyEventFilter, that.subPropertyEventFilter); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(property); + h *= 1000003; + h ^= Objects.hashCode(subPropertyEventFilter); + return h; + } + + /** Builder for properties/{property}/subpropertyEventFilters/{sub_property_event_filter}. */ + public static class Builder { + private String property; + private String subPropertyEventFilter; + + protected Builder() {} + + public String getProperty() { + return property; + } + + public String getSubPropertyEventFilter() { + return subPropertyEventFilter; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + public Builder setSubPropertyEventFilter(String subPropertyEventFilter) { + this.subPropertyEventFilter = subPropertyEventFilter; + return this; + } + + private Builder(SubpropertyEventFilterName subpropertyEventFilterName) { + this.property = subpropertyEventFilterName.property; + this.subPropertyEventFilter = subpropertyEventFilterName.subPropertyEventFilter; + } + + public SubpropertyEventFilterName build() { + return new SubpropertyEventFilterName(this); + } + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterOrBuilder.java new file mode 100644 index 000000000000..b0bee1b20692 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterOrBuilder.java @@ -0,0 +1,165 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/subproperty_event_filter.proto + +package com.google.analytics.admin.v1alpha; + +public interface SubpropertyEventFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SubpropertyEventFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Format:
+   * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
+   * Example: properties/1234/subpropertyEventFilters/5678
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Format:
+   * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
+   * Example: properties/1234/subpropertyEventFilters/5678
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Immutable. Resource name of the Subproperty that uses this filter.
+   * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the applyToProperty field is set. + */ + boolean hasApplyToProperty(); + /** + * + * + *
+   * Immutable. Resource name of the Subproperty that uses this filter.
+   * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The applyToProperty. + */ + java.lang.String getApplyToProperty(); + /** + * + * + *
+   * Immutable. Resource name of the Subproperty that uses this filter.
+   * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for applyToProperty. + */ + com.google.protobuf.ByteString getApplyToPropertyBytes(); + + /** + * + * + *
+   * Required. Unordered list. Filter clauses that define the
+   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+   * data is sent to the subproperty.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + java.util.List + getFilterClausesList(); + /** + * + * + *
+   * Required. Unordered list. Filter clauses that define the
+   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+   * data is sent to the subproperty.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause getFilterClauses(int index); + /** + * + * + *
+   * Required. Unordered list. Filter clauses that define the
+   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+   * data is sent to the subproperty.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + int getFilterClausesCount(); + /** + * + * + *
+   * Required. Unordered list. Filter clauses that define the
+   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+   * data is sent to the subproperty.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + java.util.List + getFilterClausesOrBuilderList(); + /** + * + * + *
+   * Required. Unordered list. Filter clauses that define the
+   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+   * data is sent to the subproperty.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder + getFilterClausesOrBuilder(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterProto.java new file mode 100644 index 000000000000..58e0fe70a959 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterProto.java @@ -0,0 +1,182 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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/subproperty_event_filter.proto + +package com.google.analytics.admin.v1alpha; + +public final class SubpropertyEventFilterProto { + private SubpropertyEventFilterProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n=google/analytics/admin/v1alpha/subprop" + + "erty_event_filter.proto\022\036google.analytic" + + "s.admin.v1alpha\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\"\205\004\n\037" + + "SubpropertyEventFilterCondition\022\025\n\013null_" + + "filter\030\002 \001(\010H\000\022e\n\rstring_filter\030\003 \001(\0132L." + + "google.analytics.admin.v1alpha.Subproper" + + "tyEventFilterCondition.StringFilterH\000\022\030\n" + + "\nfield_name\030\001 \001(\tB\004\342A\001\002\032\273\002\n\014StringFilter" + + "\022p\n\nmatch_type\030\001 \001(\0162V.google.analytics." + + "admin.v1alpha.SubpropertyEventFilterCond" + + "ition.StringFilter.MatchTypeB\004\342A\001\002\022\023\n\005va" + + "lue\030\002 \001(\tB\004\342A\001\002\022\034\n\016case_sensitive\030\003 \001(\010B" + + "\004\342A\001\001\"\205\001\n\tMatchType\022\032\n\026MATCH_TYPE_UNSPEC" + + "IFIED\020\000\022\t\n\005EXACT\020\001\022\017\n\013BEGINS_WITH\020\002\022\r\n\tE" + + "NDS_WITH\020\003\022\014\n\010CONTAINS\020\004\022\017\n\013FULL_REGEXP\020" + + "\005\022\022\n\016PARTIAL_REGEXP\020\006B\014\n\none_filter\"\275\002\n " + + "SubpropertyEventFilterExpression\022X\n\010or_g" + + "roup\030\001 \001(\0132D.google.analytics.admin.v1al" + + "pha.SubpropertyEventFilterExpressionList" + + "H\000\022Z\n\016not_expression\030\002 \001(\0132@.google.anal" + + "ytics.admin.v1alpha.SubpropertyEventFilt" + + "erExpressionH\000\022[\n\020filter_condition\030\003 \001(\013" + + "2?.google.analytics.admin.v1alpha.Subpro" + + "pertyEventFilterConditionH\000B\006\n\004expr\"\213\001\n$" + + "SubpropertyEventFilterExpressionList\022c\n\022" + + "filter_expressions\030\001 \003(\0132@.google.analyt" + + "ics.admin.v1alpha.SubpropertyEventFilter" + + "ExpressionB\005\342A\002\002\006\"\304\002\n\034SubpropertyEventFi" + + "lterClause\022o\n\022filter_clause_type\030\001 \001(\0162M" + + ".google.analytics.admin.v1alpha.Subprope" + + "rtyEventFilterClause.FilterClauseTypeB\004\342" + + "A\001\002\022a\n\021filter_expression\030\002 \001(\0132@.google." + + "analytics.admin.v1alpha.SubpropertyEvent" + + "FilterExpressionB\004\342A\001\002\"P\n\020FilterClauseTy" + + "pe\022\"\n\036FILTER_CLAUSE_TYPE_UNSPECIFIED\020\000\022\013" + + "\n\007INCLUDE\020\001\022\013\n\007EXCLUDE\020\002\"\376\002\n\026Subproperty" + + "EventFilter\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022$\n\021apply" + + "_to_property\030\002 \001(\tB\004\342A\001\005H\000\210\001\001\022[\n\016filter_" + + "clauses\030\003 \003(\0132<.google.analytics.admin.v" + + "1alpha.SubpropertyEventFilterClauseB\005\342A\002" + + "\002\006:\266\001\352A\262\001\n4analyticsadmin.googleapis.com" + + "/SubpropertyEventFilter\022Iproperties/{pro" + + "perty}/subpropertyEventFilters/{sub_prop" + + "erty_event_filter}*\027subpropertyEventFilt" + + "ers2\026subpropertyEventFilterB\024\n\022_apply_to" + + "_propertyB\203\001\n\"com.google.analytics.admin" + + ".v1alphaB\033SubpropertyEventFilterProtoP\001Z" + + ">cloud.google.com/go/analytics/admin/api" + + "v1alpha/adminpb;adminpbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_descriptor, + new java.lang.String[] { + "NullFilter", "StringFilter", "FieldName", "OneFilter", + }); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_descriptor = + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_descriptor + .getNestedTypes() + .get(0); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_descriptor, + new java.lang.String[] { + "MatchType", "Value", "CaseSensitive", + }); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_descriptor, + new java.lang.String[] { + "OrGroup", "NotExpression", "FilterCondition", "Expr", + }); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_descriptor, + new java.lang.String[] { + "FilterExpressions", + }); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_descriptor, + new java.lang.String[] { + "FilterClauseType", "FilterExpression", + }); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_descriptor, + new java.lang.String[] { + "Name", "ApplyToProperty", "FilterClauses", "ApplyToProperty", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRedactionSettingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRedactionSettingsRequest.java new file mode 100644 index 000000000000..8a35f638b1a2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRedactionSettingsRequest.java @@ -0,0 +1,1074 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 UpdateDataRedactionSettings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest} + */ +public final class UpdateDataRedactionSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) + UpdateDataRedactionSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateDataRedactionSettingsRequest.newBuilder() to construct. + private UpdateDataRedactionSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateDataRedactionSettingsRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateDataRedactionSettingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest.Builder.class); + } + + public static final int DATA_REDACTION_SETTINGS_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.DataRedactionSettings dataRedactionSettings_; + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataRedactionSettings field is set. + */ + @java.lang.Override + public boolean hasDataRedactionSettings() { + return dataRedactionSettings_ != null; + } + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataRedactionSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRedactionSettings getDataRedactionSettings() { + return dataRedactionSettings_ == null + ? com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance() + : dataRedactionSettings_; + } + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder + getDataRedactionSettingsOrBuilder() { + return dataRedactionSettings_ == null + ? com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance() + : dataRedactionSettings_; + } + + 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 updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (dataRedactionSettings_ != null) { + output.writeMessage(1, getDataRedactionSettings()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataRedactionSettings_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataRedactionSettings()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest other = + (com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) obj; + + if (hasDataRedactionSettings() != other.hasDataRedactionSettings()) return false; + if (hasDataRedactionSettings()) { + if (!getDataRedactionSettings().equals(other.getDataRedactionSettings())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDataRedactionSettings()) { + hash = (37 * hash) + DATA_REDACTION_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getDataRedactionSettings().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom( + 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.UpdateDataRedactionSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom( + com.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.UpdateDataRedactionSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest 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.UpdateDataRedactionSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom( + java.io.InputStream 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.UpdateDataRedactionSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest + parseDelimitedFrom( + java.io.InputStream 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.UpdateDataRedactionSettingsRequest 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.UpdateDataRedactionSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.UpdateDataRedactionSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 UpdateDataRedactionSettings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataRedactionSettings_ = null; + if (dataRedactionSettingsBuilder_ != null) { + dataRedactionSettingsBuilder_.dispose(); + dataRedactionSettingsBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + 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_UpdateDataRedactionSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest build() { + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest result = + new com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataRedactionSettings_ = + dataRedactionSettingsBuilder_ == null + ? dataRedactionSettings_ + : dataRedactionSettingsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.UpdateDataRedactionSettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest + .getDefaultInstance()) return this; + if (other.hasDataRedactionSettings()) { + mergeDataRedactionSettings(other.getDataRedactionSettings()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getDataRedactionSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.DataRedactionSettings dataRedactionSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataRedactionSettings, + com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder> + dataRedactionSettingsBuilder_; + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataRedactionSettings field is set. + */ + public boolean hasDataRedactionSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataRedactionSettings. + */ + public com.google.analytics.admin.v1alpha.DataRedactionSettings getDataRedactionSettings() { + if (dataRedactionSettingsBuilder_ == null) { + return dataRedactionSettings_ == null + ? com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance() + : dataRedactionSettings_; + } else { + return dataRedactionSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataRedactionSettings( + com.google.analytics.admin.v1alpha.DataRedactionSettings value) { + if (dataRedactionSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataRedactionSettings_ = value; + } else { + dataRedactionSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataRedactionSettings( + com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder builderForValue) { + if (dataRedactionSettingsBuilder_ == null) { + dataRedactionSettings_ = builderForValue.build(); + } else { + dataRedactionSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDataRedactionSettings( + com.google.analytics.admin.v1alpha.DataRedactionSettings value) { + if (dataRedactionSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && dataRedactionSettings_ != null + && dataRedactionSettings_ + != com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance()) { + getDataRedactionSettingsBuilder().mergeFrom(value); + } else { + dataRedactionSettings_ = value; + } + } else { + dataRedactionSettingsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDataRedactionSettings() { + bitField0_ = (bitField0_ & ~0x00000001); + dataRedactionSettings_ = null; + if (dataRedactionSettingsBuilder_ != null) { + dataRedactionSettingsBuilder_.dispose(); + dataRedactionSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder + getDataRedactionSettingsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDataRedactionSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder + getDataRedactionSettingsOrBuilder() { + if (dataRedactionSettingsBuilder_ != null) { + return dataRedactionSettingsBuilder_.getMessageOrBuilder(); + } else { + return dataRedactionSettings_ == null + ? com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance() + : dataRedactionSettings_; + } + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataRedactionSettings, + com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder> + getDataRedactionSettingsFieldBuilder() { + if (dataRedactionSettingsBuilder_ == null) { + dataRedactionSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataRedactionSettings, + com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder>( + getDataRedactionSettings(), getParentForChildren(), isClean()); + dataRedactionSettings_ = null; + } + return dataRedactionSettingsBuilder_; + } + + 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 ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * 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; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + 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(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + 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 (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + 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() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000002; + 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.UpdateDataRedactionSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) + private static final com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDataRedactionSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRedactionSettingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRedactionSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..d80e67ab3db1 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRedactionSettingsRequestOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 UpdateDataRedactionSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) + 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.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataRedactionSettings field is set. + */ + boolean hasDataRedactionSettings(); + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataRedactionSettings. + */ + com.google.analytics.admin.v1alpha.DataRedactionSettings getDataRedactionSettings(); + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder + getDataRedactionSettingsOrBuilder(); + + /** + * + * + *
+   * 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/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSubpropertyEventFilterRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSubpropertyEventFilterRequest.java new file mode 100644 index 000000000000..9876da44f3db --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSubpropertyEventFilterRequest.java @@ -0,0 +1,1064 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 UpdateSubpropertyEventFilter RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest} + */ +public final class UpdateSubpropertyEventFilterRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest) + UpdateSubpropertyEventFilterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateSubpropertyEventFilterRequest.newBuilder() to construct. + private UpdateSubpropertyEventFilterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateSubpropertyEventFilterRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateSubpropertyEventFilterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest.class, + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest.Builder.class); + } + + public static final int SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; + /** + * + * + *
+   * Required. The subproperty event filter to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the subpropertyEventFilter field is set. + */ + @java.lang.Override + public boolean hasSubpropertyEventFilter() { + return subpropertyEventFilter_ != null; + } + /** + * + * + *
+   * Required. The subproperty event filter to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subpropertyEventFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } + /** + * + * + *
+   * Required. The subproperty event filter to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder() { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to update. Field names must be in snake case
+   * (for example, "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 update. Field names must be in snake case
+   * (for example, "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 update. Field names must be in snake case
+   * (for example, "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 updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (subpropertyEventFilter_ != null) { + output.writeMessage(1, getSubpropertyEventFilter()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (subpropertyEventFilter_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubpropertyEventFilter()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest other = + (com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest) obj; + + if (hasSubpropertyEventFilter() != other.hasSubpropertyEventFilter()) return false; + if (hasSubpropertyEventFilter()) { + if (!getSubpropertyEventFilter().equals(other.getSubpropertyEventFilter())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSubpropertyEventFilter()) { + hash = (37 * hash) + SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSubpropertyEventFilter().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom( + 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.UpdateSubpropertyEventFilterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom( + com.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.UpdateSubpropertyEventFilterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest 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.UpdateSubpropertyEventFilterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom( + java.io.InputStream 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.UpdateSubpropertyEventFilterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest + parseDelimitedFrom( + java.io.InputStream 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.UpdateSubpropertyEventFilterRequest 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.UpdateSubpropertyEventFilterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.UpdateSubpropertyEventFilterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 UpdateSubpropertyEventFilter RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest) + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest.class, + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + subpropertyEventFilter_ = null; + if (subpropertyEventFilterBuilder_ != null) { + subpropertyEventFilterBuilder_.dispose(); + subpropertyEventFilterBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + 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_UpdateSubpropertyEventFilterRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest build() { + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest result = + new com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subpropertyEventFilter_ = + subpropertyEventFilterBuilder_ == null + ? subpropertyEventFilter_ + : subpropertyEventFilterBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.UpdateSubpropertyEventFilterRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest + .getDefaultInstance()) return this; + if (other.hasSubpropertyEventFilter()) { + mergeSubpropertyEventFilter(other.getSubpropertyEventFilter()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getSubpropertyEventFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + subpropertyEventFilterBuilder_; + /** + * + * + *
+     * Required. The subproperty event filter to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the subpropertyEventFilter field is set. + */ + public boolean hasSubpropertyEventFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The subproperty event filter to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subpropertyEventFilter. + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { + if (subpropertyEventFilterBuilder_ == null) { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } else { + return subpropertyEventFilterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The subproperty event filter to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { + if (subpropertyEventFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subpropertyEventFilter_ = value; + } else { + subpropertyEventFilterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The subproperty event filter to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder builderForValue) { + if (subpropertyEventFilterBuilder_ == null) { + subpropertyEventFilter_ = builderForValue.build(); + } else { + subpropertyEventFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The subproperty event filter to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { + if (subpropertyEventFilterBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && subpropertyEventFilter_ != null + && subpropertyEventFilter_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance()) { + getSubpropertyEventFilterBuilder().mergeFrom(value); + } else { + subpropertyEventFilter_ = value; + } + } else { + subpropertyEventFilterBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The subproperty event filter to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSubpropertyEventFilter() { + bitField0_ = (bitField0_ & ~0x00000001); + subpropertyEventFilter_ = null; + if (subpropertyEventFilterBuilder_ != null) { + subpropertyEventFilterBuilder_.dispose(); + subpropertyEventFilterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The subproperty event filter to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder + getSubpropertyEventFilterBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSubpropertyEventFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The subproperty event filter to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder() { + if (subpropertyEventFilterBuilder_ != null) { + return subpropertyEventFilterBuilder_.getMessageOrBuilder(); + } else { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } + } + /** + * + * + *
+     * Required. The subproperty event filter to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + getSubpropertyEventFilterFieldBuilder() { + if (subpropertyEventFilterBuilder_ == null) { + subpropertyEventFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder>( + getSubpropertyEventFilter(), getParentForChildren(), isClean()); + subpropertyEventFilter_ = null; + } + return subpropertyEventFilterBuilder_; + } + + 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 update. Field names must be in snake case
+     * (for example, "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 ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to update. Field names must be in snake case
+     * (for example, "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 update. Field names must be in snake case
+     * (for example, "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; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to update. Field names must be in snake case
+     * (for example, "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(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to update. Field names must be in snake case
+     * (for example, "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 (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to update. Field names must be in snake case
+     * (for example, "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() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to update. Field names must be in snake case
+     * (for example, "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() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to update. Field names must be in snake case
+     * (for example, "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 update. Field names must be in snake case
+     * (for example, "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.UpdateSubpropertyEventFilterRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest) + private static final com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSubpropertyEventFilterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSubpropertyEventFilterRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSubpropertyEventFilterRequestOrBuilder.java new file mode 100644 index 000000000000..9aac2a776f4f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSubpropertyEventFilterRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 UpdateSubpropertyEventFilterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The subproperty event filter to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the subpropertyEventFilter field is set. + */ + boolean hasSubpropertyEventFilter(); + /** + * + * + *
+   * Required. The subproperty event filter to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subpropertyEventFilter. + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter(); + /** + * + * + *
+   * Required. The subproperty event filter to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to update. Field names must be in snake case
+   * (for example, "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 update. Field names must be in snake case
+   * (for example, "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 update. Field names must be in snake case
+   * (for example, "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/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLink.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLink.java deleted file mode 100644 index f8cfe6cde872..000000000000 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLink.java +++ /dev/null @@ -1,1266 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 resource message representing a user's permissions on an Account or
- * Property resource.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UserLink} - */ -public final class UserLink extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UserLink) - UserLinkOrBuilder { - private static final long serialVersionUID = 0L; - // Use UserLink.newBuilder() to construct. - private UserLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UserLink() { - name_ = ""; - emailAddress_ = ""; - directRoles_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UserLink(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_UserLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_UserLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UserLink.class, - com.google.analytics.admin.v1alpha.UserLink.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
-   * Output only. Example format: properties/1234/userLinks/5678
-   * 
- * - * 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. Example format: properties/1234/userLinks/5678
-   * 
- * - * 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 EMAIL_ADDRESS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object emailAddress_ = ""; - /** - * - * - *
-   * Immutable. Email address of the user to link
-   * 
- * - * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The emailAddress. - */ - @java.lang.Override - public java.lang.String getEmailAddress() { - java.lang.Object ref = emailAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - emailAddress_ = s; - return s; - } - } - /** - * - * - *
-   * Immutable. Email address of the user to link
-   * 
- * - * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for emailAddress. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEmailAddressBytes() { - java.lang.Object ref = emailAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - emailAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIRECT_ROLES_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList directRoles_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
-   * Roles directly assigned to this user for this account or property.
-   *
-   * Valid values:
-   * predefinedRoles/viewer
-   * predefinedRoles/analyst
-   * predefinedRoles/editor
-   * predefinedRoles/admin
-   * predefinedRoles/no-cost-data
-   * predefinedRoles/no-revenue-data
-   *
-   * Excludes roles that are inherited from a higher-level entity, group,
-   * or organization admin role.
-   *
-   * A UserLink that is updated to have an empty list of direct_roles will be
-   * deleted.
-   * 
- * - * repeated string direct_roles = 3; - * - * @return A list containing the directRoles. - */ - public com.google.protobuf.ProtocolStringList getDirectRolesList() { - return directRoles_; - } - /** - * - * - *
-   * Roles directly assigned to this user for this account or property.
-   *
-   * Valid values:
-   * predefinedRoles/viewer
-   * predefinedRoles/analyst
-   * predefinedRoles/editor
-   * predefinedRoles/admin
-   * predefinedRoles/no-cost-data
-   * predefinedRoles/no-revenue-data
-   *
-   * Excludes roles that are inherited from a higher-level entity, group,
-   * or organization admin role.
-   *
-   * A UserLink that is updated to have an empty list of direct_roles will be
-   * deleted.
-   * 
- * - * repeated string direct_roles = 3; - * - * @return The count of directRoles. - */ - public int getDirectRolesCount() { - return directRoles_.size(); - } - /** - * - * - *
-   * Roles directly assigned to this user for this account or property.
-   *
-   * Valid values:
-   * predefinedRoles/viewer
-   * predefinedRoles/analyst
-   * predefinedRoles/editor
-   * predefinedRoles/admin
-   * predefinedRoles/no-cost-data
-   * predefinedRoles/no-revenue-data
-   *
-   * Excludes roles that are inherited from a higher-level entity, group,
-   * or organization admin role.
-   *
-   * A UserLink that is updated to have an empty list of direct_roles will be
-   * deleted.
-   * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the element to return. - * @return The directRoles at the given index. - */ - public java.lang.String getDirectRoles(int index) { - return directRoles_.get(index); - } - /** - * - * - *
-   * Roles directly assigned to this user for this account or property.
-   *
-   * Valid values:
-   * predefinedRoles/viewer
-   * predefinedRoles/analyst
-   * predefinedRoles/editor
-   * predefinedRoles/admin
-   * predefinedRoles/no-cost-data
-   * predefinedRoles/no-revenue-data
-   *
-   * Excludes roles that are inherited from a higher-level entity, group,
-   * or organization admin role.
-   *
-   * A UserLink that is updated to have an empty list of direct_roles will be
-   * deleted.
-   * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the value to return. - * @return The bytes of the directRoles at the given index. - */ - public com.google.protobuf.ByteString getDirectRolesBytes(int index) { - return directRoles_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(emailAddress_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, emailAddress_); - } - for (int i = 0; i < directRoles_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, directRoles_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(emailAddress_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, emailAddress_); - } - { - int dataSize = 0; - for (int i = 0; i < directRoles_.size(); i++) { - dataSize += computeStringSizeNoTag(directRoles_.getRaw(i)); - } - size += dataSize; - size += 1 * getDirectRolesList().size(); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.UserLink)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UserLink other = - (com.google.analytics.admin.v1alpha.UserLink) obj; - - if (!getName().equals(other.getName())) return false; - if (!getEmailAddress().equals(other.getEmailAddress())) return false; - if (!getDirectRolesList().equals(other.getDirectRolesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + EMAIL_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getEmailAddress().hashCode(); - if (getDirectRolesCount() > 0) { - hash = (37 * hash) + DIRECT_ROLES_FIELD_NUMBER; - hash = (53 * hash) + getDirectRolesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UserLink parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.UserLink parseFrom( - 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.UserLink parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.UserLink parseFrom( - com.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.UserLink parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.UserLink 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.UserLink parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UserLink parseFrom( - java.io.InputStream 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.UserLink parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UserLink parseDelimitedFrom( - java.io.InputStream 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.UserLink 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.UserLink parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.UserLink prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 resource message representing a user's permissions on an Account or
-   * Property resource.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UserLink} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UserLink) - com.google.analytics.admin.v1alpha.UserLinkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_UserLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto - .internal_static_google_analytics_admin_v1alpha_UserLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UserLink.class, - com.google.analytics.admin.v1alpha.UserLink.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UserLink.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - emailAddress_ = ""; - directRoles_ = com.google.protobuf.LazyStringArrayList.emptyList(); - 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_UserLink_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLink getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLink build() { - com.google.analytics.admin.v1alpha.UserLink result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLink buildPartial() { - com.google.analytics.admin.v1alpha.UserLink result = - new com.google.analytics.admin.v1alpha.UserLink(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.UserLink result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.emailAddress_ = emailAddress_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - directRoles_.makeImmutable(); - result.directRoles_ = directRoles_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.UserLink) { - return mergeFrom((com.google.analytics.admin.v1alpha.UserLink) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UserLink other) { - if (other == com.google.analytics.admin.v1alpha.UserLink.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getEmailAddress().isEmpty()) { - emailAddress_ = other.emailAddress_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.directRoles_.isEmpty()) { - if (directRoles_.isEmpty()) { - directRoles_ = other.directRoles_; - bitField0_ |= 0x00000004; - } else { - ensureDirectRolesIsMutable(); - directRoles_.addAll(other.directRoles_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - emailAddress_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDirectRolesIsMutable(); - directRoles_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Output only. Example format: properties/1234/userLinks/5678
-     * 
- * - * 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. Example format: properties/1234/userLinks/5678
-     * 
- * - * 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. Example format: properties/1234/userLinks/5678
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Example format: properties/1234/userLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Example format: properties/1234/userLinks/5678
-     * 
- * - * 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; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object emailAddress_ = ""; - /** - * - * - *
-     * Immutable. Email address of the user to link
-     * 
- * - * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The emailAddress. - */ - public java.lang.String getEmailAddress() { - java.lang.Object ref = emailAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - emailAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Immutable. Email address of the user to link
-     * 
- * - * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for emailAddress. - */ - public com.google.protobuf.ByteString getEmailAddressBytes() { - java.lang.Object ref = emailAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - emailAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Immutable. Email address of the user to link
-     * 
- * - * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The emailAddress to set. - * @return This builder for chaining. - */ - public Builder setEmailAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - emailAddress_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. Email address of the user to link
-     * 
- * - * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return This builder for chaining. - */ - public Builder clearEmailAddress() { - emailAddress_ = getDefaultInstance().getEmailAddress(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. Email address of the user to link
-     * 
- * - * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The bytes for emailAddress to set. - * @return This builder for chaining. - */ - public Builder setEmailAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - emailAddress_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList directRoles_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureDirectRolesIsMutable() { - if (!directRoles_.isModifiable()) { - directRoles_ = new com.google.protobuf.LazyStringArrayList(directRoles_); - } - bitField0_ |= 0x00000004; - } - /** - * - * - *
-     * Roles directly assigned to this user for this account or property.
-     *
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     *
-     * Excludes roles that are inherited from a higher-level entity, group,
-     * or organization admin role.
-     *
-     * A UserLink that is updated to have an empty list of direct_roles will be
-     * deleted.
-     * 
- * - * repeated string direct_roles = 3; - * - * @return A list containing the directRoles. - */ - public com.google.protobuf.ProtocolStringList getDirectRolesList() { - directRoles_.makeImmutable(); - return directRoles_; - } - /** - * - * - *
-     * Roles directly assigned to this user for this account or property.
-     *
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     *
-     * Excludes roles that are inherited from a higher-level entity, group,
-     * or organization admin role.
-     *
-     * A UserLink that is updated to have an empty list of direct_roles will be
-     * deleted.
-     * 
- * - * repeated string direct_roles = 3; - * - * @return The count of directRoles. - */ - public int getDirectRolesCount() { - return directRoles_.size(); - } - /** - * - * - *
-     * Roles directly assigned to this user for this account or property.
-     *
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     *
-     * Excludes roles that are inherited from a higher-level entity, group,
-     * or organization admin role.
-     *
-     * A UserLink that is updated to have an empty list of direct_roles will be
-     * deleted.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the element to return. - * @return The directRoles at the given index. - */ - public java.lang.String getDirectRoles(int index) { - return directRoles_.get(index); - } - /** - * - * - *
-     * Roles directly assigned to this user for this account or property.
-     *
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     *
-     * Excludes roles that are inherited from a higher-level entity, group,
-     * or organization admin role.
-     *
-     * A UserLink that is updated to have an empty list of direct_roles will be
-     * deleted.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the value to return. - * @return The bytes of the directRoles at the given index. - */ - public com.google.protobuf.ByteString getDirectRolesBytes(int index) { - return directRoles_.getByteString(index); - } - /** - * - * - *
-     * Roles directly assigned to this user for this account or property.
-     *
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     *
-     * Excludes roles that are inherited from a higher-level entity, group,
-     * or organization admin role.
-     *
-     * A UserLink that is updated to have an empty list of direct_roles will be
-     * deleted.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param index The index to set the value at. - * @param value The directRoles to set. - * @return This builder for chaining. - */ - public Builder setDirectRoles(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDirectRolesIsMutable(); - directRoles_.set(index, value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Roles directly assigned to this user for this account or property.
-     *
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     *
-     * Excludes roles that are inherited from a higher-level entity, group,
-     * or organization admin role.
-     *
-     * A UserLink that is updated to have an empty list of direct_roles will be
-     * deleted.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param value The directRoles to add. - * @return This builder for chaining. - */ - public Builder addDirectRoles(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDirectRolesIsMutable(); - directRoles_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Roles directly assigned to this user for this account or property.
-     *
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     *
-     * Excludes roles that are inherited from a higher-level entity, group,
-     * or organization admin role.
-     *
-     * A UserLink that is updated to have an empty list of direct_roles will be
-     * deleted.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param values The directRoles to add. - * @return This builder for chaining. - */ - public Builder addAllDirectRoles(java.lang.Iterable values) { - ensureDirectRolesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, directRoles_); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * - * - *
-     * Roles directly assigned to this user for this account or property.
-     *
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     *
-     * Excludes roles that are inherited from a higher-level entity, group,
-     * or organization admin role.
-     *
-     * A UserLink that is updated to have an empty list of direct_roles will be
-     * deleted.
-     * 
- * - * repeated string direct_roles = 3; - * - * @return This builder for chaining. - */ - public Builder clearDirectRoles() { - directRoles_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; - onChanged(); - return this; - } - /** - * - * - *
-     * Roles directly assigned to this user for this account or property.
-     *
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     *
-     * Excludes roles that are inherited from a higher-level entity, group,
-     * or organization admin role.
-     *
-     * A UserLink that is updated to have an empty list of direct_roles will be
-     * deleted.
-     * 
- * - * repeated string direct_roles = 3; - * - * @param value The bytes of the directRoles to add. - * @return This builder for chaining. - */ - public Builder addDirectRolesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureDirectRolesIsMutable(); - directRoles_.add(value); - bitField0_ |= 0x00000004; - 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.UserLink) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UserLink) - private static final com.google.analytics.admin.v1alpha.UserLink DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UserLink(); - } - - public static com.google.analytics.admin.v1alpha.UserLink getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserLink parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UserLink getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkName.java deleted file mode 100644 index 3257631b58bf..000000000000 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkName.java +++ /dev/null @@ -1,294 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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.core.BetaApi; -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.pathtemplate.ValidationException; -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 UserLinkName implements ResourceName { - private static final PathTemplate ACCOUNT_USER_LINK = - PathTemplate.createWithoutUrlEncoding("accounts/{account}/userLinks/{user_link}"); - private static final PathTemplate PROPERTY_USER_LINK = - PathTemplate.createWithoutUrlEncoding("properties/{property}/userLinks/{user_link}"); - private volatile Map fieldValuesMap; - private PathTemplate pathTemplate; - private String fixedValue; - private final String account; - private final String userLink; - private final String property; - - @Deprecated - protected UserLinkName() { - account = null; - userLink = null; - property = null; - } - - private UserLinkName(Builder builder) { - account = Preconditions.checkNotNull(builder.getAccount()); - userLink = Preconditions.checkNotNull(builder.getUserLink()); - property = null; - pathTemplate = ACCOUNT_USER_LINK; - } - - private UserLinkName(PropertyUserLinkBuilder builder) { - property = Preconditions.checkNotNull(builder.getProperty()); - userLink = Preconditions.checkNotNull(builder.getUserLink()); - account = null; - pathTemplate = PROPERTY_USER_LINK; - } - - public String getAccount() { - return account; - } - - public String getUserLink() { - return userLink; - } - - public String getProperty() { - return property; - } - - public static Builder newBuilder() { - return new Builder(); - } - - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static Builder newAccountUserLinkBuilder() { - return new Builder(); - } - - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static PropertyUserLinkBuilder newPropertyUserLinkBuilder() { - return new PropertyUserLinkBuilder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static UserLinkName of(String account, String userLink) { - return newBuilder().setAccount(account).setUserLink(userLink).build(); - } - - @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static UserLinkName ofAccountUserLinkName(String account, String userLink) { - return newBuilder().setAccount(account).setUserLink(userLink).build(); - } - - @BetaApi("The static create methods are not stable yet and may be changed in the future.") - public static UserLinkName ofPropertyUserLinkName(String property, String userLink) { - return newPropertyUserLinkBuilder().setProperty(property).setUserLink(userLink).build(); - } - - public static String format(String account, String userLink) { - return newBuilder().setAccount(account).setUserLink(userLink).build().toString(); - } - - @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatAccountUserLinkName(String account, String userLink) { - return newBuilder().setAccount(account).setUserLink(userLink).build().toString(); - } - - @BetaApi("The static format methods are not stable yet and may be changed in the future.") - public static String formatPropertyUserLinkName(String property, String userLink) { - return newPropertyUserLinkBuilder() - .setProperty(property) - .setUserLink(userLink) - .build() - .toString(); - } - - public static UserLinkName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - if (ACCOUNT_USER_LINK.matches(formattedString)) { - Map matchMap = ACCOUNT_USER_LINK.match(formattedString); - return ofAccountUserLinkName(matchMap.get("account"), matchMap.get("user_link")); - } else if (PROPERTY_USER_LINK.matches(formattedString)) { - Map matchMap = PROPERTY_USER_LINK.match(formattedString); - return ofPropertyUserLinkName(matchMap.get("property"), matchMap.get("user_link")); - } - throw new ValidationException("UserLinkName.parse: formattedString not in valid format"); - } - - 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 (UserLinkName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return ACCOUNT_USER_LINK.matches(formattedString) - || PROPERTY_USER_LINK.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (account != null) { - fieldMapBuilder.put("account", account); - } - if (userLink != null) { - fieldMapBuilder.put("user_link", userLink); - } - 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 fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - UserLinkName that = ((UserLinkName) o); - return Objects.equals(this.account, that.account) - && Objects.equals(this.userLink, that.userLink) - && Objects.equals(this.property, that.property); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(fixedValue); - h *= 1000003; - h ^= Objects.hashCode(account); - h *= 1000003; - h ^= Objects.hashCode(userLink); - h *= 1000003; - h ^= Objects.hashCode(property); - return h; - } - - /** Builder for accounts/{account}/userLinks/{user_link}. */ - public static class Builder { - private String account; - private String userLink; - - protected Builder() {} - - public String getAccount() { - return account; - } - - public String getUserLink() { - return userLink; - } - - public Builder setAccount(String account) { - this.account = account; - return this; - } - - public Builder setUserLink(String userLink) { - this.userLink = userLink; - return this; - } - - private Builder(UserLinkName userLinkName) { - Preconditions.checkArgument( - Objects.equals(userLinkName.pathTemplate, ACCOUNT_USER_LINK), - "toBuilder is only supported when UserLinkName has the pattern of accounts/{account}/userLinks/{user_link}"); - this.account = userLinkName.account; - this.userLink = userLinkName.userLink; - } - - public UserLinkName build() { - return new UserLinkName(this); - } - } - - /** Builder for properties/{property}/userLinks/{user_link}. */ - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static class PropertyUserLinkBuilder { - private String property; - private String userLink; - - protected PropertyUserLinkBuilder() {} - - public String getProperty() { - return property; - } - - public String getUserLink() { - return userLink; - } - - public PropertyUserLinkBuilder setProperty(String property) { - this.property = property; - return this; - } - - public PropertyUserLinkBuilder setUserLink(String userLink) { - this.userLink = userLink; - return this; - } - - public UserLinkName build() { - return new UserLinkName(this); - } - } -} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkOrBuilder.java deleted file mode 100644 index 0b5aa4e1bbbc..000000000000 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkOrBuilder.java +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 UserLinkOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UserLink) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Example format: properties/1234/userLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Output only. Example format: properties/1234/userLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Immutable. Email address of the user to link
-   * 
- * - * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The emailAddress. - */ - java.lang.String getEmailAddress(); - /** - * - * - *
-   * Immutable. Email address of the user to link
-   * 
- * - * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for emailAddress. - */ - com.google.protobuf.ByteString getEmailAddressBytes(); - - /** - * - * - *
-   * Roles directly assigned to this user for this account or property.
-   *
-   * Valid values:
-   * predefinedRoles/viewer
-   * predefinedRoles/analyst
-   * predefinedRoles/editor
-   * predefinedRoles/admin
-   * predefinedRoles/no-cost-data
-   * predefinedRoles/no-revenue-data
-   *
-   * Excludes roles that are inherited from a higher-level entity, group,
-   * or organization admin role.
-   *
-   * A UserLink that is updated to have an empty list of direct_roles will be
-   * deleted.
-   * 
- * - * repeated string direct_roles = 3; - * - * @return A list containing the directRoles. - */ - java.util.List getDirectRolesList(); - /** - * - * - *
-   * Roles directly assigned to this user for this account or property.
-   *
-   * Valid values:
-   * predefinedRoles/viewer
-   * predefinedRoles/analyst
-   * predefinedRoles/editor
-   * predefinedRoles/admin
-   * predefinedRoles/no-cost-data
-   * predefinedRoles/no-revenue-data
-   *
-   * Excludes roles that are inherited from a higher-level entity, group,
-   * or organization admin role.
-   *
-   * A UserLink that is updated to have an empty list of direct_roles will be
-   * deleted.
-   * 
- * - * repeated string direct_roles = 3; - * - * @return The count of directRoles. - */ - int getDirectRolesCount(); - /** - * - * - *
-   * Roles directly assigned to this user for this account or property.
-   *
-   * Valid values:
-   * predefinedRoles/viewer
-   * predefinedRoles/analyst
-   * predefinedRoles/editor
-   * predefinedRoles/admin
-   * predefinedRoles/no-cost-data
-   * predefinedRoles/no-revenue-data
-   *
-   * Excludes roles that are inherited from a higher-level entity, group,
-   * or organization admin role.
-   *
-   * A UserLink that is updated to have an empty list of direct_roles will be
-   * deleted.
-   * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the element to return. - * @return The directRoles at the given index. - */ - java.lang.String getDirectRoles(int index); - /** - * - * - *
-   * Roles directly assigned to this user for this account or property.
-   *
-   * Valid values:
-   * predefinedRoles/viewer
-   * predefinedRoles/analyst
-   * predefinedRoles/editor
-   * predefinedRoles/admin
-   * predefinedRoles/no-cost-data
-   * predefinedRoles/no-revenue-data
-   *
-   * Excludes roles that are inherited from a higher-level entity, group,
-   * or organization admin role.
-   *
-   * A UserLink that is updated to have an empty list of direct_roles will be
-   * deleted.
-   * 
- * - * repeated string direct_roles = 3; - * - * @param index The index of the value to return. - * @return The bytes of the directRoles at the given index. - */ - com.google.protobuf.ByteString getDirectRolesBytes(int index); -} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto index 15eec30fc8f3..ce1b3eeebe7e 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto @@ -22,6 +22,7 @@ import "google/analytics/admin/v1alpha/channel_group.proto"; import "google/analytics/admin/v1alpha/event_create_and_edit.proto"; import "google/analytics/admin/v1alpha/expanded_data_set.proto"; import "google/analytics/admin/v1alpha/resources.proto"; +import "google/analytics/admin/v1alpha/subproperty_event_filter.proto"; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; @@ -70,7 +71,7 @@ service AnalyticsAdminService { // // 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. + // AccessBindings) will be permanently purged. // https://support.google.com/analytics/answer/6154772 // // Returns an error if the target is not found. @@ -142,7 +143,7 @@ service AnalyticsAdminService { // 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) + // and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) // will be permanently purged. // https://support.google.com/analytics/answer/6154772 // @@ -163,136 +164,6 @@ service AnalyticsAdminService { option (google.api.method_signature) = "property,update_mask"; } - // Gets information about a user's link to an account or property. - rpc GetUserLink(GetUserLinkRequest) returns (UserLink) { - option (google.api.http) = { - get: "/v1alpha/{name=accounts/*/userLinks/*}" - additional_bindings { get: "/v1alpha/{name=properties/*/userLinks/*}" } - }; - option (google.api.method_signature) = "name"; - } - - // Gets information about multiple users' links to an account or property. - rpc BatchGetUserLinks(BatchGetUserLinksRequest) - returns (BatchGetUserLinksResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=accounts/*}/userLinks:batchGet" - additional_bindings { - get: "/v1alpha/{parent=properties/*}/userLinks:batchGet" - } - }; - } - - // Lists all user links on an account or property. - rpc ListUserLinks(ListUserLinksRequest) returns (ListUserLinksResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=accounts/*}/userLinks" - additional_bindings { get: "/v1alpha/{parent=properties/*}/userLinks" } - }; - option (google.api.method_signature) = "parent"; - } - - // 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. - rpc AuditUserLinks(AuditUserLinksRequest) returns (AuditUserLinksResponse) { - option (google.api.http) = { - post: "/v1alpha/{parent=accounts/*}/userLinks:audit" - body: "*" - additional_bindings { - post: "/v1alpha/{parent=properties/*}/userLinks:audit" - body: "*" - } - }; - } - - // 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. - rpc CreateUserLink(CreateUserLinkRequest) returns (UserLink) { - option (google.api.http) = { - post: "/v1alpha/{parent=accounts/*}/userLinks" - body: "user_link" - additional_bindings { - post: "/v1alpha/{parent=properties/*}/userLinks" - body: "user_link" - } - }; - option (google.api.method_signature) = "parent,user_link"; - } - - // 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. - rpc BatchCreateUserLinks(BatchCreateUserLinksRequest) - returns (BatchCreateUserLinksResponse) { - option (google.api.http) = { - post: "/v1alpha/{parent=accounts/*}/userLinks:batchCreate" - body: "*" - additional_bindings { - post: "/v1alpha/{parent=properties/*}/userLinks:batchCreate" - body: "*" - } - }; - } - - // Updates a user link on an account or property. - rpc UpdateUserLink(UpdateUserLinkRequest) returns (UserLink) { - option (google.api.http) = { - patch: "/v1alpha/{user_link.name=accounts/*/userLinks/*}" - body: "user_link" - additional_bindings { - patch: "/v1alpha/{user_link.name=properties/*/userLinks/*}" - body: "user_link" - } - }; - option (google.api.method_signature) = "user_link"; - } - - // Updates information about multiple users' links to an account or property. - rpc BatchUpdateUserLinks(BatchUpdateUserLinksRequest) - returns (BatchUpdateUserLinksResponse) { - option (google.api.http) = { - post: "/v1alpha/{parent=accounts/*}/userLinks:batchUpdate" - body: "*" - additional_bindings { - post: "/v1alpha/{parent=properties/*}/userLinks:batchUpdate" - body: "*" - } - }; - } - - // Deletes a user link on an account or property. - rpc DeleteUserLink(DeleteUserLinkRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=accounts/*/userLinks/*}" - additional_bindings { delete: "/v1alpha/{name=properties/*/userLinks/*}" } - }; - option (google.api.method_signature) = "name"; - } - - // Deletes information about multiple users' links to an account or property. - rpc BatchDeleteUserLinks(BatchDeleteUserLinksRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v1alpha/{parent=accounts/*}/userLinks:batchDelete" - body: "*" - additional_bindings { - post: "/v1alpha/{parent=properties/*}/userLinks:batchDelete" - body: "*" - } - }; - } - // Creates a FirebaseLink. // // Properties can have at most one FirebaseLink. @@ -1385,6 +1256,130 @@ service AnalyticsAdminService { }; option (google.api.method_signature) = "name"; } + + // Updates a DataRedactionSettings on a property. + rpc UpdateDataRedactionSettings(UpdateDataRedactionSettingsRequest) + returns (DataRedactionSettings) { + option (google.api.http) = { + patch: "/v1alpha/{data_redaction_settings.name=properties/*/dataStreams/*/dataRedactionSettings}" + body: "data_redaction_settings" + }; + option (google.api.method_signature) = + "data_redaction_settings,update_mask"; + } + + // Lookup for a single DataRedactionSettings. + rpc GetDataRedactionSettings(GetDataRedactionSettingsRequest) + returns (DataRedactionSettings) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/dataStreams/*/dataRedactionSettings}" + }; + option (google.api.method_signature) = "name"; + } + + // Create a roll-up property and all roll-up property source links. + rpc CreateRollupProperty(CreateRollupPropertyRequest) + returns (CreateRollupPropertyResponse) { + option (google.api.http) = { + post: "/v1alpha/properties:createRollupProperty" + body: "*" + }; + } + + // Lookup for a single roll-up property source Link. + // Only roll-up properties can have source links, so this method will throw an + // error if used on other types of properties. + rpc GetRollupPropertySourceLink(GetRollupPropertySourceLinkRequest) + returns (RollupPropertySourceLink) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists roll-up property source Links on a property. + // Only roll-up properties can have source links, so this method will throw an + // error if used on other types of properties. + rpc ListRollupPropertySourceLinks(ListRollupPropertySourceLinksRequest) + returns (ListRollupPropertySourceLinksResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/rollupPropertySourceLinks" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a roll-up property source link. + // Only roll-up properties can have source links, so this method will throw an + // error if used on other types of properties. + rpc CreateRollupPropertySourceLink(CreateRollupPropertySourceLinkRequest) + returns (RollupPropertySourceLink) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/rollupPropertySourceLinks" + body: "rollup_property_source_link" + }; + option (google.api.method_signature) = "parent,rollup_property_source_link"; + } + + // Deletes a roll-up property source link. + // Only roll-up properties can have source links, so this method will throw an + // error if used on other types of properties. + rpc DeleteRollupPropertySourceLink(DeleteRollupPropertySourceLinkRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/rollupPropertySourceLinks/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Create a subproperty and a subproperty event filter that applies to the + // created subproperty. + rpc CreateSubproperty(CreateSubpropertyRequest) + returns (CreateSubpropertyResponse) { + option (google.api.http) = { + post: "/v1alpha/properties:createSubproperty" + body: "*" + }; + } + + // Deletes a subproperty event filter. + rpc DeleteSubpropertyEventFilter(DeleteSubpropertyEventFilterRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/subpropertyEventFilters/*}" + }; + option (google.api.method_signature) = "name"; + } + + + + + + + + + + + + + + + + + + + + + + // Creates a subproperty Event Filter. + rpc CreateSubpropertyEventFilter(CreateSubpropertyEventFilterRequest) + returns (SubpropertyEventFilter) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/subpropertyEventFilters" + body: "subproperty_event_filter" + }; + option (google.api.method_signature) = "parent,subproperty_event_filter"; + } + } // The request for a Data Access Record Report. @@ -1465,6 +1460,19 @@ message RunAccessReportRequest { // quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level // requests, this field must be false. bool return_entity_quota = 11; + + // Optional. Determines whether to include users who have never made an API + // call in the response. If true, all users with access to the specified + // property or account are included in the response, regardless of whether + // they have made an API call or not. If false, only the users who have made + // an API call will be included. + bool include_all_users = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Decides whether to return the users within user groups. This + // field works only when include_all_users is set to true. If true, it will + // return all users with access to the specified property or account. + // If false, only the users with direct access will be returned. + bool expand_groups = 13 [(google.api.field_behavior) = OPTIONAL]; } // The customized Data Access Record Report response. @@ -1679,230 +1687,6 @@ message DeletePropertyRequest { ]; } -// Request message for GetUserLink RPC. -message GetUserLinkRequest { - // Required. Example format: accounts/1234/userLinks/5678 - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/UserLink" - } - ]; -} - -// Request message for BatchGetUserLinks RPC. -message BatchGetUserLinksRequest { - // Required. The account or property that all user links in the request are - // for. The parent of all provided values for the 'names' field must match - // this field. - // Example format: accounts/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/UserLink" - } - ]; - - // Required. The names of the user links to retrieve. - // A maximum of 1000 user links can be retrieved in a batch. - // Format: accounts/{accountId}/userLinks/{userLinkId} - repeated string names = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/UserLink" - } - ]; -} - -// Response message for BatchGetUserLinks RPC. -message BatchGetUserLinksResponse { - // The requested user links. - repeated UserLink user_links = 1; -} - -// Request message for ListUserLinks RPC. -message ListUserLinksRequest { - // Required. Example format: accounts/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/UserLink" - } - ]; - - // The maximum number of user links to return. - // The service may return fewer than this value. - // If unspecified, at most 200 user links will be returned. - // The maximum value is 500; values above 500 will be coerced to 500. - int32 page_size = 2; - - // A page token, received from a previous `ListUserLinks` call. - // Provide this to retrieve the subsequent page. - // When paginating, all other parameters provided to `ListUserLinks` must - // match the call that provided the page token. - string page_token = 3; -} - -// Response message for ListUserLinks RPC. -message ListUserLinksResponse { - // List of UserLinks. These will be ordered stably, but in an arbitrary order. - repeated UserLink user_links = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for AuditUserLinks RPC. -message AuditUserLinksRequest { - // Required. Example format: accounts/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/UserLink" - } - ]; - - // The maximum number of user links to return. - // The service may return fewer than this value. - // If unspecified, at most 1000 user links will be returned. - // The maximum value is 5000; values above 5000 will be coerced to 5000. - int32 page_size = 2; - - // A page token, received from a previous `AuditUserLinks` call. - // Provide this to retrieve the subsequent page. - // When paginating, all other parameters provided to `AuditUserLinks` must - // match the call that provided the page token. - string page_token = 3; -} - -// Response message for AuditUserLinks RPC. -message AuditUserLinksResponse { - // List of AuditUserLinks. These will be ordered stably, but in an arbitrary - // order. - repeated AuditUserLink user_links = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for CreateUserLink RPC. -// -// Users can have multiple email addresses associated with their Google -// account, and one of these email addresses is the "primary" email address. -// Any of the email addresses associated with a Google account may be used -// for a new UserLink, but the returned UserLink will always contain the -// "primary" email address. As a result, the input and output email address -// for this request may differ. -message CreateUserLinkRequest { - // Required. Example format: accounts/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/UserLink" - } - ]; - - // Optional. If set, then email the new user notifying them that they've been - // granted permissions to the resource. - bool notify_new_user = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Required. The user link to create. - UserLink user_link = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for BatchCreateUserLinks RPC. -message BatchCreateUserLinksRequest { - // Required. The account or property that all user links in the request are - // for. This field is required. The parent field in the CreateUserLinkRequest - // messages must either be empty or match this field. - // Example format: accounts/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/UserLink" - } - ]; - - // Optional. If set, then email the new users notifying them that they've been - // granted permissions to the resource. Regardless of whether this is set or - // not, notify_new_user field inside each individual request is ignored. - bool notify_new_users = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Required. The requests specifying the user links to create. - // A maximum of 1000 user links can be created in a batch. - repeated CreateUserLinkRequest requests = 3 - [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for BatchCreateUserLinks RPC. -message BatchCreateUserLinksResponse { - // The user links created. - repeated UserLink user_links = 1; -} - -// Request message for UpdateUserLink RPC. -message UpdateUserLinkRequest { - // Required. The user link to update. - UserLink user_link = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for BatchUpdateUserLinks RPC. -message BatchUpdateUserLinksRequest { - // Required. The account or property that all user links in the request are - // for. The parent field in the UpdateUserLinkRequest messages must either be - // empty or match this field. - // Example format: accounts/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/UserLink" - } - ]; - - // Required. The requests specifying the user links to update. - // A maximum of 1000 user links can be updated in a batch. - repeated UpdateUserLinkRequest requests = 2 - [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for BatchUpdateUserLinks RPC. -message BatchUpdateUserLinksResponse { - // The user links updated. - repeated UserLink user_links = 1; -} - -// Request message for DeleteUserLink RPC. -message DeleteUserLinkRequest { - // Required. Example format: accounts/1234/userLinks/5678 - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsadmin.googleapis.com/UserLink" - } - ]; -} - -// Request message for BatchDeleteUserLinks RPC. -message BatchDeleteUserLinksRequest { - // Required. The account or property that all user links in the request are - // for. The parent of all values for user link names to delete must match this - // field. - // Example format: accounts/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/UserLink" - } - ]; - - // Required. The requests specifying the user links to update. - // A maximum of 1000 user links can be updated in a batch. - repeated DeleteUserLinkRequest requests = 2 - [(google.api.field_behavior) = REQUIRED]; -} - // Request message for CreateFirebaseLink RPC message CreateFirebaseLinkRequest { // Required. Format: properties/{property_id} @@ -2322,9 +2106,10 @@ message UpdateSKAdNetworkConversionValueSchemaRequest { // Request message for ListSKAdNetworkConversionValueSchemas RPC message ListSKAdNetworkConversionValueSchemasRequest { - // Required. Format: - // properties/{property_id}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema - // Example: properties/1234/dataStreams/5678/sKAdNetworkConversionValueSchema + // Required. The DataStream resource to list schemas for. + // Format: + // properties/{property_id}/dataStreams/{dataStream} + // Example: properties/1234/dataStreams/5678 string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -3619,6 +3404,35 @@ message UpdateEnhancedMeasurementSettingsRequest { [(google.api.field_behavior) = REQUIRED]; } +// Request message for GetDataRedactionSettings RPC. +message GetDataRedactionSettingsRequest { + // Required. The name of the settings to lookup. + // Format: + // properties/{property}/dataStreams/{data_stream}/dataRedactionSettings + // Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DataRedactionSettings" + } + ]; +} + +// Request message for UpdateDataRedactionSettings RPC. +message UpdateDataRedactionSettingsRequest { + // Required. The settings to update. + // The `name` field is used to identify the settings to be updated. + DataRedactionSettings data_redaction_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 CreateConnectedSiteTag RPC. message CreateConnectedSiteTagRequest { // The Universal Analytics property to create connected site tags for. @@ -3855,3 +3669,224 @@ message ListEventCreateRulesResponse { // If this field is omitted, there are no subsequent pages. string next_page_token = 2; } + +// Request message for CreateRollupProperty RPC. +message CreateRollupPropertyRequest { + // Required. The roll-up property to create. + Property rollup_property = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The resource names of properties that will be sources to the + // created roll-up property. + repeated string source_properties = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for CreateRollupProperty RPC. +message CreateRollupPropertyResponse { + // The created roll-up property. + Property rollup_property = 1; + + // The created roll-up property source links. + repeated RollupPropertySourceLink rollup_property_source_links = 2; +} + +// Request message for GetRollupPropertySourceLink RPC. +message GetRollupPropertySourceLinkRequest { + // Required. The name of the roll-up property source link to lookup. + // Format: + // properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + // Example: properties/123/rollupPropertySourceLinks/456 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/RollupPropertySourceLink" + } + ]; +} + +// Request message for ListRollupPropertySourceLinks RPC. +message ListRollupPropertySourceLinksRequest { + // Required. The name of the roll-up property to list roll-up property source + // links under. Format: properties/{property_id} Example: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/RollupPropertySourceLink" + } + ]; + + // Optional. The maximum number of resources to return. The service may return + // fewer than this value, even if there are additional pages. + // 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 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous + // `ListRollupPropertySourceLinks` call. Provide this to retrieve the + // subsequent page. When paginating, all other parameters provided to + // `ListRollupPropertySourceLinks` must match the call that provided the page + // token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ListRollupPropertySourceLinks RPC. +message ListRollupPropertySourceLinksResponse { + // List of RollupPropertySourceLinks. + repeated RollupPropertySourceLink rollup_property_source_links = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for CreateRollupPropertySourceLink RPC. +message CreateRollupPropertySourceLinkRequest { + // Required. Format: properties/{property_id} + // Example: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/RollupPropertySourceLink" + } + ]; + + // Required. The roll-up property source link to create. + RollupPropertySourceLink rollup_property_source_link = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for DeleteRollupPropertySourceLink RPC. +message DeleteRollupPropertySourceLinkRequest { + // Required. Format: + // properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id} + // Example: properties/1234/rollupPropertySourceLinks/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/RollupPropertySourceLink" + } + ]; +} + +// Request message for CreateSubproperty RPC. +message CreateSubpropertyRequest { + // Required. The ordinary property for which to create a subproperty. + // Format: properties/property_id + // Example: properties/123 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Property" + } + ]; + + // Required. The subproperty to create. + Property subproperty = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The subproperty event filter to create on an ordinary property. + SubpropertyEventFilter subproperty_event_filter = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for CreateSubproperty RPC. +message CreateSubpropertyResponse { + // The created subproperty. + Property subproperty = 1; + + // The created subproperty event filter. + SubpropertyEventFilter subproperty_event_filter = 2; +} + +// Request message for CreateSubpropertyEventFilter RPC. +message CreateSubpropertyEventFilterRequest { + // Required. The ordinary property for which to create a subproperty event + // filter. Format: properties/property_id Example: properties/123 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/SubpropertyEventFilter" + } + ]; + + // Required. The subproperty event filter to create. + SubpropertyEventFilter subproperty_event_filter = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for GetSubpropertyEventFilter RPC. +message GetSubpropertyEventFilterRequest { + // Required. Resource name of the subproperty event filter to lookup. + // Format: + // properties/property_id/subpropertyEventFilters/subproperty_event_filter + // Example: properties/123/subpropertyEventFilters/456 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/SubpropertyEventFilter" + } + ]; +} + +// Request message for ListSubpropertyEventFilters RPC. +message ListSubpropertyEventFiltersRequest { + // Required. Resource name of the ordinary property. + // Format: properties/property_id + // Example: properties/123 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/SubpropertyEventFilter" + } + ]; + + // Optional. The maximum number of resources to return. The service may return + // fewer than this value, even if there are additional pages. 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 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous + // `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent + // page. When paginating, all other parameters provided to + // `ListSubpropertyEventFilters` must match the call that provided the page + // token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ListSubpropertyEventFilter RPC. +message ListSubpropertyEventFiltersResponse { + // List of subproperty event filters. + repeated SubpropertyEventFilter subproperty_event_filters = 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 UpdateSubpropertyEventFilter RPC. +message UpdateSubpropertyEventFilterRequest { + // Required. The subproperty event filter to update. + SubpropertyEventFilter subproperty_event_filter = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to update. Field names must be in snake case + // (for example, "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 DeleteSubpropertyEventFilter RPC. +message DeleteSubpropertyEventFilterRequest { + // Required. Resource name of the subproperty event filter to delete. + // Format: + // properties/property_id/subpropertyEventFilters/subproperty_event_filter + // Example: properties/123/subpropertyEventFilters/456 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/SubpropertyEventFilter" + } + ]; +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto index 99d334173650..4c252dd747df 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto @@ -216,6 +216,9 @@ enum ChangeHistoryResourceType { // EnhancedMeasurementSettings resource ENHANCED_MEASUREMENT_SETTINGS = 24; + // DataRedactionSettings resource + DATA_REDACTION_SETTINGS = 25; + // SKAdNetworkConversionValueSchema resource SKADNETWORK_CONVERSION_VALUE_SCHEMA = 26; @@ -379,8 +382,7 @@ message Property { // Immutable. The property type for this Property resource. When creating a // property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then - // "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" - // types cannot yet be created with the Google Analytics Admin API. + // "ORDINARY_PROPERTY" will be implied. PropertyType property_type = 14 [(google.api.field_behavior) = IMMUTABLE]; // Output only. Time when the entity was originally created. @@ -557,62 +559,6 @@ message DataStream { [(google.api.field_behavior) = OUTPUT_ONLY]; } -// A resource message representing a user's permissions on an Account or -// Property resource. -message UserLink { - option (google.api.resource) = { - type: "analyticsadmin.googleapis.com/UserLink" - pattern: "accounts/{account}/userLinks/{user_link}" - pattern: "properties/{property}/userLinks/{user_link}" - }; - - // Output only. Example format: properties/1234/userLinks/5678 - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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. - // - // Valid values: - // predefinedRoles/viewer - // predefinedRoles/analyst - // predefinedRoles/editor - // predefinedRoles/admin - // predefinedRoles/no-cost-data - // predefinedRoles/no-revenue-data - // - // Excludes roles that are inherited from a higher-level entity, group, - // or organization admin role. - // - // A UserLink that is updated to have an empty list of direct_roles will be - // deleted. - repeated string direct_roles = 3; -} - -// Read-only resource used to summarize a principal's effective roles. -message AuditUserLink { - // Example format: properties/1234/userLinks/5678 - string name = 1; - - // Email address of the linked user - string email_address = 2; - - // Roles directly assigned to this user for this entity. - // - // Format: predefinedRoles/viewer - // - // Excludes roles that are inherited from an account (if this is for a - // property), group, or organization admin role. - repeated string direct_roles = 3; - - // Union of all permissions a user has at this account or property (includes - // direct permissions, group-inherited permissions, etc.). - // - // Format: predefinedRoles/viewer - repeated string effective_roles = 4; -} - // A link between a GA4 property and a Firebase project. message FirebaseLink { option (google.api.resource) = { @@ -1014,6 +960,9 @@ message ChangeHistoryChange { // A snapshot of EnhancedMeasurementSettings resource in change history. EnhancedMeasurementSettings enhanced_measurement_settings = 24; + // A snapshot of DataRedactionSettings resource in change history. + DataRedactionSettings data_redaction_settings = 25; + // A snapshot of SKAdNetworkConversionValueSchema resource in change // history. SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; @@ -1814,6 +1763,39 @@ message ConnectedSiteTag { string tag_id = 2 [(google.api.field_behavior) = REQUIRED]; } +// Settings for client-side data redaction. Singleton resource under a Web +// Stream. +message DataRedactionSettings { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/DataRedactionSettings" + pattern: "properties/{property}/dataStreams/{data_stream}/dataRedactionSettings" + }; + + // Output only. Name of this Data Redaction Settings resource. + // Format: + // properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings + // Example: "properties/1000/dataStreams/2000/dataRedactionSettings" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // If enabled, any event parameter or user property values that look like an + // email will be redacted. + bool email_redaction_enabled = 2; + + // Query Parameter redaction removes the key and value portions of a + // query parameter if it is in the configured set of query parameters. + // + // If enabled, URL query replacement logic will be run for the Stream. Any + // query parameters defined in query_parameter_keys will be redacted. + bool query_parameter_redaction_enabled = 3; + + // The query parameter keys to apply redaction logic to if present in the URL. + // Query parameter matching is case-insensitive. + // + // Must contain at least one element if query_parameter_replacement_enabled + // is true. Keys cannot contain commas. + repeated string query_parameter_keys = 4; +} + // A link between a GA4 Property and an AdSense for Content ad client. message AdSenseLink { option (google.api.resource) = { @@ -1830,3 +1812,24 @@ message AdSenseLink { // Example format: "ca-pub-1234567890" string ad_client_code = 2 [(google.api.field_behavior) = IMMUTABLE]; } + +// A link that references a source property under the parent rollup property. +message RollupPropertySourceLink { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/RollupPropertySourceLink" + pattern: "properties/{property}/rollupPropertySourceLinks/{rollup_property_source_link}" + plural: "rollupPropertySourceLinks" + singular: "rollupPropertySourceLink" + }; + + // Output only. Resource name of this RollupPropertySourceLink. + // Format: + // 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}' + // Format: 'properties/123/rollupPropertySourceLinks/456' + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. Resource name of the source property. + // Format: properties/{property_id} + // Example: "properties/789" + string source_property = 2 [(google.api.field_behavior) = IMMUTABLE]; +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/subproperty_event_filter.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/subproperty_event_filter.proto new file mode 100644 index 000000000000..b5f06eea3d71 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/subproperty_event_filter.proto @@ -0,0 +1,159 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.analytics.admin.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option go_package = "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpb"; +option java_multiple_files = true; +option java_outer_classname = "SubpropertyEventFilterProto"; +option java_package = "com.google.analytics.admin.v1alpha"; + +// A specific filter expression +message SubpropertyEventFilterCondition { + // A filter for a string-type dimension that matches a particular pattern. + message StringFilter { + // How the filter will be used to determine a match. + enum MatchType { + // Match type unknown or not specified. + MATCH_TYPE_UNSPECIFIED = 0; + + // Exact match of the string value. + EXACT = 1; + + // Begins with the string value. + BEGINS_WITH = 2; + + // Ends with the string value. + ENDS_WITH = 3; + + // Contains the string value. + CONTAINS = 4; + + // Full regular expression matches with the string value. + FULL_REGEXP = 5; + + // Partial regular expression matches with the string value. + PARTIAL_REGEXP = 6; + } + + // Required. The match type for the string filter. + MatchType match_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The string value used for the matching. + string value = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. If true, the string value is case sensitive. If false, the + // match is case-insensitive. + bool case_sensitive = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + oneof one_filter { + // A filter for null values. + bool null_filter = 2; + + // A filter for a string-type dimension that matches a particular pattern. + StringFilter string_filter = 3; + } + + // Required. The field that is being filtered. + string field_name = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// A logical expression of Subproperty event filters. +message SubpropertyEventFilterExpression { + // The expression applied to a filter. + oneof expr { + // A list of expressions to OR’ed together. Must only contain + // not_expression or filter_condition expressions. + SubpropertyEventFilterExpressionList or_group = 1; + + // A filter expression to be NOT'ed (inverted, complemented). It can only + // include a filter. This cannot be set on the top level + // SubpropertyEventFilterExpression. + SubpropertyEventFilterExpression not_expression = 2; + + // Creates a filter that matches a specific event. This cannot be set on the + // top level SubpropertyEventFilterExpression. + SubpropertyEventFilterCondition filter_condition = 3; + } +} + +// A list of Subproperty event filter expressions. +message SubpropertyEventFilterExpressionList { + // Required. Unordered list. A list of Subproperty event filter expressions + repeated SubpropertyEventFilterExpression filter_expressions = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = UNORDERED_LIST + ]; +} + +// A clause for defining a filter. A filter may be inclusive (events satisfying +// the filter clause are included in the subproperty's data) or exclusive +// (events satisfying the filter clause are excluded from the subproperty's +// data). +message SubpropertyEventFilterClause { + // Specifies whether this is an include or exclude filter clause. + enum FilterClauseType { + // Filter clause type unknown or not specified. + FILTER_CLAUSE_TYPE_UNSPECIFIED = 0; + + // Events will be included in the Sub property if the filter clause is met. + INCLUDE = 1; + + // Events will be excluded from the Sub property if the filter clause is + // met. + EXCLUDE = 2; + } + + // Required. The type for the filter clause. + FilterClauseType filter_clause_type = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The logical expression for what events are sent to the + // subproperty. + SubpropertyEventFilterExpression filter_expression = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// A resource message representing a GA4 Subproperty event filter. +message SubpropertyEventFilter { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/SubpropertyEventFilter" + pattern: "properties/{property}/subpropertyEventFilters/{sub_property_event_filter}" + plural: "subpropertyEventFilters" + singular: "subpropertyEventFilter" + }; + + // Output only. Format: + // properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter} + // Example: properties/1234/subpropertyEventFilters/5678 + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. Resource name of the Subproperty that uses this filter. + optional string apply_to_property = 2 + [(google.api.field_behavior) = IMMUTABLE]; + + // Required. Unordered list. Filter clauses that define the + // SubpropertyEventFilter. All clauses are AND'ed together to determine what + // data is sent to the subproperty. + repeated SubpropertyEventFilterClause filter_clauses = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = UNORDERED_LIST + ]; +} diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/audituserlinks/AsyncAuditUserLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/audituserlinks/AsyncAuditUserLinks.java deleted file mode 100644 index 0f3dac055e0c..000000000000 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/audituserlinks/AsyncAuditUserLinks.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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.samples; - -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_AuditUserLinks_async] -import com.google.analytics.admin.v1alpha.AccountName; -import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.AuditUserLink; -import com.google.analytics.admin.v1alpha.AuditUserLinksRequest; -import com.google.api.core.ApiFuture; - -public class AsyncAuditUserLinks { - - public static void main(String[] args) throws Exception { - asyncAuditUserLinks(); - } - - public static void asyncAuditUserLinks() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AnalyticsAdminServiceClient analyticsAdminServiceClient = - AnalyticsAdminServiceClient.create()) { - AuditUserLinksRequest request = - AuditUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - ApiFuture future = - analyticsAdminServiceClient.auditUserLinksPagedCallable().futureCall(request); - // Do something. - for (AuditUserLink element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_AuditUserLinks_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/audituserlinks/AsyncAuditUserLinksPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/audituserlinks/AsyncAuditUserLinksPaged.java deleted file mode 100644 index f2af084b3ed3..000000000000 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/audituserlinks/AsyncAuditUserLinksPaged.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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.samples; - -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_AuditUserLinks_Paged_async] -import com.google.analytics.admin.v1alpha.AccountName; -import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.AuditUserLink; -import com.google.analytics.admin.v1alpha.AuditUserLinksRequest; -import com.google.analytics.admin.v1alpha.AuditUserLinksResponse; -import com.google.common.base.Strings; - -public class AsyncAuditUserLinksPaged { - - public static void main(String[] args) throws Exception { - asyncAuditUserLinksPaged(); - } - - public static void asyncAuditUserLinksPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AnalyticsAdminServiceClient analyticsAdminServiceClient = - AnalyticsAdminServiceClient.create()) { - AuditUserLinksRequest request = - AuditUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - while (true) { - AuditUserLinksResponse response = - analyticsAdminServiceClient.auditUserLinksCallable().call(request); - for (AuditUserLink element : response.getUserLinksList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_AuditUserLinks_Paged_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/audituserlinks/SyncAuditUserLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/audituserlinks/SyncAuditUserLinks.java deleted file mode 100644 index 4339ea849be2..000000000000 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/audituserlinks/SyncAuditUserLinks.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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.samples; - -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_AuditUserLinks_sync] -import com.google.analytics.admin.v1alpha.AccountName; -import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.AuditUserLink; -import com.google.analytics.admin.v1alpha.AuditUserLinksRequest; - -public class SyncAuditUserLinks { - - public static void main(String[] args) throws Exception { - syncAuditUserLinks(); - } - - public static void syncAuditUserLinks() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AnalyticsAdminServiceClient analyticsAdminServiceClient = - AnalyticsAdminServiceClient.create()) { - AuditUserLinksRequest request = - AuditUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - for (AuditUserLink element : - analyticsAdminServiceClient.auditUserLinks(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_AuditUserLinks_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchcreateuserlinks/AsyncBatchCreateUserLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchcreateuserlinks/AsyncBatchCreateUserLinks.java deleted file mode 100644 index 2103f1b3b89f..000000000000 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchcreateuserlinks/AsyncBatchCreateUserLinks.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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.samples; - -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateUserLinks_async] -import com.google.analytics.admin.v1alpha.AccountName; -import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; -import com.google.analytics.admin.v1alpha.CreateUserLinkRequest; -import com.google.api.core.ApiFuture; -import java.util.ArrayList; - -public class AsyncBatchCreateUserLinks { - - public static void main(String[] args) throws Exception { - asyncBatchCreateUserLinks(); - } - - public static void asyncBatchCreateUserLinks() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AnalyticsAdminServiceClient analyticsAdminServiceClient = - AnalyticsAdminServiceClient.create()) { - BatchCreateUserLinksRequest request = - BatchCreateUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .setNotifyNewUsers(true) - .addAllRequests(new ArrayList()) - .build(); - ApiFuture future = - analyticsAdminServiceClient.batchCreateUserLinksCallable().futureCall(request); - // Do something. - BatchCreateUserLinksResponse response = future.get(); - } - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateUserLinks_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchcreateuserlinks/SyncBatchCreateUserLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchcreateuserlinks/SyncBatchCreateUserLinks.java deleted file mode 100644 index 7c181f780bdb..000000000000 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchcreateuserlinks/SyncBatchCreateUserLinks.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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.samples; - -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateUserLinks_sync] -import com.google.analytics.admin.v1alpha.AccountName; -import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse; -import com.google.analytics.admin.v1alpha.CreateUserLinkRequest; -import java.util.ArrayList; - -public class SyncBatchCreateUserLinks { - - public static void main(String[] args) throws Exception { - syncBatchCreateUserLinks(); - } - - public static void syncBatchCreateUserLinks() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AnalyticsAdminServiceClient analyticsAdminServiceClient = - AnalyticsAdminServiceClient.create()) { - BatchCreateUserLinksRequest request = - BatchCreateUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .setNotifyNewUsers(true) - .addAllRequests(new ArrayList()) - .build(); - BatchCreateUserLinksResponse response = - analyticsAdminServiceClient.batchCreateUserLinks(request); - } - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateUserLinks_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchdeleteuserlinks/SyncBatchDeleteUserLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchdeleteuserlinks/SyncBatchDeleteUserLinks.java deleted file mode 100644 index f8f4f7fdb8aa..000000000000 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchdeleteuserlinks/SyncBatchDeleteUserLinks.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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.samples; - -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteUserLinks_sync] -import com.google.analytics.admin.v1alpha.AccountName; -import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; -import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; -import com.google.protobuf.Empty; -import java.util.ArrayList; - -public class SyncBatchDeleteUserLinks { - - public static void main(String[] args) throws Exception { - syncBatchDeleteUserLinks(); - } - - public static void syncBatchDeleteUserLinks() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AnalyticsAdminServiceClient analyticsAdminServiceClient = - AnalyticsAdminServiceClient.create()) { - BatchDeleteUserLinksRequest request = - BatchDeleteUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); - analyticsAdminServiceClient.batchDeleteUserLinks(request); - } - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteUserLinks_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchgetuserlinks/SyncBatchGetUserLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchgetuserlinks/SyncBatchGetUserLinks.java deleted file mode 100644 index 789092d39b9c..000000000000 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchgetuserlinks/SyncBatchGetUserLinks.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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.samples; - -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetUserLinks_sync] -import com.google.analytics.admin.v1alpha.AccountName; -import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse; -import java.util.ArrayList; - -public class SyncBatchGetUserLinks { - - public static void main(String[] args) throws Exception { - syncBatchGetUserLinks(); - } - - public static void syncBatchGetUserLinks() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AnalyticsAdminServiceClient analyticsAdminServiceClient = - AnalyticsAdminServiceClient.create()) { - BatchGetUserLinksRequest request = - BatchGetUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllNames(new ArrayList()) - .build(); - BatchGetUserLinksResponse response = analyticsAdminServiceClient.batchGetUserLinks(request); - } - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetUserLinks_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchupdateuserlinks/SyncBatchUpdateUserLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchupdateuserlinks/SyncBatchUpdateUserLinks.java deleted file mode 100644 index a6a8e9ceb621..000000000000 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchupdateuserlinks/SyncBatchUpdateUserLinks.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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.samples; - -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateUserLinks_sync] -import com.google.analytics.admin.v1alpha.AccountName; -import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; -import com.google.analytics.admin.v1alpha.UpdateUserLinkRequest; -import java.util.ArrayList; - -public class SyncBatchUpdateUserLinks { - - public static void main(String[] args) throws Exception { - syncBatchUpdateUserLinks(); - } - - public static void syncBatchUpdateUserLinks() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AnalyticsAdminServiceClient analyticsAdminServiceClient = - AnalyticsAdminServiceClient.create()) { - BatchUpdateUserLinksRequest request = - BatchUpdateUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) - .build(); - BatchUpdateUserLinksResponse response = - analyticsAdminServiceClient.batchUpdateUserLinks(request); - } - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateUserLinks_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createuserlink/AsyncCreateUserLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrollupproperty/AsyncCreateRollupProperty.java similarity index 64% rename from java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createuserlink/AsyncCreateUserLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrollupproperty/AsyncCreateRollupProperty.java index a4381ba6137b..aa840b2700af 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createuserlink/AsyncCreateUserLink.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrollupproperty/AsyncCreateRollupProperty.java @@ -16,20 +16,21 @@ package com.google.analytics.admin.v1alpha.samples; -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateUserLink_async] -import com.google.analytics.admin.v1alpha.AccountName; +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupProperty_async] import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.CreateUserLinkRequest; -import com.google.analytics.admin.v1alpha.UserLink; +import com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest; +import com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse; +import com.google.analytics.admin.v1alpha.Property; import com.google.api.core.ApiFuture; +import java.util.ArrayList; -public class AsyncCreateUserLink { +public class AsyncCreateRollupProperty { public static void main(String[] args) throws Exception { - asyncCreateUserLink(); + asyncCreateRollupProperty(); } - public static void asyncCreateUserLink() throws Exception { + public static void asyncCreateRollupProperty() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -37,17 +38,16 @@ public static void asyncCreateUserLink() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) { - CreateUserLinkRequest request = - CreateUserLinkRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .setNotifyNewUser(true) - .setUserLink(UserLink.newBuilder().build()) + CreateRollupPropertyRequest request = + CreateRollupPropertyRequest.newBuilder() + .setRollupProperty(Property.newBuilder().build()) + .addAllSourceProperties(new ArrayList()) .build(); - ApiFuture future = - analyticsAdminServiceClient.createUserLinkCallable().futureCall(request); + ApiFuture future = + analyticsAdminServiceClient.createRollupPropertyCallable().futureCall(request); // Do something. - UserLink response = future.get(); + CreateRollupPropertyResponse response = future.get(); } } } -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateUserLink_async] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupProperty_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createuserlink/SyncCreateUserLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrollupproperty/SyncCreateRollupProperty.java similarity index 66% rename from java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createuserlink/SyncCreateUserLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrollupproperty/SyncCreateRollupProperty.java index 2c1f1ec8d810..da24e9d8d397 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createuserlink/SyncCreateUserLink.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrollupproperty/SyncCreateRollupProperty.java @@ -16,19 +16,20 @@ package com.google.analytics.admin.v1alpha.samples; -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateUserLink_sync] -import com.google.analytics.admin.v1alpha.AccountName; +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupProperty_sync] import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.CreateUserLinkRequest; -import com.google.analytics.admin.v1alpha.UserLink; +import com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest; +import com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse; +import com.google.analytics.admin.v1alpha.Property; +import java.util.ArrayList; -public class SyncCreateUserLink { +public class SyncCreateRollupProperty { public static void main(String[] args) throws Exception { - syncCreateUserLink(); + syncCreateRollupProperty(); } - public static void syncCreateUserLink() throws Exception { + public static void syncCreateRollupProperty() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -36,14 +37,14 @@ public static void syncCreateUserLink() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) { - CreateUserLinkRequest request = - CreateUserLinkRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .setNotifyNewUser(true) - .setUserLink(UserLink.newBuilder().build()) + CreateRollupPropertyRequest request = + CreateRollupPropertyRequest.newBuilder() + .setRollupProperty(Property.newBuilder().build()) + .addAllSourceProperties(new ArrayList()) .build(); - UserLink response = analyticsAdminServiceClient.createUserLink(request); + CreateRollupPropertyResponse response = + analyticsAdminServiceClient.createRollupProperty(request); } } } -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateUserLink_sync] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupProperty_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/AsyncCreateRollupPropertySourceLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/AsyncCreateRollupPropertySourceLink.java new file mode 100644 index 000000000000..a40fc8b544e7 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/AsyncCreateRollupPropertySourceLink.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupPropertySourceLink_async] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest; +import com.google.analytics.admin.v1alpha.PropertyName; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLink; +import com.google.api.core.ApiFuture; + +public class AsyncCreateRollupPropertySourceLink { + + public static void main(String[] args) throws Exception { + asyncCreateRollupPropertySourceLink(); + } + + public static void asyncCreateRollupPropertySourceLink() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + CreateRollupPropertySourceLinkRequest request = + CreateRollupPropertySourceLinkRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) + .setRollupPropertySourceLink(RollupPropertySourceLink.newBuilder().build()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.createRollupPropertySourceLinkCallable().futureCall(request); + // Do something. + RollupPropertySourceLink response = future.get(); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupPropertySourceLink_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createuserlink/SyncCreateUserLinkAccountnameUserlink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/SyncCreateRollupPropertySourceLink.java similarity index 62% rename from java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createuserlink/SyncCreateUserLinkAccountnameUserlink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/SyncCreateRollupPropertySourceLink.java index c8cb58e531de..4903bce8e378 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createuserlink/SyncCreateUserLinkAccountnameUserlink.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/SyncCreateRollupPropertySourceLink.java @@ -16,18 +16,19 @@ package com.google.analytics.admin.v1alpha.samples; -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateUserLink_AccountnameUserlink_sync] -import com.google.analytics.admin.v1alpha.AccountName; +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupPropertySourceLink_sync] import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.UserLink; +import com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest; +import com.google.analytics.admin.v1alpha.PropertyName; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLink; -public class SyncCreateUserLinkAccountnameUserlink { +public class SyncCreateRollupPropertySourceLink { public static void main(String[] args) throws Exception { - syncCreateUserLinkAccountnameUserlink(); + syncCreateRollupPropertySourceLink(); } - public static void syncCreateUserLinkAccountnameUserlink() throws Exception { + public static void syncCreateRollupPropertySourceLink() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -35,10 +36,14 @@ public static void syncCreateUserLinkAccountnameUserlink() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) { - AccountName parent = AccountName.of("[ACCOUNT]"); - UserLink userLink = UserLink.newBuilder().build(); - UserLink response = analyticsAdminServiceClient.createUserLink(parent, userLink); + CreateRollupPropertySourceLinkRequest request = + CreateRollupPropertySourceLinkRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) + .setRollupPropertySourceLink(RollupPropertySourceLink.newBuilder().build()) + .build(); + RollupPropertySourceLink response = + analyticsAdminServiceClient.createRollupPropertySourceLink(request); } } } -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateUserLink_AccountnameUserlink_sync] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupPropertySourceLink_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/SyncCreateRollupPropertySourceLinkPropertynameRolluppropertysourcelink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/SyncCreateRollupPropertySourceLinkPropertynameRolluppropertysourcelink.java new file mode 100644 index 000000000000..2b781fd8752c --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/SyncCreateRollupPropertySourceLinkPropertynameRolluppropertysourcelink.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupPropertySourceLink_PropertynameRolluppropertysourcelink_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.PropertyName; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLink; + +public class SyncCreateRollupPropertySourceLinkPropertynameRolluppropertysourcelink { + + public static void main(String[] args) throws Exception { + syncCreateRollupPropertySourceLinkPropertynameRolluppropertysourcelink(); + } + + public static void syncCreateRollupPropertySourceLinkPropertynameRolluppropertysourcelink() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + PropertyName parent = PropertyName.of("[PROPERTY]"); + RollupPropertySourceLink rollupPropertySourceLink = + RollupPropertySourceLink.newBuilder().build(); + RollupPropertySourceLink response = + analyticsAdminServiceClient.createRollupPropertySourceLink( + parent, rollupPropertySourceLink); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupPropertySourceLink_PropertynameRolluppropertysourcelink_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/SyncCreateRollupPropertySourceLinkStringRolluppropertysourcelink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/SyncCreateRollupPropertySourceLinkStringRolluppropertysourcelink.java new file mode 100644 index 000000000000..690f568d3b5d --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/SyncCreateRollupPropertySourceLinkStringRolluppropertysourcelink.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupPropertySourceLink_StringRolluppropertysourcelink_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.PropertyName; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLink; + +public class SyncCreateRollupPropertySourceLinkStringRolluppropertysourcelink { + + public static void main(String[] args) throws Exception { + syncCreateRollupPropertySourceLinkStringRolluppropertysourcelink(); + } + + public static void syncCreateRollupPropertySourceLinkStringRolluppropertysourcelink() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + String parent = PropertyName.of("[PROPERTY]").toString(); + RollupPropertySourceLink rollupPropertySourceLink = + RollupPropertySourceLink.newBuilder().build(); + RollupPropertySourceLink response = + analyticsAdminServiceClient.createRollupPropertySourceLink( + parent, rollupPropertySourceLink); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupPropertySourceLink_StringRolluppropertysourcelink_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubproperty/AsyncCreateSubproperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubproperty/AsyncCreateSubproperty.java new file mode 100644 index 000000000000..0cb37e9b0426 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubproperty/AsyncCreateSubproperty.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubproperty_async] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.CreateSubpropertyRequest; +import com.google.analytics.admin.v1alpha.CreateSubpropertyResponse; +import com.google.analytics.admin.v1alpha.Property; +import com.google.analytics.admin.v1alpha.PropertyName; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; +import com.google.api.core.ApiFuture; + +public class AsyncCreateSubproperty { + + public static void main(String[] args) throws Exception { + asyncCreateSubproperty(); + } + + public static void asyncCreateSubproperty() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + CreateSubpropertyRequest request = + CreateSubpropertyRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) + .setSubproperty(Property.newBuilder().build()) + .setSubpropertyEventFilter(SubpropertyEventFilter.newBuilder().build()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.createSubpropertyCallable().futureCall(request); + // Do something. + CreateSubpropertyResponse response = future.get(); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubproperty_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubproperty/SyncCreateSubproperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubproperty/SyncCreateSubproperty.java new file mode 100644 index 000000000000..0dfc254730b6 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubproperty/SyncCreateSubproperty.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubproperty_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.CreateSubpropertyRequest; +import com.google.analytics.admin.v1alpha.CreateSubpropertyResponse; +import com.google.analytics.admin.v1alpha.Property; +import com.google.analytics.admin.v1alpha.PropertyName; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; + +public class SyncCreateSubproperty { + + public static void main(String[] args) throws Exception { + syncCreateSubproperty(); + } + + public static void syncCreateSubproperty() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + CreateSubpropertyRequest request = + CreateSubpropertyRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) + .setSubproperty(Property.newBuilder().build()) + .setSubpropertyEventFilter(SubpropertyEventFilter.newBuilder().build()) + .build(); + CreateSubpropertyResponse response = analyticsAdminServiceClient.createSubproperty(request); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubproperty_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/AsyncCreateSubpropertyEventFilter.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/AsyncCreateSubpropertyEventFilter.java new file mode 100644 index 000000000000..c463be239921 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/AsyncCreateSubpropertyEventFilter.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubpropertyEventFilter_async] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest; +import com.google.analytics.admin.v1alpha.PropertyName; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; +import com.google.api.core.ApiFuture; + +public class AsyncCreateSubpropertyEventFilter { + + public static void main(String[] args) throws Exception { + asyncCreateSubpropertyEventFilter(); + } + + public static void asyncCreateSubpropertyEventFilter() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + CreateSubpropertyEventFilterRequest request = + CreateSubpropertyEventFilterRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) + .setSubpropertyEventFilter(SubpropertyEventFilter.newBuilder().build()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.createSubpropertyEventFilterCallable().futureCall(request); + // Do something. + SubpropertyEventFilter response = future.get(); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubpropertyEventFilter_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/SyncCreateSubpropertyEventFilter.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/SyncCreateSubpropertyEventFilter.java new file mode 100644 index 000000000000..bbf0c9dbf329 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/SyncCreateSubpropertyEventFilter.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubpropertyEventFilter_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest; +import com.google.analytics.admin.v1alpha.PropertyName; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; + +public class SyncCreateSubpropertyEventFilter { + + public static void main(String[] args) throws Exception { + syncCreateSubpropertyEventFilter(); + } + + public static void syncCreateSubpropertyEventFilter() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + CreateSubpropertyEventFilterRequest request = + CreateSubpropertyEventFilterRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) + .setSubpropertyEventFilter(SubpropertyEventFilter.newBuilder().build()) + .build(); + SubpropertyEventFilter response = + analyticsAdminServiceClient.createSubpropertyEventFilter(request); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubpropertyEventFilter_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createuserlink/SyncCreateUserLinkPropertynameUserlink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/SyncCreateSubpropertyEventFilterPropertynameSubpropertyeventfilter.java similarity index 68% rename from java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createuserlink/SyncCreateUserLinkPropertynameUserlink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/SyncCreateSubpropertyEventFilterPropertynameSubpropertyeventfilter.java index ae071dadac91..d8354b005a84 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createuserlink/SyncCreateUserLinkPropertynameUserlink.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/SyncCreateSubpropertyEventFilterPropertynameSubpropertyeventfilter.java @@ -16,18 +16,19 @@ package com.google.analytics.admin.v1alpha.samples; -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateUserLink_PropertynameUserlink_sync] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubpropertyEventFilter_PropertynameSubpropertyeventfilter_sync] import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; import com.google.analytics.admin.v1alpha.PropertyName; -import com.google.analytics.admin.v1alpha.UserLink; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; -public class SyncCreateUserLinkPropertynameUserlink { +public class SyncCreateSubpropertyEventFilterPropertynameSubpropertyeventfilter { public static void main(String[] args) throws Exception { - syncCreateUserLinkPropertynameUserlink(); + syncCreateSubpropertyEventFilterPropertynameSubpropertyeventfilter(); } - public static void syncCreateUserLinkPropertynameUserlink() throws Exception { + public static void syncCreateSubpropertyEventFilterPropertynameSubpropertyeventfilter() + throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -36,9 +37,10 @@ public static void syncCreateUserLinkPropertynameUserlink() throws Exception { try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) { PropertyName parent = PropertyName.of("[PROPERTY]"); - UserLink userLink = UserLink.newBuilder().build(); - UserLink response = analyticsAdminServiceClient.createUserLink(parent, userLink); + SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); + SubpropertyEventFilter response = + analyticsAdminServiceClient.createSubpropertyEventFilter(parent, subpropertyEventFilter); } } } -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateUserLink_PropertynameUserlink_sync] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubpropertyEventFilter_PropertynameSubpropertyeventfilter_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createuserlink/SyncCreateUserLinkStringUserlink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/SyncCreateSubpropertyEventFilterStringSubpropertyeventfilter.java similarity index 64% rename from java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createuserlink/SyncCreateUserLinkStringUserlink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/SyncCreateSubpropertyEventFilterStringSubpropertyeventfilter.java index 1a6cc49665be..6368d375a60b 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createuserlink/SyncCreateUserLinkStringUserlink.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/SyncCreateSubpropertyEventFilterStringSubpropertyeventfilter.java @@ -16,18 +16,19 @@ package com.google.analytics.admin.v1alpha.samples; -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateUserLink_StringUserlink_sync] -import com.google.analytics.admin.v1alpha.AccountName; +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubpropertyEventFilter_StringSubpropertyeventfilter_sync] import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.UserLink; +import com.google.analytics.admin.v1alpha.PropertyName; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; -public class SyncCreateUserLinkStringUserlink { +public class SyncCreateSubpropertyEventFilterStringSubpropertyeventfilter { public static void main(String[] args) throws Exception { - syncCreateUserLinkStringUserlink(); + syncCreateSubpropertyEventFilterStringSubpropertyeventfilter(); } - public static void syncCreateUserLinkStringUserlink() throws Exception { + public static void syncCreateSubpropertyEventFilterStringSubpropertyeventfilter() + throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -35,10 +36,11 @@ public static void syncCreateUserLinkStringUserlink() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) { - String parent = AccountName.of("[ACCOUNT]").toString(); - UserLink userLink = UserLink.newBuilder().build(); - UserLink response = analyticsAdminServiceClient.createUserLink(parent, userLink); + String parent = PropertyName.of("[PROPERTY]").toString(); + SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); + SubpropertyEventFilter response = + analyticsAdminServiceClient.createSubpropertyEventFilter(parent, subpropertyEventFilter); } } } -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateUserLink_StringUserlink_sync] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubpropertyEventFilter_StringSubpropertyeventfilter_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchdeleteuserlinks/AsyncBatchDeleteUserLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/AsyncDeleteRollupPropertySourceLink.java similarity index 65% rename from java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchdeleteuserlinks/AsyncBatchDeleteUserLinks.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/AsyncDeleteRollupPropertySourceLink.java index 48cc88653341..064fc97ce2c1 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchdeleteuserlinks/AsyncBatchDeleteUserLinks.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/AsyncDeleteRollupPropertySourceLink.java @@ -16,22 +16,20 @@ package com.google.analytics.admin.v1alpha.samples; -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteUserLinks_async] -import com.google.analytics.admin.v1alpha.AccountName; +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteRollupPropertySourceLink_async] import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest; -import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; +import com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLinkName; import com.google.api.core.ApiFuture; import com.google.protobuf.Empty; -import java.util.ArrayList; -public class AsyncBatchDeleteUserLinks { +public class AsyncDeleteRollupPropertySourceLink { public static void main(String[] args) throws Exception { - asyncBatchDeleteUserLinks(); + asyncDeleteRollupPropertySourceLink(); } - public static void asyncBatchDeleteUserLinks() throws Exception { + public static void asyncDeleteRollupPropertySourceLink() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -39,16 +37,17 @@ public static void asyncBatchDeleteUserLinks() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) { - BatchDeleteUserLinksRequest request = - BatchDeleteUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) + DeleteRollupPropertySourceLinkRequest request = + DeleteRollupPropertySourceLinkRequest.newBuilder() + .setName( + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]") + .toString()) .build(); ApiFuture future = - analyticsAdminServiceClient.batchDeleteUserLinksCallable().futureCall(request); + analyticsAdminServiceClient.deleteRollupPropertySourceLinkCallable().futureCall(request); // Do something. future.get(); } } } -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteUserLinks_async] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteRollupPropertySourceLink_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/SyncDeleteRollupPropertySourceLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/SyncDeleteRollupPropertySourceLink.java new file mode 100644 index 000000000000..ee82ea7fdbe2 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/SyncDeleteRollupPropertySourceLink.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteRollupPropertySourceLink_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLinkName; +import com.google.protobuf.Empty; + +public class SyncDeleteRollupPropertySourceLink { + + public static void main(String[] args) throws Exception { + syncDeleteRollupPropertySourceLink(); + } + + public static void syncDeleteRollupPropertySourceLink() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + DeleteRollupPropertySourceLinkRequest request = + DeleteRollupPropertySourceLinkRequest.newBuilder() + .setName( + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]") + .toString()) + .build(); + analyticsAdminServiceClient.deleteRollupPropertySourceLink(request); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteRollupPropertySourceLink_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/SyncDeleteRollupPropertySourceLinkRolluppropertysourcelinkname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/SyncDeleteRollupPropertySourceLinkRolluppropertysourcelinkname.java new file mode 100644 index 000000000000..2be3fe2664fb --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/SyncDeleteRollupPropertySourceLinkRolluppropertysourcelinkname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteRollupPropertySourceLink_Rolluppropertysourcelinkname_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLinkName; +import com.google.protobuf.Empty; + +public class SyncDeleteRollupPropertySourceLinkRolluppropertysourcelinkname { + + public static void main(String[] args) throws Exception { + syncDeleteRollupPropertySourceLinkRolluppropertysourcelinkname(); + } + + public static void syncDeleteRollupPropertySourceLinkRolluppropertysourcelinkname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + RollupPropertySourceLinkName name = + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]"); + analyticsAdminServiceClient.deleteRollupPropertySourceLink(name); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteRollupPropertySourceLink_Rolluppropertysourcelinkname_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteuserlink/SyncDeleteUserLinkString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/SyncDeleteRollupPropertySourceLinkString.java similarity index 73% rename from java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteuserlink/SyncDeleteUserLinkString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/SyncDeleteRollupPropertySourceLinkString.java index 77185a250121..e540e8a9fcc4 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteuserlink/SyncDeleteUserLinkString.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/SyncDeleteRollupPropertySourceLinkString.java @@ -16,18 +16,18 @@ package com.google.analytics.admin.v1alpha.samples; -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteUserLink_String_sync] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteRollupPropertySourceLink_String_sync] import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.UserLinkName; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLinkName; import com.google.protobuf.Empty; -public class SyncDeleteUserLinkString { +public class SyncDeleteRollupPropertySourceLinkString { public static void main(String[] args) throws Exception { - syncDeleteUserLinkString(); + syncDeleteRollupPropertySourceLinkString(); } - public static void syncDeleteUserLinkString() throws Exception { + public static void syncDeleteRollupPropertySourceLinkString() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -35,9 +35,10 @@ public static void syncDeleteUserLinkString() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) { - String name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString(); - analyticsAdminServiceClient.deleteUserLink(name); + String name = + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]").toString(); + analyticsAdminServiceClient.deleteRollupPropertySourceLink(name); } } } -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteUserLink_String_sync] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteRollupPropertySourceLink_String_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteuserlink/AsyncDeleteUserLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/AsyncDeleteSubpropertyEventFilter.java similarity index 68% rename from java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteuserlink/AsyncDeleteUserLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/AsyncDeleteSubpropertyEventFilter.java index a20324a54df7..3348d26efbc1 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteuserlink/AsyncDeleteUserLink.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/AsyncDeleteSubpropertyEventFilter.java @@ -16,20 +16,20 @@ package com.google.analytics.admin.v1alpha.samples; -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteUserLink_async] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSubpropertyEventFilter_async] import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; -import com.google.analytics.admin.v1alpha.UserLinkName; +import com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilterName; import com.google.api.core.ApiFuture; import com.google.protobuf.Empty; -public class AsyncDeleteUserLink { +public class AsyncDeleteSubpropertyEventFilter { public static void main(String[] args) throws Exception { - asyncDeleteUserLink(); + asyncDeleteSubpropertyEventFilter(); } - public static void asyncDeleteUserLink() throws Exception { + public static void asyncDeleteSubpropertyEventFilter() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -37,15 +37,17 @@ public static void asyncDeleteUserLink() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) { - DeleteUserLinkRequest request = - DeleteUserLinkRequest.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) + DeleteSubpropertyEventFilterRequest request = + DeleteSubpropertyEventFilterRequest.newBuilder() + .setName( + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]") + .toString()) .build(); ApiFuture future = - analyticsAdminServiceClient.deleteUserLinkCallable().futureCall(request); + analyticsAdminServiceClient.deleteSubpropertyEventFilterCallable().futureCall(request); // Do something. future.get(); } } } -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteUserLink_async] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSubpropertyEventFilter_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/SyncDeleteSubpropertyEventFilter.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/SyncDeleteSubpropertyEventFilter.java new file mode 100644 index 000000000000..7fa254e79cd9 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/SyncDeleteSubpropertyEventFilter.java @@ -0,0 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSubpropertyEventFilter_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilterName; +import com.google.protobuf.Empty; + +public class SyncDeleteSubpropertyEventFilter { + + public static void main(String[] args) throws Exception { + syncDeleteSubpropertyEventFilter(); + } + + public static void syncDeleteSubpropertyEventFilter() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + DeleteSubpropertyEventFilterRequest request = + DeleteSubpropertyEventFilterRequest.newBuilder() + .setName( + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]") + .toString()) + .build(); + analyticsAdminServiceClient.deleteSubpropertyEventFilter(request); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSubpropertyEventFilter_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteuserlink/SyncDeleteUserLinkUserlinkname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/SyncDeleteSubpropertyEventFilterString.java similarity index 74% rename from java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteuserlink/SyncDeleteUserLinkUserlinkname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/SyncDeleteSubpropertyEventFilterString.java index 8e908010d860..ffef09efdf5a 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteuserlink/SyncDeleteUserLinkUserlinkname.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/SyncDeleteSubpropertyEventFilterString.java @@ -16,18 +16,18 @@ package com.google.analytics.admin.v1alpha.samples; -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteUserLink_Userlinkname_sync] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSubpropertyEventFilter_String_sync] import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.UserLinkName; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilterName; import com.google.protobuf.Empty; -public class SyncDeleteUserLinkUserlinkname { +public class SyncDeleteSubpropertyEventFilterString { public static void main(String[] args) throws Exception { - syncDeleteUserLinkUserlinkname(); + syncDeleteSubpropertyEventFilterString(); } - public static void syncDeleteUserLinkUserlinkname() throws Exception { + public static void syncDeleteSubpropertyEventFilterString() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -35,9 +35,10 @@ public static void syncDeleteUserLinkUserlinkname() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) { - UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]"); - analyticsAdminServiceClient.deleteUserLink(name); + String name = + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]").toString(); + analyticsAdminServiceClient.deleteSubpropertyEventFilter(name); } } } -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteUserLink_Userlinkname_sync] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSubpropertyEventFilter_String_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteuserlink/SyncDeleteUserLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/SyncDeleteSubpropertyEventFilterSubpropertyeventfiltername.java similarity index 70% rename from java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteuserlink/SyncDeleteUserLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/SyncDeleteSubpropertyEventFilterSubpropertyeventfiltername.java index 08a82ce7f2d3..ede36e1b1916 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteuserlink/SyncDeleteUserLink.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/SyncDeleteSubpropertyEventFilterSubpropertyeventfiltername.java @@ -16,19 +16,18 @@ package com.google.analytics.admin.v1alpha.samples; -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteUserLink_sync] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSubpropertyEventFilter_Subpropertyeventfiltername_sync] import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; -import com.google.analytics.admin.v1alpha.UserLinkName; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilterName; import com.google.protobuf.Empty; -public class SyncDeleteUserLink { +public class SyncDeleteSubpropertyEventFilterSubpropertyeventfiltername { public static void main(String[] args) throws Exception { - syncDeleteUserLink(); + syncDeleteSubpropertyEventFilterSubpropertyeventfiltername(); } - public static void syncDeleteUserLink() throws Exception { + public static void syncDeleteSubpropertyEventFilterSubpropertyeventfiltername() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -36,12 +35,10 @@ public static void syncDeleteUserLink() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) { - DeleteUserLinkRequest request = - DeleteUserLinkRequest.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .build(); - analyticsAdminServiceClient.deleteUserLink(request); + SubpropertyEventFilterName name = + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]"); + analyticsAdminServiceClient.deleteSubpropertyEventFilter(name); } } } -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteUserLink_sync] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSubpropertyEventFilter_Subpropertyeventfiltername_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/AsyncGetDataRedactionSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/AsyncGetDataRedactionSettings.java new file mode 100644 index 000000000000..17545517be26 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/AsyncGetDataRedactionSettings.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRedactionSettings_async] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.DataRedactionSettings; +import com.google.analytics.admin.v1alpha.DataRedactionSettingsName; +import com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest; +import com.google.api.core.ApiFuture; + +public class AsyncGetDataRedactionSettings { + + public static void main(String[] args) throws Exception { + asyncGetDataRedactionSettings(); + } + + public static void asyncGetDataRedactionSettings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + GetDataRedactionSettingsRequest request = + GetDataRedactionSettingsRequest.newBuilder() + .setName(DataRedactionSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.getDataRedactionSettingsCallable().futureCall(request); + // Do something. + DataRedactionSettings response = future.get(); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRedactionSettings_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserlink/AsyncGetUserLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/SyncGetDataRedactionSettings.java similarity index 66% rename from java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserlink/AsyncGetUserLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/SyncGetDataRedactionSettings.java index 13e07e914467..a7f5cb4941c2 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserlink/AsyncGetUserLink.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/SyncGetDataRedactionSettings.java @@ -16,20 +16,19 @@ package com.google.analytics.admin.v1alpha.samples; -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserLink_async] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRedactionSettings_sync] import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.GetUserLinkRequest; -import com.google.analytics.admin.v1alpha.UserLink; -import com.google.analytics.admin.v1alpha.UserLinkName; -import com.google.api.core.ApiFuture; +import com.google.analytics.admin.v1alpha.DataRedactionSettings; +import com.google.analytics.admin.v1alpha.DataRedactionSettingsName; +import com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest; -public class AsyncGetUserLink { +public class SyncGetDataRedactionSettings { public static void main(String[] args) throws Exception { - asyncGetUserLink(); + syncGetDataRedactionSettings(); } - public static void asyncGetUserLink() throws Exception { + public static void syncGetDataRedactionSettings() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -37,15 +36,13 @@ public static void asyncGetUserLink() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) { - GetUserLinkRequest request = - GetUserLinkRequest.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) + GetDataRedactionSettingsRequest request = + GetDataRedactionSettingsRequest.newBuilder() + .setName(DataRedactionSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString()) .build(); - ApiFuture future = - analyticsAdminServiceClient.getUserLinkCallable().futureCall(request); - // Do something. - UserLink response = future.get(); + DataRedactionSettings response = + analyticsAdminServiceClient.getDataRedactionSettings(request); } } } -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserLink_async] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRedactionSettings_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserlink/SyncGetUserLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/SyncGetDataRedactionSettingsDataredactionsettingsname.java similarity index 68% rename from java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserlink/SyncGetUserLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/SyncGetDataRedactionSettingsDataredactionsettingsname.java index 403ba9518bf4..8ded74dfd4ef 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserlink/SyncGetUserLink.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/SyncGetDataRedactionSettingsDataredactionsettingsname.java @@ -16,19 +16,18 @@ package com.google.analytics.admin.v1alpha.samples; -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserLink_sync] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRedactionSettings_Dataredactionsettingsname_sync] import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.GetUserLinkRequest; -import com.google.analytics.admin.v1alpha.UserLink; -import com.google.analytics.admin.v1alpha.UserLinkName; +import com.google.analytics.admin.v1alpha.DataRedactionSettings; +import com.google.analytics.admin.v1alpha.DataRedactionSettingsName; -public class SyncGetUserLink { +public class SyncGetDataRedactionSettingsDataredactionsettingsname { public static void main(String[] args) throws Exception { - syncGetUserLink(); + syncGetDataRedactionSettingsDataredactionsettingsname(); } - public static void syncGetUserLink() throws Exception { + public static void syncGetDataRedactionSettingsDataredactionsettingsname() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -36,12 +35,9 @@ public static void syncGetUserLink() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) { - GetUserLinkRequest request = - GetUserLinkRequest.newBuilder() - .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) - .build(); - UserLink response = analyticsAdminServiceClient.getUserLink(request); + DataRedactionSettingsName name = DataRedactionSettingsName.of("[PROPERTY]", "[DATA_STREAM]"); + DataRedactionSettings response = analyticsAdminServiceClient.getDataRedactionSettings(name); } } } -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserLink_sync] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRedactionSettings_Dataredactionsettingsname_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserlink/SyncGetUserLinkString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/SyncGetDataRedactionSettingsString.java similarity index 71% rename from java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserlink/SyncGetUserLinkString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/SyncGetDataRedactionSettingsString.java index caf3914e5ce4..7541702a53a8 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserlink/SyncGetUserLinkString.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/SyncGetDataRedactionSettingsString.java @@ -16,18 +16,18 @@ package com.google.analytics.admin.v1alpha.samples; -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserLink_String_sync] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRedactionSettings_String_sync] import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.UserLink; -import com.google.analytics.admin.v1alpha.UserLinkName; +import com.google.analytics.admin.v1alpha.DataRedactionSettings; +import com.google.analytics.admin.v1alpha.DataRedactionSettingsName; -public class SyncGetUserLinkString { +public class SyncGetDataRedactionSettingsString { public static void main(String[] args) throws Exception { - syncGetUserLinkString(); + syncGetDataRedactionSettingsString(); } - public static void syncGetUserLinkString() throws Exception { + public static void syncGetDataRedactionSettingsString() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -35,9 +35,9 @@ public static void syncGetUserLinkString() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) { - String name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString(); - UserLink response = analyticsAdminServiceClient.getUserLink(name); + String name = DataRedactionSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString(); + DataRedactionSettings response = analyticsAdminServiceClient.getDataRedactionSettings(name); } } } -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserLink_String_sync] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRedactionSettings_String_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchupdateuserlinks/AsyncBatchUpdateUserLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/AsyncGetRollupPropertySourceLink.java similarity index 60% rename from java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchupdateuserlinks/AsyncBatchUpdateUserLinks.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/AsyncGetRollupPropertySourceLink.java index 8d6875b80a57..98bfb56c8d82 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchupdateuserlinks/AsyncBatchUpdateUserLinks.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/AsyncGetRollupPropertySourceLink.java @@ -16,22 +16,20 @@ package com.google.analytics.admin.v1alpha.samples; -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateUserLinks_async] -import com.google.analytics.admin.v1alpha.AccountName; +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetRollupPropertySourceLink_async] import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; -import com.google.analytics.admin.v1alpha.UpdateUserLinkRequest; +import com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLink; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLinkName; import com.google.api.core.ApiFuture; -import java.util.ArrayList; -public class AsyncBatchUpdateUserLinks { +public class AsyncGetRollupPropertySourceLink { public static void main(String[] args) throws Exception { - asyncBatchUpdateUserLinks(); + asyncGetRollupPropertySourceLink(); } - public static void asyncBatchUpdateUserLinks() throws Exception { + public static void asyncGetRollupPropertySourceLink() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -39,16 +37,17 @@ public static void asyncBatchUpdateUserLinks() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) { - BatchUpdateUserLinksRequest request = - BatchUpdateUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllRequests(new ArrayList()) + GetRollupPropertySourceLinkRequest request = + GetRollupPropertySourceLinkRequest.newBuilder() + .setName( + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]") + .toString()) .build(); - ApiFuture future = - analyticsAdminServiceClient.batchUpdateUserLinksCallable().futureCall(request); + ApiFuture future = + analyticsAdminServiceClient.getRollupPropertySourceLinkCallable().futureCall(request); // Do something. - BatchUpdateUserLinksResponse response = future.get(); + RollupPropertySourceLink response = future.get(); } } } -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateUserLinks_async] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetRollupPropertySourceLink_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/SyncGetRollupPropertySourceLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/SyncGetRollupPropertySourceLink.java new file mode 100644 index 000000000000..0fa9ee30f9dc --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/SyncGetRollupPropertySourceLink.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetRollupPropertySourceLink_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLink; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLinkName; + +public class SyncGetRollupPropertySourceLink { + + public static void main(String[] args) throws Exception { + syncGetRollupPropertySourceLink(); + } + + public static void syncGetRollupPropertySourceLink() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + GetRollupPropertySourceLinkRequest request = + GetRollupPropertySourceLinkRequest.newBuilder() + .setName( + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]") + .toString()) + .build(); + RollupPropertySourceLink response = + analyticsAdminServiceClient.getRollupPropertySourceLink(request); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetRollupPropertySourceLink_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/SyncGetRollupPropertySourceLinkRolluppropertysourcelinkname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/SyncGetRollupPropertySourceLinkRolluppropertysourcelinkname.java new file mode 100644 index 000000000000..39fb432819f7 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/SyncGetRollupPropertySourceLinkRolluppropertysourcelinkname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetRollupPropertySourceLink_Rolluppropertysourcelinkname_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLink; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLinkName; + +public class SyncGetRollupPropertySourceLinkRolluppropertysourcelinkname { + + public static void main(String[] args) throws Exception { + syncGetRollupPropertySourceLinkRolluppropertysourcelinkname(); + } + + public static void syncGetRollupPropertySourceLinkRolluppropertysourcelinkname() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + RollupPropertySourceLinkName name = + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]"); + RollupPropertySourceLink response = + analyticsAdminServiceClient.getRollupPropertySourceLink(name); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetRollupPropertySourceLink_Rolluppropertysourcelinkname_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserlink/SyncGetUserLinkUserlinkname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/SyncGetRollupPropertySourceLinkString.java similarity index 70% rename from java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserlink/SyncGetUserLinkUserlinkname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/SyncGetRollupPropertySourceLinkString.java index a0031d639432..8c811c8ebd05 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserlink/SyncGetUserLinkUserlinkname.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/SyncGetRollupPropertySourceLinkString.java @@ -16,18 +16,18 @@ package com.google.analytics.admin.v1alpha.samples; -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserLink_Userlinkname_sync] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetRollupPropertySourceLink_String_sync] import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.UserLink; -import com.google.analytics.admin.v1alpha.UserLinkName; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLink; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLinkName; -public class SyncGetUserLinkUserlinkname { +public class SyncGetRollupPropertySourceLinkString { public static void main(String[] args) throws Exception { - syncGetUserLinkUserlinkname(); + syncGetRollupPropertySourceLinkString(); } - public static void syncGetUserLinkUserlinkname() throws Exception { + public static void syncGetRollupPropertySourceLinkString() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -35,9 +35,11 @@ public static void syncGetUserLinkUserlinkname() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) { - UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]"); - UserLink response = analyticsAdminServiceClient.getUserLink(name); + String name = + RollupPropertySourceLinkName.of("[PROPERTY]", "[ROLLUP_PROPERTY_SOURCE_LINK]").toString(); + RollupPropertySourceLink response = + analyticsAdminServiceClient.getRollupPropertySourceLink(name); } } } -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserLink_Userlinkname_sync] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetRollupPropertySourceLink_String_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listuserlinks/AsyncListUserLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/AsyncListRollupPropertySourceLinks.java similarity index 65% rename from java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listuserlinks/AsyncListUserLinks.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/AsyncListRollupPropertySourceLinks.java index 26e3ed949670..1ea33c9e8967 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listuserlinks/AsyncListUserLinks.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/AsyncListRollupPropertySourceLinks.java @@ -16,20 +16,20 @@ package com.google.analytics.admin.v1alpha.samples; -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_async] -import com.google.analytics.admin.v1alpha.AccountName; +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListRollupPropertySourceLinks_async] import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.ListUserLinksRequest; -import com.google.analytics.admin.v1alpha.UserLink; +import com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest; +import com.google.analytics.admin.v1alpha.PropertyName; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLink; import com.google.api.core.ApiFuture; -public class AsyncListUserLinks { +public class AsyncListRollupPropertySourceLinks { public static void main(String[] args) throws Exception { - asyncListUserLinks(); + asyncListRollupPropertySourceLinks(); } - public static void asyncListUserLinks() throws Exception { + public static void asyncListRollupPropertySourceLinks() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -37,19 +37,21 @@ public static void asyncListUserLinks() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) { - ListUserLinksRequest request = - ListUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) + ListRollupPropertySourceLinksRequest request = + ListRollupPropertySourceLinksRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); - ApiFuture future = - analyticsAdminServiceClient.listUserLinksPagedCallable().futureCall(request); + ApiFuture future = + analyticsAdminServiceClient + .listRollupPropertySourceLinksPagedCallable() + .futureCall(request); // Do something. - for (UserLink element : future.get().iterateAll()) { + for (RollupPropertySourceLink element : future.get().iterateAll()) { // doThingsWith(element); } } } } -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_async] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListRollupPropertySourceLinks_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listuserlinks/AsyncListUserLinksPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/AsyncListRollupPropertySourceLinksPaged.java similarity index 66% rename from java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listuserlinks/AsyncListUserLinksPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/AsyncListRollupPropertySourceLinksPaged.java index ae4cb980a64a..5e8106d5c502 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listuserlinks/AsyncListUserLinksPaged.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/AsyncListRollupPropertySourceLinksPaged.java @@ -16,21 +16,21 @@ package com.google.analytics.admin.v1alpha.samples; -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_Paged_async] -import com.google.analytics.admin.v1alpha.AccountName; +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListRollupPropertySourceLinks_Paged_async] import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.ListUserLinksRequest; -import com.google.analytics.admin.v1alpha.ListUserLinksResponse; -import com.google.analytics.admin.v1alpha.UserLink; +import com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest; +import com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse; +import com.google.analytics.admin.v1alpha.PropertyName; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLink; import com.google.common.base.Strings; -public class AsyncListUserLinksPaged { +public class AsyncListRollupPropertySourceLinksPaged { public static void main(String[] args) throws Exception { - asyncListUserLinksPaged(); + asyncListRollupPropertySourceLinksPaged(); } - public static void asyncListUserLinksPaged() throws Exception { + public static void asyncListRollupPropertySourceLinksPaged() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -38,16 +38,16 @@ public static void asyncListUserLinksPaged() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) { - ListUserLinksRequest request = - ListUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) + ListRollupPropertySourceLinksRequest request = + ListRollupPropertySourceLinksRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); while (true) { - ListUserLinksResponse response = - analyticsAdminServiceClient.listUserLinksCallable().call(request); - for (UserLink element : response.getUserLinksList()) { + ListRollupPropertySourceLinksResponse response = + analyticsAdminServiceClient.listRollupPropertySourceLinksCallable().call(request); + for (RollupPropertySourceLink element : response.getRollupPropertySourceLinksList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); @@ -60,4 +60,4 @@ public static void asyncListUserLinksPaged() throws Exception { } } } -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_Paged_async] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListRollupPropertySourceLinks_Paged_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listuserlinks/SyncListUserLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/SyncListRollupPropertySourceLinks.java similarity index 67% rename from java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listuserlinks/SyncListUserLinks.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/SyncListRollupPropertySourceLinks.java index 81ac6c65b993..d7263213db2a 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listuserlinks/SyncListUserLinks.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/SyncListRollupPropertySourceLinks.java @@ -16,19 +16,19 @@ package com.google.analytics.admin.v1alpha.samples; -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_sync] -import com.google.analytics.admin.v1alpha.AccountName; +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListRollupPropertySourceLinks_sync] import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.ListUserLinksRequest; -import com.google.analytics.admin.v1alpha.UserLink; +import com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest; +import com.google.analytics.admin.v1alpha.PropertyName; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLink; -public class SyncListUserLinks { +public class SyncListRollupPropertySourceLinks { public static void main(String[] args) throws Exception { - syncListUserLinks(); + syncListRollupPropertySourceLinks(); } - public static void syncListUserLinks() throws Exception { + public static void syncListRollupPropertySourceLinks() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -36,16 +36,17 @@ public static void syncListUserLinks() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) { - ListUserLinksRequest request = - ListUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) + ListRollupPropertySourceLinksRequest request = + ListRollupPropertySourceLinksRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); - for (UserLink element : analyticsAdminServiceClient.listUserLinks(request).iterateAll()) { + for (RollupPropertySourceLink element : + analyticsAdminServiceClient.listRollupPropertySourceLinks(request).iterateAll()) { // doThingsWith(element); } } } } -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_sync] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListRollupPropertySourceLinks_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listuserlinks/SyncListUserLinksPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/SyncListRollupPropertySourceLinksPropertyname.java similarity index 76% rename from java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listuserlinks/SyncListUserLinksPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/SyncListRollupPropertySourceLinksPropertyname.java index 28d648bc01f2..41fa26f69b3e 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listuserlinks/SyncListUserLinksPropertyname.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/SyncListRollupPropertySourceLinksPropertyname.java @@ -16,18 +16,18 @@ package com.google.analytics.admin.v1alpha.samples; -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_Propertyname_sync] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListRollupPropertySourceLinks_Propertyname_sync] import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; import com.google.analytics.admin.v1alpha.PropertyName; -import com.google.analytics.admin.v1alpha.UserLink; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLink; -public class SyncListUserLinksPropertyname { +public class SyncListRollupPropertySourceLinksPropertyname { public static void main(String[] args) throws Exception { - syncListUserLinksPropertyname(); + syncListRollupPropertySourceLinksPropertyname(); } - public static void syncListUserLinksPropertyname() throws Exception { + public static void syncListRollupPropertySourceLinksPropertyname() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -36,10 +36,11 @@ public static void syncListUserLinksPropertyname() throws Exception { try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) { PropertyName parent = PropertyName.of("[PROPERTY]"); - for (UserLink element : analyticsAdminServiceClient.listUserLinks(parent).iterateAll()) { + for (RollupPropertySourceLink element : + analyticsAdminServiceClient.listRollupPropertySourceLinks(parent).iterateAll()) { // doThingsWith(element); } } } } -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_Propertyname_sync] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListRollupPropertySourceLinks_Propertyname_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listuserlinks/SyncListUserLinksString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/SyncListRollupPropertySourceLinksString.java similarity index 71% rename from java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listuserlinks/SyncListUserLinksString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/SyncListRollupPropertySourceLinksString.java index 830c643f989c..1ea84f16bac4 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listuserlinks/SyncListUserLinksString.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/SyncListRollupPropertySourceLinksString.java @@ -16,18 +16,18 @@ package com.google.analytics.admin.v1alpha.samples; -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_String_sync] -import com.google.analytics.admin.v1alpha.AccountName; +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListRollupPropertySourceLinks_String_sync] import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.UserLink; +import com.google.analytics.admin.v1alpha.PropertyName; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLink; -public class SyncListUserLinksString { +public class SyncListRollupPropertySourceLinksString { public static void main(String[] args) throws Exception { - syncListUserLinksString(); + syncListRollupPropertySourceLinksString(); } - public static void syncListUserLinksString() throws Exception { + public static void syncListRollupPropertySourceLinksString() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -35,11 +35,12 @@ public static void syncListUserLinksString() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) { - String parent = AccountName.of("[ACCOUNT]").toString(); - for (UserLink element : analyticsAdminServiceClient.listUserLinks(parent).iterateAll()) { + String parent = PropertyName.of("[PROPERTY]").toString(); + for (RollupPropertySourceLink element : + analyticsAdminServiceClient.listRollupPropertySourceLinks(parent).iterateAll()) { // doThingsWith(element); } } } } -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_String_sync] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListRollupPropertySourceLinks_String_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listuserlinks/SyncListUserLinksAccountname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listuserlinks/SyncListUserLinksAccountname.java deleted file mode 100644 index 0413f0453d54..000000000000 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listuserlinks/SyncListUserLinksAccountname.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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.samples; - -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_Accountname_sync] -import com.google.analytics.admin.v1alpha.AccountName; -import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.UserLink; - -public class SyncListUserLinksAccountname { - - public static void main(String[] args) throws Exception { - syncListUserLinksAccountname(); - } - - public static void syncListUserLinksAccountname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AnalyticsAdminServiceClient analyticsAdminServiceClient = - AnalyticsAdminServiceClient.create()) { - AccountName parent = AccountName.of("[ACCOUNT]"); - for (UserLink element : analyticsAdminServiceClient.listUserLinks(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_Accountname_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/runaccessreport/AsyncRunAccessReport.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/runaccessreport/AsyncRunAccessReport.java index cb88cf08542b..2936648a45ed 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/runaccessreport/AsyncRunAccessReport.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/runaccessreport/AsyncRunAccessReport.java @@ -55,6 +55,8 @@ public static void asyncRunAccessReport() throws Exception { .setTimeZone("timeZone-2077180903") .addAllOrderBys(new ArrayList()) .setReturnEntityQuota(true) + .setIncludeAllUsers(true) + .setExpandGroups(true) .build(); ApiFuture future = analyticsAdminServiceClient.runAccessReportCallable().futureCall(request); diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/runaccessreport/SyncRunAccessReport.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/runaccessreport/SyncRunAccessReport.java index cf022c5acd89..94c7eb904783 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/runaccessreport/SyncRunAccessReport.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/runaccessreport/SyncRunAccessReport.java @@ -54,6 +54,8 @@ public static void syncRunAccessReport() throws Exception { .setTimeZone("timeZone-2077180903") .addAllOrderBys(new ArrayList()) .setReturnEntityQuota(true) + .setIncludeAllUsers(true) + .setExpandGroups(true) .build(); RunAccessReportResponse response = analyticsAdminServiceClient.runAccessReport(request); } diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchgetuserlinks/AsyncBatchGetUserLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataredactionsettings/AsyncUpdateDataRedactionSettings.java similarity index 61% rename from java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchgetuserlinks/AsyncBatchGetUserLinks.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataredactionsettings/AsyncUpdateDataRedactionSettings.java index bebc87cf63d2..4faadb945a6d 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchgetuserlinks/AsyncBatchGetUserLinks.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataredactionsettings/AsyncUpdateDataRedactionSettings.java @@ -16,21 +16,20 @@ package com.google.analytics.admin.v1alpha.samples; -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetUserLinks_async] -import com.google.analytics.admin.v1alpha.AccountName; +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRedactionSettings_async] import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest; -import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse; +import com.google.analytics.admin.v1alpha.DataRedactionSettings; +import com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest; import com.google.api.core.ApiFuture; -import java.util.ArrayList; +import com.google.protobuf.FieldMask; -public class AsyncBatchGetUserLinks { +public class AsyncUpdateDataRedactionSettings { public static void main(String[] args) throws Exception { - asyncBatchGetUserLinks(); + asyncUpdateDataRedactionSettings(); } - public static void asyncBatchGetUserLinks() throws Exception { + public static void asyncUpdateDataRedactionSettings() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -38,16 +37,16 @@ public static void asyncBatchGetUserLinks() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) { - BatchGetUserLinksRequest request = - BatchGetUserLinksRequest.newBuilder() - .setParent(AccountName.of("[ACCOUNT]").toString()) - .addAllNames(new ArrayList()) + UpdateDataRedactionSettingsRequest request = + UpdateDataRedactionSettingsRequest.newBuilder() + .setDataRedactionSettings(DataRedactionSettings.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) .build(); - ApiFuture future = - analyticsAdminServiceClient.batchGetUserLinksCallable().futureCall(request); + ApiFuture future = + analyticsAdminServiceClient.updateDataRedactionSettingsCallable().futureCall(request); // Do something. - BatchGetUserLinksResponse response = future.get(); + DataRedactionSettings response = future.get(); } } } -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetUserLinks_async] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRedactionSettings_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateuserlink/AsyncUpdateUserLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataredactionsettings/SyncUpdateDataRedactionSettings.java similarity index 64% rename from java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateuserlink/AsyncUpdateUserLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataredactionsettings/SyncUpdateDataRedactionSettings.java index 2ab99efdf0e9..2d56b284cf32 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateuserlink/AsyncUpdateUserLink.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataredactionsettings/SyncUpdateDataRedactionSettings.java @@ -16,19 +16,19 @@ package com.google.analytics.admin.v1alpha.samples; -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateUserLink_async] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRedactionSettings_sync] import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.UpdateUserLinkRequest; -import com.google.analytics.admin.v1alpha.UserLink; -import com.google.api.core.ApiFuture; +import com.google.analytics.admin.v1alpha.DataRedactionSettings; +import com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest; +import com.google.protobuf.FieldMask; -public class AsyncUpdateUserLink { +public class SyncUpdateDataRedactionSettings { public static void main(String[] args) throws Exception { - asyncUpdateUserLink(); + syncUpdateDataRedactionSettings(); } - public static void asyncUpdateUserLink() throws Exception { + public static void syncUpdateDataRedactionSettings() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -36,13 +36,14 @@ public static void asyncUpdateUserLink() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) { - UpdateUserLinkRequest request = - UpdateUserLinkRequest.newBuilder().setUserLink(UserLink.newBuilder().build()).build(); - ApiFuture future = - analyticsAdminServiceClient.updateUserLinkCallable().futureCall(request); - // Do something. - UserLink response = future.get(); + UpdateDataRedactionSettingsRequest request = + UpdateDataRedactionSettingsRequest.newBuilder() + .setDataRedactionSettings(DataRedactionSettings.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + DataRedactionSettings response = + analyticsAdminServiceClient.updateDataRedactionSettings(request); } } } -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateUserLink_async] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRedactionSettings_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateuserlink/SyncUpdateUserLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataredactionsettings/SyncUpdateDataRedactionSettingsDataredactionsettingsFieldmask.java similarity index 64% rename from java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateuserlink/SyncUpdateUserLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataredactionsettings/SyncUpdateDataRedactionSettingsDataredactionsettingsFieldmask.java index 8a0ca645438d..9059383bac9b 100644 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateuserlink/SyncUpdateUserLink.java +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataredactionsettings/SyncUpdateDataRedactionSettingsDataredactionsettingsFieldmask.java @@ -16,18 +16,19 @@ package com.google.analytics.admin.v1alpha.samples; -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateUserLink_sync] +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRedactionSettings_DataredactionsettingsFieldmask_sync] import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.UpdateUserLinkRequest; -import com.google.analytics.admin.v1alpha.UserLink; +import com.google.analytics.admin.v1alpha.DataRedactionSettings; +import com.google.protobuf.FieldMask; -public class SyncUpdateUserLink { +public class SyncUpdateDataRedactionSettingsDataredactionsettingsFieldmask { public static void main(String[] args) throws Exception { - syncUpdateUserLink(); + syncUpdateDataRedactionSettingsDataredactionsettingsFieldmask(); } - public static void syncUpdateUserLink() throws Exception { + public static void syncUpdateDataRedactionSettingsDataredactionsettingsFieldmask() + throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -35,10 +36,12 @@ public static void syncUpdateUserLink() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (AnalyticsAdminServiceClient analyticsAdminServiceClient = AnalyticsAdminServiceClient.create()) { - UpdateUserLinkRequest request = - UpdateUserLinkRequest.newBuilder().setUserLink(UserLink.newBuilder().build()).build(); - UserLink response = analyticsAdminServiceClient.updateUserLink(request); + DataRedactionSettings dataRedactionSettings = DataRedactionSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + DataRedactionSettings response = + analyticsAdminServiceClient.updateDataRedactionSettings( + dataRedactionSettings, updateMask); } } } -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateUserLink_sync] +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRedactionSettings_DataredactionsettingsFieldmask_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateuserlink/SyncUpdateUserLinkUserlink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateuserlink/SyncUpdateUserLinkUserlink.java deleted file mode 100644 index 27f48244cce0..000000000000 --- a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateuserlink/SyncUpdateUserLinkUserlink.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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.samples; - -// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateUserLink_Userlink_sync] -import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; -import com.google.analytics.admin.v1alpha.UserLink; - -public class SyncUpdateUserLinkUserlink { - - public static void main(String[] args) throws Exception { - syncUpdateUserLinkUserlink(); - } - - public static void syncUpdateUserLinkUserlink() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (AnalyticsAdminServiceClient analyticsAdminServiceClient = - AnalyticsAdminServiceClient.create()) { - UserLink userLink = UserLink.newBuilder().build(); - UserLink response = analyticsAdminServiceClient.updateUserLink(userLink); - } - } -} -// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateUserLink_Userlink_sync]