diff --git a/java-analytics-admin/README.md b/java-analytics-admin/README.md index e11f5c43628a..6846ab4c5716 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.27.0 + 26.29.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.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.42.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 e72cbee3d675..291839355ee4 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 @@ -10056,8 +10056,9 @@ public final AttributionSettings updateAttributionSettings( * 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. + *

Data Access Reports can be requested for a property. Reports may be requested for any + * property, but dimensions that aren't related to quota can only be requested on Google Analytics + * 360 properties. 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 @@ -10107,8 +10108,9 @@ public final RunAccessReportResponse runAccessReport(RunAccessReportRequest requ * 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. + *

Data Access Reports can be requested for a property. Reports may be requested for any + * property, but dimensions that aren't related to quota can only be requested on Google Analytics + * 360 properties. 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 @@ -15432,7 +15434,142 @@ public final CreateSubpropertyResponse createSubproperty(CreateSubpropertyReques // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a subproperty event filter. + * Creates a subproperty Event Filter. + * + *

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]");
+   *   SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build();
+   *   SubpropertyEventFilter response =
+   *       analyticsAdminServiceClient.createSubpropertyEventFilter(parent, subpropertyEventFilter);
+   * }
+   * }
+ * + * @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 SubpropertyEventFilter createSubpropertyEventFilter( + PropertyName parent, SubpropertyEventFilter subpropertyEventFilter) { + CreateSubpropertyEventFilterRequest request = + CreateSubpropertyEventFilterRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSubpropertyEventFilter(subpropertyEventFilter) + .build(); + return createSubpropertyEventFilter(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a subproperty Event Filter. + * + *

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();
+   *   SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build();
+   *   SubpropertyEventFilter response =
+   *       analyticsAdminServiceClient.createSubpropertyEventFilter(parent, subpropertyEventFilter);
+   * }
+   * }
+ * + * @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 SubpropertyEventFilter createSubpropertyEventFilter( + String parent, SubpropertyEventFilter subpropertyEventFilter) { + CreateSubpropertyEventFilterRequest request = + CreateSubpropertyEventFilterRequest.newBuilder() + .setParent(parent) + .setSubpropertyEventFilter(subpropertyEventFilter) + .build(); + return createSubpropertyEventFilter(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a subproperty Event Filter. + * + *

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()) {
+   *   CreateSubpropertyEventFilterRequest request =
+   *       CreateSubpropertyEventFilterRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setSubpropertyEventFilter(SubpropertyEventFilter.newBuilder().build())
+   *           .build();
+   *   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 SubpropertyEventFilter createSubpropertyEventFilter( + CreateSubpropertyEventFilterRequest request) { + return createSubpropertyEventFilterCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a subproperty Event Filter. + * + *

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()) {
+   *   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();
+   * }
+   * }
+ */ + public final UnaryCallable + createSubpropertyEventFilterCallable() { + return stub.createSubpropertyEventFilterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single subproperty Event Filter. * *

Sample code: * @@ -15446,26 +15583,26 @@ public final CreateSubpropertyResponse createSubproperty(CreateSubpropertyReques * AnalyticsAdminServiceClient.create()) { * SubpropertyEventFilterName name = * SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]"); - * analyticsAdminServiceClient.deleteSubpropertyEventFilter(name); + * SubpropertyEventFilter response = analyticsAdminServiceClient.getSubpropertyEventFilter(name); * } * } * - * @param name Required. Resource name of the subproperty event filter to delete. Format: + * @param name Required. Resource name of the subproperty event filter to lookup. 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 void deleteSubpropertyEventFilter(SubpropertyEventFilterName name) { - DeleteSubpropertyEventFilterRequest request = - DeleteSubpropertyEventFilterRequest.newBuilder() + public final SubpropertyEventFilter getSubpropertyEventFilter(SubpropertyEventFilterName name) { + GetSubpropertyEventFilterRequest request = + GetSubpropertyEventFilterRequest.newBuilder() .setName(name == null ? null : name.toString()) .build(); - deleteSubpropertyEventFilter(request); + return getSubpropertyEventFilter(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a subproperty event filter. + * Lookup for a single subproperty Event Filter. * *

Sample code: * @@ -15479,24 +15616,24 @@ public final void deleteSubpropertyEventFilter(SubpropertyEventFilterName name) * AnalyticsAdminServiceClient.create()) { * String name = * SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]").toString(); - * analyticsAdminServiceClient.deleteSubpropertyEventFilter(name); + * SubpropertyEventFilter response = analyticsAdminServiceClient.getSubpropertyEventFilter(name); * } * } * - * @param name Required. Resource name of the subproperty event filter to delete. Format: + * @param name Required. Resource name of the subproperty event filter to lookup. 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 void deleteSubpropertyEventFilter(String name) { - DeleteSubpropertyEventFilterRequest request = - DeleteSubpropertyEventFilterRequest.newBuilder().setName(name).build(); - deleteSubpropertyEventFilter(request); + public final SubpropertyEventFilter getSubpropertyEventFilter(String name) { + GetSubpropertyEventFilterRequest request = + GetSubpropertyEventFilterRequest.newBuilder().setName(name).build(); + return getSubpropertyEventFilter(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a subproperty event filter. + * Lookup for a single subproperty Event Filter. * *

Sample code: * @@ -15508,26 +15645,28 @@ public final void deleteSubpropertyEventFilter(String name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteSubpropertyEventFilterRequest request = - * DeleteSubpropertyEventFilterRequest.newBuilder() + * GetSubpropertyEventFilterRequest request = + * GetSubpropertyEventFilterRequest.newBuilder() * .setName( * SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]") * .toString()) * .build(); - * analyticsAdminServiceClient.deleteSubpropertyEventFilter(request); + * SubpropertyEventFilter response = + * analyticsAdminServiceClient.getSubpropertyEventFilter(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 deleteSubpropertyEventFilter(DeleteSubpropertyEventFilterRequest request) { - deleteSubpropertyEventFilterCallable().call(request); + public final SubpropertyEventFilter getSubpropertyEventFilter( + GetSubpropertyEventFilterRequest request) { + return getSubpropertyEventFilterCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a subproperty event filter. + * Lookup for a single subproperty Event Filter. * *

Sample code: * @@ -15539,27 +15678,27 @@ public final void deleteSubpropertyEventFilter(DeleteSubpropertyEventFilterReque * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { - * DeleteSubpropertyEventFilterRequest request = - * DeleteSubpropertyEventFilterRequest.newBuilder() + * GetSubpropertyEventFilterRequest request = + * GetSubpropertyEventFilterRequest.newBuilder() * .setName( * SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]") * .toString()) * .build(); - * ApiFuture future = - * analyticsAdminServiceClient.deleteSubpropertyEventFilterCallable().futureCall(request); + * ApiFuture future = + * analyticsAdminServiceClient.getSubpropertyEventFilterCallable().futureCall(request); * // Do something. - * future.get(); + * SubpropertyEventFilter response = future.get(); * } * } */ - public final UnaryCallable - deleteSubpropertyEventFilterCallable() { - return stub.deleteSubpropertyEventFilterCallable(); + public final UnaryCallable + getSubpropertyEventFilterCallable() { + return stub.getSubpropertyEventFilterCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a subproperty Event Filter. + * List all subproperty Event Filters on a property. * *

Sample code: * @@ -15572,30 +15711,29 @@ public final void deleteSubpropertyEventFilter(DeleteSubpropertyEventFilterReque * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { * PropertyName parent = PropertyName.of("[PROPERTY]"); - * SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); - * SubpropertyEventFilter response = - * analyticsAdminServiceClient.createSubpropertyEventFilter(parent, subpropertyEventFilter); + * for (SubpropertyEventFilter element : + * analyticsAdminServiceClient.listSubpropertyEventFilters(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @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. + * @param parent Required. Resource name of the ordinary property. Format: properties/property_id + * Example: properties/123 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SubpropertyEventFilter createSubpropertyEventFilter( - PropertyName parent, SubpropertyEventFilter subpropertyEventFilter) { - CreateSubpropertyEventFilterRequest request = - CreateSubpropertyEventFilterRequest.newBuilder() + public final ListSubpropertyEventFiltersPagedResponse listSubpropertyEventFilters( + PropertyName parent) { + ListSubpropertyEventFiltersRequest request = + ListSubpropertyEventFiltersRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) - .setSubpropertyEventFilter(subpropertyEventFilter) .build(); - return createSubpropertyEventFilter(request); + return listSubpropertyEventFilters(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a subproperty Event Filter. + * List all subproperty Event Filters on a property. * *

Sample code: * @@ -15608,30 +15746,178 @@ public final SubpropertyEventFilter createSubpropertyEventFilter( * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { * String parent = PropertyName.of("[PROPERTY]").toString(); + * for (SubpropertyEventFilter element : + * analyticsAdminServiceClient.listSubpropertyEventFilters(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * } + * + * @param parent Required. Resource name of the ordinary property. Format: properties/property_id + * Example: properties/123 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSubpropertyEventFiltersPagedResponse listSubpropertyEventFilters(String parent) { + ListSubpropertyEventFiltersRequest request = + ListSubpropertyEventFiltersRequest.newBuilder().setParent(parent).build(); + return listSubpropertyEventFilters(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all subproperty Event Filters 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()) {
+   *   ListSubpropertyEventFiltersRequest request =
+   *       ListSubpropertyEventFiltersRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (SubpropertyEventFilter element :
+   *       analyticsAdminServiceClient.listSubpropertyEventFilters(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 ListSubpropertyEventFiltersPagedResponse listSubpropertyEventFilters( + ListSubpropertyEventFiltersRequest request) { + return listSubpropertyEventFiltersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all subproperty Event Filters 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()) {
+   *   ListSubpropertyEventFiltersRequest request =
+   *       ListSubpropertyEventFiltersRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient
+   *           .listSubpropertyEventFiltersPagedCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   for (SubpropertyEventFilter element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListSubpropertyEventFiltersRequest, ListSubpropertyEventFiltersPagedResponse> + listSubpropertyEventFiltersPagedCallable() { + return stub.listSubpropertyEventFiltersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * List all subproperty Event Filters 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()) {
+   *   ListSubpropertyEventFiltersRequest request =
+   *       ListSubpropertyEventFiltersRequest.newBuilder()
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListSubpropertyEventFiltersResponse response =
+   *         analyticsAdminServiceClient.listSubpropertyEventFiltersCallable().call(request);
+   *     for (SubpropertyEventFilter element : response.getSubpropertyEventFiltersList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListSubpropertyEventFiltersRequest, ListSubpropertyEventFiltersResponse> + listSubpropertyEventFiltersCallable() { + return stub.listSubpropertyEventFiltersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a subproperty Event Filter. + * + *

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()) {
    *   SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
    *   SubpropertyEventFilter response =
-   *       analyticsAdminServiceClient.createSubpropertyEventFilter(parent, subpropertyEventFilter);
+   *       analyticsAdminServiceClient.updateSubpropertyEventFilter(
+   *           subpropertyEventFilter, updateMask);
    * }
    * }
* - * @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. + * @param subpropertyEventFilter Required. The subproperty event filter to update. + * @param 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. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SubpropertyEventFilter createSubpropertyEventFilter( - String parent, SubpropertyEventFilter subpropertyEventFilter) { - CreateSubpropertyEventFilterRequest request = - CreateSubpropertyEventFilterRequest.newBuilder() - .setParent(parent) + public final SubpropertyEventFilter updateSubpropertyEventFilter( + SubpropertyEventFilter subpropertyEventFilter, FieldMask updateMask) { + UpdateSubpropertyEventFilterRequest request = + UpdateSubpropertyEventFilterRequest.newBuilder() .setSubpropertyEventFilter(subpropertyEventFilter) + .setUpdateMask(updateMask) .build(); - return createSubpropertyEventFilter(request); + return updateSubpropertyEventFilter(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a subproperty Event Filter. + * Updates a subproperty Event Filter. * *

Sample code: * @@ -15643,27 +15929,27 @@ public final SubpropertyEventFilter createSubpropertyEventFilter( * // 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()) + * UpdateSubpropertyEventFilterRequest request = + * UpdateSubpropertyEventFilterRequest.newBuilder() * .setSubpropertyEventFilter(SubpropertyEventFilter.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); * SubpropertyEventFilter response = - * analyticsAdminServiceClient.createSubpropertyEventFilter(request); + * analyticsAdminServiceClient.updateSubpropertyEventFilter(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 SubpropertyEventFilter createSubpropertyEventFilter( - CreateSubpropertyEventFilterRequest request) { - return createSubpropertyEventFilterCallable().call(request); + public final SubpropertyEventFilter updateSubpropertyEventFilter( + UpdateSubpropertyEventFilterRequest request) { + return updateSubpropertyEventFilterCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a subproperty Event Filter. + * Updates a subproperty Event Filter. * *

Sample code: * @@ -15675,21 +15961,148 @@ public final SubpropertyEventFilter createSubpropertyEventFilter( * // 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()) + * UpdateSubpropertyEventFilterRequest request = + * UpdateSubpropertyEventFilterRequest.newBuilder() * .setSubpropertyEventFilter(SubpropertyEventFilter.newBuilder().build()) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); * ApiFuture future = - * analyticsAdminServiceClient.createSubpropertyEventFilterCallable().futureCall(request); + * analyticsAdminServiceClient.updateSubpropertyEventFilterCallable().futureCall(request); * // Do something. * SubpropertyEventFilter response = future.get(); * } * } */ - public final UnaryCallable - createSubpropertyEventFilterCallable() { - return stub.createSubpropertyEventFilterCallable(); + public final UnaryCallable + updateSubpropertyEventFilterCallable() { + return stub.updateSubpropertyEventFilterCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a subproperty event filter. + * + *

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()) {
+   *   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 void deleteSubpropertyEventFilter(SubpropertyEventFilterName name) { + DeleteSubpropertyEventFilterRequest request = + DeleteSubpropertyEventFilterRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteSubpropertyEventFilter(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a subproperty event filter. + * + *

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 =
+   *       SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]").toString();
+   *   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 void deleteSubpropertyEventFilter(String name) { + DeleteSubpropertyEventFilterRequest request = + DeleteSubpropertyEventFilterRequest.newBuilder().setName(name).build(); + deleteSubpropertyEventFilter(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a subproperty event filter. + * + *

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()) {
+   *   DeleteSubpropertyEventFilterRequest request =
+   *       DeleteSubpropertyEventFilterRequest.newBuilder()
+   *           .setName(
+   *               SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]")
+   *                   .toString())
+   *           .build();
+   *   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 void deleteSubpropertyEventFilter(DeleteSubpropertyEventFilterRequest request) { + deleteSubpropertyEventFilterCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a subproperty event filter. + * + *

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()) {
+   *   DeleteSubpropertyEventFilterRequest request =
+   *       DeleteSubpropertyEventFilterRequest.newBuilder()
+   *           .setName(
+   *               SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.deleteSubpropertyEventFilterCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteSubpropertyEventFilterCallable() { + return stub.deleteSubpropertyEventFilterCallable(); } @Override @@ -17675,4 +18088,101 @@ protected ListRollupPropertySourceLinksFixedSizeCollection createCollection( return new ListRollupPropertySourceLinksFixedSizeCollection(pages, collectionSize); } } + + public static class ListSubpropertyEventFiltersPagedResponse + extends AbstractPagedListResponse< + ListSubpropertyEventFiltersRequest, + ListSubpropertyEventFiltersResponse, + SubpropertyEventFilter, + ListSubpropertyEventFiltersPage, + ListSubpropertyEventFiltersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListSubpropertyEventFiltersRequest, + ListSubpropertyEventFiltersResponse, + SubpropertyEventFilter> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSubpropertyEventFiltersPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListSubpropertyEventFiltersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListSubpropertyEventFiltersPagedResponse(ListSubpropertyEventFiltersPage page) { + super(page, ListSubpropertyEventFiltersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSubpropertyEventFiltersPage + extends AbstractPage< + ListSubpropertyEventFiltersRequest, + ListSubpropertyEventFiltersResponse, + SubpropertyEventFilter, + ListSubpropertyEventFiltersPage> { + + private ListSubpropertyEventFiltersPage( + PageContext< + ListSubpropertyEventFiltersRequest, + ListSubpropertyEventFiltersResponse, + SubpropertyEventFilter> + context, + ListSubpropertyEventFiltersResponse response) { + super(context, response); + } + + private static ListSubpropertyEventFiltersPage createEmptyPage() { + return new ListSubpropertyEventFiltersPage(null, null); + } + + @Override + protected ListSubpropertyEventFiltersPage createPage( + PageContext< + ListSubpropertyEventFiltersRequest, + ListSubpropertyEventFiltersResponse, + SubpropertyEventFilter> + context, + ListSubpropertyEventFiltersResponse response) { + return new ListSubpropertyEventFiltersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListSubpropertyEventFiltersRequest, + ListSubpropertyEventFiltersResponse, + SubpropertyEventFilter> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSubpropertyEventFiltersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSubpropertyEventFiltersRequest, + ListSubpropertyEventFiltersResponse, + SubpropertyEventFilter, + ListSubpropertyEventFiltersPage, + ListSubpropertyEventFiltersFixedSizeCollection> { + + private ListSubpropertyEventFiltersFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSubpropertyEventFiltersFixedSizeCollection createEmptyCollection() { + return new ListSubpropertyEventFiltersFixedSizeCollection(null, 0); + } + + @Override + protected ListSubpropertyEventFiltersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSubpropertyEventFiltersFixedSizeCollection(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 d75b918b3cda..20e24391d4f8 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 @@ -38,6 +38,7 @@ 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.ListSubpropertyEventFiltersPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.stub.AnalyticsAdminServiceStubSettings; @@ -946,13 +947,6 @@ public UnaryCallSettings deleteEventCreateR 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() { @@ -960,6 +954,37 @@ public UnaryCallSettings deleteEventCreateR .createSubpropertyEventFilterSettings(); } + /** Returns the object with the settings used for calls to getSubpropertyEventFilter. */ + public UnaryCallSettings + getSubpropertyEventFilterSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .getSubpropertyEventFilterSettings(); + } + + /** Returns the object with the settings used for calls to listSubpropertyEventFilters. */ + public PagedCallSettings< + ListSubpropertyEventFiltersRequest, + ListSubpropertyEventFiltersResponse, + ListSubpropertyEventFiltersPagedResponse> + listSubpropertyEventFiltersSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .listSubpropertyEventFiltersSettings(); + } + + /** Returns the object with the settings used for calls to updateSubpropertyEventFilter. */ + public UnaryCallSettings + updateSubpropertyEventFilterSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .updateSubpropertyEventFilterSettings(); + } + + /** Returns the object with the settings used for calls to deleteSubpropertyEventFilter. */ + public UnaryCallSettings + deleteSubpropertyEventFilterSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .deleteSubpropertyEventFilterSettings(); + } + public static final AnalyticsAdminServiceSettings create(AnalyticsAdminServiceStubSettings stub) throws IOException { return new AnalyticsAdminServiceSettings.Builder(stub.toBuilder()).build(); @@ -1932,18 +1957,39 @@ public UnaryCallSettings.Builder deleteAdSenseL 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(); } + /** Returns the builder for the settings used for calls to getSubpropertyEventFilter. */ + public UnaryCallSettings.Builder + getSubpropertyEventFilterSettings() { + return getStubSettingsBuilder().getSubpropertyEventFilterSettings(); + } + + /** Returns the builder for the settings used for calls to listSubpropertyEventFilters. */ + public PagedCallSettings.Builder< + ListSubpropertyEventFiltersRequest, + ListSubpropertyEventFiltersResponse, + ListSubpropertyEventFiltersPagedResponse> + listSubpropertyEventFiltersSettings() { + return getStubSettingsBuilder().listSubpropertyEventFiltersSettings(); + } + + /** Returns the builder for the settings used for calls to updateSubpropertyEventFilter. */ + public UnaryCallSettings.Builder + updateSubpropertyEventFilterSettings() { + return getStubSettingsBuilder().updateSubpropertyEventFilterSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSubpropertyEventFilter. */ + public UnaryCallSettings.Builder + deleteSubpropertyEventFilterSettings() { + return getStubSettingsBuilder().deleteSubpropertyEventFilterSettings(); + } + @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 53363c71c7e4..42c65730068a 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 @@ -250,6 +250,9 @@ "GetSearchAds360Link": { "methods": ["getSearchAds360Link", "getSearchAds360Link", "getSearchAds360Link", "getSearchAds360LinkCallable"] }, + "GetSubpropertyEventFilter": { + "methods": ["getSubpropertyEventFilter", "getSubpropertyEventFilter", "getSubpropertyEventFilter", "getSubpropertyEventFilterCallable"] + }, "ListAccessBindings": { "methods": ["listAccessBindings", "listAccessBindings", "listAccessBindings", "listAccessBindings", "listAccessBindingsPagedCallable", "listAccessBindingsCallable"] }, @@ -319,6 +322,9 @@ "ListSearchAds360Links": { "methods": ["listSearchAds360Links", "listSearchAds360Links", "listSearchAds360Links", "listSearchAds360LinksPagedCallable", "listSearchAds360LinksCallable"] }, + "ListSubpropertyEventFilters": { + "methods": ["listSubpropertyEventFilters", "listSubpropertyEventFilters", "listSubpropertyEventFilters", "listSubpropertyEventFiltersPagedCallable", "listSubpropertyEventFiltersCallable"] + }, "ProvisionAccountTicket": { "methods": ["provisionAccountTicket", "provisionAccountTicketCallable"] }, @@ -393,6 +399,9 @@ }, "UpdateSearchAds360Link": { "methods": ["updateSearchAds360Link", "updateSearchAds360Link", "updateSearchAds360LinkCallable"] + }, + "UpdateSubpropertyEventFilter": { + "methods": ["updateSubpropertyEventFilter", "updateSubpropertyEventFilter", "updateSubpropertyEventFilterCallable"] } } } 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 ed6045831b70..d084ab827942 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 @@ -38,6 +38,7 @@ 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.ListSubpropertyEventFiltersPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.AccessBinding; @@ -150,6 +151,7 @@ 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.GetSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; @@ -199,6 +201,8 @@ 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.ListSubpropertyEventFiltersRequest; +import com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse; import com.google.analytics.admin.v1alpha.MeasurementProtocolSecret; import com.google.analytics.admin.v1alpha.Property; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; @@ -234,6 +238,7 @@ 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.UpdateSubpropertyEventFilterRequest; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; @@ -1004,18 +1009,41 @@ public UnaryCallable deleteEventCreateRuleC throw new UnsupportedOperationException("Not implemented: createSubpropertyCallable()"); } - public UnaryCallable - deleteSubpropertyEventFilterCallable() { - throw new UnsupportedOperationException( - "Not implemented: deleteSubpropertyEventFilterCallable()"); - } - public UnaryCallable createSubpropertyEventFilterCallable() { throw new UnsupportedOperationException( "Not implemented: createSubpropertyEventFilterCallable()"); } + public UnaryCallable + getSubpropertyEventFilterCallable() { + throw new UnsupportedOperationException("Not implemented: getSubpropertyEventFilterCallable()"); + } + + public UnaryCallable + listSubpropertyEventFiltersPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listSubpropertyEventFiltersPagedCallable()"); + } + + public UnaryCallable + listSubpropertyEventFiltersCallable() { + throw new UnsupportedOperationException( + "Not implemented: listSubpropertyEventFiltersCallable()"); + } + + public UnaryCallable + updateSubpropertyEventFilterCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateSubpropertyEventFilterCallable()"); + } + + public UnaryCallable + deleteSubpropertyEventFilterCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteSubpropertyEventFilterCallable()"); + } + @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 bb2c83b04d03..37aea3347041 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 @@ -38,6 +38,7 @@ 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.ListSubpropertyEventFiltersPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.AccessBinding; @@ -152,6 +153,7 @@ 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.GetSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; @@ -201,6 +203,8 @@ 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.ListSubpropertyEventFiltersRequest; +import com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse; import com.google.analytics.admin.v1alpha.MeasurementProtocolSecret; import com.google.analytics.admin.v1alpha.Property; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; @@ -236,6 +240,7 @@ 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.UpdateSubpropertyEventFilterRequest; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.BetaApi; @@ -613,10 +618,19 @@ public class AnalyticsAdminServiceStubSettings deleteRollupPropertySourceLinkSettings; private final UnaryCallSettings createSubpropertySettings; - private final UnaryCallSettings - deleteSubpropertyEventFilterSettings; private final UnaryCallSettings createSubpropertyEventFilterSettings; + private final UnaryCallSettings + getSubpropertyEventFilterSettings; + private final PagedCallSettings< + ListSubpropertyEventFiltersRequest, + ListSubpropertyEventFiltersResponse, + ListSubpropertyEventFiltersPagedResponse> + listSubpropertyEventFiltersSettings; + private final UnaryCallSettings + updateSubpropertyEventFilterSettings; + private final UnaryCallSettings + deleteSubpropertyEventFilterSettings; private static final PagedListDescriptor LIST_ACCOUNTS_PAGE_STR_DESC = @@ -1585,6 +1599,55 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + ListSubpropertyEventFiltersRequest, + ListSubpropertyEventFiltersResponse, + SubpropertyEventFilter> + LIST_SUBPROPERTY_EVENT_FILTERS_PAGE_STR_DESC = + new PagedListDescriptor< + ListSubpropertyEventFiltersRequest, + ListSubpropertyEventFiltersResponse, + SubpropertyEventFilter>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSubpropertyEventFiltersRequest injectToken( + ListSubpropertyEventFiltersRequest payload, String token) { + return ListSubpropertyEventFiltersRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListSubpropertyEventFiltersRequest injectPageSize( + ListSubpropertyEventFiltersRequest payload, int pageSize) { + return ListSubpropertyEventFiltersRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListSubpropertyEventFiltersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSubpropertyEventFiltersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListSubpropertyEventFiltersResponse payload) { + return payload.getSubpropertyEventFiltersList() == null + ? ImmutableList.of() + : payload.getSubpropertyEventFiltersList(); + } + }; + private static final PagedListResponseFactory< ListAccountsRequest, ListAccountsResponse, ListAccountsPagedResponse> LIST_ACCOUNTS_PAGE_STR_FACT = @@ -2136,6 +2199,35 @@ public ApiFuture getFuturePagedRespo } }; + private static final PagedListResponseFactory< + ListSubpropertyEventFiltersRequest, + ListSubpropertyEventFiltersResponse, + ListSubpropertyEventFiltersPagedResponse> + LIST_SUBPROPERTY_EVENT_FILTERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListSubpropertyEventFiltersRequest, + ListSubpropertyEventFiltersResponse, + ListSubpropertyEventFiltersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListSubpropertyEventFiltersRequest, ListSubpropertyEventFiltersResponse> + callable, + ListSubpropertyEventFiltersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListSubpropertyEventFiltersRequest, + ListSubpropertyEventFiltersResponse, + SubpropertyEventFilter> + pageContext = + PageContext.create( + callable, LIST_SUBPROPERTY_EVENT_FILTERS_PAGE_STR_DESC, request, context); + return ListSubpropertyEventFiltersPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to getAccount. */ public UnaryCallSettings getAccountSettings() { return getAccountSettings; @@ -2939,18 +3031,39 @@ public UnaryCallSettings deleteEventCreateR 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; } + /** Returns the object with the settings used for calls to getSubpropertyEventFilter. */ + public UnaryCallSettings + getSubpropertyEventFilterSettings() { + return getSubpropertyEventFilterSettings; + } + + /** Returns the object with the settings used for calls to listSubpropertyEventFilters. */ + public PagedCallSettings< + ListSubpropertyEventFiltersRequest, + ListSubpropertyEventFiltersResponse, + ListSubpropertyEventFiltersPagedResponse> + listSubpropertyEventFiltersSettings() { + return listSubpropertyEventFiltersSettings; + } + + /** Returns the object with the settings used for calls to updateSubpropertyEventFilter. */ + public UnaryCallSettings + updateSubpropertyEventFilterSettings() { + return updateSubpropertyEventFilterSettings; + } + + /** Returns the object with the settings used for calls to deleteSubpropertyEventFilter. */ + public UnaryCallSettings + deleteSubpropertyEventFilterSettings() { + return deleteSubpropertyEventFilterSettings; + } + public AnalyticsAdminServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -3216,10 +3329,15 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx deleteRollupPropertySourceLinkSettings = settingsBuilder.deleteRollupPropertySourceLinkSettings().build(); createSubpropertySettings = settingsBuilder.createSubpropertySettings().build(); - deleteSubpropertyEventFilterSettings = - settingsBuilder.deleteSubpropertyEventFilterSettings().build(); createSubpropertyEventFilterSettings = settingsBuilder.createSubpropertyEventFilterSettings().build(); + getSubpropertyEventFilterSettings = settingsBuilder.getSubpropertyEventFilterSettings().build(); + listSubpropertyEventFiltersSettings = + settingsBuilder.listSubpropertyEventFiltersSettings().build(); + updateSubpropertyEventFilterSettings = + settingsBuilder.updateSubpropertyEventFilterSettings().build(); + deleteSubpropertyEventFilterSettings = + settingsBuilder.deleteSubpropertyEventFilterSettings().build(); } /** Builder for AnalyticsAdminServiceStubSettings. */ @@ -3549,11 +3667,22 @@ public static class Builder deleteRollupPropertySourceLinkSettings; private final UnaryCallSettings.Builder createSubpropertySettings; - private final UnaryCallSettings.Builder - deleteSubpropertyEventFilterSettings; private final UnaryCallSettings.Builder< CreateSubpropertyEventFilterRequest, SubpropertyEventFilter> createSubpropertyEventFilterSettings; + private final UnaryCallSettings.Builder< + GetSubpropertyEventFilterRequest, SubpropertyEventFilter> + getSubpropertyEventFilterSettings; + private final PagedCallSettings.Builder< + ListSubpropertyEventFiltersRequest, + ListSubpropertyEventFiltersResponse, + ListSubpropertyEventFiltersPagedResponse> + listSubpropertyEventFiltersSettings; + private final UnaryCallSettings.Builder< + UpdateSubpropertyEventFilterRequest, SubpropertyEventFilter> + updateSubpropertyEventFilterSettings; + private final UnaryCallSettings.Builder + deleteSubpropertyEventFilterSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -3753,8 +3882,12 @@ protected Builder(ClientContext clientContext) { createRollupPropertySourceLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteRollupPropertySourceLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createSubpropertySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteSubpropertyEventFilterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createSubpropertyEventFilterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getSubpropertyEventFilterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listSubpropertyEventFiltersSettings = + PagedCallSettings.newBuilder(LIST_SUBPROPERTY_EVENT_FILTERS_PAGE_STR_FACT); + updateSubpropertyEventFilterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteSubpropertyEventFilterSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -3884,8 +4017,11 @@ protected Builder(ClientContext clientContext) { createRollupPropertySourceLinkSettings, deleteRollupPropertySourceLinkSettings, createSubpropertySettings, - deleteSubpropertyEventFilterSettings, - createSubpropertyEventFilterSettings); + createSubpropertyEventFilterSettings, + getSubpropertyEventFilterSettings, + listSubpropertyEventFiltersSettings, + updateSubpropertyEventFilterSettings, + deleteSubpropertyEventFilterSettings); initDefaults(this); } @@ -4051,10 +4187,15 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { deleteRollupPropertySourceLinkSettings = settings.deleteRollupPropertySourceLinkSettings.toBuilder(); createSubpropertySettings = settings.createSubpropertySettings.toBuilder(); - deleteSubpropertyEventFilterSettings = - settings.deleteSubpropertyEventFilterSettings.toBuilder(); createSubpropertyEventFilterSettings = settings.createSubpropertyEventFilterSettings.toBuilder(); + getSubpropertyEventFilterSettings = settings.getSubpropertyEventFilterSettings.toBuilder(); + listSubpropertyEventFiltersSettings = + settings.listSubpropertyEventFiltersSettings.toBuilder(); + updateSubpropertyEventFilterSettings = + settings.updateSubpropertyEventFilterSettings.toBuilder(); + deleteSubpropertyEventFilterSettings = + settings.deleteSubpropertyEventFilterSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -4184,8 +4325,11 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { createRollupPropertySourceLinkSettings, deleteRollupPropertySourceLinkSettings, createSubpropertySettings, - deleteSubpropertyEventFilterSettings, - createSubpropertyEventFilterSettings); + createSubpropertyEventFilterSettings, + getSubpropertyEventFilterSettings, + listSubpropertyEventFiltersSettings, + updateSubpropertyEventFilterSettings, + deleteSubpropertyEventFilterSettings); } private static Builder createDefault() { @@ -4846,12 +4990,27 @@ private static Builder initDefaults(Builder builder) { .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder - .deleteSubpropertyEventFilterSettings() + .createSubpropertyEventFilterSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder - .createSubpropertyEventFilterSettings() + .getSubpropertyEventFilterSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listSubpropertyEventFiltersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateSubpropertyEventFilterSettings() + .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")); @@ -5729,18 +5888,39 @@ public UnaryCallSettings.Builder deleteAdSenseL 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; } + /** Returns the builder for the settings used for calls to getSubpropertyEventFilter. */ + public UnaryCallSettings.Builder + getSubpropertyEventFilterSettings() { + return getSubpropertyEventFilterSettings; + } + + /** Returns the builder for the settings used for calls to listSubpropertyEventFilters. */ + public PagedCallSettings.Builder< + ListSubpropertyEventFiltersRequest, + ListSubpropertyEventFiltersResponse, + ListSubpropertyEventFiltersPagedResponse> + listSubpropertyEventFiltersSettings() { + return listSubpropertyEventFiltersSettings; + } + + /** Returns the builder for the settings used for calls to updateSubpropertyEventFilter. */ + public UnaryCallSettings.Builder + updateSubpropertyEventFilterSettings() { + return updateSubpropertyEventFilterSettings; + } + + /** Returns the builder for the settings used for calls to deleteSubpropertyEventFilter. */ + public UnaryCallSettings.Builder + deleteSubpropertyEventFilterSettings() { + return deleteSubpropertyEventFilterSettings; + } + @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 e455c375570f..549fa45092cf 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 @@ -38,6 +38,7 @@ 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.ListSubpropertyEventFiltersPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.AccessBinding; @@ -150,6 +151,7 @@ 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.GetSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; @@ -199,6 +201,8 @@ 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.ListSubpropertyEventFiltersRequest; +import com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse; import com.google.analytics.admin.v1alpha.MeasurementProtocolSecret; import com.google.analytics.admin.v1alpha.Property; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; @@ -234,6 +238,7 @@ 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.UpdateSubpropertyEventFilterRequest; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -1816,17 +1821,6 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { 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() @@ -1839,6 +1833,55 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { ProtoUtils.marshaller(SubpropertyEventFilter.getDefaultInstance())) .build(); + private static final MethodDescriptor + getSubpropertyEventFilterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetSubpropertyEventFilter") + .setRequestMarshaller( + ProtoUtils.marshaller(GetSubpropertyEventFilterRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SubpropertyEventFilter.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListSubpropertyEventFiltersRequest, ListSubpropertyEventFiltersResponse> + listSubpropertyEventFiltersMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListSubpropertyEventFilters") + .setRequestMarshaller( + ProtoUtils.marshaller(ListSubpropertyEventFiltersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListSubpropertyEventFiltersResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateSubpropertyEventFilterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateSubpropertyEventFilter") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateSubpropertyEventFilterRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SubpropertyEventFilter.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 final UnaryCallable getAccountCallable; private final UnaryCallable listAccountsCallable; private final UnaryCallable @@ -2125,10 +2168,20 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { deleteRollupPropertySourceLinkCallable; private final UnaryCallable createSubpropertyCallable; - private final UnaryCallable - deleteSubpropertyEventFilterCallable; private final UnaryCallable createSubpropertyEventFilterCallable; + private final UnaryCallable + getSubpropertyEventFilterCallable; + private final UnaryCallable< + ListSubpropertyEventFiltersRequest, ListSubpropertyEventFiltersResponse> + listSubpropertyEventFiltersCallable; + private final UnaryCallable< + ListSubpropertyEventFiltersRequest, ListSubpropertyEventFiltersPagedResponse> + listSubpropertyEventFiltersPagedCallable; + private final UnaryCallable + updateSubpropertyEventFilterCallable; + private final UnaryCallable + deleteSubpropertyEventFilterCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -3552,10 +3605,22 @@ protected GrpcAnalyticsAdminServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createSubpropertyMethodDescriptor) .build(); - GrpcCallSettings - deleteSubpropertyEventFilterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteSubpropertyEventFilterMethodDescriptor) + GrpcCallSettings + createSubpropertyEventFilterTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(createSubpropertyEventFilterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getSubpropertyEventFilterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSubpropertyEventFilterMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); @@ -3563,11 +3628,12 @@ protected GrpcAnalyticsAdminServiceStub( return builder.build(); }) .build(); - GrpcCallSettings - createSubpropertyEventFilterTransportSettings = + GrpcCallSettings + listSubpropertyEventFiltersTransportSettings = GrpcCallSettings - .newBuilder() - .setMethodDescriptor(createSubpropertyEventFilterMethodDescriptor) + . + newBuilder() + .setMethodDescriptor(listSubpropertyEventFiltersMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); @@ -3575,6 +3641,31 @@ protected GrpcAnalyticsAdminServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + updateSubpropertyEventFilterTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(updateSubpropertyEventFilterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "subproperty_event_filter.name", + String.valueOf(request.getSubpropertyEventFilter().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteSubpropertyEventFilterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSubpropertyEventFilterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); this.getAccountCallable = callableFactory.createUnaryCallable( @@ -4257,16 +4348,36 @@ protected GrpcAnalyticsAdminServiceStub( createSubpropertyTransportSettings, settings.createSubpropertySettings(), clientContext); - this.deleteSubpropertyEventFilterCallable = - callableFactory.createUnaryCallable( - deleteSubpropertyEventFilterTransportSettings, - settings.deleteSubpropertyEventFilterSettings(), - clientContext); this.createSubpropertyEventFilterCallable = callableFactory.createUnaryCallable( createSubpropertyEventFilterTransportSettings, settings.createSubpropertyEventFilterSettings(), clientContext); + this.getSubpropertyEventFilterCallable = + callableFactory.createUnaryCallable( + getSubpropertyEventFilterTransportSettings, + settings.getSubpropertyEventFilterSettings(), + clientContext); + this.listSubpropertyEventFiltersCallable = + callableFactory.createUnaryCallable( + listSubpropertyEventFiltersTransportSettings, + settings.listSubpropertyEventFiltersSettings(), + clientContext); + this.listSubpropertyEventFiltersPagedCallable = + callableFactory.createPagedCallable( + listSubpropertyEventFiltersTransportSettings, + settings.listSubpropertyEventFiltersSettings(), + clientContext); + this.updateSubpropertyEventFilterCallable = + callableFactory.createUnaryCallable( + updateSubpropertyEventFilterTransportSettings, + settings.updateSubpropertyEventFilterSettings(), + clientContext); + this.deleteSubpropertyEventFilterCallable = + callableFactory.createUnaryCallable( + deleteSubpropertyEventFilterTransportSettings, + settings.deleteSubpropertyEventFilterSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -5139,18 +5250,42 @@ public UnaryCallable deleteEventCreateRuleC return createSubpropertyCallable; } - @Override - public UnaryCallable - deleteSubpropertyEventFilterCallable() { - return deleteSubpropertyEventFilterCallable; - } - @Override public UnaryCallable createSubpropertyEventFilterCallable() { return createSubpropertyEventFilterCallable; } + @Override + public UnaryCallable + getSubpropertyEventFilterCallable() { + return getSubpropertyEventFilterCallable; + } + + @Override + public UnaryCallable + listSubpropertyEventFiltersCallable() { + return listSubpropertyEventFiltersCallable; + } + + @Override + public UnaryCallable + listSubpropertyEventFiltersPagedCallable() { + return listSubpropertyEventFiltersPagedCallable; + } + + @Override + public UnaryCallable + updateSubpropertyEventFilterCallable() { + return updateSubpropertyEventFilterCallable; + } + + @Override + public UnaryCallable + deleteSubpropertyEventFilterCallable() { + return deleteSubpropertyEventFilterCallable; + } + @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 e2b1140a9032..4511d7d75666 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 @@ -38,6 +38,7 @@ 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.ListSubpropertyEventFiltersPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.AccessBinding; @@ -150,6 +151,7 @@ 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.GetSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; @@ -199,6 +201,8 @@ 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.ListSubpropertyEventFiltersRequest; +import com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse; import com.google.analytics.admin.v1alpha.MeasurementProtocolSecret; import com.google.analytics.admin.v1alpha.Property; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; @@ -234,6 +238,7 @@ 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.UpdateSubpropertyEventFilterRequest; import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; @@ -5162,20 +5167,63 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .build()) .build(); - private static final ApiMethodDescriptor - deleteSubpropertyEventFilterMethodDescriptor = - ApiMethodDescriptor.newBuilder() + private static final ApiMethodDescriptor< + CreateSubpropertyEventFilterRequest, SubpropertyEventFilter> + createSubpropertyEventFilterMethodDescriptor = + ApiMethodDescriptor + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSubpropertyEventFilter") - .setHttpMethod("DELETE") + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSubpropertyEventFilter") + .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=properties/*}/subpropertyEventFilters", + request -> { + Map fields = new HashMap<>(); + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "subpropertyEventFilter", + request.getSubpropertyEventFilter(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SubpropertyEventFilter.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getSubpropertyEventFilterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetSubpropertyEventFilter") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1alpha/{name=properties/*/subpropertyEventFilters/*}", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; @@ -5183,7 +5231,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; @@ -5191,28 +5239,28 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SubpropertyEventFilter.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor< - CreateSubpropertyEventFilterRequest, SubpropertyEventFilter> - createSubpropertyEventFilterMethodDescriptor = + ListSubpropertyEventFiltersRequest, ListSubpropertyEventFiltersResponse> + listSubpropertyEventFiltersMethodDescriptor = ApiMethodDescriptor - .newBuilder() + .newBuilder() .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSubpropertyEventFilter") - .setHttpMethod("POST") + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListSubpropertyEventFilters") + .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() + ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1alpha/{parent=properties/*}/subpropertyEventFilters", request -> { Map fields = new HashMap<>(); - ProtoRestSerializer serializer = + ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; @@ -5220,8 +5268,51 @@ 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) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSubpropertyEventFiltersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + UpdateSubpropertyEventFilterRequest, SubpropertyEventFilter> + updateSubpropertyEventFilterMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateSubpropertyEventFilter") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{subpropertyEventFilter.name=properties/*/subpropertyEventFilters/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "subpropertyEventFilter.name", + request.getSubpropertyEventFilter().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; }) @@ -5240,6 +5331,41 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .build()) .build(); + private static final ApiMethodDescriptor + deleteSubpropertyEventFilterMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSubpropertyEventFilter") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=properties/*/subpropertyEventFilters/*}", + 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 -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable getAccountCallable; private final UnaryCallable listAccountsCallable; private final UnaryCallable @@ -5526,10 +5652,20 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub deleteRollupPropertySourceLinkCallable; private final UnaryCallable createSubpropertyCallable; - private final UnaryCallable - deleteSubpropertyEventFilterCallable; private final UnaryCallable createSubpropertyEventFilterCallable; + private final UnaryCallable + getSubpropertyEventFilterCallable; + private final UnaryCallable< + ListSubpropertyEventFiltersRequest, ListSubpropertyEventFiltersResponse> + listSubpropertyEventFiltersCallable; + private final UnaryCallable< + ListSubpropertyEventFiltersRequest, ListSubpropertyEventFiltersPagedResponse> + listSubpropertyEventFiltersPagedCallable; + private final UnaryCallable + updateSubpropertyEventFilterCallable; + private final UnaryCallable + deleteSubpropertyEventFilterCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -7110,10 +7246,24 @@ protected HttpJsonAnalyticsAdminServiceStub( .setMethodDescriptor(createSubpropertyMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); - HttpJsonCallSettings - deleteSubpropertyEventFilterTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteSubpropertyEventFilterMethodDescriptor) + 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(); + HttpJsonCallSettings + getSubpropertyEventFilterTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getSubpropertyEventFilterMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -7122,11 +7272,12 @@ protected HttpJsonAnalyticsAdminServiceStub( return builder.build(); }) .build(); - HttpJsonCallSettings - createSubpropertyEventFilterTransportSettings = + HttpJsonCallSettings + listSubpropertyEventFiltersTransportSettings = HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(createSubpropertyEventFilterMethodDescriptor) + . + newBuilder() + .setMethodDescriptor(listSubpropertyEventFiltersMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { @@ -7135,6 +7286,33 @@ protected HttpJsonAnalyticsAdminServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + updateSubpropertyEventFilterTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(updateSubpropertyEventFilterMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "subproperty_event_filter.name", + String.valueOf(request.getSubpropertyEventFilter().getName())); + return builder.build(); + }) + .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(); this.getAccountCallable = callableFactory.createUnaryCallable( @@ -7817,16 +7995,36 @@ protected HttpJsonAnalyticsAdminServiceStub( createSubpropertyTransportSettings, settings.createSubpropertySettings(), clientContext); - this.deleteSubpropertyEventFilterCallable = - callableFactory.createUnaryCallable( - deleteSubpropertyEventFilterTransportSettings, - settings.deleteSubpropertyEventFilterSettings(), - clientContext); this.createSubpropertyEventFilterCallable = callableFactory.createUnaryCallable( createSubpropertyEventFilterTransportSettings, settings.createSubpropertyEventFilterSettings(), clientContext); + this.getSubpropertyEventFilterCallable = + callableFactory.createUnaryCallable( + getSubpropertyEventFilterTransportSettings, + settings.getSubpropertyEventFilterSettings(), + clientContext); + this.listSubpropertyEventFiltersCallable = + callableFactory.createUnaryCallable( + listSubpropertyEventFiltersTransportSettings, + settings.listSubpropertyEventFiltersSettings(), + clientContext); + this.listSubpropertyEventFiltersPagedCallable = + callableFactory.createPagedCallable( + listSubpropertyEventFiltersTransportSettings, + settings.listSubpropertyEventFiltersSettings(), + clientContext); + this.updateSubpropertyEventFilterCallable = + callableFactory.createUnaryCallable( + updateSubpropertyEventFilterTransportSettings, + settings.updateSubpropertyEventFilterSettings(), + clientContext); + this.deleteSubpropertyEventFilterCallable = + callableFactory.createUnaryCallable( + deleteSubpropertyEventFilterTransportSettings, + settings.deleteSubpropertyEventFilterSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -7961,8 +8159,11 @@ public static List getMethodDescriptors() { methodDescriptors.add(createRollupPropertySourceLinkMethodDescriptor); methodDescriptors.add(deleteRollupPropertySourceLinkMethodDescriptor); methodDescriptors.add(createSubpropertyMethodDescriptor); - methodDescriptors.add(deleteSubpropertyEventFilterMethodDescriptor); methodDescriptors.add(createSubpropertyEventFilterMethodDescriptor); + methodDescriptors.add(getSubpropertyEventFilterMethodDescriptor); + methodDescriptors.add(listSubpropertyEventFiltersMethodDescriptor); + methodDescriptors.add(updateSubpropertyEventFilterMethodDescriptor); + methodDescriptors.add(deleteSubpropertyEventFilterMethodDescriptor); return methodDescriptors; } @@ -8829,18 +9030,42 @@ public UnaryCallable deleteEventCreateRuleC return createSubpropertyCallable; } - @Override - public UnaryCallable - deleteSubpropertyEventFilterCallable() { - return deleteSubpropertyEventFilterCallable; - } - @Override public UnaryCallable createSubpropertyEventFilterCallable() { return createSubpropertyEventFilterCallable; } + @Override + public UnaryCallable + getSubpropertyEventFilterCallable() { + return getSubpropertyEventFilterCallable; + } + + @Override + public UnaryCallable + listSubpropertyEventFiltersCallable() { + return listSubpropertyEventFiltersCallable; + } + + @Override + public UnaryCallable + listSubpropertyEventFiltersPagedCallable() { + return listSubpropertyEventFiltersPagedCallable; + } + + @Override + public UnaryCallable + updateSubpropertyEventFilterCallable() { + return updateSubpropertyEventFilterCallable; + } + + @Override + public UnaryCallable + deleteSubpropertyEventFilterCallable() { + return deleteSubpropertyEventFilterCallable; + } + @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 7cc46dc11d77..eaef3eeee12a 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 @@ -1376,6 +1376,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.admin.v1alpha.ConversionEvent$DefaultConversionValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.ConversionEvent$DefaultConversionValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.admin.v1alpha.ConversionValues", "queryAllDeclaredConstructors": 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 00bb0dd5ccf2..cb5ae59b6e53 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 @@ -38,6 +38,7 @@ 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.ListSubpropertyEventFiltersPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.stub.HttpJsonAnalyticsAdminServiceStub; @@ -3009,6 +3010,7 @@ public void createConversionEventTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue(ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -3059,6 +3061,7 @@ public void createConversionEventTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue(ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -3109,6 +3112,7 @@ public void updateConversionEventTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue(ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -3119,6 +3123,7 @@ public void updateConversionEventTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue(ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -3155,6 +3160,8 @@ public void updateConversionEventExceptionTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue( + ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateConversionEvent(conversionEvent, updateMask); @@ -3173,6 +3180,7 @@ public void getConversionEventTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue(ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -3221,6 +3229,7 @@ public void getConversionEventTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue(ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -10845,14 +10854,23 @@ public void createSubpropertyExceptionTest() throws Exception { } @Test - public void deleteSubpropertyEventFilterTest() 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); - SubpropertyEventFilterName name = - SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]"); + PropertyName parent = PropertyName.of("[PROPERTY]"); + SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); - client.deleteSubpropertyEventFilter(name); + SubpropertyEventFilter actualResponse = + client.createSubpropertyEventFilter(parent, subpropertyEventFilter); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -10870,16 +10888,16 @@ public void deleteSubpropertyEventFilterTest() throws Exception { } @Test - public void deleteSubpropertyEventFilterExceptionTest() throws Exception { + public void createSubpropertyEventFilterExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - SubpropertyEventFilterName name = - SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]"); - client.deleteSubpropertyEventFilter(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. @@ -10887,13 +10905,23 @@ public void deleteSubpropertyEventFilterExceptionTest() throws Exception { } @Test - public void deleteSubpropertyEventFilterTest2() 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-6725/subpropertyEventFilters/subpropertyEventFilter-6725"; + String parent = "properties/propertie-2024"; + SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); - client.deleteSubpropertyEventFilter(name); + SubpropertyEventFilter actualResponse = + client.createSubpropertyEventFilter(parent, subpropertyEventFilter); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -10911,15 +10939,16 @@ public void deleteSubpropertyEventFilterTest2() throws Exception { } @Test - public void deleteSubpropertyEventFilterExceptionTest2() 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-6725/subpropertyEventFilters/subpropertyEventFilter-6725"; - client.deleteSubpropertyEventFilter(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. @@ -10927,7 +10956,7 @@ public void deleteSubpropertyEventFilterExceptionTest2() throws Exception { } @Test - public void createSubpropertyEventFilterTest() throws Exception { + public void getSubpropertyEventFilterTest() throws Exception { SubpropertyEventFilter expectedResponse = SubpropertyEventFilter.newBuilder() .setName( @@ -10938,11 +10967,10 @@ public void createSubpropertyEventFilterTest() throws Exception { .build(); mockService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); + SubpropertyEventFilterName name = + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]"); - SubpropertyEventFilter actualResponse = - client.createSubpropertyEventFilter(parent, subpropertyEventFilter); + SubpropertyEventFilter actualResponse = client.getSubpropertyEventFilter(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -10961,16 +10989,16 @@ public void createSubpropertyEventFilterTest() throws Exception { } @Test - public void createSubpropertyEventFilterExceptionTest() throws Exception { + public void getSubpropertyEventFilterExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); - client.createSubpropertyEventFilter(parent, subpropertyEventFilter); + SubpropertyEventFilterName name = + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]"); + client.getSubpropertyEventFilter(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -10978,7 +11006,7 @@ public void createSubpropertyEventFilterExceptionTest() throws Exception { } @Test - public void createSubpropertyEventFilterTest2() throws Exception { + public void getSubpropertyEventFilterTest2() throws Exception { SubpropertyEventFilter expectedResponse = SubpropertyEventFilter.newBuilder() .setName( @@ -10989,11 +11017,168 @@ public void createSubpropertyEventFilterTest2() throws Exception { .build(); mockService.addResponse(expectedResponse); + String name = "properties/propertie-6725/subpropertyEventFilters/subpropertyEventFilter-6725"; + + SubpropertyEventFilter actualResponse = client.getSubpropertyEventFilter(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSubpropertyEventFilterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "properties/propertie-6725/subpropertyEventFilters/subpropertyEventFilter-6725"; + client.getSubpropertyEventFilter(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSubpropertyEventFiltersTest() throws Exception { + SubpropertyEventFilter responsesElement = SubpropertyEventFilter.newBuilder().build(); + ListSubpropertyEventFiltersResponse expectedResponse = + ListSubpropertyEventFiltersResponse.newBuilder() + .setNextPageToken("") + .addAllSubpropertyEventFilters(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + + ListSubpropertyEventFiltersPagedResponse pagedListResponse = + client.listSubpropertyEventFilters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubpropertyEventFiltersList().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 listSubpropertyEventFiltersExceptionTest() 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.listSubpropertyEventFilters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSubpropertyEventFiltersTest2() throws Exception { + SubpropertyEventFilter responsesElement = SubpropertyEventFilter.newBuilder().build(); + ListSubpropertyEventFiltersResponse expectedResponse = + ListSubpropertyEventFiltersResponse.newBuilder() + .setNextPageToken("") + .addAllSubpropertyEventFilters(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + String parent = "properties/propertie-2024"; - SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); + + ListSubpropertyEventFiltersPagedResponse pagedListResponse = + client.listSubpropertyEventFilters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubpropertyEventFiltersList().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 listSubpropertyEventFiltersExceptionTest2() 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.listSubpropertyEventFilters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSubpropertyEventFilterTest() throws Exception { + SubpropertyEventFilter expectedResponse = + SubpropertyEventFilter.newBuilder() + .setName( + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]") + .toString()) + .setApplyToProperty("applyToProperty267785086") + .addAllFilterClauses(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + SubpropertyEventFilter subpropertyEventFilter = + SubpropertyEventFilter.newBuilder() + .setName( + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]") + .toString()) + .setApplyToProperty("applyToProperty267785086") + .addAllFilterClauses(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); SubpropertyEventFilter actualResponse = - client.createSubpropertyEventFilter(parent, subpropertyEventFilter); + client.updateSubpropertyEventFilter(subpropertyEventFilter, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -11012,16 +11197,105 @@ public void createSubpropertyEventFilterTest2() throws Exception { } @Test - public void createSubpropertyEventFilterExceptionTest2() throws Exception { + public void updateSubpropertyEventFilterExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String parent = "properties/propertie-2024"; - SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); - client.createSubpropertyEventFilter(parent, subpropertyEventFilter); + SubpropertyEventFilter subpropertyEventFilter = + SubpropertyEventFilter.newBuilder() + .setName( + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]") + .toString()) + .setApplyToProperty("applyToProperty267785086") + .addAllFilterClauses(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSubpropertyEventFilter(subpropertyEventFilter, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSubpropertyEventFilterTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + SubpropertyEventFilterName name = + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]"); + + client.deleteSubpropertyEventFilter(name); + + 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 deleteSubpropertyEventFilterExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SubpropertyEventFilterName name = + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]"); + client.deleteSubpropertyEventFilter(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSubpropertyEventFilterTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "properties/propertie-6725/subpropertyEventFilters/subpropertyEventFilter-6725"; + + client.deleteSubpropertyEventFilter(name); + + 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 deleteSubpropertyEventFilterExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "properties/propertie-6725/subpropertyEventFilters/subpropertyEventFilter-6725"; + client.deleteSubpropertyEventFilter(name); 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 a0ac148b36a6..2b8de6fe6f56 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 @@ -38,6 +38,7 @@ 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.ListSubpropertyEventFiltersPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; @@ -2629,6 +2630,7 @@ public void createConversionEventTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue(ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -2675,6 +2677,7 @@ public void createConversionEventTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue(ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -2721,6 +2724,7 @@ public void updateConversionEventTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue(ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -2767,6 +2771,7 @@ public void getConversionEventTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue(ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -2809,6 +2814,7 @@ public void getConversionEventTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setDeletable(true) .setCustom(true) + .setDefaultConversionValue(ConversionEvent.DefaultConversionValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -9454,19 +9460,121 @@ public void createSubpropertyExceptionTest() throws Exception { } @Test - public void deleteSubpropertyEventFilterTest() 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); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); + + SubpropertyEventFilter actualResponse = + client.createSubpropertyEventFilter(parent, subpropertyEventFilter); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSubpropertyEventFilterRequest actualRequest = + ((CreateSubpropertyEventFilterRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(subpropertyEventFilter, actualRequest.getSubpropertyEventFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSubpropertyEventFilterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); + client.createSubpropertyEventFilter(parent, subpropertyEventFilter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + 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 parent = "parent-995424086"; + SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); + + SubpropertyEventFilter actualResponse = + client.createSubpropertyEventFilter(parent, subpropertyEventFilter); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSubpropertyEventFilterRequest actualRequest = + ((CreateSubpropertyEventFilterRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(subpropertyEventFilter, actualRequest.getSubpropertyEventFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSubpropertyEventFilterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); + client.createSubpropertyEventFilter(parent, subpropertyEventFilter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSubpropertyEventFilterTest() throws Exception { + SubpropertyEventFilter expectedResponse = + SubpropertyEventFilter.newBuilder() + .setName( + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]") + .toString()) + .setApplyToProperty("applyToProperty267785086") + .addAllFilterClauses(new ArrayList()) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); SubpropertyEventFilterName name = SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]"); - client.deleteSubpropertyEventFilter(name); + SubpropertyEventFilter actualResponse = client.getSubpropertyEventFilter(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteSubpropertyEventFilterRequest actualRequest = - ((DeleteSubpropertyEventFilterRequest) actualRequests.get(0)); + GetSubpropertyEventFilterRequest actualRequest = + ((GetSubpropertyEventFilterRequest) actualRequests.get(0)); Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( @@ -9476,14 +9584,14 @@ public void deleteSubpropertyEventFilterTest() throws Exception { } @Test - public void deleteSubpropertyEventFilterExceptionTest() throws Exception { + public void getSubpropertyEventFilterExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { SubpropertyEventFilterName name = SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]"); - client.deleteSubpropertyEventFilter(name); + client.getSubpropertyEventFilter(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9491,18 +9599,26 @@ public void deleteSubpropertyEventFilterExceptionTest() throws Exception { } @Test - public void deleteSubpropertyEventFilterTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void getSubpropertyEventFilterTest2() 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"; - client.deleteSubpropertyEventFilter(name); + SubpropertyEventFilter actualResponse = client.getSubpropertyEventFilter(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - DeleteSubpropertyEventFilterRequest actualRequest = - ((DeleteSubpropertyEventFilterRequest) actualRequests.get(0)); + GetSubpropertyEventFilterRequest actualRequest = + ((GetSubpropertyEventFilterRequest) actualRequests.get(0)); Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( @@ -9512,13 +9628,13 @@ public void deleteSubpropertyEventFilterTest2() throws Exception { } @Test - public void deleteSubpropertyEventFilterExceptionTest2() throws Exception { + public void getSubpropertyEventFilterExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { String name = "name3373707"; - client.deleteSubpropertyEventFilter(name); + client.getSubpropertyEventFilter(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9526,31 +9642,31 @@ public void deleteSubpropertyEventFilterExceptionTest2() throws Exception { } @Test - public void createSubpropertyEventFilterTest() throws Exception { - SubpropertyEventFilter expectedResponse = - SubpropertyEventFilter.newBuilder() - .setName( - SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]") - .toString()) - .setApplyToProperty("applyToProperty267785086") - .addAllFilterClauses(new ArrayList()) + public void listSubpropertyEventFiltersTest() throws Exception { + SubpropertyEventFilter responsesElement = SubpropertyEventFilter.newBuilder().build(); + ListSubpropertyEventFiltersResponse expectedResponse = + ListSubpropertyEventFiltersResponse.newBuilder() + .setNextPageToken("") + .addAllSubpropertyEventFilters(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); PropertyName parent = PropertyName.of("[PROPERTY]"); - SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); - SubpropertyEventFilter actualResponse = - client.createSubpropertyEventFilter(parent, subpropertyEventFilter); - Assert.assertEquals(expectedResponse, actualResponse); + ListSubpropertyEventFiltersPagedResponse pagedListResponse = + client.listSubpropertyEventFilters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubpropertyEventFiltersList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateSubpropertyEventFilterRequest actualRequest = - ((CreateSubpropertyEventFilterRequest) actualRequests.get(0)); + ListSubpropertyEventFiltersRequest actualRequest = + ((ListSubpropertyEventFiltersRequest) actualRequests.get(0)); Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(subpropertyEventFilter, actualRequest.getSubpropertyEventFilter()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -9558,14 +9674,13 @@ public void createSubpropertyEventFilterTest() throws Exception { } @Test - public void createSubpropertyEventFilterExceptionTest() throws Exception { + public void listSubpropertyEventFiltersExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { PropertyName parent = PropertyName.of("[PROPERTY]"); - SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); - client.createSubpropertyEventFilter(parent, subpropertyEventFilter); + client.listSubpropertyEventFilters(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -9573,7 +9688,53 @@ public void createSubpropertyEventFilterExceptionTest() throws Exception { } @Test - public void createSubpropertyEventFilterTest2() throws Exception { + public void listSubpropertyEventFiltersTest2() throws Exception { + SubpropertyEventFilter responsesElement = SubpropertyEventFilter.newBuilder().build(); + ListSubpropertyEventFiltersResponse expectedResponse = + ListSubpropertyEventFiltersResponse.newBuilder() + .setNextPageToken("") + .addAllSubpropertyEventFilters(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSubpropertyEventFiltersPagedResponse pagedListResponse = + client.listSubpropertyEventFilters(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSubpropertyEventFiltersList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSubpropertyEventFiltersRequest actualRequest = + ((ListSubpropertyEventFiltersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSubpropertyEventFiltersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSubpropertyEventFilters(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSubpropertyEventFilterTest() throws Exception { SubpropertyEventFilter expectedResponse = SubpropertyEventFilter.newBuilder() .setName( @@ -9584,20 +9745,20 @@ public void createSubpropertyEventFilterTest2() throws Exception { .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); SubpropertyEventFilter actualResponse = - client.createSubpropertyEventFilter(parent, subpropertyEventFilter); + client.updateSubpropertyEventFilter(subpropertyEventFilter, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateSubpropertyEventFilterRequest actualRequest = - ((CreateSubpropertyEventFilterRequest) actualRequests.get(0)); + UpdateSubpropertyEventFilterRequest actualRequest = + ((UpdateSubpropertyEventFilterRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertEquals(subpropertyEventFilter, actualRequest.getSubpropertyEventFilter()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -9605,14 +9766,86 @@ public void createSubpropertyEventFilterTest2() throws Exception { } @Test - public void createSubpropertyEventFilterExceptionTest2() throws Exception { + public void updateSubpropertyEventFilterExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); - client.createSubpropertyEventFilter(parent, subpropertyEventFilter); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSubpropertyEventFilter(subpropertyEventFilter, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSubpropertyEventFilterTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + SubpropertyEventFilterName name = + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]"); + + client.deleteSubpropertyEventFilter(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSubpropertyEventFilterRequest actualRequest = + ((DeleteSubpropertyEventFilterRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSubpropertyEventFilterExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + SubpropertyEventFilterName name = + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]"); + client.deleteSubpropertyEventFilter(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSubpropertyEventFilterTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteSubpropertyEventFilter(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSubpropertyEventFilterRequest actualRequest = + ((DeleteSubpropertyEventFilterRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSubpropertyEventFilterExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.deleteSubpropertyEventFilter(name); 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 c1a5bd6c219f..d70c464cad25 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 @@ -2758,12 +2758,13 @@ public void createSubproperty( } @Override - public void deleteSubpropertyEventFilter( - DeleteSubpropertyEventFilterRequest request, StreamObserver responseObserver) { + public void createSubpropertyEventFilter( + CreateSubpropertyEventFilterRequest request, + StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof Empty) { + if (response instanceof SubpropertyEventFilter) { requests.add(request); - responseObserver.onNext(((Empty) response)); + responseObserver.onNext(((SubpropertyEventFilter) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -2771,16 +2772,16 @@ public void deleteSubpropertyEventFilter( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method DeleteSubpropertyEventFilter, expected %s or %s", + "Unrecognized response type %s for method CreateSubpropertyEventFilter, expected %s or %s", response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), + SubpropertyEventFilter.class.getName(), Exception.class.getName()))); } } @Override - public void createSubpropertyEventFilter( - CreateSubpropertyEventFilterRequest request, + public void getSubpropertyEventFilter( + GetSubpropertyEventFilterRequest request, StreamObserver responseObserver) { Object response = responses.poll(); if (response instanceof SubpropertyEventFilter) { @@ -2793,10 +2794,75 @@ public void createSubpropertyEventFilter( responseObserver.onError( new IllegalArgumentException( String.format( - "Unrecognized response type %s for method CreateSubpropertyEventFilter, expected %s or %s", + "Unrecognized response type %s for method GetSubpropertyEventFilter, expected %s or %s", response == null ? "null" : response.getClass().getName(), SubpropertyEventFilter.class.getName(), Exception.class.getName()))); } } + + @Override + public void listSubpropertyEventFilters( + ListSubpropertyEventFiltersRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSubpropertyEventFiltersResponse) { + requests.add(request); + responseObserver.onNext(((ListSubpropertyEventFiltersResponse) 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 ListSubpropertyEventFilters, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSubpropertyEventFiltersResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateSubpropertyEventFilter( + UpdateSubpropertyEventFilterRequest 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 UpdateSubpropertyEventFilter, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SubpropertyEventFilter.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()))); + } + } } 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 51a3b6b90303..e7c89c1382d0 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 @@ -6457,95 +6457,96 @@ private AnalyticsAdminServiceGrpc() {} } private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest, - com.google.protobuf.Empty> - getDeleteSubpropertyEventFilterMethod; + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter> + getCreateSubpropertyEventFilterMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSubpropertyEventFilter", - requestType = com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.class, - responseType = com.google.protobuf.Empty.class, + 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.DeleteSubpropertyEventFilterRequest, - com.google.protobuf.Empty> - getDeleteSubpropertyEventFilterMethod() { + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter> + getCreateSubpropertyEventFilterMethod() { io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest, - com.google.protobuf.Empty> - getDeleteSubpropertyEventFilterMethod; - if ((getDeleteSubpropertyEventFilterMethod = - AnalyticsAdminServiceGrpc.getDeleteSubpropertyEventFilterMethod) + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter> + getCreateSubpropertyEventFilterMethod; + if ((getCreateSubpropertyEventFilterMethod = + AnalyticsAdminServiceGrpc.getCreateSubpropertyEventFilterMethod) == null) { synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteSubpropertyEventFilterMethod = - AnalyticsAdminServiceGrpc.getDeleteSubpropertyEventFilterMethod) + if ((getCreateSubpropertyEventFilterMethod = + AnalyticsAdminServiceGrpc.getCreateSubpropertyEventFilterMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteSubpropertyEventFilterMethod = - getDeleteSubpropertyEventFilterMethod = + AnalyticsAdminServiceGrpc.getCreateSubpropertyEventFilterMethod = + getCreateSubpropertyEventFilterMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteSubpropertyEventFilter")) + generateFullMethodName(SERVICE_NAME, "CreateSubpropertyEventFilter")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) + com.google.analytics.admin.v1alpha.SubpropertyEventFilter + .getDefaultInstance())) .setSchemaDescriptor( new AnalyticsAdminServiceMethodDescriptorSupplier( - "DeleteSubpropertyEventFilter")) + "CreateSubpropertyEventFilter")) .build(); } } } - return getDeleteSubpropertyEventFilterMethod; + return getCreateSubpropertyEventFilterMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest, + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest, com.google.analytics.admin.v1alpha.SubpropertyEventFilter> - getCreateSubpropertyEventFilterMethod; + getGetSubpropertyEventFilterMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSubpropertyEventFilter", - requestType = com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest.class, + fullMethodName = SERVICE_NAME + '/' + "GetSubpropertyEventFilter", + requestType = com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest.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.GetSubpropertyEventFilterRequest, com.google.analytics.admin.v1alpha.SubpropertyEventFilter> - getCreateSubpropertyEventFilterMethod() { + getGetSubpropertyEventFilterMethod() { io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest, + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest, com.google.analytics.admin.v1alpha.SubpropertyEventFilter> - getCreateSubpropertyEventFilterMethod; - if ((getCreateSubpropertyEventFilterMethod = - AnalyticsAdminServiceGrpc.getCreateSubpropertyEventFilterMethod) + getGetSubpropertyEventFilterMethod; + if ((getGetSubpropertyEventFilterMethod = + AnalyticsAdminServiceGrpc.getGetSubpropertyEventFilterMethod) == null) { synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateSubpropertyEventFilterMethod = - AnalyticsAdminServiceGrpc.getCreateSubpropertyEventFilterMethod) + if ((getGetSubpropertyEventFilterMethod = + AnalyticsAdminServiceGrpc.getGetSubpropertyEventFilterMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateSubpropertyEventFilterMethod = - getCreateSubpropertyEventFilterMethod = + AnalyticsAdminServiceGrpc.getGetSubpropertyEventFilterMethod = + getGetSubpropertyEventFilterMethod = io.grpc.MethodDescriptor - . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateSubpropertyEventFilter")) + generateFullMethodName(SERVICE_NAME, "GetSubpropertyEventFilter")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( @@ -6553,12 +6554,170 @@ private AnalyticsAdminServiceGrpc() {} .getDefaultInstance())) .setSchemaDescriptor( new AnalyticsAdminServiceMethodDescriptorSupplier( - "CreateSubpropertyEventFilter")) + "GetSubpropertyEventFilter")) .build(); } } } - return getCreateSubpropertyEventFilterMethod; + return getGetSubpropertyEventFilterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest, + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse> + getListSubpropertyEventFiltersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSubpropertyEventFilters", + requestType = com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest, + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse> + getListSubpropertyEventFiltersMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest, + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse> + getListSubpropertyEventFiltersMethod; + if ((getListSubpropertyEventFiltersMethod = + AnalyticsAdminServiceGrpc.getListSubpropertyEventFiltersMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListSubpropertyEventFiltersMethod = + AnalyticsAdminServiceGrpc.getListSubpropertyEventFiltersMethod) + == null) { + AnalyticsAdminServiceGrpc.getListSubpropertyEventFiltersMethod = + getListSubpropertyEventFiltersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListSubpropertyEventFilters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "ListSubpropertyEventFilters")) + .build(); + } + } + } + return getListSubpropertyEventFiltersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter> + getUpdateSubpropertyEventFilterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSubpropertyEventFilter", + requestType = com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest.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.UpdateSubpropertyEventFilterRequest, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter> + getUpdateSubpropertyEventFilterMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter> + getUpdateSubpropertyEventFilterMethod; + if ((getUpdateSubpropertyEventFilterMethod = + AnalyticsAdminServiceGrpc.getUpdateSubpropertyEventFilterMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateSubpropertyEventFilterMethod = + AnalyticsAdminServiceGrpc.getUpdateSubpropertyEventFilterMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateSubpropertyEventFilterMethod = + getUpdateSubpropertyEventFilterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateSubpropertyEventFilter")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateSubpropertyEventFilter")) + .build(); + } + } + } + return getUpdateSubpropertyEventFilterMethod; + } + + 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; } /** Creates a new async stub that supports all call types for the service */ @@ -7852,8 +8011,10 @@ default void updateAttributionSettings( * 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. + * Data Access Reports can be requested for a property. Reports may be + * requested for any property, but dimensions that aren't related to quota can + * only be requested on Google Analytics 360 properties. 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 @@ -8592,29 +8753,75 @@ default void createSubproperty( * * *
-     * Deletes a subproperty event filter.
+     * Creates a subproperty Event Filter.
      * 
*/ - default void deleteSubpropertyEventFilter( - com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest request, - io.grpc.stub.StreamObserver responseObserver) { + default void createSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteSubpropertyEventFilterMethod(), responseObserver); + getCreateSubpropertyEventFilterMethod(), responseObserver); } /** * * *
-     * Creates a subproperty Event Filter.
+     * Lookup for a single subproperty Event Filter.
      * 
*/ - default void createSubpropertyEventFilter( - com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest request, + default void getSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateSubpropertyEventFilterMethod(), responseObserver); + getGetSubpropertyEventFilterMethod(), responseObserver); + } + + /** + * + * + *
+     * List all subproperty Event Filters on a property.
+     * 
+ */ + default void listSubpropertyEventFilters( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSubpropertyEventFiltersMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a subproperty Event Filter.
+     * 
+ */ + default void updateSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSubpropertyEventFilterMethod(), 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); } } @@ -10057,8 +10264,10 @@ public void updateAttributionSettings( * 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. + * Data Access Reports can be requested for a property. Reports may be + * requested for any property, but dimensions that aren't related to quota can + * only be requested on Google Analytics 360 properties. 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 @@ -10891,14 +11100,15 @@ public void createSubproperty( * * *
-     * Deletes a subproperty event filter.
+     * Creates a subproperty Event Filter.
      * 
*/ - public void deleteSubpropertyEventFilter( - com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void createSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSubpropertyEventFilterMethod(), getCallOptions()), + getChannel().newCall(getCreateSubpropertyEventFilterMethod(), getCallOptions()), request, responseObserver); } @@ -10907,15 +11117,66 @@ public void deleteSubpropertyEventFilter( * * *
-     * Creates a subproperty Event Filter.
+     * Lookup for a single subproperty Event Filter.
      * 
*/ - public void createSubpropertyEventFilter( - com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest request, + public void getSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSubpropertyEventFilterMethod(), getCallOptions()), + getChannel().newCall(getGetSubpropertyEventFilterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List all subproperty Event Filters on a property.
+     * 
+ */ + public void listSubpropertyEventFilters( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSubpropertyEventFiltersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a subproperty Event Filter.
+     * 
+ */ + public void updateSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSubpropertyEventFilterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a subproperty event filter.
+     * 
+ */ + 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); } @@ -12080,8 +12341,10 @@ public com.google.analytics.admin.v1alpha.AttributionSettings updateAttributionS * 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. + * Data Access Reports can be requested for a property. Reports may be + * requested for any property, but dimensions that aren't related to quota can + * only be requested on Google Analytics 360 properties. 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 @@ -12735,26 +12998,66 @@ public com.google.analytics.admin.v1alpha.CreateSubpropertyResponse createSubpro * * *
-     * Deletes a subproperty event filter.
+     * Creates a subproperty Event Filter.
      * 
*/ - public com.google.protobuf.Empty deleteSubpropertyEventFilter( - com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest request) { + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter createSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSubpropertyEventFilterMethod(), getCallOptions(), request); + getChannel(), getCreateSubpropertyEventFilterMethod(), getCallOptions(), request); } /** * * *
-     * Creates a subproperty Event Filter.
+     * Lookup for a single subproperty Event Filter.
      * 
*/ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilter createSubpropertyEventFilter( - com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest request) { + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSubpropertyEventFilterMethod(), getCallOptions(), request); + getChannel(), getGetSubpropertyEventFilterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List all subproperty Event Filters on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse + listSubpropertyEventFilters( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSubpropertyEventFiltersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a subproperty Event Filter.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter updateSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSubpropertyEventFilterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a subproperty event filter.
+     * 
+ */ + public com.google.protobuf.Empty deleteSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSubpropertyEventFilterMethod(), getCallOptions(), request); } } @@ -14007,8 +14310,10 @@ protected AnalyticsAdminServiceFutureStub build( * 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. + * Data Access Reports can be requested for a property. Reports may be + * requested for any property, but dimensions that aren't related to quota can + * only be requested on Google Analytics 360 properties. 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 @@ -14726,29 +15031,74 @@ protected AnalyticsAdminServiceFutureStub build( * * *
-     * Deletes a subproperty event filter.
+     * Creates a subproperty Event Filter.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteSubpropertyEventFilter( - com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest request) { + 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(getDeleteSubpropertyEventFilterMethod(), getCallOptions()), request); + getChannel().newCall(getCreateSubpropertyEventFilterMethod(), getCallOptions()), request); } /** * * *
-     * Creates a subproperty Event Filter.
+     * Lookup for a single subproperty Event Filter.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.SubpropertyEventFilter> - createSubpropertyEventFilter( - com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest request) { + getSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSubpropertyEventFilterMethod(), getCallOptions()), request); + getChannel().newCall(getGetSubpropertyEventFilterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List all subproperty Event Filters on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse> + listSubpropertyEventFilters( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSubpropertyEventFiltersMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a subproperty Event Filter.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter> + updateSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSubpropertyEventFilterMethod(), 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); } } @@ -14878,8 +15228,11 @@ protected AnalyticsAdminServiceFutureStub build( 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 int METHODID_CREATE_SUBPROPERTY_EVENT_FILTER = 126; + private static final int METHODID_GET_SUBPROPERTY_EVENT_FILTER = 127; + private static final int METHODID_LIST_SUBPROPERTY_EVENT_FILTERS = 128; + private static final int METHODID_UPDATE_SUBPROPERTY_EVENT_FILTER = 129; + private static final int METHODID_DELETE_SUBPROPERTY_EVENT_FILTER = 130; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -15718,11 +16071,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv 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, @@ -15730,6 +16078,32 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.analytics.admin.v1alpha.SubpropertyEventFilter>) responseObserver); break; + case METHODID_GET_SUBPROPERTY_EVENT_FILTER: + serviceImpl.getSubpropertyEventFilter( + (com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter>) + responseObserver); + break; + case METHODID_LIST_SUBPROPERTY_EVENT_FILTERS: + serviceImpl.listSubpropertyEventFilters( + (com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse>) + responseObserver); + break; + case METHODID_UPDATE_SUBPROPERTY_EVENT_FILTER: + serviceImpl.updateSubpropertyEventFilter( + (com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter>) + responseObserver); + break; + case METHODID_DELETE_SUBPROPERTY_EVENT_FILTER: + serviceImpl.deleteSubpropertyEventFilter( + (com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -16623,12 +16997,6 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser 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( @@ -16636,6 +17004,33 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest, com.google.analytics.admin.v1alpha.SubpropertyEventFilter>( service, METHODID_CREATE_SUBPROPERTY_EVENT_FILTER))) + .addMethod( + getGetSubpropertyEventFilterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter>( + service, METHODID_GET_SUBPROPERTY_EVENT_FILTER))) + .addMethod( + getListSubpropertyEventFiltersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest, + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse>( + service, METHODID_LIST_SUBPROPERTY_EVENT_FILTERS))) + .addMethod( + getUpdateSubpropertyEventFilterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter>( + service, METHODID_UPDATE_SUBPROPERTY_EVENT_FILTER))) + .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))) .build(); } @@ -16813,8 +17208,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateRollupPropertySourceLinkMethod()) .addMethod(getDeleteRollupPropertySourceLinkMethod()) .addMethod(getCreateSubpropertyMethod()) - .addMethod(getDeleteSubpropertyEventFilterMethod()) .addMethod(getCreateSubpropertyEventFilterMethod()) + .addMethod(getGetSubpropertyEventFilterMethod()) + .addMethod(getListSubpropertyEventFiltersMethod()) + .addMethod(getUpdateSubpropertyEventFilterMethod()) + .addMethod(getDeleteSubpropertyEventFilterMethod()) .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 134aee0742d9..00d04e85a4d7 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 @@ -1334,7 +1334,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "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" + + "m/SubpropertyEventFilter2\373\356\001\n\025AnalyticsA" + "dminService\022\223\001\n\nGetAccount\0221.google.anal" + "ytics.admin.v1alpha.GetAccountRequest\032\'." + "google.analytics.admin.v1alpha.Account\")" @@ -2061,29 +2061,48 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "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" + + "es:createSubproperty:\001*\022\227\002\n\034CreateSubpro" + "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" + + "n.v1alpha.CreateSubpropertyEventFilterRe" + + "quest\0326.google.analytics.admin.v1alpha.S" + + "ubpropertyEventFilter\"z\332A\037parent,subprop" + + "erty_event_filter\202\323\344\223\002R\"6/v1alpha/{paren" + + "t=properties/*}/subpropertyEventFilters:" + + "\030subproperty_event_filter\022\334\001\n\031GetSubprop" + + "ertyEventFilter\022@.google.analytics.admin" + + ".v1alpha.GetSubpropertyEventFilterReques" + + "t\0326.google.analytics.admin.v1alpha.Subpr" + + "opertyEventFilter\"E\332A\004name\202\323\344\223\0028\0226/v1alp" + + "ha/{name=properties/*/subpropertyEventFi" + + "lters/*}\022\357\001\n\033ListSubpropertyEventFilters" + + "\022B.google.analytics.admin.v1alpha.ListSu" + + "bpropertyEventFiltersRequest\032C.google.an" + + "alytics.admin.v1alpha.ListSubpropertyEve" + + "ntFiltersResponse\"G\332A\006parent\202\323\344\223\0028\0226/v1a" + + "lpha/{parent=properties/*}/subpropertyEv" + + "entFilters\022\266\002\n\034UpdateSubpropertyEventFil" + + "ter\022C.google.analytics.admin.v1alpha.Upd" + + "ateSubpropertyEventFilterRequest\0326.googl" + + "e.analytics.admin.v1alpha.SubpropertyEve" + + "ntFilter\"\230\001\332A$subproperty_event_filter,u" + + "pdate_mask\202\323\344\223\002k2O/v1alpha/{subproperty_" + + "event_filter.name=properties/*/subproper" + + "tyEventFilters/*}:\030subproperty_event_fil" + + "ter\022\302\001\n\034DeleteSubpropertyEventFilter\022C.g" + + "oogle.analytics.admin.v1alpha.DeleteSubp" + + "ropertyEventFilterRequest\032\026.google.proto" + + "buf.Empty\"E\332A\004name\202\323\344\223\0028*6/v1alpha/{name" + + "=properties/*/subpropertyEventFilters/*}" + + "\032\374\001\312A\035analyticsadmin.googleapis.com\322A\330\001h" + + "ttps://www.googleapis.com/auth/analytics" + + ".edit,https://www.googleapis.com/auth/an" + + "alytics.manage.users,https://www.googlea" + + "pis.com/auth/analytics.manage.users.read" + + "only,https://www.googleapis.com/auth/ana" + + "lytics.readonlyB{\n\"com.google.analytics." + + "admin.v1alphaB\023AnalyticsAdminProtoP\001Z>cl" + + "oud.google.com/go/analytics/admin/apiv1a" + + "lpha/adminpb;adminpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettings.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettings.java index 14d8fcdda192..1f41e9668c48 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettings.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettings.java @@ -472,83 +472,6 @@ public enum ReportingAttributionModel implements com.google.protobuf.ProtocolMes * PAID_AND_ORGANIC_CHANNELS_LAST_CLICK = 2; */ PAID_AND_ORGANIC_CHANNELS_LAST_CLICK(2), - /** - * - * - *
-     * Starting in June 2023, new properties can no longer use this model.
-     * See
-     * [Analytics
-     * Help](https://support.google.com/analytics/answer/9164320#040623)
-     * for more details.
-     * Starting in September 2023, we will sunset this model for all properties.
-     *
-     * Gives all credit for the conversion to the first channel that a customer
-     * clicked (or engaged view through for YouTube) before converting.
-     * Previously CROSS_CHANNEL_FIRST_CLICK
-     * 
- * - * PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK = 3; - */ - PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK(3), - /** - * - * - *
-     * Starting in June 2023, new properties can no longer use this model.
-     * See
-     * [Analytics
-     * Help](https://support.google.com/analytics/answer/9164320#040623)
-     * for more details.
-     * Starting in September 2023, we will sunset this model for all properties.
-     *
-     * Distributes the credit for the conversion equally across all the channels
-     * a customer clicked (or engaged view through for YouTube) before
-     * converting.
-     * Previously CROSS_CHANNEL_LINEAR
-     * 
- * - * PAID_AND_ORGANIC_CHANNELS_LINEAR = 4; - */ - PAID_AND_ORGANIC_CHANNELS_LINEAR(4), - /** - * - * - *
-     * Starting in June 2023, new properties can no longer use this model.
-     * See
-     * [Analytics
-     * Help](https://support.google.com/analytics/answer/9164320#040623)
-     * for more details.
-     * Starting in September 2023, we will sunset this model for all properties.
-     *
-     * Attributes 40% credit to the first and last interaction, and the
-     * remaining 20% credit is distributed evenly to the middle interactions.
-     * Previously CROSS_CHANNEL_POSITION_BASED
-     * 
- * - * PAID_AND_ORGANIC_CHANNELS_POSITION_BASED = 5; - */ - PAID_AND_ORGANIC_CHANNELS_POSITION_BASED(5), - /** - * - * - *
-     * Starting in June 2023, new properties can no longer use this model.
-     * See
-     * [Analytics
-     * Help](https://support.google.com/analytics/answer/9164320#040623)
-     * for more details.
-     * Starting in September 2023, we will sunset this model for all properties.
-     *
-     * Gives more credit to the touchpoints that happened closer in time to
-     * the conversion.
-     * Previously CROSS_CHANNEL_TIME_DECAY
-     * 
- * - * PAID_AND_ORGANIC_CHANNELS_TIME_DECAY = 6; - */ - PAID_AND_ORGANIC_CHANNELS_TIME_DECAY(6), /** * * @@ -600,83 +523,6 @@ public enum ReportingAttributionModel implements com.google.protobuf.ProtocolMes * PAID_AND_ORGANIC_CHANNELS_LAST_CLICK = 2; */ public static final int PAID_AND_ORGANIC_CHANNELS_LAST_CLICK_VALUE = 2; - /** - * - * - *
-     * Starting in June 2023, new properties can no longer use this model.
-     * See
-     * [Analytics
-     * Help](https://support.google.com/analytics/answer/9164320#040623)
-     * for more details.
-     * Starting in September 2023, we will sunset this model for all properties.
-     *
-     * Gives all credit for the conversion to the first channel that a customer
-     * clicked (or engaged view through for YouTube) before converting.
-     * Previously CROSS_CHANNEL_FIRST_CLICK
-     * 
- * - * PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK = 3; - */ - public static final int PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK_VALUE = 3; - /** - * - * - *
-     * Starting in June 2023, new properties can no longer use this model.
-     * See
-     * [Analytics
-     * Help](https://support.google.com/analytics/answer/9164320#040623)
-     * for more details.
-     * Starting in September 2023, we will sunset this model for all properties.
-     *
-     * Distributes the credit for the conversion equally across all the channels
-     * a customer clicked (or engaged view through for YouTube) before
-     * converting.
-     * Previously CROSS_CHANNEL_LINEAR
-     * 
- * - * PAID_AND_ORGANIC_CHANNELS_LINEAR = 4; - */ - public static final int PAID_AND_ORGANIC_CHANNELS_LINEAR_VALUE = 4; - /** - * - * - *
-     * Starting in June 2023, new properties can no longer use this model.
-     * See
-     * [Analytics
-     * Help](https://support.google.com/analytics/answer/9164320#040623)
-     * for more details.
-     * Starting in September 2023, we will sunset this model for all properties.
-     *
-     * Attributes 40% credit to the first and last interaction, and the
-     * remaining 20% credit is distributed evenly to the middle interactions.
-     * Previously CROSS_CHANNEL_POSITION_BASED
-     * 
- * - * PAID_AND_ORGANIC_CHANNELS_POSITION_BASED = 5; - */ - public static final int PAID_AND_ORGANIC_CHANNELS_POSITION_BASED_VALUE = 5; - /** - * - * - *
-     * Starting in June 2023, new properties can no longer use this model.
-     * See
-     * [Analytics
-     * Help](https://support.google.com/analytics/answer/9164320#040623)
-     * for more details.
-     * Starting in September 2023, we will sunset this model for all properties.
-     *
-     * Gives more credit to the touchpoints that happened closer in time to
-     * the conversion.
-     * Previously CROSS_CHANNEL_TIME_DECAY
-     * 
- * - * PAID_AND_ORGANIC_CHANNELS_TIME_DECAY = 6; - */ - public static final int PAID_AND_ORGANIC_CHANNELS_TIME_DECAY_VALUE = 6; /** * * @@ -720,14 +566,6 @@ public static ReportingAttributionModel forNumber(int value) { return PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN; case 2: return PAID_AND_ORGANIC_CHANNELS_LAST_CLICK; - case 3: - return PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK; - case 4: - return PAID_AND_ORGANIC_CHANNELS_LINEAR; - case 5: - return PAID_AND_ORGANIC_CHANNELS_POSITION_BASED; - case 6: - return PAID_AND_ORGANIC_CHANNELS_TIME_DECAY; case 7: return GOOGLE_PAID_CHANNELS_LAST_CLICK; default: diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroup.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroup.java index 057ff143f2f4..f5cb7f41a5a1 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroup.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroup.java @@ -230,7 +230,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-   * Required. The grouping rules of channels. Maximum number of rules is 25.
+   * Required. The grouping rules of channels. Maximum number of rules is 50.
    * 
* * @@ -245,7 +245,7 @@ public java.util.List getGroupi * * *
-   * Required. The grouping rules of channels. Maximum number of rules is 25.
+   * Required. The grouping rules of channels. Maximum number of rules is 50.
    * 
* * @@ -261,7 +261,7 @@ public java.util.List getGroupi * * *
-   * Required. The grouping rules of channels. Maximum number of rules is 25.
+   * Required. The grouping rules of channels. Maximum number of rules is 50.
    * 
* * @@ -276,7 +276,7 @@ public int getGroupingRuleCount() { * * *
-   * Required. The grouping rules of channels. Maximum number of rules is 25.
+   * Required. The grouping rules of channels. Maximum number of rules is 50.
    * 
* * @@ -291,7 +291,7 @@ public com.google.analytics.admin.v1alpha.GroupingRule getGroupingRule(int index * * *
-   * Required. The grouping rules of channels. Maximum number of rules is 25.
+   * Required. The grouping rules of channels. Maximum number of rules is 50.
    * 
* * @@ -310,8 +310,9 @@ public com.google.analytics.admin.v1alpha.GroupingRuleOrBuilder getGroupingRuleO * * *
-   * Output only. Default Channel Group defined by Google, which cannot be
-   * updated.
+   * Output only. If true, then this channel group is the Default Channel Group
+   * predefined by Google Analytics. Display name and grouping rules cannot be
+   * updated for this channel group.
    * 
* * bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1157,7 +1158,7 @@ private void ensureGroupingRuleIsMutable() { * * *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * Required. The grouping rules of channels. Maximum number of rules is 50.
      * 
* * @@ -1175,7 +1176,7 @@ public java.util.List getGroupi * * *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * Required. The grouping rules of channels. Maximum number of rules is 50.
      * 
* * @@ -1193,7 +1194,7 @@ public int getGroupingRuleCount() { * * *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * Required. The grouping rules of channels. Maximum number of rules is 50.
      * 
* * @@ -1211,7 +1212,7 @@ public com.google.analytics.admin.v1alpha.GroupingRule getGroupingRule(int index * * *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * Required. The grouping rules of channels. Maximum number of rules is 50.
      * 
* * @@ -1236,7 +1237,7 @@ public Builder setGroupingRule( * * *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * Required. The grouping rules of channels. Maximum number of rules is 50.
      * 
* * @@ -1258,7 +1259,7 @@ public Builder setGroupingRule( * * *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * Required. The grouping rules of channels. Maximum number of rules is 50.
      * 
* * @@ -1282,7 +1283,7 @@ public Builder addGroupingRule(com.google.analytics.admin.v1alpha.GroupingRule v * * *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * Required. The grouping rules of channels. Maximum number of rules is 50.
      * 
* * @@ -1307,7 +1308,7 @@ public Builder addGroupingRule( * * *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * Required. The grouping rules of channels. Maximum number of rules is 50.
      * 
* * @@ -1329,7 +1330,7 @@ public Builder addGroupingRule( * * *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * Required. The grouping rules of channels. Maximum number of rules is 50.
      * 
* * @@ -1351,7 +1352,7 @@ public Builder addGroupingRule( * * *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * Required. The grouping rules of channels. Maximum number of rules is 50.
      * 
* * @@ -1373,7 +1374,7 @@ public Builder addAllGroupingRule( * * *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * Required. The grouping rules of channels. Maximum number of rules is 50.
      * 
* * @@ -1394,7 +1395,7 @@ public Builder clearGroupingRule() { * * *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * Required. The grouping rules of channels. Maximum number of rules is 50.
      * 
* * @@ -1415,7 +1416,7 @@ public Builder removeGroupingRule(int index) { * * *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * Required. The grouping rules of channels. Maximum number of rules is 50.
      * 
* * @@ -1430,7 +1431,7 @@ public com.google.analytics.admin.v1alpha.GroupingRule.Builder getGroupingRuleBu * * *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * Required. The grouping rules of channels. Maximum number of rules is 50.
      * 
* * @@ -1449,7 +1450,7 @@ public com.google.analytics.admin.v1alpha.GroupingRuleOrBuilder getGroupingRuleO * * *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * Required. The grouping rules of channels. Maximum number of rules is 50.
      * 
* * @@ -1468,7 +1469,7 @@ public com.google.analytics.admin.v1alpha.GroupingRuleOrBuilder getGroupingRuleO * * *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * Required. The grouping rules of channels. Maximum number of rules is 50.
      * 
* * @@ -1483,7 +1484,7 @@ public com.google.analytics.admin.v1alpha.GroupingRule.Builder addGroupingRuleBu * * *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * Required. The grouping rules of channels. Maximum number of rules is 50.
      * 
* * @@ -1499,7 +1500,7 @@ public com.google.analytics.admin.v1alpha.GroupingRule.Builder addGroupingRuleBu * * *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * Required. The grouping rules of channels. Maximum number of rules is 50.
      * 
* * @@ -1533,8 +1534,9 @@ public com.google.analytics.admin.v1alpha.GroupingRule.Builder addGroupingRuleBu * * *
-     * Output only. Default Channel Group defined by Google, which cannot be
-     * updated.
+     * Output only. If true, then this channel group is the Default Channel Group
+     * predefined by Google Analytics. Display name and grouping rules cannot be
+     * updated for this channel group.
      * 
* * bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1549,8 +1551,9 @@ public boolean getSystemDefined() { * * *
-     * Output only. Default Channel Group defined by Google, which cannot be
-     * updated.
+     * Output only. If true, then this channel group is the Default Channel Group
+     * predefined by Google Analytics. Display name and grouping rules cannot be
+     * updated for this channel group.
      * 
* * bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1569,8 +1572,9 @@ public Builder setSystemDefined(boolean value) { * * *
-     * Output only. Default Channel Group defined by Google, which cannot be
-     * updated.
+     * Output only. If true, then this channel group is the Default Channel Group
+     * predefined by Google Analytics. Display name and grouping rules cannot be
+     * updated for this channel group.
      * 
* * bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupOrBuilder.java index c9174c9c4a38..ba1312be2507 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupOrBuilder.java @@ -106,7 +106,7 @@ public interface ChannelGroupOrBuilder * * *
-   * Required. The grouping rules of channels. Maximum number of rules is 25.
+   * Required. The grouping rules of channels. Maximum number of rules is 50.
    * 
* * @@ -118,7 +118,7 @@ public interface ChannelGroupOrBuilder * * *
-   * Required. The grouping rules of channels. Maximum number of rules is 25.
+   * Required. The grouping rules of channels. Maximum number of rules is 50.
    * 
* * @@ -130,7 +130,7 @@ public interface ChannelGroupOrBuilder * * *
-   * Required. The grouping rules of channels. Maximum number of rules is 25.
+   * Required. The grouping rules of channels. Maximum number of rules is 50.
    * 
* * @@ -142,7 +142,7 @@ public interface ChannelGroupOrBuilder * * *
-   * Required. The grouping rules of channels. Maximum number of rules is 25.
+   * Required. The grouping rules of channels. Maximum number of rules is 50.
    * 
* * @@ -155,7 +155,7 @@ public interface ChannelGroupOrBuilder * * *
-   * Required. The grouping rules of channels. Maximum number of rules is 25.
+   * Required. The grouping rules of channels. Maximum number of rules is 50.
    * 
* * @@ -168,8 +168,9 @@ public interface ChannelGroupOrBuilder * * *
-   * Output only. Default Channel Group defined by Google, which cannot be
-   * updated.
+   * Output only. If true, then this channel group is the Default Channel Group
+   * predefined by Google Analytics. Display name and grouping rules cannot be
+   * updated for this channel group.
    * 
* * bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java index bd1eac10cc75..07f9fd3cbfe0 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java @@ -229,6 +229,926 @@ private ConversionCountingMethod(int value) { // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod) } + public interface DefaultConversionValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * This value will be used to populate the value for all conversions
+     * of the specified event_name where the event "value" parameter is unset.
+     * 
+ * + * optional double value = 1; + * + * @return Whether the value field is set. + */ + boolean hasValue(); + /** + * + * + *
+     * This value will be used to populate the value for all conversions
+     * of the specified event_name where the event "value" parameter is unset.
+     * 
+ * + * optional double value = 1; + * + * @return The value. + */ + double getValue(); + + /** + * + * + *
+     * When a conversion event for this event_name has no set currency,
+     * this currency will be applied as the default. Must be in ISO 4217
+     * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
+     * more.
+     * 
+ * + * optional string currency_code = 2; + * + * @return Whether the currencyCode field is set. + */ + boolean hasCurrencyCode(); + /** + * + * + *
+     * When a conversion event for this event_name has no set currency,
+     * this currency will be applied as the default. Must be in ISO 4217
+     * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
+     * more.
+     * 
+ * + * optional string currency_code = 2; + * + * @return The currencyCode. + */ + java.lang.String getCurrencyCode(); + /** + * + * + *
+     * When a conversion event for this event_name has no set currency,
+     * this currency will be applied as the default. Must be in ISO 4217
+     * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
+     * more.
+     * 
+ * + * optional string currency_code = 2; + * + * @return The bytes for currencyCode. + */ + com.google.protobuf.ByteString getCurrencyCodeBytes(); + } + /** + * + * + *
+   * Defines a default value/currency for a conversion event. Both value and
+   * currency must be provided.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue} + */ + public static final class DefaultConversionValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue) + DefaultConversionValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use DefaultConversionValue.newBuilder() to construct. + private DefaultConversionValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DefaultConversionValue() { + currencyCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DefaultConversionValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ConversionEvent_DefaultConversionValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ConversionEvent_DefaultConversionValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue.class, + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue.Builder + .class); + } + + private int bitField0_; + public static final int VALUE_FIELD_NUMBER = 1; + private double value_ = 0D; + /** + * + * + *
+     * This value will be used to populate the value for all conversions
+     * of the specified event_name where the event "value" parameter is unset.
+     * 
+ * + * optional double value = 1; + * + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * This value will be used to populate the value for all conversions
+     * of the specified event_name where the event "value" parameter is unset.
+     * 
+ * + * optional double value = 1; + * + * @return The value. + */ + @java.lang.Override + public double getValue() { + return value_; + } + + public static final int CURRENCY_CODE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object currencyCode_ = ""; + /** + * + * + *
+     * When a conversion event for this event_name has no set currency,
+     * this currency will be applied as the default. Must be in ISO 4217
+     * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
+     * more.
+     * 
+ * + * optional string currency_code = 2; + * + * @return Whether the currencyCode field is set. + */ + @java.lang.Override + public boolean hasCurrencyCode() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * When a conversion event for this event_name has no set currency,
+     * this currency will be applied as the default. Must be in ISO 4217
+     * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
+     * more.
+     * 
+ * + * optional string currency_code = 2; + * + * @return The currencyCode. + */ + @java.lang.Override + public java.lang.String getCurrencyCode() { + java.lang.Object ref = currencyCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currencyCode_ = s; + return s; + } + } + /** + * + * + *
+     * When a conversion event for this event_name has no set currency,
+     * this currency will be applied as the default. Must be in ISO 4217
+     * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
+     * more.
+     * 
+ * + * optional string currency_code = 2; + * + * @return The bytes for currencyCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCurrencyCodeBytes() { + java.lang.Object ref = currencyCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currencyCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(1, value_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, currencyCode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, value_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, currencyCode_); + } + 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.ConversionEvent.DefaultConversionValue)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue other = + (com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue) obj; + + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (java.lang.Double.doubleToLongBits(getValue()) + != java.lang.Double.doubleToLongBits(other.getValue())) return false; + } + if (hasCurrencyCode() != other.hasCurrencyCode()) return false; + if (hasCurrencyCode()) { + if (!getCurrencyCode().equals(other.getCurrencyCode())) 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 (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getValue())); + } + if (hasCurrencyCode()) { + hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; + hash = (53 * hash) + getCurrencyCode().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Defines a default value/currency for a conversion event. Both value and
+     * currency must be provided.
+     * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue) + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ConversionEvent_DefaultConversionValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ConversionEvent_DefaultConversionValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue.class, + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + value_ = 0D; + currencyCode_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ConversionEvent_DefaultConversionValue_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue build() { + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + buildPartial() { + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue result = + new com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.currencyCode_ = currencyCode_; + to_bitField0_ |= 0x00000002; + } + 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.ConversionEvent.DefaultConversionValue) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue other) { + if (other + == com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + .getDefaultInstance()) return this; + if (other.hasValue()) { + setValue(other.getValue()); + } + if (other.hasCurrencyCode()) { + currencyCode_ = other.currencyCode_; + 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 9: + { + value_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 18: + { + currencyCode_ = 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 double value_; + /** + * + * + *
+       * This value will be used to populate the value for all conversions
+       * of the specified event_name where the event "value" parameter is unset.
+       * 
+ * + * optional double value = 1; + * + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * This value will be used to populate the value for all conversions
+       * of the specified event_name where the event "value" parameter is unset.
+       * 
+ * + * optional double value = 1; + * + * @return The value. + */ + @java.lang.Override + public double getValue() { + return value_; + } + /** + * + * + *
+       * This value will be used to populate the value for all conversions
+       * of the specified event_name where the event "value" parameter is unset.
+       * 
+ * + * optional double value = 1; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(double value) { + + value_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * This value will be used to populate the value for all conversions
+       * of the specified event_name where the event "value" parameter is unset.
+       * 
+ * + * optional double value = 1; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000001); + value_ = 0D; + onChanged(); + return this; + } + + private java.lang.Object currencyCode_ = ""; + /** + * + * + *
+       * When a conversion event for this event_name has no set currency,
+       * this currency will be applied as the default. Must be in ISO 4217
+       * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
+       * more.
+       * 
+ * + * optional string currency_code = 2; + * + * @return Whether the currencyCode field is set. + */ + public boolean hasCurrencyCode() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * When a conversion event for this event_name has no set currency,
+       * this currency will be applied as the default. Must be in ISO 4217
+       * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
+       * more.
+       * 
+ * + * optional string currency_code = 2; + * + * @return The currencyCode. + */ + public java.lang.String getCurrencyCode() { + java.lang.Object ref = currencyCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currencyCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * When a conversion event for this event_name has no set currency,
+       * this currency will be applied as the default. Must be in ISO 4217
+       * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
+       * more.
+       * 
+ * + * optional string currency_code = 2; + * + * @return The bytes for currencyCode. + */ + public com.google.protobuf.ByteString getCurrencyCodeBytes() { + java.lang.Object ref = currencyCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currencyCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * When a conversion event for this event_name has no set currency,
+       * this currency will be applied as the default. Must be in ISO 4217
+       * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
+       * more.
+       * 
+ * + * optional string currency_code = 2; + * + * @param value The currencyCode to set. + * @return This builder for chaining. + */ + public Builder setCurrencyCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + currencyCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * When a conversion event for this event_name has no set currency,
+       * this currency will be applied as the default. Must be in ISO 4217
+       * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
+       * more.
+       * 
+ * + * optional string currency_code = 2; + * + * @return This builder for chaining. + */ + public Builder clearCurrencyCode() { + currencyCode_ = getDefaultInstance().getCurrencyCode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * When a conversion event for this event_name has no set currency,
+       * this currency will be applied as the default. Must be in ISO 4217
+       * currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for
+       * more.
+       * 
+ * + * optional string currency_code = 2; + * + * @param value The bytes for currencyCode to set. + * @return This builder for chaining. + */ + public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + currencyCode_ = value; + 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.ConversionEvent.DefaultConversionValue) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue) + private static final com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue(); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DefaultConversionValue 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.ConversionEvent.DefaultConversionValue + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -473,6 +1393,67 @@ public int getCountingMethodValue() { : result; } + public static final int DEFAULT_CONVERSION_VALUE_FIELD_NUMBER = 7; + private com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + defaultConversionValue_; + /** + * + * + *
+   * Optional. Defines a default value/currency for a conversion event.
+   * 
+ * + * + * optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultConversionValue field is set. + */ + @java.lang.Override + public boolean hasDefaultConversionValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Optional. Defines a default value/currency for a conversion event.
+   * 
+ * + * + * optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultConversionValue. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + getDefaultConversionValue() { + return defaultConversionValue_ == null + ? com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + .getDefaultInstance() + : defaultConversionValue_; + } + /** + * + * + *
+   * Optional. Defines a default value/currency for a conversion event.
+   * 
+ * + * + * optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValueOrBuilder + getDefaultConversionValueOrBuilder() { + return defaultConversionValue_ == null + ? com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + .getDefaultInstance() + : defaultConversionValue_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -508,6 +1489,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(6, countingMethod_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getDefaultConversionValue()); + } getUnknownFields().writeTo(output); } @@ -538,6 +1522,10 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, countingMethod_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDefaultConversionValue()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -563,6 +1551,10 @@ public boolean equals(final java.lang.Object obj) { if (getDeletable() != other.getDeletable()) return false; if (getCustom() != other.getCustom()) return false; if (countingMethod_ != other.countingMethod_) return false; + if (hasDefaultConversionValue() != other.hasDefaultConversionValue()) return false; + if (hasDefaultConversionValue()) { + if (!getDefaultConversionValue().equals(other.getDefaultConversionValue())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -588,6 +1580,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCustom()); hash = (37 * hash) + COUNTING_METHOD_FIELD_NUMBER; hash = (53 * hash) + countingMethod_; + if (hasDefaultConversionValue()) { + hash = (37 * hash) + DEFAULT_CONVERSION_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultConversionValue().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -717,10 +1713,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.admin.v1alpha.ConversionEvent.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getDefaultConversionValueFieldBuilder(); + } } @java.lang.Override @@ -737,6 +1743,11 @@ public Builder clear() { deletable_ = false; custom_ = false; countingMethod_ = 0; + defaultConversionValue_ = null; + if (defaultConversionValueBuilder_ != null) { + defaultConversionValueBuilder_.dispose(); + defaultConversionValueBuilder_ = null; + } return this; } @@ -791,6 +1802,15 @@ private void buildPartial0(com.google.analytics.admin.v1alpha.ConversionEvent re if (((from_bitField0_ & 0x00000020) != 0)) { result.countingMethod_ = countingMethod_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.defaultConversionValue_ = + defaultConversionValueBuilder_ == null + ? defaultConversionValue_ + : defaultConversionValueBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -861,6 +1881,9 @@ public Builder mergeFrom(com.google.analytics.admin.v1alpha.ConversionEvent othe if (other.countingMethod_ != 0) { setCountingMethodValue(other.getCountingMethodValue()); } + if (other.hasDefaultConversionValue()) { + mergeDefaultConversionValue(other.getDefaultConversionValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -923,6 +1946,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 48 + case 58: + { + input.readMessage( + getDefaultConversionValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1604,6 +2634,219 @@ public Builder clearCountingMethod() { return this; } + private com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + defaultConversionValue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue, + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue.Builder, + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValueOrBuilder> + defaultConversionValueBuilder_; + /** + * + * + *
+     * Optional. Defines a default value/currency for a conversion event.
+     * 
+ * + * + * optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultConversionValue field is set. + */ + public boolean hasDefaultConversionValue() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * Optional. Defines a default value/currency for a conversion event.
+     * 
+ * + * + * optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultConversionValue. + */ + public com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + getDefaultConversionValue() { + if (defaultConversionValueBuilder_ == null) { + return defaultConversionValue_ == null + ? com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + .getDefaultInstance() + : defaultConversionValue_; + } else { + return defaultConversionValueBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Defines a default value/currency for a conversion event.
+     * 
+ * + * + * optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultConversionValue( + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue value) { + if (defaultConversionValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultConversionValue_ = value; + } else { + defaultConversionValueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Defines a default value/currency for a conversion event.
+     * 
+ * + * + * optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultConversionValue( + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue.Builder + builderForValue) { + if (defaultConversionValueBuilder_ == null) { + defaultConversionValue_ = builderForValue.build(); + } else { + defaultConversionValueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Defines a default value/currency for a conversion event.
+     * 
+ * + * + * optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDefaultConversionValue( + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue value) { + if (defaultConversionValueBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && defaultConversionValue_ != null + && defaultConversionValue_ + != com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + .getDefaultInstance()) { + getDefaultConversionValueBuilder().mergeFrom(value); + } else { + defaultConversionValue_ = value; + } + } else { + defaultConversionValueBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Defines a default value/currency for a conversion event.
+     * 
+ * + * + * optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDefaultConversionValue() { + bitField0_ = (bitField0_ & ~0x00000040); + defaultConversionValue_ = null; + if (defaultConversionValueBuilder_ != null) { + defaultConversionValueBuilder_.dispose(); + defaultConversionValueBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Defines a default value/currency for a conversion event.
+     * 
+ * + * + * optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue.Builder + getDefaultConversionValueBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getDefaultConversionValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Defines a default value/currency for a conversion event.
+     * 
+ * + * + * optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValueOrBuilder + getDefaultConversionValueOrBuilder() { + if (defaultConversionValueBuilder_ != null) { + return defaultConversionValueBuilder_.getMessageOrBuilder(); + } else { + return defaultConversionValue_ == null + ? com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + .getDefaultInstance() + : defaultConversionValue_; + } + } + /** + * + * + *
+     * Optional. Defines a default value/currency for a conversion event.
+     * 
+ * + * + * optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue, + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue.Builder, + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValueOrBuilder> + getDefaultConversionValueFieldBuilder() { + if (defaultConversionValueBuilder_ == null) { + defaultConversionValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue, + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue.Builder, + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValueOrBuilder>( + getDefaultConversionValue(), getParentForChildren(), isClean()); + defaultConversionValue_ = null; + } + return defaultConversionValueBuilder_; + } + @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/ConversionEventOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java index 6a162bc4f595..4b9be9d3dcb3 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java @@ -179,4 +179,47 @@ public interface ConversionEventOrBuilder * @return The countingMethod. */ com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod getCountingMethod(); + + /** + * + * + *
+   * Optional. Defines a default value/currency for a conversion event.
+   * 
+ * + * + * optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultConversionValue field is set. + */ + boolean hasDefaultConversionValue(); + /** + * + * + *
+   * Optional. Defines a default value/currency for a conversion event.
+   * 
+ * + * + * optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultConversionValue. + */ + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue + getDefaultConversionValue(); + /** + * + * + *
+   * Optional. Defines a default value/currency for a conversion event.
+   * 
+ * + * + * optional .google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue default_conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValueOrBuilder + getDefaultConversionValueOrBuilder(); } 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 de387a927ad1..a65f146147ff 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 @@ -127,6 +127,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_ConversionEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ConversionEvent_DefaultConversionValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ConversionEvent_DefaultConversionValue_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -433,223 +437,225 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "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" + + "in.v1alpha.LinkProposalStateB\004\342A\001\003\"\347\005\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.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" + + "versionCountingMethodB\004\342A\001\001\022s\n\030default_c" + + "onversion_value\030\007 \001(\0132F.google.analytics" + + ".admin.v1alpha.ConversionEvent.DefaultCo" + + "nversionValueB\004\342A\001\001H\000\210\001\001\032d\n\026DefaultConve" + + "rsionValue\022\022\n\005value\030\001 \001(\001H\000\210\001\001\022\032\n\rcurren" + + "cy_code\030\002 \001(\tH\001\210\001\001B\010\n\006_valueB\020\n\016_currenc" + + "y_code\"p\n\030ConversionCountingMethod\022*\n&CO" + + "NVERSION_COUNTING_METHOD_UNSPECIFIED\020\000\022\022" + + "\n\016ONCE_PER_EVENT\020\001\022\024\n\020ONCE_PER_SESSION\020\002" + + ":m\352Aj\n-analyticsadmin.googleapis.com/Con" + + "versionEvent\0229properties/{property}/conv" + + "ersionEvents/{conversion_event}B\033\n\031_defa" + + "ult_conversion_value\"\242\002\n\025GoogleSignalsSe" + + "ttings\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022A\n\005state\030\003 \001(" + + "\01622.google.analytics.admin.v1alpha.Googl" + + "eSignalsState\022K\n\007consent\030\004 \001(\01624.google." + + "analytics.admin.v1alpha.GoogleSignalsCon" + + "sentB\004\342A\001\003:e\352Ab\n3analyticsadmin.googleap" + + "is.com/GoogleSignalsSettings\022+properties" + + "/{property}/googleSignalsSettings\"\276\003\n\017Cu" + + "stomDimension\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\035\n\016par" + + "ameter_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" + + "T\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_UNSPECIFIED\020\000\022\t\n\005EVENT\020\001\022\010\n\004USER\020" + + "\002\022\010\n\004ITEM\020\003:m\352Aj\n-analyticsadmin.googlea" + + "pis.com/CustomDimension\0229properties/{pro" + + "perty}/customDimensions/{custom_dimensio" + + "n}\"\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\014displa" + + "y_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.v1alpha.CustomMetric.Me" + + "asurementUnitB\004\342A\001\002\022N\n\005scope\030\006 \001(\01628.goo" + + "gle.analytics.admin.v1alpha.CustomMetric" + + ".MetricScopeB\005\342A\002\002\005\022g\n\026restricted_metric" + + "_type\030\010 \003(\0162A.google.analytics.admin.v1a" + + "lpha.CustomMetric.RestrictedMetricTypeB\004" + + "\342A\001\001\"\267\001\n\017MeasurementUnit\022 \n\034MEASUREMENT_" + + "UNIT_UNSPECIFIED\020\000\022\014\n\010STANDARD\020\001\022\014\n\010CURR" + + "ENCY\020\002\022\010\n\004FEET\020\003\022\n\n\006METERS\020\004\022\016\n\nKILOMETE" + + "RS\020\005\022\t\n\005MILES\020\006\022\020\n\014MILLISECONDS\020\007\022\013\n\007SEC" + + "ONDS\020\010\022\013\n\007MINUTES\020\t\022\t\n\005HOURS\020\n\"6\n\013Metric" + + "Scope\022\034\n\030METRIC_SCOPE_UNSPECIFIED\020\000\022\t\n\005E" + + "VENT\020\001\"_\n\024RestrictedMetricType\022&\n\"RESTRI" + + "CTED_METRIC_TYPE_UNSPECIFIED\020\000\022\r\n\tCOST_D" + + "ATA\020\001\022\020\n\014REVENUE_DATA\020\002:d\352Aa\n*analyticsa" + + "dmin.googleapis.com/CustomMetric\0223proper" + + "ties/{property}/customMetrics/{custom_me" + + "tric}\"\303\003\n\025DataRetentionSettings\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.DataR" + + "etentionSettings.RetentionDuration\022\'\n\037re" + + "set_user_data_on_new_activity\030\003 \001(\010\"\236\001\n\021" + + "RetentionDuration\022\"\n\036RETENTION_DURATION_" + + "UNSPECIFIED\020\000\022\016\n\nTWO_MONTHS\020\001\022\023\n\017FOURTEE" + + "N_MONTHS\020\003\022\025\n\021TWENTY_SIX_MONTHS\020\004\022\027\n\023THI" + + "RTY_EIGHT_MONTHS\020\005\022\020\n\014FIFTY_MONTHS\020\006:e\352A" + + "b\n3analyticsadmin.googleapis.com/DataRet" + + "entionSettings\022+properties/{property}/da" + + "taRetentionSettings\"\201\014\n\023AttributionSetti" + + "ngs\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\230\001\n,acquisition_" + + "conversion_event_lookback_window\030\002 \001(\0162\\" + + ".google.analytics.admin.v1alpha.Attribut" + + "ionSettings.AcquisitionConversionEventLo" + + "okbackWindowB\004\342A\001\002\022\214\001\n&other_conversion_" + + "event_lookback_window\030\003 \001(\0162V.google.ana" + + "lytics.admin.v1alpha.AttributionSettings" + + ".OtherConversionEventLookbackWindowB\004\342A\001" + + "\002\022x\n\033reporting_attribution_model\030\004 \001(\0162M" + + ".google.analytics.admin.v1alpha.Attribut" + + "ionSettings.ReportingAttributionModelB\004\342" + + "A\001\002\022\207\001\n$ads_web_conversion_data_export_s" + + "cope\030\005 \001(\0162S.google.analytics.admin.v1al" + + "pha.AttributionSettings.AdsWebConversion" + + "DataExportScopeB\004\342A\001\002\"\333\001\n(AcquisitionCon" + + "versionEventLookbackWindow\022<\n8ACQUISITIO" + + "N_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPE" + + "CIFIED\020\000\0227\n3ACQUISITION_CONVERSION_EVENT" + + "_LOOKBACK_WINDOW_7_DAYS\020\001\0228\n4ACQUISITION" + + "_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAY" + + "S\020\002\"\370\001\n\"OtherConversionEventLookbackWind" + + "ow\0226\n2OTHER_CONVERSION_EVENT_LOOKBACK_WI" + + "NDOW_UNSPECIFIED\020\000\0222\n.OTHER_CONVERSION_E" + + "VENT_LOOKBACK_WINDOW_30_DAYS\020\001\0222\n.OTHER_" + + "CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS" + + "\020\002\0222\n.OTHER_CONVERSION_EVENT_LOOKBACK_WI" + + "NDOW_90_DAYS\020\003\"\302\001\n\031ReportingAttributionM" + + "odel\022+\n\'REPORTING_ATTRIBUTION_MODEL_UNSP" + + "ECIFIED\020\000\022)\n%PAID_AND_ORGANIC_CHANNELS_D" + + "ATA_DRIVEN\020\001\022(\n$PAID_AND_ORGANIC_CHANNEL" + + "S_LAST_CLICK\020\002\022#\n\037GOOGLE_PAID_CHANNELS_L" + + "AST_CLICK\020\007\"\246\001\n\037AdsWebConversionDataExpo" + + "rtScope\0224\n0ADS_WEB_CONVERSION_DATA_EXPOR" + + "T_SCOPE_UNSPECIFIED\020\000\022\024\n\020NOT_SELECTED_YE" + + "T\020\001\022\035\n\031PAID_AND_ORGANIC_CHANNELS\020\002\022\030\n\024GO" + + "OGLE_PAID_CHANNELS\020\003:a\352A^\n1analyticsadmi" + + "n.googleapis.com/AttributionSettings\022)pr" + + "operties/{property}/attributionSettings\"" + + "\362\001\n\rAccessBinding\022\016\n\004user\030\002 \001(\tH\000\022\022\n\004nam" + + "e\030\001 \001(\tB\004\342A\001\003\022\r\n\005roles\030\003 \003(\t:\234\001\352A\230\001\n+ana" + + "lyticsadmin.googleapis.com/AccessBinding" + + "\0222accounts/{account}/accessBindings/{acc" + + "ess_binding}\0225properties/{property}/acce" + + "ssBindings/{access_binding}B\017\n\raccess_ta" + + "rget\"\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\030streami" + + "ng_export_enabled\030\005 \001(\010\022\"\n\032fresh_daily_e" + + "xport_enabled\030\t \001(\010\022\036\n\026include_advertisi" + + "ng_id\030\006 \001(\010\022\026\n\016export_streams\030\007 \003(\t\022\027\n\017e" + + "xcluded_events\030\010 \003(\t:d\352Aa\n*analyticsadmi" + + "n.googleapis.com/BigQueryLink\0223propertie" + + "s/{property}/bigQueryLinks/{bigquery_lin" + + "k}\"\365\003\n\033EnhancedMeasurementSettings\022\022\n\004na" + + "me\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_clic" + + "ks_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_interactio" + + "ns_enabled\030\t \001(\010\022$\n\026search_query_paramet" + + "er\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.co" + + "m/EnhancedMeasurementSettings\022Kpropertie" + + "s/{property}/dataStreams/{data_stream}/e" + + "nhancedMeasurementSettings\"D\n\020ConnectedS" + + "iteTag\022\032\n\014display_name\030\001 \001(\tB\004\342A\001\002\022\024\n\006ta" + + "g_id\030\002 \001(\tB\004\342A\001\002\"\226\002\n\025DataRedactionSettin" + + "gs\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\037\n\027email_redactio" + + "n_enabled\030\002 \001(\010\022)\n!query_parameter_redac" + + "tion_enabled\030\003 \001(\010\022\034\n\024query_parameter_ke" + + "ys\030\004 \003(\t:\177\352A|\n3analyticsadmin.googleapis" + + ".com/DataRedactionSettings\022Eproperties/{" + + "property}/dataStreams/{data_stream}/data" + + "RedactionSettings\"\242\001\n\013AdSenseLink\022\022\n\004nam" + + "e\030\001 \001(\tB\004\342A\001\003\022\034\n\016ad_client_code\030\002 \001(\tB\004\342" + + "A\001\005:a\352A^\n)analyticsadmin.googleapis.com/" + + "AdSenseLink\0221properties/{property}/adSen" + + "seLinks/{adsense_link}\"\220\002\n\030RollupPropert", + "ySourceLink\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\035\n\017sourc" + + "e_property\030\002 \001(\tB\004\342A\001\005:\300\001\352A\274\001\n6analytics" + + "admin.googleapis.com/RollupPropertySourc" + + "eLink\022Mproperties/{property}/rollupPrope" + + "rtySourceLinks/{rollup_property_source_l" + + "ink}*\031rollupPropertySourceLinks2\030rollupP" + + "ropertySourceLink*\252\004\n\020IndustryCategory\022!" + + "\n\035INDUSTRY_CATEGORY_UNSPECIFIED\020\000\022\016\n\nAUT" + + "OMOTIVE\020\001\022#\n\037BUSINESS_AND_INDUSTRIAL_MAR" + + "KETS\020\002\022\013\n\007FINANCE\020\003\022\016\n\nHEALTHCARE\020\004\022\016\n\nT" + + "ECHNOLOGY\020\005\022\n\n\006TRAVEL\020\006\022\t\n\005OTHER\020\007\022\032\n\026AR" + + "TS_AND_ENTERTAINMENT\020\010\022\026\n\022BEAUTY_AND_FIT" + + "NESS\020\t\022\030\n\024BOOKS_AND_LITERATURE\020\n\022\022\n\016FOOD" + + "_AND_DRINK\020\013\022\t\n\005GAMES\020\014\022\027\n\023HOBBIES_AND_L" + + "EISURE\020\r\022\023\n\017HOME_AND_GARDEN\020\016\022\030\n\024INTERNE" + + "T_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\022PEO" + + "PLE_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\007SCIEN" + + "CE\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\031SERVIC" + + "E_LEVEL_UNSPECIFIED\020\000\022\035\n\031GOOGLE_ANALYTIC" + + "S_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\nAc" + + "tionType\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_HIS" + + "TORY_RESOURCE_TYPE_UNSPECIFIED\020\000\022\013\n\007ACCO" + + "UNT\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_SE" + + "TTINGS\020\010\022\024\n\020CONVERSION_EVENT\020\t\022\037\n\033MEASUR" + + "EMENT_PROTOCOL_SECRET\020\n\022\024\n\020CUSTOM_DIMENS" + + "ION\020\013\022\021\n\rCUSTOM_METRIC\020\014\022\033\n\027DATA_RETENTI" + + "ON_SETTINGS\020\r\022%\n!DISPLAY_VIDEO_360_ADVER" + + "TISER_LINK\020\016\022.\n*DISPLAY_VIDEO_360_ADVERT" + + "ISER_LINK_PROPOSAL\020\017\022\027\n\023SEARCH_ADS_360_L" + + "INK\020\020\022\017\n\013DATA_STREAM\020\022\022\030\n\024ATTRIBUTION_SE" + + "TTINGS\020\024\022\025\n\021EXPANDED_DATA_SET\020\025\022\021\n\rCHANN" + + "EL_GROUP\020\026\022!\n\035ENHANCED_MEASUREMENT_SETTI" + + "NGS\020\030\022\033\n\027DATA_REDACTION_SETTINGS\020\031\022\'\n#SK" + + "ADNETWORK_CONVERSION_VALUE_SCHEMA\020\032\022\020\n\014A" + + "DSENSE_LINK\020\033\022\014\n\010AUDIENCE\020\034\022\025\n\021EVENT_CRE" + + "ATE_RULE\020\035*s\n\022GoogleSignalsState\022$\n GOOG" + + "LE_SIGNALS_STATE_UNSPECIFIED\020\000\022\032\n\026GOOGLE" + + "_SIGNALS_ENABLED\020\001\022\033\n\027GOOGLE_SIGNALS_DIS" + + "ABLED\020\002*\216\001\n\024GoogleSignalsConsent\022&\n\"GOOG" + + "LE_SIGNALS_CONSENT_UNSPECIFIED\020\000\022$\n GOOG" + + "LE_SIGNALS_CONSENT_CONSENTED\020\002\022(\n$GOOGLE" + + "_SIGNALS_CONSENT_NOT_CONSENTED\020\001*{\n\035Link" + + "ProposalInitiatingProduct\0220\n,LINK_PROPOS" + + "AL_INITIATING_PRODUCT_UNSPECIFIED\020\000\022\024\n\020G" + + "OOGLE_ANALYTICS\020\001\022\022\n\016LINKED_PRODUCT\020\002*\304\001" + + "\n\021LinkProposalState\022#\n\037LINK_PROPOSAL_STA" + + "TE_UNSPECIFIED\020\000\022)\n%AWAITING_REVIEW_FROM" + + "_GOOGLE_ANALYTICS\020\001\022\'\n#AWAITING_REVIEW_F" + + "ROM_LINKED_PRODUCT\020\002\022\r\n\tWITHDRAWN\020\003\022\014\n\010D" + + "ECLINED\020\004\022\013\n\007EXPIRED\020\005\022\014\n\010OBSOLETE\020\006*\202\001\n" + + "\014PropertyType\022\035\n\031PROPERTY_TYPE_UNSPECIFI" + + "ED\020\000\022\032\n\026PROPERTY_TYPE_ORDINARY\020\001\022\035\n\031PROP" + + "ERTY_TYPE_SUBPROPERTY\020\002\022\030\n\024PROPERTY_TYPE" + + "_ROLLUP\020\003*q\n\013CoarseValue\022\034\n\030COARSE_VALUE" + + "_UNSPECIFIED\020\000\022\024\n\020COARSE_VALUE_LOW\020\001\022\027\n\023" + + "COARSE_VALUE_MEDIUM\020\002\022\025\n\021COARSE_VALUE_HI" + + "GH\020\003Bv\n\"com.google.analytics.admin.v1alp" + + "haB\016ResourcesProtoP\001Z>cloud.google.com/g" + + "o/analytics/admin/apiv1alpha/adminpb;adm" + + "inpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -960,7 +966,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor, new java.lang.String[] { - "Name", "EventName", "CreateTime", "Deletable", "Custom", "CountingMethod", + "Name", + "EventName", + "CreateTime", + "Deletable", + "Custom", + "CountingMethod", + "DefaultConversionValue", + "DefaultConversionValue", + }); + internal_static_google_analytics_admin_v1alpha_ConversionEvent_DefaultConversionValue_descriptor = + internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor + .getNestedTypes() + .get(0); + internal_static_google_analytics_admin_v1alpha_ConversionEvent_DefaultConversionValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ConversionEvent_DefaultConversionValue_descriptor, + new java.lang.String[] { + "Value", "CurrencyCode", "Value", "CurrencyCode", }); internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor = getDescriptor().getMessageTypes().get(21); 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 ce1b3eeebe7e..2ffc46628eee 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 @@ -842,8 +842,10 @@ service AnalyticsAdminService { // 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. + // Data Access Reports can be requested for a property. Reports may be + // requested for any property, but dimensions that aren't related to quota can + // only be requested on Google Analytics 360 properties. 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 @@ -1341,45 +1343,53 @@ service AnalyticsAdminService { }; } - // Deletes a subproperty event filter. - rpc DeleteSubpropertyEventFilter(DeleteSubpropertyEventFilterRequest) - returns (google.protobuf.Empty) { + // Creates a subproperty Event Filter. + rpc CreateSubpropertyEventFilter(CreateSubpropertyEventFilterRequest) + returns (SubpropertyEventFilter) { option (google.api.http) = { - delete: "/v1alpha/{name=properties/*/subpropertyEventFilters/*}" + post: "/v1alpha/{parent=properties/*}/subpropertyEventFilters" + body: "subproperty_event_filter" }; - option (google.api.method_signature) = "name"; + option (google.api.method_signature) = "parent,subproperty_event_filter"; } + // Lookup for a single subproperty Event Filter. + rpc GetSubpropertyEventFilter(GetSubpropertyEventFilterRequest) + returns (SubpropertyEventFilter) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/subpropertyEventFilters/*}" + }; + option (google.api.method_signature) = "name"; + } + // List all subproperty Event Filters on a property. + rpc ListSubpropertyEventFilters(ListSubpropertyEventFiltersRequest) + returns (ListSubpropertyEventFiltersResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/subpropertyEventFilters" + }; + option (google.api.method_signature) = "parent"; + } - - - - - - - - - - - - - - - - - - - // Creates a subproperty Event Filter. - rpc CreateSubpropertyEventFilter(CreateSubpropertyEventFilterRequest) + // Updates a subproperty Event Filter. + rpc UpdateSubpropertyEventFilter(UpdateSubpropertyEventFilterRequest) returns (SubpropertyEventFilter) { option (google.api.http) = { - post: "/v1alpha/{parent=properties/*}/subpropertyEventFilters" + patch: "/v1alpha/{subproperty_event_filter.name=properties/*/subpropertyEventFilters/*}" body: "subproperty_event_filter" }; - option (google.api.method_signature) = "parent,subproperty_event_filter"; + option (google.api.method_signature) = + "subproperty_event_filter,update_mask"; } + // 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"; + } } // The request for a Data Access Record Report. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/channel_group.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/channel_group.proto index bc8688e732fc..2a8aaea736f9 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/channel_group.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/channel_group.proto @@ -142,11 +142,12 @@ message ChannelGroup { // The description of the Channel Group. Max length of 256 characters. string description = 3; - // Required. The grouping rules of channels. Maximum number of rules is 25. + // Required. The grouping rules of channels. Maximum number of rules is 50. repeated GroupingRule grouping_rule = 4 [(google.api.field_behavior) = REQUIRED]; - // Output only. Default Channel Group defined by Google, which cannot be - // updated. + // Output only. If true, then this channel group is the Default Channel Group + // predefined by Google Analytics. Display name and grouping rules cannot be + // updated for this channel group. bool system_defined = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } 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 4c252dd747df..b3616e286183 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 @@ -1157,6 +1157,20 @@ message ConversionEvent { pattern: "properties/{property}/conversionEvents/{conversion_event}" }; + // Defines a default value/currency for a conversion event. Both value and + // currency must be provided. + message DefaultConversionValue { + // This value will be used to populate the value for all conversions + // of the specified event_name where the event "value" parameter is unset. + optional double value = 1; + + // When a conversion event for this event_name has no set currency, + // this currency will be applied as the default. Must be in ISO 4217 + // currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for + // more. + optional string currency_code = 2; + } + // The method by which conversions will be counted across multiple events // within a session. enum ConversionCountingMethod { @@ -1200,6 +1214,10 @@ message ConversionEvent { // `ONCE_PER_EVENT`. ConversionCountingMethod counting_method = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Defines a default value/currency for a conversion event. + optional DefaultConversionValue default_conversion_value = 7 + [(google.api.field_behavior) = OPTIONAL]; } // Settings values for Google Signals. This is a singleton resource. @@ -1500,55 +1518,6 @@ message AttributionSettings { // Previously CROSS_CHANNEL_LAST_CLICK PAID_AND_ORGANIC_CHANNELS_LAST_CLICK = 2; - // Starting in June 2023, new properties can no longer use this model. - // See - // [Analytics - // Help](https://support.google.com/analytics/answer/9164320#040623) - // for more details. - // Starting in September 2023, we will sunset this model for all properties. - // - // Gives all credit for the conversion to the first channel that a customer - // clicked (or engaged view through for YouTube) before converting. - // Previously CROSS_CHANNEL_FIRST_CLICK - PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK = 3; - - // Starting in June 2023, new properties can no longer use this model. - // See - // [Analytics - // Help](https://support.google.com/analytics/answer/9164320#040623) - // for more details. - // Starting in September 2023, we will sunset this model for all properties. - // - // Distributes the credit for the conversion equally across all the channels - // a customer clicked (or engaged view through for YouTube) before - // converting. - // Previously CROSS_CHANNEL_LINEAR - PAID_AND_ORGANIC_CHANNELS_LINEAR = 4; - - // Starting in June 2023, new properties can no longer use this model. - // See - // [Analytics - // Help](https://support.google.com/analytics/answer/9164320#040623) - // for more details. - // Starting in September 2023, we will sunset this model for all properties. - // - // Attributes 40% credit to the first and last interaction, and the - // remaining 20% credit is distributed evenly to the middle interactions. - // Previously CROSS_CHANNEL_POSITION_BASED - PAID_AND_ORGANIC_CHANNELS_POSITION_BASED = 5; - - // Starting in June 2023, new properties can no longer use this model. - // See - // [Analytics - // Help](https://support.google.com/analytics/answer/9164320#040623) - // for more details. - // Starting in September 2023, we will sunset this model for all properties. - // - // Gives more credit to the touchpoints that happened closer in time to - // the conversion. - // Previously CROSS_CHANNEL_TIME_DECAY - PAID_AND_ORGANIC_CHANNELS_TIME_DECAY = 6; - // Attributes 100% of the conversion value to the last Google Paid channel // that the customer clicked through before converting. // Previously ADS_PREFERRED_LAST_CLICK diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsubpropertyeventfilter/AsyncGetSubpropertyEventFilter.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsubpropertyeventfilter/AsyncGetSubpropertyEventFilter.java new file mode 100644 index 000000000000..e8754b3499ac --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsubpropertyeventfilter/AsyncGetSubpropertyEventFilter.java @@ -0,0 +1,53 @@ +/* + * 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_GetSubpropertyEventFilter_async] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilterName; +import com.google.api.core.ApiFuture; + +public class AsyncGetSubpropertyEventFilter { + + public static void main(String[] args) throws Exception { + asyncGetSubpropertyEventFilter(); + } + + public static void asyncGetSubpropertyEventFilter() 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()) { + GetSubpropertyEventFilterRequest request = + GetSubpropertyEventFilterRequest.newBuilder() + .setName( + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]") + .toString()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.getSubpropertyEventFilterCallable().futureCall(request); + // Do something. + SubpropertyEventFilter response = future.get(); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSubpropertyEventFilter_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsubpropertyeventfilter/SyncGetSubpropertyEventFilter.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsubpropertyeventfilter/SyncGetSubpropertyEventFilter.java new file mode 100644 index 000000000000..8ae17a75b9d3 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsubpropertyeventfilter/SyncGetSubpropertyEventFilter.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_GetSubpropertyEventFilter_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilterName; + +public class SyncGetSubpropertyEventFilter { + + public static void main(String[] args) throws Exception { + syncGetSubpropertyEventFilter(); + } + + public static void syncGetSubpropertyEventFilter() 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()) { + GetSubpropertyEventFilterRequest request = + GetSubpropertyEventFilterRequest.newBuilder() + .setName( + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]") + .toString()) + .build(); + SubpropertyEventFilter response = + analyticsAdminServiceClient.getSubpropertyEventFilter(request); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSubpropertyEventFilter_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsubpropertyeventfilter/SyncGetSubpropertyEventFilterString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsubpropertyeventfilter/SyncGetSubpropertyEventFilterString.java new file mode 100644 index 000000000000..3c4ed8f4441b --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsubpropertyeventfilter/SyncGetSubpropertyEventFilterString.java @@ -0,0 +1,44 @@ +/* + * 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_GetSubpropertyEventFilter_String_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilterName; + +public class SyncGetSubpropertyEventFilterString { + + public static void main(String[] args) throws Exception { + syncGetSubpropertyEventFilterString(); + } + + public static void syncGetSubpropertyEventFilterString() 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 name = + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]").toString(); + SubpropertyEventFilter response = analyticsAdminServiceClient.getSubpropertyEventFilter(name); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSubpropertyEventFilter_String_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsubpropertyeventfilter/SyncGetSubpropertyEventFilterSubpropertyeventfiltername.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsubpropertyeventfilter/SyncGetSubpropertyEventFilterSubpropertyeventfiltername.java new file mode 100644 index 000000000000..5a0500060174 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsubpropertyeventfilter/SyncGetSubpropertyEventFilterSubpropertyeventfiltername.java @@ -0,0 +1,44 @@ +/* + * 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_GetSubpropertyEventFilter_Subpropertyeventfiltername_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilterName; + +public class SyncGetSubpropertyEventFilterSubpropertyeventfiltername { + + public static void main(String[] args) throws Exception { + syncGetSubpropertyEventFilterSubpropertyeventfiltername(); + } + + public static void syncGetSubpropertyEventFilterSubpropertyeventfiltername() 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()) { + SubpropertyEventFilterName name = + SubpropertyEventFilterName.of("[PROPERTY]", "[SUB_PROPERTY_EVENT_FILTER]"); + SubpropertyEventFilter response = analyticsAdminServiceClient.getSubpropertyEventFilter(name); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSubpropertyEventFilter_Subpropertyeventfiltername_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsubpropertyeventfilters/AsyncListSubpropertyEventFilters.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsubpropertyeventfilters/AsyncListSubpropertyEventFilters.java new file mode 100644 index 000000000000..9a8ee6399d70 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsubpropertyeventfilters/AsyncListSubpropertyEventFilters.java @@ -0,0 +1,57 @@ +/* + * 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_ListSubpropertyEventFilters_async] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest; +import com.google.analytics.admin.v1alpha.PropertyName; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; +import com.google.api.core.ApiFuture; + +public class AsyncListSubpropertyEventFilters { + + public static void main(String[] args) throws Exception { + asyncListSubpropertyEventFilters(); + } + + public static void asyncListSubpropertyEventFilters() 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()) { + ListSubpropertyEventFiltersRequest request = + ListSubpropertyEventFiltersRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + analyticsAdminServiceClient + .listSubpropertyEventFiltersPagedCallable() + .futureCall(request); + // Do something. + for (SubpropertyEventFilter element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSubpropertyEventFilters_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsubpropertyeventfilters/AsyncListSubpropertyEventFiltersPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsubpropertyeventfilters/AsyncListSubpropertyEventFiltersPaged.java new file mode 100644 index 000000000000..309a42b9cfe5 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsubpropertyeventfilters/AsyncListSubpropertyEventFiltersPaged.java @@ -0,0 +1,63 @@ +/* + * 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_ListSubpropertyEventFilters_Paged_async] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest; +import com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse; +import com.google.analytics.admin.v1alpha.PropertyName; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; +import com.google.common.base.Strings; + +public class AsyncListSubpropertyEventFiltersPaged { + + public static void main(String[] args) throws Exception { + asyncListSubpropertyEventFiltersPaged(); + } + + public static void asyncListSubpropertyEventFiltersPaged() 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()) { + ListSubpropertyEventFiltersRequest request = + ListSubpropertyEventFiltersRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListSubpropertyEventFiltersResponse response = + analyticsAdminServiceClient.listSubpropertyEventFiltersCallable().call(request); + for (SubpropertyEventFilter element : response.getSubpropertyEventFiltersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSubpropertyEventFilters_Paged_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsubpropertyeventfilters/SyncListSubpropertyEventFilters.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsubpropertyeventfilters/SyncListSubpropertyEventFilters.java new file mode 100644 index 000000000000..1e260d08c0ba --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsubpropertyeventfilters/SyncListSubpropertyEventFilters.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_ListSubpropertyEventFilters_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest; +import com.google.analytics.admin.v1alpha.PropertyName; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; + +public class SyncListSubpropertyEventFilters { + + public static void main(String[] args) throws Exception { + syncListSubpropertyEventFilters(); + } + + public static void syncListSubpropertyEventFilters() 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()) { + ListSubpropertyEventFiltersRequest request = + ListSubpropertyEventFiltersRequest.newBuilder() + .setParent(PropertyName.of("[PROPERTY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (SubpropertyEventFilter element : + analyticsAdminServiceClient.listSubpropertyEventFilters(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSubpropertyEventFilters_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsubpropertyeventfilters/SyncListSubpropertyEventFiltersPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsubpropertyeventfilters/SyncListSubpropertyEventFiltersPropertyname.java new file mode 100644 index 000000000000..525e1ed2a2d4 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsubpropertyeventfilters/SyncListSubpropertyEventFiltersPropertyname.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_ListSubpropertyEventFilters_Propertyname_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.PropertyName; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; + +public class SyncListSubpropertyEventFiltersPropertyname { + + public static void main(String[] args) throws Exception { + syncListSubpropertyEventFiltersPropertyname(); + } + + public static void syncListSubpropertyEventFiltersPropertyname() 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]"); + for (SubpropertyEventFilter element : + analyticsAdminServiceClient.listSubpropertyEventFilters(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSubpropertyEventFilters_Propertyname_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsubpropertyeventfilters/SyncListSubpropertyEventFiltersString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsubpropertyeventfilters/SyncListSubpropertyEventFiltersString.java new file mode 100644 index 000000000000..0a70969c7fc2 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsubpropertyeventfilters/SyncListSubpropertyEventFiltersString.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_ListSubpropertyEventFilters_String_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.PropertyName; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; + +public class SyncListSubpropertyEventFiltersString { + + public static void main(String[] args) throws Exception { + syncListSubpropertyEventFiltersString(); + } + + public static void syncListSubpropertyEventFiltersString() 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(); + for (SubpropertyEventFilter element : + analyticsAdminServiceClient.listSubpropertyEventFilters(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSubpropertyEventFilters_String_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatesubpropertyeventfilter/AsyncUpdateSubpropertyEventFilter.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatesubpropertyeventfilter/AsyncUpdateSubpropertyEventFilter.java new file mode 100644 index 000000000000..e79115f00423 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatesubpropertyeventfilter/AsyncUpdateSubpropertyEventFilter.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_UpdateSubpropertyEventFilter_async] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; +import com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest; +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSubpropertyEventFilter { + + public static void main(String[] args) throws Exception { + asyncUpdateSubpropertyEventFilter(); + } + + public static void asyncUpdateSubpropertyEventFilter() 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()) { + UpdateSubpropertyEventFilterRequest request = + UpdateSubpropertyEventFilterRequest.newBuilder() + .setSubpropertyEventFilter(SubpropertyEventFilter.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.updateSubpropertyEventFilterCallable().futureCall(request); + // Do something. + SubpropertyEventFilter response = future.get(); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSubpropertyEventFilter_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatesubpropertyeventfilter/SyncUpdateSubpropertyEventFilter.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatesubpropertyeventfilter/SyncUpdateSubpropertyEventFilter.java new file mode 100644 index 000000000000..8097efe6d23b --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatesubpropertyeventfilter/SyncUpdateSubpropertyEventFilter.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_UpdateSubpropertyEventFilter_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; +import com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSubpropertyEventFilter { + + public static void main(String[] args) throws Exception { + syncUpdateSubpropertyEventFilter(); + } + + public static void syncUpdateSubpropertyEventFilter() 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()) { + UpdateSubpropertyEventFilterRequest request = + UpdateSubpropertyEventFilterRequest.newBuilder() + .setSubpropertyEventFilter(SubpropertyEventFilter.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + SubpropertyEventFilter response = + analyticsAdminServiceClient.updateSubpropertyEventFilter(request); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSubpropertyEventFilter_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatesubpropertyeventfilter/SyncUpdateSubpropertyEventFilterSubpropertyeventfilterFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatesubpropertyeventfilter/SyncUpdateSubpropertyEventFilterSubpropertyeventfilterFieldmask.java new file mode 100644 index 000000000000..e46eed300d22 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatesubpropertyeventfilter/SyncUpdateSubpropertyEventFilterSubpropertyeventfilterFieldmask.java @@ -0,0 +1,47 @@ +/* + * 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_UpdateSubpropertyEventFilter_SubpropertyeventfilterFieldmask_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSubpropertyEventFilterSubpropertyeventfilterFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateSubpropertyEventFilterSubpropertyeventfilterFieldmask(); + } + + public static void syncUpdateSubpropertyEventFilterSubpropertyeventfilterFieldmask() + 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()) { + SubpropertyEventFilter subpropertyEventFilter = SubpropertyEventFilter.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + SubpropertyEventFilter response = + analyticsAdminServiceClient.updateSubpropertyEventFilter( + subpropertyEventFilter, updateMask); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSubpropertyEventFilter_SubpropertyeventfilterFieldmask_sync]