diff --git a/packages/google-analytics-admin/README.md b/packages/google-analytics-admin/README.md index c4130199930..3ea53bf794a 100644 --- a/packages/google-analytics-admin/README.md +++ b/packages/google-analytics-admin/README.md @@ -2,7 +2,7 @@ [//]: # "To regenerate it, use `python -m synthtool`." Google Cloud Platform logo -# [Google Analytics Admin: Node.js Client](https://github.com/googleapis/google-cloud-node) +# [Google Analytics Admin: Node.js Client](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-analytics-admin) [![release level](https://img.shields.io/badge/release%20level-preview-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages) [![npm version](https://img.shields.io/npm/v/@google-analytics/admin.svg)](https://www.npmjs.org/package/@google-analytics/admin) @@ -95,186 +95,194 @@ process.on('unhandledRejection', err => { ## Samples -Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample. +Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-analytics-admin/samples) directory. Each sample's `README.md` has instructions for running its sample. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | -| Analytics_admin_service.acknowledge_user_data_collection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js,samples/README.md) | -| Analytics_admin_service.approve_display_video360_advertiser_link_proposal | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js,samples/README.md) | -| Analytics_admin_service.archive_audience | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_audience.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_audience.js,samples/README.md) | -| Analytics_admin_service.archive_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js,samples/README.md) | -| Analytics_admin_service.archive_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js,samples/README.md) | -| Analytics_admin_service.audit_user_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js,samples/README.md) | -| Analytics_admin_service.batch_create_access_bindings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_access_bindings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_access_bindings.js,samples/README.md) | -| Analytics_admin_service.batch_create_user_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js,samples/README.md) | -| Analytics_admin_service.batch_delete_access_bindings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_access_bindings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_access_bindings.js,samples/README.md) | -| Analytics_admin_service.batch_delete_user_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js,samples/README.md) | -| Analytics_admin_service.batch_get_access_bindings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_access_bindings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_access_bindings.js,samples/README.md) | -| Analytics_admin_service.batch_get_user_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js,samples/README.md) | -| Analytics_admin_service.batch_update_access_bindings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_access_bindings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_access_bindings.js,samples/README.md) | -| Analytics_admin_service.batch_update_user_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js,samples/README.md) | -| Analytics_admin_service.cancel_display_video360_advertiser_link_proposal | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js,samples/README.md) | -| Analytics_admin_service.create_access_binding | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_access_binding.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_access_binding.js,samples/README.md) | -| Analytics_admin_service.create_audience | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_audience.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_audience.js,samples/README.md) | -| Analytics_admin_service.create_channel_group | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_channel_group.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_channel_group.js,samples/README.md) | -| Analytics_admin_service.create_connected_site_tag | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_connected_site_tag.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_connected_site_tag.js,samples/README.md) | -| Analytics_admin_service.create_conversion_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js,samples/README.md) | -| Analytics_admin_service.create_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js,samples/README.md) | -| Analytics_admin_service.create_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js,samples/README.md) | -| Analytics_admin_service.create_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_data_stream.js,samples/README.md) | -| Analytics_admin_service.create_display_video360_advertiser_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js,samples/README.md) | -| Analytics_admin_service.create_display_video360_advertiser_link_proposal | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js,samples/README.md) | -| Analytics_admin_service.create_expanded_data_set | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_expanded_data_set.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_expanded_data_set.js,samples/README.md) | -| Analytics_admin_service.create_firebase_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js,samples/README.md) | -| Analytics_admin_service.create_google_ads_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js,samples/README.md) | -| Analytics_admin_service.create_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js,samples/README.md) | -| Analytics_admin_service.create_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js,samples/README.md) | -| Analytics_admin_service.create_search_ads360_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_search_ads360_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_search_ads360_link.js,samples/README.md) | -| Analytics_admin_service.create_user_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js,samples/README.md) | -| Analytics_admin_service.create_web_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.js,samples/README.md) | -| Analytics_admin_service.delete_access_binding | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_access_binding.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_access_binding.js,samples/README.md) | -| Analytics_admin_service.delete_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js,samples/README.md) | -| Analytics_admin_service.delete_android_app_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.js,samples/README.md) | -| Analytics_admin_service.delete_channel_group | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_channel_group.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_channel_group.js,samples/README.md) | -| Analytics_admin_service.delete_connected_site_tag | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_connected_site_tag.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_connected_site_tag.js,samples/README.md) | -| Analytics_admin_service.delete_conversion_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js,samples/README.md) | -| Analytics_admin_service.delete_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_data_stream.js,samples/README.md) | -| Analytics_admin_service.delete_display_video360_advertiser_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js,samples/README.md) | -| Analytics_admin_service.delete_display_video360_advertiser_link_proposal | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js,samples/README.md) | -| Analytics_admin_service.delete_expanded_data_set | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_expanded_data_set.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_expanded_data_set.js,samples/README.md) | -| Analytics_admin_service.delete_firebase_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js,samples/README.md) | -| Analytics_admin_service.delete_google_ads_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js,samples/README.md) | -| Analytics_admin_service.delete_ios_app_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.js,samples/README.md) | -| Analytics_admin_service.delete_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js,samples/README.md) | -| Analytics_admin_service.delete_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js,samples/README.md) | -| Analytics_admin_service.delete_search_ads360_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_search_ads360_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_search_ads360_link.js,samples/README.md) | -| Analytics_admin_service.delete_user_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js,samples/README.md) | -| Analytics_admin_service.delete_web_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.js,samples/README.md) | -| Analytics_admin_service.fetch_automated_ga4_configuration_opt_out | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.fetch_automated_ga4_configuration_opt_out.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.fetch_automated_ga4_configuration_opt_out.js,samples/README.md) | -| Analytics_admin_service.fetch_connected_ga4_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.fetch_connected_ga4_property.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.fetch_connected_ga4_property.js,samples/README.md) | -| Analytics_admin_service.get_access_binding | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_access_binding.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_access_binding.js,samples/README.md) | -| Analytics_admin_service.get_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js,samples/README.md) | -| Analytics_admin_service.get_android_app_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js,samples/README.md) | -| Analytics_admin_service.get_attribution_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_attribution_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_attribution_settings.js,samples/README.md) | -| Analytics_admin_service.get_audience | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_audience.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_audience.js,samples/README.md) | -| Analytics_admin_service.get_big_query_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_big_query_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_big_query_link.js,samples/README.md) | -| Analytics_admin_service.get_channel_group | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_channel_group.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_channel_group.js,samples/README.md) | -| Analytics_admin_service.get_conversion_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js,samples/README.md) | -| Analytics_admin_service.get_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js,samples/README.md) | -| Analytics_admin_service.get_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js,samples/README.md) | -| Analytics_admin_service.get_data_retention_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js,samples/README.md) | -| Analytics_admin_service.get_data_sharing_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js,samples/README.md) | -| Analytics_admin_service.get_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_stream.js,samples/README.md) | -| Analytics_admin_service.get_display_video360_advertiser_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js,samples/README.md) | -| Analytics_admin_service.get_display_video360_advertiser_link_proposal | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js,samples/README.md) | -| Analytics_admin_service.get_enhanced_measurement_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_enhanced_measurement_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_enhanced_measurement_settings.js,samples/README.md) | -| Analytics_admin_service.get_expanded_data_set | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_expanded_data_set.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_expanded_data_set.js,samples/README.md) | -| Analytics_admin_service.get_global_site_tag | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js,samples/README.md) | -| Analytics_admin_service.get_google_signals_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js,samples/README.md) | -| Analytics_admin_service.get_ios_app_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.js,samples/README.md) | -| Analytics_admin_service.get_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js,samples/README.md) | -| Analytics_admin_service.get_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js,samples/README.md) | -| Analytics_admin_service.get_search_ads360_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_search_ads360_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_search_ads360_link.js,samples/README.md) | -| Analytics_admin_service.get_user_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js,samples/README.md) | -| Analytics_admin_service.get_web_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.js,samples/README.md) | -| Analytics_admin_service.list_access_bindings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_access_bindings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_access_bindings.js,samples/README.md) | -| Analytics_admin_service.list_account_summaries | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js,samples/README.md) | -| Analytics_admin_service.list_accounts | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js,samples/README.md) | -| Analytics_admin_service.list_android_app_data_streams | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js,samples/README.md) | -| Analytics_admin_service.list_audiences | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_audiences.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_audiences.js,samples/README.md) | -| Analytics_admin_service.list_big_query_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_big_query_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_big_query_links.js,samples/README.md) | -| Analytics_admin_service.list_channel_groups | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_channel_groups.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_channel_groups.js,samples/README.md) | -| Analytics_admin_service.list_connected_site_tags | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_connected_site_tags.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_connected_site_tags.js,samples/README.md) | -| Analytics_admin_service.list_conversion_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js,samples/README.md) | -| Analytics_admin_service.list_custom_dimensions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js,samples/README.md) | -| Analytics_admin_service.list_custom_metrics | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js,samples/README.md) | -| Analytics_admin_service.list_data_streams | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_data_streams.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_data_streams.js,samples/README.md) | -| Analytics_admin_service.list_display_video360_advertiser_link_proposals | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js,samples/README.md) | -| Analytics_admin_service.list_display_video360_advertiser_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js,samples/README.md) | -| Analytics_admin_service.list_expanded_data_sets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_expanded_data_sets.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_expanded_data_sets.js,samples/README.md) | -| Analytics_admin_service.list_firebase_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js,samples/README.md) | -| Analytics_admin_service.list_google_ads_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js,samples/README.md) | -| Analytics_admin_service.list_ios_app_data_streams | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.js,samples/README.md) | -| Analytics_admin_service.list_measurement_protocol_secrets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js,samples/README.md) | -| Analytics_admin_service.list_properties | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js,samples/README.md) | -| Analytics_admin_service.list_search_ads360_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_search_ads360_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_search_ads360_links.js,samples/README.md) | -| Analytics_admin_service.list_user_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js,samples/README.md) | -| Analytics_admin_service.list_web_data_streams | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.js,samples/README.md) | -| Analytics_admin_service.provision_account_ticket | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js,samples/README.md) | -| Analytics_admin_service.run_access_report | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.run_access_report.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.run_access_report.js,samples/README.md) | -| Analytics_admin_service.search_change_history_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js,samples/README.md) | -| Analytics_admin_service.set_automated_ga4_configuration_opt_out | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.set_automated_ga4_configuration_opt_out.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.set_automated_ga4_configuration_opt_out.js,samples/README.md) | -| Analytics_admin_service.update_access_binding | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_access_binding.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_access_binding.js,samples/README.md) | -| Analytics_admin_service.update_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js,samples/README.md) | -| Analytics_admin_service.update_android_app_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.js,samples/README.md) | -| Analytics_admin_service.update_attribution_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_attribution_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_attribution_settings.js,samples/README.md) | -| Analytics_admin_service.update_audience | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_audience.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_audience.js,samples/README.md) | -| Analytics_admin_service.update_channel_group | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_channel_group.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_channel_group.js,samples/README.md) | -| Analytics_admin_service.update_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js,samples/README.md) | -| Analytics_admin_service.update_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js,samples/README.md) | -| Analytics_admin_service.update_data_retention_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js,samples/README.md) | -| Analytics_admin_service.update_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.js,samples/README.md) | -| Analytics_admin_service.update_display_video360_advertiser_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js,samples/README.md) | -| Analytics_admin_service.update_enhanced_measurement_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_enhanced_measurement_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_enhanced_measurement_settings.js,samples/README.md) | -| Analytics_admin_service.update_expanded_data_set | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_expanded_data_set.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_expanded_data_set.js,samples/README.md) | -| Analytics_admin_service.update_google_ads_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js,samples/README.md) | -| Analytics_admin_service.update_google_signals_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js,samples/README.md) | -| Analytics_admin_service.update_ios_app_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.js,samples/README.md) | -| Analytics_admin_service.update_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js,samples/README.md) | -| Analytics_admin_service.update_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js,samples/README.md) | -| Analytics_admin_service.update_search_ads360_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_search_ads360_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_search_ads360_link.js,samples/README.md) | -| Analytics_admin_service.update_user_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js,samples/README.md) | -| Analytics_admin_service.update_web_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.js,samples/README.md) | -| Analytics_admin_service.acknowledge_user_data_collection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.acknowledge_user_data_collection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.acknowledge_user_data_collection.js,samples/README.md) | -| Analytics_admin_service.archive_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_dimension.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_dimension.js,samples/README.md) | -| Analytics_admin_service.archive_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_metric.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_metric.js,samples/README.md) | -| Analytics_admin_service.create_conversion_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_conversion_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_conversion_event.js,samples/README.md) | -| Analytics_admin_service.create_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_dimension.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_dimension.js,samples/README.md) | -| Analytics_admin_service.create_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_metric.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_metric.js,samples/README.md) | -| Analytics_admin_service.create_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_data_stream.js,samples/README.md) | -| Analytics_admin_service.create_firebase_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_firebase_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_firebase_link.js,samples/README.md) | -| Analytics_admin_service.create_google_ads_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_google_ads_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_google_ads_link.js,samples/README.md) | -| Analytics_admin_service.create_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_measurement_protocol_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_measurement_protocol_secret.js,samples/README.md) | -| Analytics_admin_service.create_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_property.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_property.js,samples/README.md) | -| Analytics_admin_service.delete_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_account.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_account.js,samples/README.md) | -| Analytics_admin_service.delete_conversion_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_conversion_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_conversion_event.js,samples/README.md) | -| Analytics_admin_service.delete_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_data_stream.js,samples/README.md) | -| Analytics_admin_service.delete_firebase_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_firebase_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_firebase_link.js,samples/README.md) | -| Analytics_admin_service.delete_google_ads_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_google_ads_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_google_ads_link.js,samples/README.md) | -| Analytics_admin_service.delete_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_measurement_protocol_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_measurement_protocol_secret.js,samples/README.md) | -| Analytics_admin_service.delete_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_property.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_property.js,samples/README.md) | -| Analytics_admin_service.get_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_account.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_account.js,samples/README.md) | -| Analytics_admin_service.get_conversion_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_conversion_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_conversion_event.js,samples/README.md) | -| Analytics_admin_service.get_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_dimension.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_dimension.js,samples/README.md) | -| Analytics_admin_service.get_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_metric.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_metric.js,samples/README.md) | -| Analytics_admin_service.get_data_retention_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_retention_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_retention_settings.js,samples/README.md) | -| Analytics_admin_service.get_data_sharing_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_sharing_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_sharing_settings.js,samples/README.md) | -| Analytics_admin_service.get_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_stream.js,samples/README.md) | -| Analytics_admin_service.get_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_measurement_protocol_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_measurement_protocol_secret.js,samples/README.md) | -| Analytics_admin_service.get_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_property.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_property.js,samples/README.md) | -| Analytics_admin_service.list_account_summaries | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_account_summaries.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_account_summaries.js,samples/README.md) | -| Analytics_admin_service.list_accounts | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_accounts.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_accounts.js,samples/README.md) | -| Analytics_admin_service.list_conversion_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_conversion_events.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_conversion_events.js,samples/README.md) | -| Analytics_admin_service.list_custom_dimensions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_dimensions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_dimensions.js,samples/README.md) | -| Analytics_admin_service.list_custom_metrics | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_metrics.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_metrics.js,samples/README.md) | -| Analytics_admin_service.list_data_streams | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_data_streams.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_data_streams.js,samples/README.md) | -| Analytics_admin_service.list_firebase_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_firebase_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_firebase_links.js,samples/README.md) | -| Analytics_admin_service.list_google_ads_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_google_ads_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_google_ads_links.js,samples/README.md) | -| Analytics_admin_service.list_measurement_protocol_secrets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_measurement_protocol_secrets.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_measurement_protocol_secrets.js,samples/README.md) | -| Analytics_admin_service.list_properties | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_properties.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_properties.js,samples/README.md) | -| Analytics_admin_service.provision_account_ticket | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.provision_account_ticket.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.provision_account_ticket.js,samples/README.md) | -| Analytics_admin_service.run_access_report | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.run_access_report.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.run_access_report.js,samples/README.md) | -| Analytics_admin_service.search_change_history_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.search_change_history_events.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.search_change_history_events.js,samples/README.md) | -| Analytics_admin_service.update_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_account.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_account.js,samples/README.md) | -| Analytics_admin_service.update_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_dimension.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_dimension.js,samples/README.md) | -| Analytics_admin_service.update_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_metric.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_metric.js,samples/README.md) | -| Analytics_admin_service.update_data_retention_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_retention_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_retention_settings.js,samples/README.md) | -| Analytics_admin_service.update_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_stream.js,samples/README.md) | -| Analytics_admin_service.update_google_ads_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_google_ads_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_google_ads_link.js,samples/README.md) | -| Analytics_admin_service.update_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_measurement_protocol_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_measurement_protocol_secret.js,samples/README.md) | -| Analytics_admin_service.update_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_property.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_property.js,samples/README.md) | -| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/quickstart.js,samples/README.md) | -| Quickstart.test | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/test/quickstart.test.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/test/quickstart.test.js,samples/README.md) | +| Analytics_admin_service.acknowledge_user_data_collection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.acknowledge_user_data_collection.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.approve_display_video360_advertiser_link_proposal | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.approve_display_video360_advertiser_link_proposal.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.archive_audience | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_audience.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_audience.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.archive_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_dimension.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.archive_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.archive_custom_metric.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.audit_user_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.audit_user_links.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.batch_create_access_bindings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_access_bindings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_access_bindings.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.batch_create_user_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_create_user_links.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.batch_delete_access_bindings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_access_bindings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_access_bindings.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.batch_delete_user_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_delete_user_links.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.batch_get_access_bindings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_access_bindings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_access_bindings.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.batch_get_user_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_get_user_links.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.batch_update_access_bindings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_access_bindings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_access_bindings.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.batch_update_user_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.batch_update_user_links.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.cancel_display_video360_advertiser_link_proposal | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_access_binding | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_access_binding.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_access_binding.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_ad_sense_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_ad_sense_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_ad_sense_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_audience | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_audience.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_audience.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_channel_group | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_channel_group.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_channel_group.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_connected_site_tag | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_connected_site_tag.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_connected_site_tag.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_conversion_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_conversion_event.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_dimension.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_custom_metric.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_data_stream.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_display_video360_advertiser_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_display_video360_advertiser_link_proposal | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_display_video360_advertiser_link_proposal.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_event_create_rule | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_event_create_rule.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_event_create_rule.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_expanded_data_set | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_expanded_data_set.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_expanded_data_set.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_firebase_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_firebase_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_google_ads_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_google_ads_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_measurement_protocol_secret.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_property.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_search_ads360_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_search_ads360_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_search_ads360_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_user_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_user_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_web_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_web_data_stream.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_access_binding | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_access_binding.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_access_binding.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_account.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_ad_sense_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ad_sense_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ad_sense_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_android_app_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_channel_group | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_channel_group.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_channel_group.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_connected_site_tag | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_connected_site_tag.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_connected_site_tag.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_conversion_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_conversion_event.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_data_stream.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_display_video360_advertiser_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_display_video360_advertiser_link_proposal | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_display_video360_advertiser_link_proposal.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_event_create_rule | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_event_create_rule.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_event_create_rule.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_expanded_data_set | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_expanded_data_set.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_expanded_data_set.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_firebase_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_firebase_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_google_ads_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_google_ads_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_ios_app_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ios_app_data_stream.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_measurement_protocol_secret.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_property.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_search_ads360_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_search_ads360_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_search_ads360_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_user_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_user_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_web_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_web_data_stream.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.fetch_automated_ga4_configuration_opt_out | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.fetch_automated_ga4_configuration_opt_out.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.fetch_automated_ga4_configuration_opt_out.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.fetch_connected_ga4_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.fetch_connected_ga4_property.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.fetch_connected_ga4_property.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_access_binding | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_access_binding.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_access_binding.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_account.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_ad_sense_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ad_sense_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ad_sense_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_android_app_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_attribution_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_attribution_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_attribution_settings.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_audience | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_audience.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_audience.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_big_query_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_big_query_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_big_query_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_channel_group | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_channel_group.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_channel_group.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_conversion_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_conversion_event.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_dimension.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_custom_metric.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_data_retention_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_retention_settings.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_data_sharing_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_sharing_settings.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_data_stream.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_display_video360_advertiser_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_display_video360_advertiser_link_proposal | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_display_video360_advertiser_link_proposal.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_enhanced_measurement_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_enhanced_measurement_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_enhanced_measurement_settings.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_event_create_rule | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_event_create_rule.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_event_create_rule.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_expanded_data_set | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_expanded_data_set.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_expanded_data_set.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_global_site_tag | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_global_site_tag.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_google_signals_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_google_signals_settings.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_ios_app_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ios_app_data_stream.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_measurement_protocol_secret.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_property.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_search_ads360_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_search_ads360_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_search_ads360_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_user_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_user_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_web_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_web_data_stream.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_access_bindings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_access_bindings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_access_bindings.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_account_summaries | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_accounts | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_accounts.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_ad_sense_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ad_sense_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ad_sense_links.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_android_app_data_streams | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_audiences | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_audiences.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_audiences.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_big_query_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_big_query_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_big_query_links.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_channel_groups | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_channel_groups.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_channel_groups.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_connected_site_tags | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_connected_site_tags.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_connected_site_tags.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_conversion_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_custom_dimensions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_custom_metrics | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_data_streams | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_data_streams.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_data_streams.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_display_video360_advertiser_link_proposals | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_display_video360_advertiser_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_event_create_rules | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_event_create_rules.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_event_create_rules.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_expanded_data_sets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_expanded_data_sets.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_expanded_data_sets.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_firebase_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_google_ads_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_ios_app_data_streams | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ios_app_data_streams.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_measurement_protocol_secrets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_properties | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_properties.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_search_ads360_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_search_ads360_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_search_ads360_links.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_user_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_user_links.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_web_data_streams | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_web_data_streams.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.provision_account_ticket | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.provision_account_ticket.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.run_access_report | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.run_access_report.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.run_access_report.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.search_change_history_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.set_automated_ga4_configuration_opt_out | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.set_automated_ga4_configuration_opt_out.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.set_automated_ga4_configuration_opt_out.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_access_binding | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_access_binding.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_access_binding.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_account.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_android_app_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_android_app_data_stream.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_attribution_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_attribution_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_attribution_settings.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_audience | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_audience.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_audience.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_channel_group | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_channel_group.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_channel_group.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_dimension.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_custom_metric.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_data_retention_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_retention_settings.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_data_stream.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_display_video360_advertiser_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_display_video360_advertiser_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_enhanced_measurement_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_enhanced_measurement_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_enhanced_measurement_settings.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_event_create_rule | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_event_create_rule.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_event_create_rule.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_expanded_data_set | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_expanded_data_set.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_expanded_data_set.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_google_ads_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_ads_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_google_signals_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_google_signals_settings.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_ios_app_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_ios_app_data_stream.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_measurement_protocol_secret.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_property.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_search_ads360_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_search_ads360_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_search_ads360_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_user_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_user_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_web_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_web_data_stream.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.acknowledge_user_data_collection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.acknowledge_user_data_collection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.acknowledge_user_data_collection.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.archive_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_dimension.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_dimension.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.archive_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_metric.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.archive_custom_metric.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_conversion_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_conversion_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_conversion_event.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_dimension.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_dimension.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_metric.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_custom_metric.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_data_stream.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_firebase_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_firebase_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_firebase_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_google_ads_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_google_ads_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_google_ads_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_measurement_protocol_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_measurement_protocol_secret.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.create_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_property.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.create_property.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_account.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_account.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_conversion_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_conversion_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_conversion_event.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_data_stream.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_firebase_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_firebase_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_firebase_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_google_ads_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_google_ads_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_google_ads_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_measurement_protocol_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_measurement_protocol_secret.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.delete_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_property.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.delete_property.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_account.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_account.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_conversion_event | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_conversion_event.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_conversion_event.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_dimension.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_dimension.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_metric.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_custom_metric.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_data_retention_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_retention_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_retention_settings.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_data_sharing_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_sharing_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_sharing_settings.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_data_stream.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_measurement_protocol_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_measurement_protocol_secret.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.get_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_property.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.get_property.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_account_summaries | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_account_summaries.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_account_summaries.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_accounts | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_accounts.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_accounts.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_conversion_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_conversion_events.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_conversion_events.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_custom_dimensions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_dimensions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_dimensions.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_custom_metrics | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_metrics.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_custom_metrics.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_data_streams | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_data_streams.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_data_streams.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_firebase_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_firebase_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_firebase_links.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_google_ads_links | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_google_ads_links.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_google_ads_links.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_measurement_protocol_secrets | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_measurement_protocol_secrets.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_measurement_protocol_secrets.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.list_properties | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_properties.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.list_properties.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.provision_account_ticket | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.provision_account_ticket.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.provision_account_ticket.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.run_access_report | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.run_access_report.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.run_access_report.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.search_change_history_events | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.search_change_history_events.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.search_change_history_events.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_account | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_account.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_account.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_custom_dimension | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_dimension.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_dimension.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_custom_metric | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_metric.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_custom_metric.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_data_retention_settings | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_retention_settings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_retention_settings.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_data_stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_stream.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_data_stream.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_google_ads_link | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_google_ads_link.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_google_ads_link.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_measurement_protocol_secret | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_measurement_protocol_secret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_measurement_protocol_secret.js,packages/google-analytics-admin/samples/README.md) | +| Analytics_admin_service.update_property | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_property.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1beta/analytics_admin_service.update_property.js,packages/google-analytics-admin/samples/README.md) | +| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/quickstart.js,packages/google-analytics-admin/samples/README.md) | diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto index 48e11b7ddc6..fe9492274e2 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto @@ -19,6 +19,7 @@ package google.analytics.admin.v1alpha; import "google/analytics/admin/v1alpha/access_report.proto"; import "google/analytics/admin/v1alpha/audience.proto"; import "google/analytics/admin/v1alpha/channel_group.proto"; +import "google/analytics/admin/v1alpha/event_create_and_edit.proto"; import "google/analytics/admin/v1alpha/expanded_data_set.proto"; import "google/analytics/admin/v1alpha/resources.proto"; import "google/api/annotations.proto"; @@ -1238,6 +1239,87 @@ service AnalyticsAdminService { get: "/v1alpha/properties:fetchConnectedGa4Property" }; } + + // Looks up a single AdSenseLink. + rpc GetAdSenseLink(GetAdSenseLinkRequest) returns (AdSenseLink) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/adSenseLinks/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates an AdSenseLink. + rpc CreateAdSenseLink(CreateAdSenseLinkRequest) returns (AdSenseLink) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/adSenseLinks" + body: "adsense_link" + }; + option (google.api.method_signature) = "parent,adsense_link"; + } + + // Deletes an AdSenseLink. + rpc DeleteAdSenseLink(DeleteAdSenseLinkRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/adSenseLinks/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists AdSenseLinks on a property. + rpc ListAdSenseLinks(ListAdSenseLinksRequest) + returns (ListAdSenseLinksResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/adSenseLinks" + }; + option (google.api.method_signature) = "parent"; + } + + // Lookup for a single EventCreateRule. + rpc GetEventCreateRule(GetEventCreateRuleRequest) returns (EventCreateRule) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists EventCreateRules on a web data stream. + rpc ListEventCreateRules(ListEventCreateRulesRequest) + returns (ListEventCreateRulesResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates an EventCreateRule. + rpc CreateEventCreateRule(CreateEventCreateRuleRequest) + returns (EventCreateRule) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules" + body: "event_create_rule" + }; + option (google.api.method_signature) = "parent,event_create_rule"; + } + + // Updates an EventCreateRule. + rpc UpdateEventCreateRule(UpdateEventCreateRuleRequest) + returns (EventCreateRule) { + option (google.api.http) = { + patch: "/v1alpha/{event_create_rule.name=properties/*/dataStreams/*/eventCreateRules/*}" + body: "event_create_rule" + }; + option (google.api.method_signature) = "event_create_rule,update_mask"; + } + + // Deletes an EventCreateRule. + rpc DeleteEventCreateRule(DeleteEventCreateRuleRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}" + }; + option (google.api.method_signature) = "name"; + } } // The request for a Data Access Record Report. @@ -3406,6 +3488,83 @@ message ListConnectedSiteTagsResponse { repeated ConnectedSiteTag connected_site_tags = 1; } +// Request message to be passed to CreateAdSenseLink method. +message CreateAdSenseLinkRequest { + // Required. The property for which to create an AdSense Link. + // Format: properties/{propertyId} + // Example: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/AdSenseLink" + } + ]; + + // Required. The AdSense Link to create + AdSenseLink adsense_link = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message to be passed to GetAdSenseLink method. +message GetAdSenseLinkRequest { + // Required. Unique identifier for the AdSense Link requested. + // Format: properties/{propertyId}/adSenseLinks/{linkId} + // Example: properties/1234/adSenseLinks/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/AdSenseLink" + } + ]; +} + +// Request message to be passed to DeleteAdSenseLink method. +message DeleteAdSenseLinkRequest { + // Required. Unique identifier for the AdSense Link to be deleted. + // Format: properties/{propertyId}/adSenseLinks/{linkId} + // Example: properties/1234/adSenseLinks/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/AdSenseLink" + } + ]; +} + +// Request message to be passed to ListAdSenseLinks method. +message ListAdSenseLinksRequest { + // Required. Resource name of the parent property. + // Format: properties/{propertyId} + // Example: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/AdSenseLink" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200 (higher values will be coerced to the maximum). + int32 page_size = 2; + + // A page token received from a previous `ListAdSenseLinks` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListAdSenseLinks` must + // match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListAdSenseLinks method. +message ListAdSenseLinksResponse { + // List of AdSenseLinks. + repeated AdSenseLink adsense_links = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + // Request for looking up GA4 property connected to a UA property. message FetchConnectedGa4PropertyRequest { // Required. The UA property for which to look up the connected GA4 property. @@ -3431,3 +3590,92 @@ message FetchConnectedGa4PropertyResponse { type: "analyticsadmin.googleapis.com/Property" }]; } + +// Request message for CreateEventCreateRule RPC. +message CreateEventCreateRuleRequest { + // Required. Example format: properties/123/dataStreams/456 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/EventCreateRule" + } + ]; + + // Required. The EventCreateRule to create. + EventCreateRule event_create_rule = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for UpdateEventCreateRule RPC. +message UpdateEventCreateRuleRequest { + // Required. The EventCreateRule to update. + // The resource's `name` field is used to identify the EventCreateRule to be + // updated. + EventCreateRule event_create_rule = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to be updated. Field names must be in snake + // case (e.g., "field_to_update"). Omitted fields will not be updated. To + // replace the entire entity, use one path with the string "*" to match all + // fields. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for DeleteEventCreateRule RPC. +message DeleteEventCreateRuleRequest { + // Required. Example format: + // properties/123/dataStreams/456/eventCreateRules/789 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/EventCreateRule" + } + ]; +} + +// Request message for GetEventCreateRule RPC. +message GetEventCreateRuleRequest { + // Required. The name of the EventCreateRule to get. + // Example format: properties/123/dataStreams/456/eventCreateRules/789 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/EventCreateRule" + } + ]; +} + +// Request message for ListEventCreateRules RPC. +message ListEventCreateRulesRequest { + // Required. Example format: properties/123/dataStreams/456 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/EventCreateRule" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200 (higher values will be coerced to the maximum). + int32 page_size = 2; + + // A page token, received from a previous `ListEventCreateRules` call. Provide + // this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListEventCreateRules` + // must match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListEventCreateRules RPC. +message ListEventCreateRulesResponse { + // List of EventCreateRules. These will be ordered stably, but in an arbitrary + // order. + repeated EventCreateRule event_create_rules = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/audience.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/audience.proto index 775ecaa98ab..3478ce9dc8d 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/audience.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/audience.proto @@ -153,7 +153,12 @@ message AudienceDimensionOrMetricFilter { BetweenFilter between_filter = 5; } - // Required. Immutable. The dimension name or metric name to filter. + // Required. Immutable. The dimension name or metric name to filter. If the + // field name refers to a custom dimension or metric, a scope prefix will be + // added to the front of the custom dimensions or metric name. For more on + // scope prefixes or custom dimensions/metrics, reference the [Google + // Analytics Data API documentation] + // (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions). string field_name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE @@ -170,7 +175,7 @@ message AudienceDimensionOrMetricFilter { // Optional. If set, specifies the time window for which to evaluate data in // number of days. If not set, then audience data is evaluated against - // lifetime data (i.e., infinite time window). + // lifetime data (For example, infinite time window). // // For example, if set to 1 day, only the current day's data is evaluated. The // reference point is the current day when at_any_point_in_time is unset or @@ -193,7 +198,7 @@ message AudienceEventFilter { // Optional. If specified, this filter matches events that match both the // single event name and the parameter filter expressions. AudienceEventFilter - // inside the parameter filter expression cannot be set (i.e., nested + // inside the parameter filter expression cannot be set (For example, nested // event filters are not supported). This should be a single and_group of // dimension_or_metric_filter or not_expression; ANDs of ORs are not // supported. Also, if it includes a filter for "eventCount", only that one @@ -215,9 +220,9 @@ message AudienceFilterExpression { // AudienceFilterExpressions with and_group or or_group. AudienceFilterExpressionList or_group = 2; - // A filter expression to be NOT'ed (i.e., inverted, complemented). It - // can only include a dimension_or_metric_filter. This cannot be set on the - // top level AudienceFilterExpression. + // A filter expression to be NOT'ed (For example, inverted, complemented). + // It can only include a dimension_or_metric_filter. This cannot be set on + // the top level AudienceFilterExpression. AudienceFilterExpression not_expression = 3; // A filter on a single dimension or metric. This cannot be set on the top @@ -273,7 +278,7 @@ message AudienceSequenceFilter { bool immediately_follows = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. When set, this step must be satisfied within the - // constraint_duration of the previous step (i.e., t[i] - t[i-1] <= + // constraint_duration of the previous step (For example, t[i] - t[i-1] <= // constraint_duration). If not set, there is no duration requirement (the // duration is effectively unlimited). It is ignored for the first step. google.protobuf.Duration constraint_duration = 3 @@ -304,9 +309,9 @@ message AudienceSequenceFilter { } // A clause for defining either a simple or sequence filter. A filter can be -// inclusive (i.e., users satisfying the filter clause are included in the -// Audience) or exclusive (i.e., users satisfying the filter clause are -// excluded from the Audience). +// inclusive (For example, users satisfying the filter clause are included in +// the Audience) or exclusive (For example, users satisfying the filter clause +// are excluded from the Audience). message AudienceFilterClause { // Specifies whether this is an include or exclude filter clause. enum AudienceClauseType { diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/event_create_and_edit.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/event_create_and_edit.proto new file mode 100644 index 00000000000..9ff020f9899 --- /dev/null +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/event_create_and_edit.proto @@ -0,0 +1,162 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.analytics.admin.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option go_package = "cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpb"; +option java_multiple_files = true; +option java_package = "com.google.analytics.admin.v1alpha"; + +// Defines an event parameter to mutate. +message ParameterMutation { + // Required. The name of the parameter to mutate. + // This value must: + // * be less than 40 characters. + // * be unique across across all mutations within the rule + // * consist only of letters, digits or _ (underscores) + // For event edit rules, the name may also be set to 'event_name' to modify + // the event_name in place. + string parameter = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The value mutation to perform. + // * Must be less than 100 characters. + // * To specify a constant value for the param, use the value's string. + // * To copy value from another parameter, use syntax like + // "[[other_parameter]]" For more details, see this [help center + // article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters). + string parameter_value = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// An Event Create Rule defines conditions that will trigger the creation +// of an entirely new event based upon matched criteria of a source event. +// Additional mutations of the parameters from the source event can be defined. +// +// Unlike Event Edit rules, Event Creation Rules have no defined order. They +// will all be run independently. +// +// Event Edit and Event Create rules can't be used to modify an event created +// from an Event Create rule. +message EventCreateRule { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/EventCreateRule" + pattern: "properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}" + }; + + // Output only. Resource name for this EventCreateRule resource. + // Format: + // properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The name of the new event to be created. + // + // This value must: + // * be less than 40 characters + // * consist only of letters, digits or _ (underscores) + // * start with a letter + string destination_event = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Must have at least one condition, and can have up to 10 max. + // Conditions on the source event must match for this rule to be applied. + repeated MatchingCondition event_conditions = 3 + [(google.api.field_behavior) = REQUIRED]; + + // If true, the source parameters are copied to the new event. + // If false, or unset, all non-internal parameters are not copied from the + // source event. Parameter mutations are applied after the parameters have + // been copied. + bool source_copy_parameters = 4; + + // Parameter mutations define parameter behavior on the new event, and + // are applied in order. + // A maximum of 20 mutations can be applied. + repeated ParameterMutation parameter_mutations = 5; +} + +// Defines a condition for when an Event Edit or Event Creation rule applies to +// an event. +message MatchingCondition { + // Comparison type for matching condition + enum ComparisonType { + // Unknown + COMPARISON_TYPE_UNSPECIFIED = 0; + + // Equals, case sensitive + EQUALS = 1; + + // Equals, case insensitive + EQUALS_CASE_INSENSITIVE = 2; + + // Contains, case sensitive + CONTAINS = 3; + + // Contains, case insensitive + CONTAINS_CASE_INSENSITIVE = 4; + + // Starts with, case sensitive + STARTS_WITH = 5; + + // Starts with, case insensitive + STARTS_WITH_CASE_INSENSITIVE = 6; + + // Ends with, case sensitive + ENDS_WITH = 7; + + // Ends with, case insensitive + ENDS_WITH_CASE_INSENSITIVE = 8; + + // Greater than + GREATER_THAN = 9; + + // Greater than or equal + GREATER_THAN_OR_EQUAL = 10; + + // Less than + LESS_THAN = 11; + + // Less than or equal + LESS_THAN_OR_EQUAL = 12; + + // regular expression. Only supported for web streams. + REGULAR_EXPRESSION = 13; + + // regular expression, case insensitive. Only supported for web streams. + REGULAR_EXPRESSION_CASE_INSENSITIVE = 14; + } + + // Required. The name of the field that is compared against for the condition. + // If 'event_name' is specified this condition will apply to the name of the + // event. Otherwise the condition will apply to a parameter with the + // specified name. + // + // This value cannot contain spaces. + string field = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The type of comparison to be applied to the value. + ComparisonType comparison_type = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The value being compared against for this condition. The runtime + // implementation may perform type coercion of this value to evaluate this + // condition based on the type of the parameter value. + string value = 3 [(google.api.field_behavior) = REQUIRED]; + + // Whether or not the result of the comparison should be negated. For example, + // if `negated` is true, then 'equals' comparisons would function as 'not + // equals'. + bool negated = 4; +} diff --git a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto index eca55eeeca2..d4f9101cae6 100644 --- a/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto +++ b/packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto @@ -16,7 +16,9 @@ syntax = "proto3"; package google.analytics.admin.v1alpha; +import "google/analytics/admin/v1alpha/audience.proto"; import "google/analytics/admin/v1alpha/channel_group.proto"; +import "google/analytics/admin/v1alpha/event_create_and_edit.proto"; import "google/analytics/admin/v1alpha/expanded_data_set.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; @@ -213,6 +215,15 @@ enum ChangeHistoryResourceType { // EnhancedMeasurementSettings resource ENHANCED_MEASUREMENT_SETTINGS = 24; + + // AdSenseLink resource + ADSENSE_LINK = 27; + + // Audience resource + AUDIENCE = 28; + + // EventCreateRule resource + EVENT_CREATE_RULE = 29; } // Status of the Google Signals settings. @@ -857,6 +868,15 @@ message ChangeHistoryChange { // A snapshot of EnhancedMeasurementSettings resource in change history. EnhancedMeasurementSettings enhanced_measurement_settings = 24; + + // A snapshot of an AdSenseLink resource in change history. + AdSenseLink adsense_link = 27; + + // A snapshot of an Audience resource in change history. + Audience audience = 28; + + // A snapshot of an EventCreateRule resource in change history. + EventCreateRule event_create_rule = 29; } } @@ -1563,3 +1583,20 @@ message ConnectedSiteTag { // or the "G-ID" (For example: G-12345). string tag_id = 2 [(google.api.field_behavior) = REQUIRED]; } + +// A link between a GA4 Property and an AdSense for Content ad client. +message AdSenseLink { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/AdSenseLink" + pattern: "properties/{property}/adSenseLinks/{adsense_link}" + }; + + // Output only. The resource name for this AdSense Link resource. + // Format: properties/{propertyId}/adSenseLinks/{linkId} + // Example: properties/1234/adSenseLinks/6789 + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The AdSense ad client code that the GA4 property is linked to. + // Example format: "ca-pub-1234567890" + string ad_client_code = 2 [(google.api.field_behavior) = IMMUTABLE]; +} diff --git a/packages/google-analytics-admin/protos/protos.d.ts b/packages/google-analytics-admin/protos/protos.d.ts index 3707ea9f373..cd7f6b230e2 100644 --- a/packages/google-analytics-admin/protos/protos.d.ts +++ b/packages/google-analytics-admin/protos/protos.d.ts @@ -3855,6 +3855,132 @@ export namespace google { * @returns Promise */ public fetchConnectedGa4Property(request: google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyRequest): Promise; + + /** + * Calls GetAdSenseLink. + * @param request GetAdSenseLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AdSenseLink + */ + public getAdSenseLink(request: google.analytics.admin.v1alpha.IGetAdSenseLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetAdSenseLinkCallback): void; + + /** + * Calls GetAdSenseLink. + * @param request GetAdSenseLinkRequest message or plain object + * @returns Promise + */ + public getAdSenseLink(request: google.analytics.admin.v1alpha.IGetAdSenseLinkRequest): Promise; + + /** + * Calls CreateAdSenseLink. + * @param request CreateAdSenseLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AdSenseLink + */ + public createAdSenseLink(request: google.analytics.admin.v1alpha.ICreateAdSenseLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAdSenseLinkCallback): void; + + /** + * Calls CreateAdSenseLink. + * @param request CreateAdSenseLinkRequest message or plain object + * @returns Promise + */ + public createAdSenseLink(request: google.analytics.admin.v1alpha.ICreateAdSenseLinkRequest): Promise; + + /** + * Calls DeleteAdSenseLink. + * @param request DeleteAdSenseLinkRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteAdSenseLink(request: google.analytics.admin.v1alpha.IDeleteAdSenseLinkRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAdSenseLinkCallback): void; + + /** + * Calls DeleteAdSenseLink. + * @param request DeleteAdSenseLinkRequest message or plain object + * @returns Promise + */ + public deleteAdSenseLink(request: google.analytics.admin.v1alpha.IDeleteAdSenseLinkRequest): Promise; + + /** + * Calls ListAdSenseLinks. + * @param request ListAdSenseLinksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListAdSenseLinksResponse + */ + public listAdSenseLinks(request: google.analytics.admin.v1alpha.IListAdSenseLinksRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListAdSenseLinksCallback): void; + + /** + * Calls ListAdSenseLinks. + * @param request ListAdSenseLinksRequest message or plain object + * @returns Promise + */ + public listAdSenseLinks(request: google.analytics.admin.v1alpha.IListAdSenseLinksRequest): Promise; + + /** + * Calls GetEventCreateRule. + * @param request GetEventCreateRuleRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EventCreateRule + */ + public getEventCreateRule(request: google.analytics.admin.v1alpha.IGetEventCreateRuleRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.GetEventCreateRuleCallback): void; + + /** + * Calls GetEventCreateRule. + * @param request GetEventCreateRuleRequest message or plain object + * @returns Promise + */ + public getEventCreateRule(request: google.analytics.admin.v1alpha.IGetEventCreateRuleRequest): Promise; + + /** + * Calls ListEventCreateRules. + * @param request ListEventCreateRulesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListEventCreateRulesResponse + */ + public listEventCreateRules(request: google.analytics.admin.v1alpha.IListEventCreateRulesRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.ListEventCreateRulesCallback): void; + + /** + * Calls ListEventCreateRules. + * @param request ListEventCreateRulesRequest message or plain object + * @returns Promise + */ + public listEventCreateRules(request: google.analytics.admin.v1alpha.IListEventCreateRulesRequest): Promise; + + /** + * Calls CreateEventCreateRule. + * @param request CreateEventCreateRuleRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EventCreateRule + */ + public createEventCreateRule(request: google.analytics.admin.v1alpha.ICreateEventCreateRuleRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.CreateEventCreateRuleCallback): void; + + /** + * Calls CreateEventCreateRule. + * @param request CreateEventCreateRuleRequest message or plain object + * @returns Promise + */ + public createEventCreateRule(request: google.analytics.admin.v1alpha.ICreateEventCreateRuleRequest): Promise; + + /** + * Calls UpdateEventCreateRule. + * @param request UpdateEventCreateRuleRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EventCreateRule + */ + public updateEventCreateRule(request: google.analytics.admin.v1alpha.IUpdateEventCreateRuleRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateEventCreateRuleCallback): void; + + /** + * Calls UpdateEventCreateRule. + * @param request UpdateEventCreateRuleRequest message or plain object + * @returns Promise + */ + public updateEventCreateRule(request: google.analytics.admin.v1alpha.IUpdateEventCreateRuleRequest): Promise; + + /** + * Calls DeleteEventCreateRule. + * @param request DeleteEventCreateRuleRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteEventCreateRule(request: google.analytics.admin.v1alpha.IDeleteEventCreateRuleRequest, callback: google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteEventCreateRuleCallback): void; + + /** + * Calls DeleteEventCreateRule. + * @param request DeleteEventCreateRuleRequest message or plain object + * @returns Promise + */ + public deleteEventCreateRule(request: google.analytics.admin.v1alpha.IDeleteEventCreateRuleRequest): Promise; } namespace AnalyticsAdminService { @@ -4649,6 +4775,69 @@ export namespace google { * @param [response] FetchConnectedGa4PropertyResponse */ type FetchConnectedGa4PropertyCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getAdSenseLink}. + * @param error Error, if any + * @param [response] AdSenseLink + */ + type GetAdSenseLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.AdSenseLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createAdSenseLink}. + * @param error Error, if any + * @param [response] AdSenseLink + */ + type CreateAdSenseLinkCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.AdSenseLink) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteAdSenseLink}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteAdSenseLinkCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listAdSenseLinks}. + * @param error Error, if any + * @param [response] ListAdSenseLinksResponse + */ + type ListAdSenseLinksCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListAdSenseLinksResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getEventCreateRule}. + * @param error Error, if any + * @param [response] EventCreateRule + */ + type GetEventCreateRuleCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.EventCreateRule) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listEventCreateRules}. + * @param error Error, if any + * @param [response] ListEventCreateRulesResponse + */ + type ListEventCreateRulesCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.ListEventCreateRulesResponse) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createEventCreateRule}. + * @param error Error, if any + * @param [response] EventCreateRule + */ + type CreateEventCreateRuleCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.EventCreateRule) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateEventCreateRule}. + * @param error Error, if any + * @param [response] EventCreateRule + */ + type UpdateEventCreateRuleCallback = (error: (Error|null), response?: google.analytics.admin.v1alpha.EventCreateRule) => void; + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteEventCreateRule}. + * @param error Error, if any + * @param [response] Empty + */ + type DeleteEventCreateRuleCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } /** Properties of a RunAccessReportRequest. */ @@ -19666,888 +19855,2663 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FetchConnectedGa4PropertyRequest. */ - interface IFetchConnectedGa4PropertyRequest { + /** Properties of a CreateAdSenseLinkRequest. */ + interface ICreateAdSenseLinkRequest { - /** FetchConnectedGa4PropertyRequest property */ - property?: (string|null); + /** CreateAdSenseLinkRequest parent */ + parent?: (string|null); + + /** CreateAdSenseLinkRequest adsenseLink */ + adsenseLink?: (google.analytics.admin.v1alpha.IAdSenseLink|null); } - /** Represents a FetchConnectedGa4PropertyRequest. */ - class FetchConnectedGa4PropertyRequest implements IFetchConnectedGa4PropertyRequest { + /** Represents a CreateAdSenseLinkRequest. */ + class CreateAdSenseLinkRequest implements ICreateAdSenseLinkRequest { /** - * Constructs a new FetchConnectedGa4PropertyRequest. + * Constructs a new CreateAdSenseLinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyRequest); + constructor(properties?: google.analytics.admin.v1alpha.ICreateAdSenseLinkRequest); - /** FetchConnectedGa4PropertyRequest property. */ - public property: string; + /** CreateAdSenseLinkRequest parent. */ + public parent: string; + + /** CreateAdSenseLinkRequest adsenseLink. */ + public adsenseLink?: (google.analytics.admin.v1alpha.IAdSenseLink|null); /** - * Creates a new FetchConnectedGa4PropertyRequest instance using the specified properties. + * Creates a new CreateAdSenseLinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FetchConnectedGa4PropertyRequest instance + * @returns CreateAdSenseLinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyRequest): google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest; + public static create(properties?: google.analytics.admin.v1alpha.ICreateAdSenseLinkRequest): google.analytics.admin.v1alpha.CreateAdSenseLinkRequest; /** - * Encodes the specified FetchConnectedGa4PropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest.verify|verify} messages. - * @param message FetchConnectedGa4PropertyRequest message or plain object to encode + * Encodes the specified CreateAdSenseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAdSenseLinkRequest.verify|verify} messages. + * @param message CreateAdSenseLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ICreateAdSenseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FetchConnectedGa4PropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest.verify|verify} messages. - * @param message FetchConnectedGa4PropertyRequest message or plain object to encode + * Encodes the specified CreateAdSenseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAdSenseLinkRequest.verify|verify} messages. + * @param message CreateAdSenseLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateAdSenseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FetchConnectedGa4PropertyRequest message from the specified reader or buffer. + * Decodes a CreateAdSenseLinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FetchConnectedGa4PropertyRequest + * @returns CreateAdSenseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateAdSenseLinkRequest; /** - * Decodes a FetchConnectedGa4PropertyRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateAdSenseLinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FetchConnectedGa4PropertyRequest + * @returns CreateAdSenseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateAdSenseLinkRequest; /** - * Verifies a FetchConnectedGa4PropertyRequest message. + * Verifies a CreateAdSenseLinkRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FetchConnectedGa4PropertyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateAdSenseLinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FetchConnectedGa4PropertyRequest + * @returns CreateAdSenseLinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateAdSenseLinkRequest; /** - * Creates a plain object from a FetchConnectedGa4PropertyRequest message. Also converts values to other types if specified. - * @param message FetchConnectedGa4PropertyRequest + * Creates a plain object from a CreateAdSenseLinkRequest message. Also converts values to other types if specified. + * @param message CreateAdSenseLinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.CreateAdSenseLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FetchConnectedGa4PropertyRequest to JSON. + * Converts this CreateAdSenseLinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FetchConnectedGa4PropertyRequest + * Gets the default type url for CreateAdSenseLinkRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FetchConnectedGa4PropertyResponse. */ - interface IFetchConnectedGa4PropertyResponse { + /** Properties of a GetAdSenseLinkRequest. */ + interface IGetAdSenseLinkRequest { - /** FetchConnectedGa4PropertyResponse property */ - property?: (string|null); + /** GetAdSenseLinkRequest name */ + name?: (string|null); } - /** Represents a FetchConnectedGa4PropertyResponse. */ - class FetchConnectedGa4PropertyResponse implements IFetchConnectedGa4PropertyResponse { + /** Represents a GetAdSenseLinkRequest. */ + class GetAdSenseLinkRequest implements IGetAdSenseLinkRequest { /** - * Constructs a new FetchConnectedGa4PropertyResponse. + * Constructs a new GetAdSenseLinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyResponse); + constructor(properties?: google.analytics.admin.v1alpha.IGetAdSenseLinkRequest); - /** FetchConnectedGa4PropertyResponse property. */ - public property: string; + /** GetAdSenseLinkRequest name. */ + public name: string; /** - * Creates a new FetchConnectedGa4PropertyResponse instance using the specified properties. + * Creates a new GetAdSenseLinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FetchConnectedGa4PropertyResponse instance + * @returns GetAdSenseLinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyResponse): google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse; + public static create(properties?: google.analytics.admin.v1alpha.IGetAdSenseLinkRequest): google.analytics.admin.v1alpha.GetAdSenseLinkRequest; /** - * Encodes the specified FetchConnectedGa4PropertyResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse.verify|verify} messages. - * @param message FetchConnectedGa4PropertyResponse message or plain object to encode + * Encodes the specified GetAdSenseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAdSenseLinkRequest.verify|verify} messages. + * @param message GetAdSenseLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IGetAdSenseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FetchConnectedGa4PropertyResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse.verify|verify} messages. - * @param message FetchConnectedGa4PropertyResponse message or plain object to encode + * Encodes the specified GetAdSenseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAdSenseLinkRequest.verify|verify} messages. + * @param message GetAdSenseLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetAdSenseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FetchConnectedGa4PropertyResponse message from the specified reader or buffer. + * Decodes a GetAdSenseLinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FetchConnectedGa4PropertyResponse + * @returns GetAdSenseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetAdSenseLinkRequest; /** - * Decodes a FetchConnectedGa4PropertyResponse message from the specified reader or buffer, length delimited. + * Decodes a GetAdSenseLinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FetchConnectedGa4PropertyResponse + * @returns GetAdSenseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetAdSenseLinkRequest; /** - * Verifies a FetchConnectedGa4PropertyResponse message. + * Verifies a GetAdSenseLinkRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FetchConnectedGa4PropertyResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetAdSenseLinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FetchConnectedGa4PropertyResponse + * @returns GetAdSenseLinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetAdSenseLinkRequest; /** - * Creates a plain object from a FetchConnectedGa4PropertyResponse message. Also converts values to other types if specified. - * @param message FetchConnectedGa4PropertyResponse + * Creates a plain object from a GetAdSenseLinkRequest message. Also converts values to other types if specified. + * @param message GetAdSenseLinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.GetAdSenseLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FetchConnectedGa4PropertyResponse to JSON. + * Converts this GetAdSenseLinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FetchConnectedGa4PropertyResponse + * Gets the default type url for GetAdSenseLinkRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** AudienceFilterScope enum. */ - enum AudienceFilterScope { - AUDIENCE_FILTER_SCOPE_UNSPECIFIED = 0, - AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT = 1, - AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION = 2, - AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS = 3 - } - - /** Properties of an AudienceDimensionOrMetricFilter. */ - interface IAudienceDimensionOrMetricFilter { - - /** AudienceDimensionOrMetricFilter stringFilter */ - stringFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter|null); - - /** AudienceDimensionOrMetricFilter inListFilter */ - inListFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter|null); - - /** AudienceDimensionOrMetricFilter numericFilter */ - numericFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter|null); - - /** AudienceDimensionOrMetricFilter betweenFilter */ - betweenFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter|null); - - /** AudienceDimensionOrMetricFilter fieldName */ - fieldName?: (string|null); - - /** AudienceDimensionOrMetricFilter atAnyPointInTime */ - atAnyPointInTime?: (boolean|null); + /** Properties of a DeleteAdSenseLinkRequest. */ + interface IDeleteAdSenseLinkRequest { - /** AudienceDimensionOrMetricFilter inAnyNDayPeriod */ - inAnyNDayPeriod?: (number|null); + /** DeleteAdSenseLinkRequest name */ + name?: (string|null); } - /** Represents an AudienceDimensionOrMetricFilter. */ - class AudienceDimensionOrMetricFilter implements IAudienceDimensionOrMetricFilter { + /** Represents a DeleteAdSenseLinkRequest. */ + class DeleteAdSenseLinkRequest implements IDeleteAdSenseLinkRequest { /** - * Constructs a new AudienceDimensionOrMetricFilter. + * Constructs a new DeleteAdSenseLinkRequest. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter); - - /** AudienceDimensionOrMetricFilter stringFilter. */ - public stringFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter|null); - - /** AudienceDimensionOrMetricFilter inListFilter. */ - public inListFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter|null); - - /** AudienceDimensionOrMetricFilter numericFilter. */ - public numericFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter|null); - - /** AudienceDimensionOrMetricFilter betweenFilter. */ - public betweenFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter|null); + constructor(properties?: google.analytics.admin.v1alpha.IDeleteAdSenseLinkRequest); - /** AudienceDimensionOrMetricFilter fieldName. */ - public fieldName: string; - - /** AudienceDimensionOrMetricFilter atAnyPointInTime. */ - public atAnyPointInTime: boolean; - - /** AudienceDimensionOrMetricFilter inAnyNDayPeriod. */ - public inAnyNDayPeriod: number; - - /** AudienceDimensionOrMetricFilter oneFilter. */ - public oneFilter?: ("stringFilter"|"inListFilter"|"numericFilter"|"betweenFilter"); + /** DeleteAdSenseLinkRequest name. */ + public name: string; /** - * Creates a new AudienceDimensionOrMetricFilter instance using the specified properties. + * Creates a new DeleteAdSenseLinkRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AudienceDimensionOrMetricFilter instance + * @returns DeleteAdSenseLinkRequest instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter; + public static create(properties?: google.analytics.admin.v1alpha.IDeleteAdSenseLinkRequest): google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest; /** - * Encodes the specified AudienceDimensionOrMetricFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.verify|verify} messages. - * @param message AudienceDimensionOrMetricFilter message or plain object to encode + * Encodes the specified DeleteAdSenseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.verify|verify} messages. + * @param message DeleteAdSenseLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IDeleteAdSenseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AudienceDimensionOrMetricFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.verify|verify} messages. - * @param message AudienceDimensionOrMetricFilter message or plain object to encode + * Encodes the specified DeleteAdSenseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.verify|verify} messages. + * @param message DeleteAdSenseLinkRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteAdSenseLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AudienceDimensionOrMetricFilter message from the specified reader or buffer. + * Decodes a DeleteAdSenseLinkRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AudienceDimensionOrMetricFilter + * @returns DeleteAdSenseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest; /** - * Decodes an AudienceDimensionOrMetricFilter message from the specified reader or buffer, length delimited. + * Decodes a DeleteAdSenseLinkRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AudienceDimensionOrMetricFilter + * @returns DeleteAdSenseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest; /** - * Verifies an AudienceDimensionOrMetricFilter message. + * Verifies a DeleteAdSenseLinkRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an AudienceDimensionOrMetricFilter message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteAdSenseLinkRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AudienceDimensionOrMetricFilter + * @returns DeleteAdSenseLinkRequest */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest; /** - * Creates a plain object from an AudienceDimensionOrMetricFilter message. Also converts values to other types if specified. - * @param message AudienceDimensionOrMetricFilter + * Creates a plain object from a DeleteAdSenseLinkRequest message. Also converts values to other types if specified. + * @param message DeleteAdSenseLinkRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AudienceDimensionOrMetricFilter to JSON. + * Converts this DeleteAdSenseLinkRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AudienceDimensionOrMetricFilter + * Gets the default type url for DeleteAdSenseLinkRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AudienceDimensionOrMetricFilter { + /** Properties of a ListAdSenseLinksRequest. */ + interface IListAdSenseLinksRequest { - /** Properties of a StringFilter. */ - interface IStringFilter { + /** ListAdSenseLinksRequest parent */ + parent?: (string|null); - /** StringFilter matchType */ - matchType?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType|keyof typeof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType|null); + /** ListAdSenseLinksRequest pageSize */ + pageSize?: (number|null); - /** StringFilter value */ - value?: (string|null); + /** ListAdSenseLinksRequest pageToken */ + pageToken?: (string|null); + } - /** StringFilter caseSensitive */ - caseSensitive?: (boolean|null); - } + /** Represents a ListAdSenseLinksRequest. */ + class ListAdSenseLinksRequest implements IListAdSenseLinksRequest { - /** Represents a StringFilter. */ - class StringFilter implements IStringFilter { + /** + * Constructs a new ListAdSenseLinksRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListAdSenseLinksRequest); - /** - * Constructs a new StringFilter. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter); + /** ListAdSenseLinksRequest parent. */ + public parent: string; - /** StringFilter matchType. */ - public matchType: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType|keyof typeof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType); + /** ListAdSenseLinksRequest pageSize. */ + public pageSize: number; - /** StringFilter value. */ - public value: string; + /** ListAdSenseLinksRequest pageToken. */ + public pageToken: string; - /** StringFilter caseSensitive. */ - public caseSensitive: boolean; + /** + * Creates a new ListAdSenseLinksRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListAdSenseLinksRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListAdSenseLinksRequest): google.analytics.admin.v1alpha.ListAdSenseLinksRequest; - /** - * Creates a new StringFilter instance using the specified properties. - * @param [properties] Properties to set - * @returns StringFilter instance - */ - public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter; + /** + * Encodes the specified ListAdSenseLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAdSenseLinksRequest.verify|verify} messages. + * @param message ListAdSenseLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListAdSenseLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified StringFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify|verify} messages. - * @param message StringFilter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ListAdSenseLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAdSenseLinksRequest.verify|verify} messages. + * @param message ListAdSenseLinksRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListAdSenseLinksRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified StringFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify|verify} messages. - * @param message StringFilter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ListAdSenseLinksRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListAdSenseLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListAdSenseLinksRequest; - /** - * Decodes a StringFilter message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StringFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter; + /** + * Decodes a ListAdSenseLinksRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListAdSenseLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListAdSenseLinksRequest; - /** - * Decodes a StringFilter message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StringFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter; + /** + * Verifies a ListAdSenseLinksRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Verifies a StringFilter message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a ListAdSenseLinksRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListAdSenseLinksRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListAdSenseLinksRequest; - /** - * Creates a StringFilter message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StringFilter - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter; + /** + * Creates a plain object from a ListAdSenseLinksRequest message. Also converts values to other types if specified. + * @param message ListAdSenseLinksRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListAdSenseLinksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a StringFilter message. Also converts values to other types if specified. - * @param message StringFilter - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this ListAdSenseLinksRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Converts this StringFilter to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Gets the default type url for ListAdSenseLinksRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Gets the default type url for StringFilter - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Properties of a ListAdSenseLinksResponse. */ + interface IListAdSenseLinksResponse { - namespace StringFilter { + /** ListAdSenseLinksResponse adsenseLinks */ + adsenseLinks?: (google.analytics.admin.v1alpha.IAdSenseLink[]|null); - /** MatchType enum. */ - enum MatchType { - MATCH_TYPE_UNSPECIFIED = 0, - EXACT = 1, - BEGINS_WITH = 2, - ENDS_WITH = 3, - CONTAINS = 4, - FULL_REGEXP = 5 - } - } + /** ListAdSenseLinksResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** Properties of an InListFilter. */ - interface IInListFilter { + /** Represents a ListAdSenseLinksResponse. */ + class ListAdSenseLinksResponse implements IListAdSenseLinksResponse { - /** InListFilter values */ - values?: (string[]|null); + /** + * Constructs a new ListAdSenseLinksResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListAdSenseLinksResponse); - /** InListFilter caseSensitive */ - caseSensitive?: (boolean|null); - } + /** ListAdSenseLinksResponse adsenseLinks. */ + public adsenseLinks: google.analytics.admin.v1alpha.IAdSenseLink[]; - /** Represents an InListFilter. */ - class InListFilter implements IInListFilter { + /** ListAdSenseLinksResponse nextPageToken. */ + public nextPageToken: string; - /** - * Constructs a new InListFilter. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter); + /** + * Creates a new ListAdSenseLinksResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListAdSenseLinksResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListAdSenseLinksResponse): google.analytics.admin.v1alpha.ListAdSenseLinksResponse; - /** InListFilter values. */ - public values: string[]; + /** + * Encodes the specified ListAdSenseLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAdSenseLinksResponse.verify|verify} messages. + * @param message ListAdSenseLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListAdSenseLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** InListFilter caseSensitive. */ - public caseSensitive: boolean; + /** + * Encodes the specified ListAdSenseLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAdSenseLinksResponse.verify|verify} messages. + * @param message ListAdSenseLinksResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListAdSenseLinksResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new InListFilter instance using the specified properties. - * @param [properties] Properties to set - * @returns InListFilter instance - */ - public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter; + /** + * Decodes a ListAdSenseLinksResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListAdSenseLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListAdSenseLinksResponse; - /** - * Encodes the specified InListFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify|verify} messages. - * @param message InListFilter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ListAdSenseLinksResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListAdSenseLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListAdSenseLinksResponse; - /** - * Encodes the specified InListFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify|verify} messages. - * @param message InListFilter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a ListAdSenseLinksResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes an InListFilter message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InListFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter; + /** + * Creates a ListAdSenseLinksResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListAdSenseLinksResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListAdSenseLinksResponse; - /** - * Decodes an InListFilter message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InListFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter; + /** + * Creates a plain object from a ListAdSenseLinksResponse message. Also converts values to other types if specified. + * @param message ListAdSenseLinksResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListAdSenseLinksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** + /** + * Converts this ListAdSenseLinksResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListAdSenseLinksResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FetchConnectedGa4PropertyRequest. */ + interface IFetchConnectedGa4PropertyRequest { + + /** FetchConnectedGa4PropertyRequest property */ + property?: (string|null); + } + + /** Represents a FetchConnectedGa4PropertyRequest. */ + class FetchConnectedGa4PropertyRequest implements IFetchConnectedGa4PropertyRequest { + + /** + * Constructs a new FetchConnectedGa4PropertyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyRequest); + + /** FetchConnectedGa4PropertyRequest property. */ + public property: string; + + /** + * Creates a new FetchConnectedGa4PropertyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns FetchConnectedGa4PropertyRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyRequest): google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest; + + /** + * Encodes the specified FetchConnectedGa4PropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest.verify|verify} messages. + * @param message FetchConnectedGa4PropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FetchConnectedGa4PropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest.verify|verify} messages. + * @param message FetchConnectedGa4PropertyRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FetchConnectedGa4PropertyRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FetchConnectedGa4PropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest; + + /** + * Decodes a FetchConnectedGa4PropertyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FetchConnectedGa4PropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest; + + /** + * Verifies a FetchConnectedGa4PropertyRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FetchConnectedGa4PropertyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FetchConnectedGa4PropertyRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest; + + /** + * Creates a plain object from a FetchConnectedGa4PropertyRequest message. Also converts values to other types if specified. + * @param message FetchConnectedGa4PropertyRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FetchConnectedGa4PropertyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FetchConnectedGa4PropertyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a FetchConnectedGa4PropertyResponse. */ + interface IFetchConnectedGa4PropertyResponse { + + /** FetchConnectedGa4PropertyResponse property */ + property?: (string|null); + } + + /** Represents a FetchConnectedGa4PropertyResponse. */ + class FetchConnectedGa4PropertyResponse implements IFetchConnectedGa4PropertyResponse { + + /** + * Constructs a new FetchConnectedGa4PropertyResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyResponse); + + /** FetchConnectedGa4PropertyResponse property. */ + public property: string; + + /** + * Creates a new FetchConnectedGa4PropertyResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns FetchConnectedGa4PropertyResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyResponse): google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse; + + /** + * Encodes the specified FetchConnectedGa4PropertyResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse.verify|verify} messages. + * @param message FetchConnectedGa4PropertyResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FetchConnectedGa4PropertyResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse.verify|verify} messages. + * @param message FetchConnectedGa4PropertyResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FetchConnectedGa4PropertyResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FetchConnectedGa4PropertyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse; + + /** + * Decodes a FetchConnectedGa4PropertyResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FetchConnectedGa4PropertyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse; + + /** + * Verifies a FetchConnectedGa4PropertyResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FetchConnectedGa4PropertyResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FetchConnectedGa4PropertyResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse; + + /** + * Creates a plain object from a FetchConnectedGa4PropertyResponse message. Also converts values to other types if specified. + * @param message FetchConnectedGa4PropertyResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FetchConnectedGa4PropertyResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FetchConnectedGa4PropertyResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateEventCreateRuleRequest. */ + interface ICreateEventCreateRuleRequest { + + /** CreateEventCreateRuleRequest parent */ + parent?: (string|null); + + /** CreateEventCreateRuleRequest eventCreateRule */ + eventCreateRule?: (google.analytics.admin.v1alpha.IEventCreateRule|null); + } + + /** Represents a CreateEventCreateRuleRequest. */ + class CreateEventCreateRuleRequest implements ICreateEventCreateRuleRequest { + + /** + * Constructs a new CreateEventCreateRuleRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.ICreateEventCreateRuleRequest); + + /** CreateEventCreateRuleRequest parent. */ + public parent: string; + + /** CreateEventCreateRuleRequest eventCreateRule. */ + public eventCreateRule?: (google.analytics.admin.v1alpha.IEventCreateRule|null); + + /** + * Creates a new CreateEventCreateRuleRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateEventCreateRuleRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.ICreateEventCreateRuleRequest): google.analytics.admin.v1alpha.CreateEventCreateRuleRequest; + + /** + * Encodes the specified CreateEventCreateRuleRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateEventCreateRuleRequest.verify|verify} messages. + * @param message CreateEventCreateRuleRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.ICreateEventCreateRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateEventCreateRuleRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateEventCreateRuleRequest.verify|verify} messages. + * @param message CreateEventCreateRuleRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.ICreateEventCreateRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateEventCreateRuleRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateEventCreateRuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.CreateEventCreateRuleRequest; + + /** + * Decodes a CreateEventCreateRuleRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateEventCreateRuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.CreateEventCreateRuleRequest; + + /** + * Verifies a CreateEventCreateRuleRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreateEventCreateRuleRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateEventCreateRuleRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.CreateEventCreateRuleRequest; + + /** + * Creates a plain object from a CreateEventCreateRuleRequest message. Also converts values to other types if specified. + * @param message CreateEventCreateRuleRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.CreateEventCreateRuleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateEventCreateRuleRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateEventCreateRuleRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateEventCreateRuleRequest. */ + interface IUpdateEventCreateRuleRequest { + + /** UpdateEventCreateRuleRequest eventCreateRule */ + eventCreateRule?: (google.analytics.admin.v1alpha.IEventCreateRule|null); + + /** UpdateEventCreateRuleRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateEventCreateRuleRequest. */ + class UpdateEventCreateRuleRequest implements IUpdateEventCreateRuleRequest { + + /** + * Constructs a new UpdateEventCreateRuleRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IUpdateEventCreateRuleRequest); + + /** UpdateEventCreateRuleRequest eventCreateRule. */ + public eventCreateRule?: (google.analytics.admin.v1alpha.IEventCreateRule|null); + + /** UpdateEventCreateRuleRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateEventCreateRuleRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateEventCreateRuleRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IUpdateEventCreateRuleRequest): google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest; + + /** + * Encodes the specified UpdateEventCreateRuleRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest.verify|verify} messages. + * @param message UpdateEventCreateRuleRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IUpdateEventCreateRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateEventCreateRuleRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest.verify|verify} messages. + * @param message UpdateEventCreateRuleRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IUpdateEventCreateRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateEventCreateRuleRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateEventCreateRuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest; + + /** + * Decodes an UpdateEventCreateRuleRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateEventCreateRuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest; + + /** + * Verifies an UpdateEventCreateRuleRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UpdateEventCreateRuleRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateEventCreateRuleRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest; + + /** + * Creates a plain object from an UpdateEventCreateRuleRequest message. Also converts values to other types if specified. + * @param message UpdateEventCreateRuleRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateEventCreateRuleRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateEventCreateRuleRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteEventCreateRuleRequest. */ + interface IDeleteEventCreateRuleRequest { + + /** DeleteEventCreateRuleRequest name */ + name?: (string|null); + } + + /** Represents a DeleteEventCreateRuleRequest. */ + class DeleteEventCreateRuleRequest implements IDeleteEventCreateRuleRequest { + + /** + * Constructs a new DeleteEventCreateRuleRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IDeleteEventCreateRuleRequest); + + /** DeleteEventCreateRuleRequest name. */ + public name: string; + + /** + * Creates a new DeleteEventCreateRuleRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteEventCreateRuleRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IDeleteEventCreateRuleRequest): google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest; + + /** + * Encodes the specified DeleteEventCreateRuleRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.verify|verify} messages. + * @param message DeleteEventCreateRuleRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IDeleteEventCreateRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteEventCreateRuleRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.verify|verify} messages. + * @param message DeleteEventCreateRuleRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IDeleteEventCreateRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteEventCreateRuleRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteEventCreateRuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest; + + /** + * Decodes a DeleteEventCreateRuleRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteEventCreateRuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest; + + /** + * Verifies a DeleteEventCreateRuleRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteEventCreateRuleRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteEventCreateRuleRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest; + + /** + * Creates a plain object from a DeleteEventCreateRuleRequest message. Also converts values to other types if specified. + * @param message DeleteEventCreateRuleRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteEventCreateRuleRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteEventCreateRuleRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetEventCreateRuleRequest. */ + interface IGetEventCreateRuleRequest { + + /** GetEventCreateRuleRequest name */ + name?: (string|null); + } + + /** Represents a GetEventCreateRuleRequest. */ + class GetEventCreateRuleRequest implements IGetEventCreateRuleRequest { + + /** + * Constructs a new GetEventCreateRuleRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGetEventCreateRuleRequest); + + /** GetEventCreateRuleRequest name. */ + public name: string; + + /** + * Creates a new GetEventCreateRuleRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetEventCreateRuleRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGetEventCreateRuleRequest): google.analytics.admin.v1alpha.GetEventCreateRuleRequest; + + /** + * Encodes the specified GetEventCreateRuleRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetEventCreateRuleRequest.verify|verify} messages. + * @param message GetEventCreateRuleRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGetEventCreateRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetEventCreateRuleRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetEventCreateRuleRequest.verify|verify} messages. + * @param message GetEventCreateRuleRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGetEventCreateRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetEventCreateRuleRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetEventCreateRuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GetEventCreateRuleRequest; + + /** + * Decodes a GetEventCreateRuleRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetEventCreateRuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GetEventCreateRuleRequest; + + /** + * Verifies a GetEventCreateRuleRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetEventCreateRuleRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetEventCreateRuleRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GetEventCreateRuleRequest; + + /** + * Creates a plain object from a GetEventCreateRuleRequest message. Also converts values to other types if specified. + * @param message GetEventCreateRuleRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.GetEventCreateRuleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetEventCreateRuleRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetEventCreateRuleRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListEventCreateRulesRequest. */ + interface IListEventCreateRulesRequest { + + /** ListEventCreateRulesRequest parent */ + parent?: (string|null); + + /** ListEventCreateRulesRequest pageSize */ + pageSize?: (number|null); + + /** ListEventCreateRulesRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListEventCreateRulesRequest. */ + class ListEventCreateRulesRequest implements IListEventCreateRulesRequest { + + /** + * Constructs a new ListEventCreateRulesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListEventCreateRulesRequest); + + /** ListEventCreateRulesRequest parent. */ + public parent: string; + + /** ListEventCreateRulesRequest pageSize. */ + public pageSize: number; + + /** ListEventCreateRulesRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListEventCreateRulesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListEventCreateRulesRequest instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListEventCreateRulesRequest): google.analytics.admin.v1alpha.ListEventCreateRulesRequest; + + /** + * Encodes the specified ListEventCreateRulesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListEventCreateRulesRequest.verify|verify} messages. + * @param message ListEventCreateRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListEventCreateRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListEventCreateRulesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListEventCreateRulesRequest.verify|verify} messages. + * @param message ListEventCreateRulesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListEventCreateRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListEventCreateRulesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListEventCreateRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListEventCreateRulesRequest; + + /** + * Decodes a ListEventCreateRulesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListEventCreateRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListEventCreateRulesRequest; + + /** + * Verifies a ListEventCreateRulesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListEventCreateRulesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListEventCreateRulesRequest + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListEventCreateRulesRequest; + + /** + * Creates a plain object from a ListEventCreateRulesRequest message. Also converts values to other types if specified. + * @param message ListEventCreateRulesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListEventCreateRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListEventCreateRulesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListEventCreateRulesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListEventCreateRulesResponse. */ + interface IListEventCreateRulesResponse { + + /** ListEventCreateRulesResponse eventCreateRules */ + eventCreateRules?: (google.analytics.admin.v1alpha.IEventCreateRule[]|null); + + /** ListEventCreateRulesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListEventCreateRulesResponse. */ + class ListEventCreateRulesResponse implements IListEventCreateRulesResponse { + + /** + * Constructs a new ListEventCreateRulesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IListEventCreateRulesResponse); + + /** ListEventCreateRulesResponse eventCreateRules. */ + public eventCreateRules: google.analytics.admin.v1alpha.IEventCreateRule[]; + + /** ListEventCreateRulesResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListEventCreateRulesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListEventCreateRulesResponse instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IListEventCreateRulesResponse): google.analytics.admin.v1alpha.ListEventCreateRulesResponse; + + /** + * Encodes the specified ListEventCreateRulesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListEventCreateRulesResponse.verify|verify} messages. + * @param message ListEventCreateRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IListEventCreateRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListEventCreateRulesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListEventCreateRulesResponse.verify|verify} messages. + * @param message ListEventCreateRulesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IListEventCreateRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListEventCreateRulesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListEventCreateRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ListEventCreateRulesResponse; + + /** + * Decodes a ListEventCreateRulesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListEventCreateRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ListEventCreateRulesResponse; + + /** + * Verifies a ListEventCreateRulesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListEventCreateRulesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListEventCreateRulesResponse + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ListEventCreateRulesResponse; + + /** + * Creates a plain object from a ListEventCreateRulesResponse message. Also converts values to other types if specified. + * @param message ListEventCreateRulesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ListEventCreateRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListEventCreateRulesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListEventCreateRulesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** AudienceFilterScope enum. */ + enum AudienceFilterScope { + AUDIENCE_FILTER_SCOPE_UNSPECIFIED = 0, + AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT = 1, + AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION = 2, + AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS = 3 + } + + /** Properties of an AudienceDimensionOrMetricFilter. */ + interface IAudienceDimensionOrMetricFilter { + + /** AudienceDimensionOrMetricFilter stringFilter */ + stringFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter|null); + + /** AudienceDimensionOrMetricFilter inListFilter */ + inListFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter|null); + + /** AudienceDimensionOrMetricFilter numericFilter */ + numericFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter|null); + + /** AudienceDimensionOrMetricFilter betweenFilter */ + betweenFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter|null); + + /** AudienceDimensionOrMetricFilter fieldName */ + fieldName?: (string|null); + + /** AudienceDimensionOrMetricFilter atAnyPointInTime */ + atAnyPointInTime?: (boolean|null); + + /** AudienceDimensionOrMetricFilter inAnyNDayPeriod */ + inAnyNDayPeriod?: (number|null); + } + + /** Represents an AudienceDimensionOrMetricFilter. */ + class AudienceDimensionOrMetricFilter implements IAudienceDimensionOrMetricFilter { + + /** + * Constructs a new AudienceDimensionOrMetricFilter. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter); + + /** AudienceDimensionOrMetricFilter stringFilter. */ + public stringFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter|null); + + /** AudienceDimensionOrMetricFilter inListFilter. */ + public inListFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter|null); + + /** AudienceDimensionOrMetricFilter numericFilter. */ + public numericFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter|null); + + /** AudienceDimensionOrMetricFilter betweenFilter. */ + public betweenFilter?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter|null); + + /** AudienceDimensionOrMetricFilter fieldName. */ + public fieldName: string; + + /** AudienceDimensionOrMetricFilter atAnyPointInTime. */ + public atAnyPointInTime: boolean; + + /** AudienceDimensionOrMetricFilter inAnyNDayPeriod. */ + public inAnyNDayPeriod: number; + + /** AudienceDimensionOrMetricFilter oneFilter. */ + public oneFilter?: ("stringFilter"|"inListFilter"|"numericFilter"|"betweenFilter"); + + /** + * Creates a new AudienceDimensionOrMetricFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns AudienceDimensionOrMetricFilter instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter; + + /** + * Encodes the specified AudienceDimensionOrMetricFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.verify|verify} messages. + * @param message AudienceDimensionOrMetricFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AudienceDimensionOrMetricFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.verify|verify} messages. + * @param message AudienceDimensionOrMetricFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AudienceDimensionOrMetricFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AudienceDimensionOrMetricFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter; + + /** + * Decodes an AudienceDimensionOrMetricFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AudienceDimensionOrMetricFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter; + + /** + * Verifies an AudienceDimensionOrMetricFilter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AudienceDimensionOrMetricFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AudienceDimensionOrMetricFilter + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter; + + /** + * Creates a plain object from an AudienceDimensionOrMetricFilter message. Also converts values to other types if specified. + * @param message AudienceDimensionOrMetricFilter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AudienceDimensionOrMetricFilter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AudienceDimensionOrMetricFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AudienceDimensionOrMetricFilter { + + /** Properties of a StringFilter. */ + interface IStringFilter { + + /** StringFilter matchType */ + matchType?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType|keyof typeof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType|null); + + /** StringFilter value */ + value?: (string|null); + + /** StringFilter caseSensitive */ + caseSensitive?: (boolean|null); + } + + /** Represents a StringFilter. */ + class StringFilter implements IStringFilter { + + /** + * Constructs a new StringFilter. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter); + + /** StringFilter matchType. */ + public matchType: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType|keyof typeof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType); + + /** StringFilter value. */ + public value: string; + + /** StringFilter caseSensitive. */ + public caseSensitive: boolean; + + /** + * Creates a new StringFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns StringFilter instance + */ + public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter; + + /** + * Encodes the specified StringFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify|verify} messages. + * @param message StringFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StringFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify|verify} messages. + * @param message StringFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StringFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StringFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter; + + /** + * Decodes a StringFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StringFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter; + + /** + * Verifies a StringFilter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StringFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StringFilter + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter; + + /** + * Creates a plain object from a StringFilter message. Also converts values to other types if specified. + * @param message StringFilter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StringFilter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StringFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace StringFilter { + + /** MatchType enum. */ + enum MatchType { + MATCH_TYPE_UNSPECIFIED = 0, + EXACT = 1, + BEGINS_WITH = 2, + ENDS_WITH = 3, + CONTAINS = 4, + FULL_REGEXP = 5 + } + } + + /** Properties of an InListFilter. */ + interface IInListFilter { + + /** InListFilter values */ + values?: (string[]|null); + + /** InListFilter caseSensitive */ + caseSensitive?: (boolean|null); + } + + /** Represents an InListFilter. */ + class InListFilter implements IInListFilter { + + /** + * Constructs a new InListFilter. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter); + + /** InListFilter values. */ + public values: string[]; + + /** InListFilter caseSensitive. */ + public caseSensitive: boolean; + + /** + * Creates a new InListFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns InListFilter instance + */ + public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter; + + /** + * Encodes the specified InListFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify|verify} messages. + * @param message InListFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InListFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify|verify} messages. + * @param message InListFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InListFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InListFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter; + + /** + * Decodes an InListFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InListFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter; + + /** * Verifies an InListFilter message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an InListFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InListFilter + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter; + + /** + * Creates a plain object from an InListFilter message. Also converts values to other types if specified. + * @param message InListFilter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InListFilter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InListFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a NumericValue. */ + interface INumericValue { + + /** NumericValue int64Value */ + int64Value?: (number|Long|string|null); + + /** NumericValue doubleValue */ + doubleValue?: (number|null); + } + + /** Represents a NumericValue. */ + class NumericValue implements INumericValue { + + /** + * Constructs a new NumericValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue); + + /** NumericValue int64Value. */ + public int64Value?: (number|Long|string|null); + + /** NumericValue doubleValue. */ + public doubleValue?: (number|null); + + /** NumericValue oneValue. */ + public oneValue?: ("int64Value"|"doubleValue"); + + /** + * Creates a new NumericValue instance using the specified properties. + * @param [properties] Properties to set + * @returns NumericValue instance + */ + public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue; + + /** + * Encodes the specified NumericValue message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify|verify} messages. + * @param message NumericValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NumericValue message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify|verify} messages. + * @param message NumericValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NumericValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NumericValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue; + + /** + * Decodes a NumericValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NumericValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue; + + /** + * Verifies a NumericValue message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NumericValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NumericValue + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue; + + /** + * Creates a plain object from a NumericValue message. Also converts values to other types if specified. + * @param message NumericValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NumericValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NumericValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a NumericFilter. */ + interface INumericFilter { + + /** NumericFilter operation */ + operation?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation|keyof typeof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation|null); + + /** NumericFilter value */ + value?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); + } + + /** Represents a NumericFilter. */ + class NumericFilter implements INumericFilter { + + /** + * Constructs a new NumericFilter. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter); + + /** NumericFilter operation. */ + public operation: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation|keyof typeof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation); + + /** NumericFilter value. */ + public value?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); + + /** + * Creates a new NumericFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns NumericFilter instance + */ + public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter; + + /** + * Encodes the specified NumericFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.verify|verify} messages. + * @param message NumericFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NumericFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.verify|verify} messages. + * @param message NumericFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NumericFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NumericFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter; + + /** + * Decodes a NumericFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NumericFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter; + + /** + * Verifies a NumericFilter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a NumericFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NumericFilter + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter; + + /** + * Creates a plain object from a NumericFilter message. Also converts values to other types if specified. + * @param message NumericFilter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NumericFilter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NumericFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace NumericFilter { + + /** Operation enum. */ + enum Operation { + OPERATION_UNSPECIFIED = 0, + EQUAL = 1, + LESS_THAN = 2, + GREATER_THAN = 4 + } + } + + /** Properties of a BetweenFilter. */ + interface IBetweenFilter { + + /** BetweenFilter fromValue */ + fromValue?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); + + /** BetweenFilter toValue */ + toValue?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); + } + + /** Represents a BetweenFilter. */ + class BetweenFilter implements IBetweenFilter { + + /** + * Constructs a new BetweenFilter. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter); + + /** BetweenFilter fromValue. */ + public fromValue?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); + + /** BetweenFilter toValue. */ + public toValue?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); + + /** + * Creates a new BetweenFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns BetweenFilter instance + */ + public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter; + + /** + * Encodes the specified BetweenFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.verify|verify} messages. + * @param message BetweenFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BetweenFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.verify|verify} messages. + * @param message BetweenFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BetweenFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BetweenFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter; + + /** + * Decodes a BetweenFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BetweenFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter; + + /** + * Verifies a BetweenFilter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BetweenFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BetweenFilter + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter; + + /** + * Creates a plain object from a BetweenFilter message. Also converts values to other types if specified. + * @param message BetweenFilter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BetweenFilter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BetweenFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of an AudienceEventFilter. */ + interface IAudienceEventFilter { + + /** AudienceEventFilter eventName */ + eventName?: (string|null); + + /** AudienceEventFilter eventParameterFilterExpression */ + eventParameterFilterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + } + + /** Represents an AudienceEventFilter. */ + class AudienceEventFilter implements IAudienceEventFilter { + + /** + * Constructs a new AudienceEventFilter. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAudienceEventFilter); + + /** AudienceEventFilter eventName. */ + public eventName: string; + + /** AudienceEventFilter eventParameterFilterExpression. */ + public eventParameterFilterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + + /** + * Creates a new AudienceEventFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns AudienceEventFilter instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAudienceEventFilter): google.analytics.admin.v1alpha.AudienceEventFilter; + + /** + * Encodes the specified AudienceEventFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventFilter.verify|verify} messages. + * @param message AudienceEventFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAudienceEventFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AudienceEventFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventFilter.verify|verify} messages. + * @param message AudienceEventFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceEventFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AudienceEventFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AudienceEventFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceEventFilter; + + /** + * Decodes an AudienceEventFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AudienceEventFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceEventFilter; + + /** + * Verifies an AudienceEventFilter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AudienceEventFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AudienceEventFilter + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceEventFilter; + + /** + * Creates a plain object from an AudienceEventFilter message. Also converts values to other types if specified. + * @param message AudienceEventFilter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceEventFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AudienceEventFilter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AudienceEventFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AudienceFilterExpression. */ + interface IAudienceFilterExpression { + + /** AudienceFilterExpression andGroup */ + andGroup?: (google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null); + + /** AudienceFilterExpression orGroup */ + orGroup?: (google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null); + + /** AudienceFilterExpression notExpression */ + notExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + + /** AudienceFilterExpression dimensionOrMetricFilter */ + dimensionOrMetricFilter?: (google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter|null); + + /** AudienceFilterExpression eventFilter */ + eventFilter?: (google.analytics.admin.v1alpha.IAudienceEventFilter|null); + } + + /** Represents an AudienceFilterExpression. */ + class AudienceFilterExpression implements IAudienceFilterExpression { + + /** + * Constructs a new AudienceFilterExpression. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAudienceFilterExpression); + + /** AudienceFilterExpression andGroup. */ + public andGroup?: (google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null); + + /** AudienceFilterExpression orGroup. */ + public orGroup?: (google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null); + + /** AudienceFilterExpression notExpression. */ + public notExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + + /** AudienceFilterExpression dimensionOrMetricFilter. */ + public dimensionOrMetricFilter?: (google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter|null); + + /** AudienceFilterExpression eventFilter. */ + public eventFilter?: (google.analytics.admin.v1alpha.IAudienceEventFilter|null); + + /** AudienceFilterExpression expr. */ + public expr?: ("andGroup"|"orGroup"|"notExpression"|"dimensionOrMetricFilter"|"eventFilter"); + + /** + * Creates a new AudienceFilterExpression instance using the specified properties. + * @param [properties] Properties to set + * @returns AudienceFilterExpression instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAudienceFilterExpression): google.analytics.admin.v1alpha.AudienceFilterExpression; + + /** + * Encodes the specified AudienceFilterExpression message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpression.verify|verify} messages. + * @param message AudienceFilterExpression message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAudienceFilterExpression, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AudienceFilterExpression message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpression.verify|verify} messages. + * @param message AudienceFilterExpression message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceFilterExpression, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AudienceFilterExpression message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AudienceFilterExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceFilterExpression; + + /** + * Decodes an AudienceFilterExpression message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AudienceFilterExpression + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceFilterExpression; + + /** + * Verifies an AudienceFilterExpression message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AudienceFilterExpression message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AudienceFilterExpression + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceFilterExpression; + + /** + * Creates a plain object from an AudienceFilterExpression message. Also converts values to other types if specified. + * @param message AudienceFilterExpression + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceFilterExpression, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AudienceFilterExpression to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AudienceFilterExpression + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AudienceFilterExpressionList. */ + interface IAudienceFilterExpressionList { + + /** AudienceFilterExpressionList filterExpressions */ + filterExpressions?: (google.analytics.admin.v1alpha.IAudienceFilterExpression[]|null); + } + + /** Represents an AudienceFilterExpressionList. */ + class AudienceFilterExpressionList implements IAudienceFilterExpressionList { + + /** + * Constructs a new AudienceFilterExpressionList. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAudienceFilterExpressionList); - /** - * Creates an InListFilter message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InListFilter - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter; + /** AudienceFilterExpressionList filterExpressions. */ + public filterExpressions: google.analytics.admin.v1alpha.IAudienceFilterExpression[]; - /** - * Creates a plain object from an InListFilter message. Also converts values to other types if specified. - * @param message InListFilter - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new AudienceFilterExpressionList instance using the specified properties. + * @param [properties] Properties to set + * @returns AudienceFilterExpressionList instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAudienceFilterExpressionList): google.analytics.admin.v1alpha.AudienceFilterExpressionList; - /** - * Converts this InListFilter to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified AudienceFilterExpressionList message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify|verify} messages. + * @param message AudienceFilterExpressionList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAudienceFilterExpressionList, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for InListFilter - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified AudienceFilterExpressionList message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify|verify} messages. + * @param message AudienceFilterExpressionList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceFilterExpressionList, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a NumericValue. */ - interface INumericValue { + /** + * Decodes an AudienceFilterExpressionList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AudienceFilterExpressionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceFilterExpressionList; - /** NumericValue int64Value */ - int64Value?: (number|Long|string|null); + /** + * Decodes an AudienceFilterExpressionList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AudienceFilterExpressionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceFilterExpressionList; - /** NumericValue doubleValue */ - doubleValue?: (number|null); - } + /** + * Verifies an AudienceFilterExpressionList message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Represents a NumericValue. */ - class NumericValue implements INumericValue { + /** + * Creates an AudienceFilterExpressionList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AudienceFilterExpressionList + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceFilterExpressionList; - /** - * Constructs a new NumericValue. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue); + /** + * Creates a plain object from an AudienceFilterExpressionList message. Also converts values to other types if specified. + * @param message AudienceFilterExpressionList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceFilterExpressionList, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** NumericValue int64Value. */ - public int64Value?: (number|Long|string|null); + /** + * Converts this AudienceFilterExpressionList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** NumericValue doubleValue. */ - public doubleValue?: (number|null); + /** + * Gets the default type url for AudienceFilterExpressionList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** NumericValue oneValue. */ - public oneValue?: ("int64Value"|"doubleValue"); + /** Properties of an AudienceSimpleFilter. */ + interface IAudienceSimpleFilter { - /** - * Creates a new NumericValue instance using the specified properties. - * @param [properties] Properties to set - * @returns NumericValue instance - */ - public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue; + /** AudienceSimpleFilter scope */ + scope?: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope|null); - /** - * Encodes the specified NumericValue message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify|verify} messages. - * @param message NumericValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue, writer?: $protobuf.Writer): $protobuf.Writer; + /** AudienceSimpleFilter filterExpression */ + filterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + } - /** - * Encodes the specified NumericValue message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.verify|verify} messages. - * @param message NumericValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents an AudienceSimpleFilter. */ + class AudienceSimpleFilter implements IAudienceSimpleFilter { - /** - * Decodes a NumericValue message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NumericValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue; + /** + * Constructs a new AudienceSimpleFilter. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAudienceSimpleFilter); - /** - * Decodes a NumericValue message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NumericValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue; + /** AudienceSimpleFilter scope. */ + public scope: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope); - /** - * Verifies a NumericValue message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** AudienceSimpleFilter filterExpression. */ + public filterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); - /** - * Creates a NumericValue message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NumericValue - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue; + /** + * Creates a new AudienceSimpleFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns AudienceSimpleFilter instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAudienceSimpleFilter): google.analytics.admin.v1alpha.AudienceSimpleFilter; + + /** + * Encodes the specified AudienceSimpleFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSimpleFilter.verify|verify} messages. + * @param message AudienceSimpleFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAudienceSimpleFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AudienceSimpleFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSimpleFilter.verify|verify} messages. + * @param message AudienceSimpleFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceSimpleFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AudienceSimpleFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AudienceSimpleFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceSimpleFilter; + + /** + * Decodes an AudienceSimpleFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AudienceSimpleFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceSimpleFilter; + + /** + * Verifies an AudienceSimpleFilter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AudienceSimpleFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AudienceSimpleFilter + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceSimpleFilter; + + /** + * Creates a plain object from an AudienceSimpleFilter message. Also converts values to other types if specified. + * @param message AudienceSimpleFilter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceSimpleFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AudienceSimpleFilter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AudienceSimpleFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from a NumericValue message. Also converts values to other types if specified. - * @param message NumericValue - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of an AudienceSequenceFilter. */ + interface IAudienceSequenceFilter { - /** - * Converts this NumericValue to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** AudienceSequenceFilter scope */ + scope?: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope|null); - /** - * Gets the default type url for NumericValue - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** AudienceSequenceFilter sequenceMaximumDuration */ + sequenceMaximumDuration?: (google.protobuf.IDuration|null); - /** Properties of a NumericFilter. */ - interface INumericFilter { + /** AudienceSequenceFilter sequenceSteps */ + sequenceSteps?: (google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep[]|null); + } - /** NumericFilter operation */ - operation?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation|keyof typeof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation|null); + /** Represents an AudienceSequenceFilter. */ + class AudienceSequenceFilter implements IAudienceSequenceFilter { - /** NumericFilter value */ - value?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); - } + /** + * Constructs a new AudienceSequenceFilter. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAudienceSequenceFilter); - /** Represents a NumericFilter. */ - class NumericFilter implements INumericFilter { + /** AudienceSequenceFilter scope. */ + public scope: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope); - /** - * Constructs a new NumericFilter. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter); + /** AudienceSequenceFilter sequenceMaximumDuration. */ + public sequenceMaximumDuration?: (google.protobuf.IDuration|null); - /** NumericFilter operation. */ - public operation: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation|keyof typeof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation); + /** AudienceSequenceFilter sequenceSteps. */ + public sequenceSteps: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep[]; - /** NumericFilter value. */ - public value?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); + /** + * Creates a new AudienceSequenceFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns AudienceSequenceFilter instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAudienceSequenceFilter): google.analytics.admin.v1alpha.AudienceSequenceFilter; - /** - * Creates a new NumericFilter instance using the specified properties. - * @param [properties] Properties to set - * @returns NumericFilter instance - */ - public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter; + /** + * Encodes the specified AudienceSequenceFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.verify|verify} messages. + * @param message AudienceSequenceFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAudienceSequenceFilter, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NumericFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.verify|verify} messages. - * @param message NumericFilter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified AudienceSequenceFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.verify|verify} messages. + * @param message AudienceSequenceFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceSequenceFilter, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified NumericFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.verify|verify} messages. - * @param message NumericFilter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an AudienceSequenceFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AudienceSequenceFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceSequenceFilter; - /** - * Decodes a NumericFilter message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NumericFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter; + /** + * Decodes an AudienceSequenceFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AudienceSequenceFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceSequenceFilter; - /** - * Decodes a NumericFilter message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NumericFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter; + /** + * Verifies an AudienceSequenceFilter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Verifies a NumericFilter message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates an AudienceSequenceFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AudienceSequenceFilter + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceSequenceFilter; - /** - * Creates a NumericFilter message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NumericFilter - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter; + /** + * Creates a plain object from an AudienceSequenceFilter message. Also converts values to other types if specified. + * @param message AudienceSequenceFilter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AudienceSequenceFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a NumericFilter message. Also converts values to other types if specified. - * @param message NumericFilter - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this AudienceSequenceFilter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Converts this NumericFilter to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Gets the default type url for AudienceSequenceFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Gets the default type url for NumericFilter - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + namespace AudienceSequenceFilter { - namespace NumericFilter { + /** Properties of an AudienceSequenceStep. */ + interface IAudienceSequenceStep { - /** Operation enum. */ - enum Operation { - OPERATION_UNSPECIFIED = 0, - EQUAL = 1, - LESS_THAN = 2, - GREATER_THAN = 4 - } - } + /** AudienceSequenceStep scope */ + scope?: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope|null); - /** Properties of a BetweenFilter. */ - interface IBetweenFilter { + /** AudienceSequenceStep immediatelyFollows */ + immediatelyFollows?: (boolean|null); - /** BetweenFilter fromValue */ - fromValue?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); + /** AudienceSequenceStep constraintDuration */ + constraintDuration?: (google.protobuf.IDuration|null); - /** BetweenFilter toValue */ - toValue?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); + /** AudienceSequenceStep filterExpression */ + filterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); } - /** Represents a BetweenFilter. */ - class BetweenFilter implements IBetweenFilter { + /** Represents an AudienceSequenceStep. */ + class AudienceSequenceStep implements IAudienceSequenceStep { /** - * Constructs a new BetweenFilter. + * Constructs a new AudienceSequenceStep. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter); + constructor(properties?: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep); - /** BetweenFilter fromValue. */ - public fromValue?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); + /** AudienceSequenceStep scope. */ + public scope: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope); - /** BetweenFilter toValue. */ - public toValue?: (google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue|null); + /** AudienceSequenceStep immediatelyFollows. */ + public immediatelyFollows: boolean; + + /** AudienceSequenceStep constraintDuration. */ + public constraintDuration?: (google.protobuf.IDuration|null); + + /** AudienceSequenceStep filterExpression. */ + public filterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); /** - * Creates a new BetweenFilter instance using the specified properties. + * Creates a new AudienceSequenceStep instance using the specified properties. * @param [properties] Properties to set - * @returns BetweenFilter instance + * @returns AudienceSequenceStep instance */ - public static create(properties?: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter; + public static create(properties?: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep): google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep; /** - * Encodes the specified BetweenFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.verify|verify} messages. - * @param message BetweenFilter message or plain object to encode + * Encodes the specified AudienceSequenceStep message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify|verify} messages. + * @param message AudienceSequenceStep message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BetweenFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.verify|verify} messages. - * @param message BetweenFilter message or plain object to encode + * Encodes the specified AudienceSequenceStep message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify|verify} messages. + * @param message AudienceSequenceStep message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BetweenFilter message from the specified reader or buffer. + * Decodes an AudienceSequenceStep message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BetweenFilter + * @returns AudienceSequenceStep * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep; /** - * Decodes a BetweenFilter message from the specified reader or buffer, length delimited. + * Decodes an AudienceSequenceStep message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BetweenFilter + * @returns AudienceSequenceStep * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep; /** - * Verifies a BetweenFilter message. + * Verifies an AudienceSequenceStep message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BetweenFilter message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceSequenceStep message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BetweenFilter + * @returns AudienceSequenceStep */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep; /** - * Creates a plain object from a BetweenFilter message. Also converts values to other types if specified. - * @param message BetweenFilter + * Creates a plain object from an AudienceSequenceStep message. Also converts values to other types if specified. + * @param message AudienceSequenceStep * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BetweenFilter to JSON. + * Converts this AudienceSequenceStep to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BetweenFilter + * Gets the default type url for AudienceSequenceStep * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -20555,1812 +22519,1519 @@ export namespace google { } } - /** Properties of an AudienceEventFilter. */ - interface IAudienceEventFilter { + /** Properties of an AudienceFilterClause. */ + interface IAudienceFilterClause { - /** AudienceEventFilter eventName */ - eventName?: (string|null); + /** AudienceFilterClause simpleFilter */ + simpleFilter?: (google.analytics.admin.v1alpha.IAudienceSimpleFilter|null); - /** AudienceEventFilter eventParameterFilterExpression */ - eventParameterFilterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + /** AudienceFilterClause sequenceFilter */ + sequenceFilter?: (google.analytics.admin.v1alpha.IAudienceSequenceFilter|null); + + /** AudienceFilterClause clauseType */ + clauseType?: (google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType|keyof typeof google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType|null); } - /** Represents an AudienceEventFilter. */ - class AudienceEventFilter implements IAudienceEventFilter { + /** Represents an AudienceFilterClause. */ + class AudienceFilterClause implements IAudienceFilterClause { /** - * Constructs a new AudienceEventFilter. + * Constructs a new AudienceFilterClause. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAudienceEventFilter); + constructor(properties?: google.analytics.admin.v1alpha.IAudienceFilterClause); - /** AudienceEventFilter eventName. */ - public eventName: string; + /** AudienceFilterClause simpleFilter. */ + public simpleFilter?: (google.analytics.admin.v1alpha.IAudienceSimpleFilter|null); - /** AudienceEventFilter eventParameterFilterExpression. */ - public eventParameterFilterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + /** AudienceFilterClause sequenceFilter. */ + public sequenceFilter?: (google.analytics.admin.v1alpha.IAudienceSequenceFilter|null); + + /** AudienceFilterClause clauseType. */ + public clauseType: (google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType|keyof typeof google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType); + + /** AudienceFilterClause filter. */ + public filter?: ("simpleFilter"|"sequenceFilter"); /** - * Creates a new AudienceEventFilter instance using the specified properties. + * Creates a new AudienceFilterClause instance using the specified properties. * @param [properties] Properties to set - * @returns AudienceEventFilter instance + * @returns AudienceFilterClause instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAudienceEventFilter): google.analytics.admin.v1alpha.AudienceEventFilter; + public static create(properties?: google.analytics.admin.v1alpha.IAudienceFilterClause): google.analytics.admin.v1alpha.AudienceFilterClause; /** - * Encodes the specified AudienceEventFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventFilter.verify|verify} messages. - * @param message AudienceEventFilter message or plain object to encode + * Encodes the specified AudienceFilterClause message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterClause.verify|verify} messages. + * @param message AudienceFilterClause message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAudienceEventFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IAudienceFilterClause, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AudienceEventFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventFilter.verify|verify} messages. - * @param message AudienceEventFilter message or plain object to encode + * Encodes the specified AudienceFilterClause message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterClause.verify|verify} messages. + * @param message AudienceFilterClause message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceEventFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceFilterClause, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AudienceEventFilter message from the specified reader or buffer. + * Decodes an AudienceFilterClause message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AudienceEventFilter + * @returns AudienceFilterClause * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceEventFilter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceFilterClause; /** - * Decodes an AudienceEventFilter message from the specified reader or buffer, length delimited. + * Decodes an AudienceFilterClause message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AudienceEventFilter + * @returns AudienceFilterClause * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceEventFilter; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceFilterClause; /** - * Verifies an AudienceEventFilter message. + * Verifies an AudienceFilterClause message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an AudienceEventFilter message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceFilterClause message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AudienceEventFilter + * @returns AudienceFilterClause */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceEventFilter; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceFilterClause; /** - * Creates a plain object from an AudienceEventFilter message. Also converts values to other types if specified. - * @param message AudienceEventFilter + * Creates a plain object from an AudienceFilterClause message. Also converts values to other types if specified. + * @param message AudienceFilterClause * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceEventFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.AudienceFilterClause, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AudienceEventFilter to JSON. + * Converts this AudienceFilterClause to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AudienceEventFilter + * Gets the default type url for AudienceFilterClause * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AudienceFilterExpression. */ - interface IAudienceFilterExpression { - - /** AudienceFilterExpression andGroup */ - andGroup?: (google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null); - - /** AudienceFilterExpression orGroup */ - orGroup?: (google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null); - - /** AudienceFilterExpression notExpression */ - notExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); - - /** AudienceFilterExpression dimensionOrMetricFilter */ - dimensionOrMetricFilter?: (google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter|null); + namespace AudienceFilterClause { - /** AudienceFilterExpression eventFilter */ - eventFilter?: (google.analytics.admin.v1alpha.IAudienceEventFilter|null); + /** AudienceClauseType enum. */ + enum AudienceClauseType { + AUDIENCE_CLAUSE_TYPE_UNSPECIFIED = 0, + INCLUDE = 1, + EXCLUDE = 2 + } } - /** Represents an AudienceFilterExpression. */ - class AudienceFilterExpression implements IAudienceFilterExpression { - - /** - * Constructs a new AudienceFilterExpression. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IAudienceFilterExpression); - - /** AudienceFilterExpression andGroup. */ - public andGroup?: (google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null); - - /** AudienceFilterExpression orGroup. */ - public orGroup?: (google.analytics.admin.v1alpha.IAudienceFilterExpressionList|null); - - /** AudienceFilterExpression notExpression. */ - public notExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); - - /** AudienceFilterExpression dimensionOrMetricFilter. */ - public dimensionOrMetricFilter?: (google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter|null); - - /** AudienceFilterExpression eventFilter. */ - public eventFilter?: (google.analytics.admin.v1alpha.IAudienceEventFilter|null); - - /** AudienceFilterExpression expr. */ - public expr?: ("andGroup"|"orGroup"|"notExpression"|"dimensionOrMetricFilter"|"eventFilter"); - - /** - * Creates a new AudienceFilterExpression instance using the specified properties. - * @param [properties] Properties to set - * @returns AudienceFilterExpression instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IAudienceFilterExpression): google.analytics.admin.v1alpha.AudienceFilterExpression; - - /** - * Encodes the specified AudienceFilterExpression message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpression.verify|verify} messages. - * @param message AudienceFilterExpression message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IAudienceFilterExpression, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AudienceFilterExpression message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpression.verify|verify} messages. - * @param message AudienceFilterExpression message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceFilterExpression, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AudienceFilterExpression message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AudienceFilterExpression - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceFilterExpression; - - /** - * Decodes an AudienceFilterExpression message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AudienceFilterExpression - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceFilterExpression; - - /** - * Verifies an AudienceFilterExpression message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AudienceFilterExpression message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AudienceFilterExpression - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceFilterExpression; - - /** - * Creates a plain object from an AudienceFilterExpression message. Also converts values to other types if specified. - * @param message AudienceFilterExpression - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceFilterExpression, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AudienceFilterExpression to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AudienceFilterExpression - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Properties of an AudienceEventTrigger. */ + interface IAudienceEventTrigger { - /** Properties of an AudienceFilterExpressionList. */ - interface IAudienceFilterExpressionList { + /** AudienceEventTrigger eventName */ + eventName?: (string|null); - /** AudienceFilterExpressionList filterExpressions */ - filterExpressions?: (google.analytics.admin.v1alpha.IAudienceFilterExpression[]|null); + /** AudienceEventTrigger logCondition */ + logCondition?: (google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition|keyof typeof google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition|null); } - /** Represents an AudienceFilterExpressionList. */ - class AudienceFilterExpressionList implements IAudienceFilterExpressionList { + /** Represents an AudienceEventTrigger. */ + class AudienceEventTrigger implements IAudienceEventTrigger { /** - * Constructs a new AudienceFilterExpressionList. + * Constructs a new AudienceEventTrigger. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAudienceFilterExpressionList); + constructor(properties?: google.analytics.admin.v1alpha.IAudienceEventTrigger); - /** AudienceFilterExpressionList filterExpressions. */ - public filterExpressions: google.analytics.admin.v1alpha.IAudienceFilterExpression[]; + /** AudienceEventTrigger eventName. */ + public eventName: string; + + /** AudienceEventTrigger logCondition. */ + public logCondition: (google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition|keyof typeof google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition); /** - * Creates a new AudienceFilterExpressionList instance using the specified properties. + * Creates a new AudienceEventTrigger instance using the specified properties. * @param [properties] Properties to set - * @returns AudienceFilterExpressionList instance + * @returns AudienceEventTrigger instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAudienceFilterExpressionList): google.analytics.admin.v1alpha.AudienceFilterExpressionList; + public static create(properties?: google.analytics.admin.v1alpha.IAudienceEventTrigger): google.analytics.admin.v1alpha.AudienceEventTrigger; /** - * Encodes the specified AudienceFilterExpressionList message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify|verify} messages. - * @param message AudienceFilterExpressionList message or plain object to encode + * Encodes the specified AudienceEventTrigger message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventTrigger.verify|verify} messages. + * @param message AudienceEventTrigger message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAudienceFilterExpressionList, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IAudienceEventTrigger, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AudienceFilterExpressionList message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify|verify} messages. - * @param message AudienceFilterExpressionList message or plain object to encode + * Encodes the specified AudienceEventTrigger message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventTrigger.verify|verify} messages. + * @param message AudienceEventTrigger message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceFilterExpressionList, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceEventTrigger, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AudienceFilterExpressionList message from the specified reader or buffer. + * Decodes an AudienceEventTrigger message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AudienceFilterExpressionList + * @returns AudienceEventTrigger * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceFilterExpressionList; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceEventTrigger; /** - * Decodes an AudienceFilterExpressionList message from the specified reader or buffer, length delimited. + * Decodes an AudienceEventTrigger message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AudienceFilterExpressionList + * @returns AudienceEventTrigger * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceFilterExpressionList; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceEventTrigger; /** - * Verifies an AudienceFilterExpressionList message. + * Verifies an AudienceEventTrigger message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an AudienceFilterExpressionList message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceEventTrigger message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AudienceFilterExpressionList + * @returns AudienceEventTrigger */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceFilterExpressionList; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceEventTrigger; /** - * Creates a plain object from an AudienceFilterExpressionList message. Also converts values to other types if specified. - * @param message AudienceFilterExpressionList + * Creates a plain object from an AudienceEventTrigger message. Also converts values to other types if specified. + * @param message AudienceEventTrigger * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceFilterExpressionList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.AudienceEventTrigger, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AudienceFilterExpressionList to JSON. + * Converts this AudienceEventTrigger to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AudienceFilterExpressionList + * Gets the default type url for AudienceEventTrigger * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AudienceSimpleFilter. */ - interface IAudienceSimpleFilter { + namespace AudienceEventTrigger { - /** AudienceSimpleFilter scope */ - scope?: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope|null); + /** LogCondition enum. */ + enum LogCondition { + LOG_CONDITION_UNSPECIFIED = 0, + AUDIENCE_JOINED = 1, + AUDIENCE_MEMBERSHIP_RENEWED = 2 + } + } - /** AudienceSimpleFilter filterExpression */ - filterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + /** Properties of an Audience. */ + interface IAudience { + + /** Audience name */ + name?: (string|null); + + /** Audience displayName */ + displayName?: (string|null); + + /** Audience description */ + description?: (string|null); + + /** Audience membershipDurationDays */ + membershipDurationDays?: (number|null); + + /** Audience adsPersonalizationEnabled */ + adsPersonalizationEnabled?: (boolean|null); + + /** Audience eventTrigger */ + eventTrigger?: (google.analytics.admin.v1alpha.IAudienceEventTrigger|null); + + /** Audience exclusionDurationMode */ + exclusionDurationMode?: (google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode|keyof typeof google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode|null); + + /** Audience filterClauses */ + filterClauses?: (google.analytics.admin.v1alpha.IAudienceFilterClause[]|null); } - /** Represents an AudienceSimpleFilter. */ - class AudienceSimpleFilter implements IAudienceSimpleFilter { + /** Represents an Audience. */ + class Audience implements IAudience { /** - * Constructs a new AudienceSimpleFilter. + * Constructs a new Audience. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAudienceSimpleFilter); + constructor(properties?: google.analytics.admin.v1alpha.IAudience); - /** AudienceSimpleFilter scope. */ - public scope: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope); + /** Audience name. */ + public name: string; - /** AudienceSimpleFilter filterExpression. */ - public filterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + /** Audience displayName. */ + public displayName: string; + + /** Audience description. */ + public description: string; + + /** Audience membershipDurationDays. */ + public membershipDurationDays: number; + + /** Audience adsPersonalizationEnabled. */ + public adsPersonalizationEnabled: boolean; + + /** Audience eventTrigger. */ + public eventTrigger?: (google.analytics.admin.v1alpha.IAudienceEventTrigger|null); + + /** Audience exclusionDurationMode. */ + public exclusionDurationMode: (google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode|keyof typeof google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode); + + /** Audience filterClauses. */ + public filterClauses: google.analytics.admin.v1alpha.IAudienceFilterClause[]; /** - * Creates a new AudienceSimpleFilter instance using the specified properties. + * Creates a new Audience instance using the specified properties. * @param [properties] Properties to set - * @returns AudienceSimpleFilter instance + * @returns Audience instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAudienceSimpleFilter): google.analytics.admin.v1alpha.AudienceSimpleFilter; + public static create(properties?: google.analytics.admin.v1alpha.IAudience): google.analytics.admin.v1alpha.Audience; /** - * Encodes the specified AudienceSimpleFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSimpleFilter.verify|verify} messages. - * @param message AudienceSimpleFilter message or plain object to encode + * Encodes the specified Audience message. Does not implicitly {@link google.analytics.admin.v1alpha.Audience.verify|verify} messages. + * @param message Audience message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAudienceSimpleFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IAudience, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AudienceSimpleFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSimpleFilter.verify|verify} messages. - * @param message AudienceSimpleFilter message or plain object to encode + * Encodes the specified Audience message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Audience.verify|verify} messages. + * @param message Audience message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceSimpleFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudience, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AudienceSimpleFilter message from the specified reader or buffer. + * Decodes an Audience message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AudienceSimpleFilter + * @returns Audience * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceSimpleFilter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.Audience; /** - * Decodes an AudienceSimpleFilter message from the specified reader or buffer, length delimited. + * Decodes an Audience message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AudienceSimpleFilter + * @returns Audience * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceSimpleFilter; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.Audience; /** - * Verifies an AudienceSimpleFilter message. + * Verifies an Audience message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an AudienceSimpleFilter message from a plain object. Also converts values to their respective internal types. + * Creates an Audience message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AudienceSimpleFilter + * @returns Audience */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceSimpleFilter; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.Audience; /** - * Creates a plain object from an AudienceSimpleFilter message. Also converts values to other types if specified. - * @param message AudienceSimpleFilter + * Creates a plain object from an Audience message. Also converts values to other types if specified. + * @param message Audience * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceSimpleFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.Audience, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AudienceSimpleFilter to JSON. + * Converts this Audience to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AudienceSimpleFilter + * Gets the default type url for Audience * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AudienceSequenceFilter. */ - interface IAudienceSequenceFilter { + namespace Audience { - /** AudienceSequenceFilter scope */ - scope?: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope|null); + /** AudienceExclusionDurationMode enum. */ + enum AudienceExclusionDurationMode { + AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED = 0, + EXCLUDE_TEMPORARILY = 1, + EXCLUDE_PERMANENTLY = 2 + } + } - /** AudienceSequenceFilter sequenceMaximumDuration */ - sequenceMaximumDuration?: (google.protobuf.IDuration|null); + /** Properties of a ChannelGroupFilter. */ + interface IChannelGroupFilter { - /** AudienceSequenceFilter sequenceSteps */ - sequenceSteps?: (google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep[]|null); + /** ChannelGroupFilter stringFilter */ + stringFilter?: (google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter|null); + + /** ChannelGroupFilter inListFilter */ + inListFilter?: (google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter|null); + + /** ChannelGroupFilter fieldName */ + fieldName?: (string|null); } - /** Represents an AudienceSequenceFilter. */ - class AudienceSequenceFilter implements IAudienceSequenceFilter { + /** Represents a ChannelGroupFilter. */ + class ChannelGroupFilter implements IChannelGroupFilter { /** - * Constructs a new AudienceSequenceFilter. + * Constructs a new ChannelGroupFilter. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAudienceSequenceFilter); + constructor(properties?: google.analytics.admin.v1alpha.IChannelGroupFilter); - /** AudienceSequenceFilter scope. */ - public scope: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope); + /** ChannelGroupFilter stringFilter. */ + public stringFilter?: (google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter|null); - /** AudienceSequenceFilter sequenceMaximumDuration. */ - public sequenceMaximumDuration?: (google.protobuf.IDuration|null); + /** ChannelGroupFilter inListFilter. */ + public inListFilter?: (google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter|null); - /** AudienceSequenceFilter sequenceSteps. */ - public sequenceSteps: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep[]; + /** ChannelGroupFilter fieldName. */ + public fieldName: string; + + /** ChannelGroupFilter valueFilter. */ + public valueFilter?: ("stringFilter"|"inListFilter"); /** - * Creates a new AudienceSequenceFilter instance using the specified properties. + * Creates a new ChannelGroupFilter instance using the specified properties. * @param [properties] Properties to set - * @returns AudienceSequenceFilter instance + * @returns ChannelGroupFilter instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAudienceSequenceFilter): google.analytics.admin.v1alpha.AudienceSequenceFilter; + public static create(properties?: google.analytics.admin.v1alpha.IChannelGroupFilter): google.analytics.admin.v1alpha.ChannelGroupFilter; /** - * Encodes the specified AudienceSequenceFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.verify|verify} messages. - * @param message AudienceSequenceFilter message or plain object to encode + * Encodes the specified ChannelGroupFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.verify|verify} messages. + * @param message ChannelGroupFilter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAudienceSequenceFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IChannelGroupFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AudienceSequenceFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.verify|verify} messages. - * @param message AudienceSequenceFilter message or plain object to encode + * Encodes the specified ChannelGroupFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.verify|verify} messages. + * @param message ChannelGroupFilter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceSequenceFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IChannelGroupFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AudienceSequenceFilter message from the specified reader or buffer. + * Decodes a ChannelGroupFilter message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AudienceSequenceFilter + * @returns ChannelGroupFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceSequenceFilter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChannelGroupFilter; /** - * Decodes an AudienceSequenceFilter message from the specified reader or buffer, length delimited. + * Decodes a ChannelGroupFilter message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AudienceSequenceFilter + * @returns ChannelGroupFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceSequenceFilter; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChannelGroupFilter; /** - * Verifies an AudienceSequenceFilter message. + * Verifies a ChannelGroupFilter message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an AudienceSequenceFilter message from a plain object. Also converts values to their respective internal types. + * Creates a ChannelGroupFilter message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AudienceSequenceFilter + * @returns ChannelGroupFilter */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceSequenceFilter; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChannelGroupFilter; /** - * Creates a plain object from an AudienceSequenceFilter message. Also converts values to other types if specified. - * @param message AudienceSequenceFilter + * Creates a plain object from a ChannelGroupFilter message. Also converts values to other types if specified. + * @param message ChannelGroupFilter * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceSequenceFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ChannelGroupFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AudienceSequenceFilter to JSON. + * Converts this ChannelGroupFilter to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AudienceSequenceFilter + * Gets the default type url for ChannelGroupFilter * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AudienceSequenceFilter { - - /** Properties of an AudienceSequenceStep. */ - interface IAudienceSequenceStep { - - /** AudienceSequenceStep scope */ - scope?: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope|null); + namespace ChannelGroupFilter { - /** AudienceSequenceStep immediatelyFollows */ - immediatelyFollows?: (boolean|null); + /** Properties of a StringFilter. */ + interface IStringFilter { - /** AudienceSequenceStep constraintDuration */ - constraintDuration?: (google.protobuf.IDuration|null); + /** StringFilter matchType */ + matchType?: (google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType|keyof typeof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType|null); - /** AudienceSequenceStep filterExpression */ - filterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + /** StringFilter value */ + value?: (string|null); } - /** Represents an AudienceSequenceStep. */ - class AudienceSequenceStep implements IAudienceSequenceStep { + /** Represents a StringFilter. */ + class StringFilter implements IStringFilter { /** - * Constructs a new AudienceSequenceStep. + * Constructs a new StringFilter. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep); - - /** AudienceSequenceStep scope. */ - public scope: (google.analytics.admin.v1alpha.AudienceFilterScope|keyof typeof google.analytics.admin.v1alpha.AudienceFilterScope); - - /** AudienceSequenceStep immediatelyFollows. */ - public immediatelyFollows: boolean; + constructor(properties?: google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter); - /** AudienceSequenceStep constraintDuration. */ - public constraintDuration?: (google.protobuf.IDuration|null); + /** StringFilter matchType. */ + public matchType: (google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType|keyof typeof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType); - /** AudienceSequenceStep filterExpression. */ - public filterExpression?: (google.analytics.admin.v1alpha.IAudienceFilterExpression|null); + /** StringFilter value. */ + public value: string; /** - * Creates a new AudienceSequenceStep instance using the specified properties. + * Creates a new StringFilter instance using the specified properties. * @param [properties] Properties to set - * @returns AudienceSequenceStep instance + * @returns StringFilter instance */ - public static create(properties?: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep): google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep; + public static create(properties?: google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter): google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter; /** - * Encodes the specified AudienceSequenceStep message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify|verify} messages. - * @param message AudienceSequenceStep message or plain object to encode + * Encodes the specified StringFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.verify|verify} messages. + * @param message StringFilter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AudienceSequenceStep message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify|verify} messages. - * @param message AudienceSequenceStep message or plain object to encode + * Encodes the specified StringFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.verify|verify} messages. + * @param message StringFilter message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AudienceSequenceStep message from the specified reader or buffer. + * Decodes a StringFilter message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AudienceSequenceStep + * @returns StringFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter; /** - * Decodes an AudienceSequenceStep message from the specified reader or buffer, length delimited. + * Decodes a StringFilter message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AudienceSequenceStep + * @returns StringFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter; /** - * Verifies an AudienceSequenceStep message. + * Verifies a StringFilter message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an AudienceSequenceStep message from a plain object. Also converts values to their respective internal types. + * Creates a StringFilter message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AudienceSequenceStep + * @returns StringFilter */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter; /** - * Creates a plain object from an AudienceSequenceStep message. Also converts values to other types if specified. - * @param message AudienceSequenceStep + * Creates a plain object from a StringFilter message. Also converts values to other types if specified. + * @param message StringFilter * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AudienceSequenceStep to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AudienceSequenceStep - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of an AudienceFilterClause. */ - interface IAudienceFilterClause { - - /** AudienceFilterClause simpleFilter */ - simpleFilter?: (google.analytics.admin.v1alpha.IAudienceSimpleFilter|null); - - /** AudienceFilterClause sequenceFilter */ - sequenceFilter?: (google.analytics.admin.v1alpha.IAudienceSequenceFilter|null); - - /** AudienceFilterClause clauseType */ - clauseType?: (google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType|keyof typeof google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType|null); - } - - /** Represents an AudienceFilterClause. */ - class AudienceFilterClause implements IAudienceFilterClause { - - /** - * Constructs a new AudienceFilterClause. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IAudienceFilterClause); - - /** AudienceFilterClause simpleFilter. */ - public simpleFilter?: (google.analytics.admin.v1alpha.IAudienceSimpleFilter|null); - - /** AudienceFilterClause sequenceFilter. */ - public sequenceFilter?: (google.analytics.admin.v1alpha.IAudienceSequenceFilter|null); - - /** AudienceFilterClause clauseType. */ - public clauseType: (google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType|keyof typeof google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType); - - /** AudienceFilterClause filter. */ - public filter?: ("simpleFilter"|"sequenceFilter"); - - /** - * Creates a new AudienceFilterClause instance using the specified properties. - * @param [properties] Properties to set - * @returns AudienceFilterClause instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IAudienceFilterClause): google.analytics.admin.v1alpha.AudienceFilterClause; - - /** - * Encodes the specified AudienceFilterClause message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterClause.verify|verify} messages. - * @param message AudienceFilterClause message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IAudienceFilterClause, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified AudienceFilterClause message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterClause.verify|verify} messages. - * @param message AudienceFilterClause message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceFilterClause, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AudienceFilterClause message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AudienceFilterClause - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceFilterClause; - - /** - * Decodes an AudienceFilterClause message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AudienceFilterClause - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceFilterClause; - - /** - * Verifies an AudienceFilterClause message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an AudienceFilterClause message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AudienceFilterClause - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceFilterClause; - - /** - * Creates a plain object from an AudienceFilterClause message. Also converts values to other types if specified. - * @param message AudienceFilterClause - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceFilterClause, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this AudienceFilterClause to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for AudienceFilterClause - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace AudienceFilterClause { - - /** AudienceClauseType enum. */ - enum AudienceClauseType { - AUDIENCE_CLAUSE_TYPE_UNSPECIFIED = 0, - INCLUDE = 1, - EXCLUDE = 2 - } - } - - /** Properties of an AudienceEventTrigger. */ - interface IAudienceEventTrigger { + public static toObject(message: google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** AudienceEventTrigger eventName */ - eventName?: (string|null); + /** + * Converts this StringFilter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** AudienceEventTrigger logCondition */ - logCondition?: (google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition|keyof typeof google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition|null); - } + /** + * Gets the default type url for StringFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Represents an AudienceEventTrigger. */ - class AudienceEventTrigger implements IAudienceEventTrigger { + namespace StringFilter { - /** - * Constructs a new AudienceEventTrigger. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.IAudienceEventTrigger); + /** MatchType enum. */ + enum MatchType { + MATCH_TYPE_UNSPECIFIED = 0, + EXACT = 1, + BEGINS_WITH = 2, + ENDS_WITH = 3, + CONTAINS = 4, + FULL_REGEXP = 5, + PARTIAL_REGEXP = 6 + } + } - /** AudienceEventTrigger eventName. */ - public eventName: string; + /** Properties of an InListFilter. */ + interface IInListFilter { - /** AudienceEventTrigger logCondition. */ - public logCondition: (google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition|keyof typeof google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition); + /** InListFilter values */ + values?: (string[]|null); + } - /** - * Creates a new AudienceEventTrigger instance using the specified properties. - * @param [properties] Properties to set - * @returns AudienceEventTrigger instance - */ - public static create(properties?: google.analytics.admin.v1alpha.IAudienceEventTrigger): google.analytics.admin.v1alpha.AudienceEventTrigger; + /** Represents an InListFilter. */ + class InListFilter implements IInListFilter { - /** - * Encodes the specified AudienceEventTrigger message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventTrigger.verify|verify} messages. - * @param message AudienceEventTrigger message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.IAudienceEventTrigger, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new InListFilter. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter); - /** - * Encodes the specified AudienceEventTrigger message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventTrigger.verify|verify} messages. - * @param message AudienceEventTrigger message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudienceEventTrigger, writer?: $protobuf.Writer): $protobuf.Writer; + /** InListFilter values. */ + public values: string[]; - /** - * Decodes an AudienceEventTrigger message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AudienceEventTrigger - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AudienceEventTrigger; + /** + * Creates a new InListFilter instance using the specified properties. + * @param [properties] Properties to set + * @returns InListFilter instance + */ + public static create(properties?: google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter): google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter; - /** - * Decodes an AudienceEventTrigger message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AudienceEventTrigger - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AudienceEventTrigger; + /** + * Encodes the specified InListFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.verify|verify} messages. + * @param message InListFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies an AudienceEventTrigger message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified InListFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.verify|verify} messages. + * @param message InListFilter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates an AudienceEventTrigger message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AudienceEventTrigger - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AudienceEventTrigger; + /** + * Decodes an InListFilter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InListFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter; - /** - * Creates a plain object from an AudienceEventTrigger message. Also converts values to other types if specified. - * @param message AudienceEventTrigger - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.AudienceEventTrigger, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes an InListFilter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InListFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter; - /** - * Converts this AudienceEventTrigger to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies an InListFilter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Gets the default type url for AudienceEventTrigger - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates an InListFilter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InListFilter + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter; - namespace AudienceEventTrigger { + /** + * Creates a plain object from an InListFilter message. Also converts values to other types if specified. + * @param message InListFilter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** LogCondition enum. */ - enum LogCondition { - LOG_CONDITION_UNSPECIFIED = 0, - AUDIENCE_JOINED = 1, - AUDIENCE_MEMBERSHIP_RENEWED = 2 + /** + * Converts this InListFilter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InListFilter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } - /** Properties of an Audience. */ - interface IAudience { - - /** Audience name */ - name?: (string|null); - - /** Audience displayName */ - displayName?: (string|null); - - /** Audience description */ - description?: (string|null); - - /** Audience membershipDurationDays */ - membershipDurationDays?: (number|null); + /** Properties of a ChannelGroupFilterExpression. */ + interface IChannelGroupFilterExpression { - /** Audience adsPersonalizationEnabled */ - adsPersonalizationEnabled?: (boolean|null); + /** ChannelGroupFilterExpression andGroup */ + andGroup?: (google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList|null); - /** Audience eventTrigger */ - eventTrigger?: (google.analytics.admin.v1alpha.IAudienceEventTrigger|null); + /** ChannelGroupFilterExpression orGroup */ + orGroup?: (google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList|null); - /** Audience exclusionDurationMode */ - exclusionDurationMode?: (google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode|keyof typeof google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode|null); + /** ChannelGroupFilterExpression notExpression */ + notExpression?: (google.analytics.admin.v1alpha.IChannelGroupFilterExpression|null); - /** Audience filterClauses */ - filterClauses?: (google.analytics.admin.v1alpha.IAudienceFilterClause[]|null); + /** ChannelGroupFilterExpression filter */ + filter?: (google.analytics.admin.v1alpha.IChannelGroupFilter|null); } - /** Represents an Audience. */ - class Audience implements IAudience { + /** Represents a ChannelGroupFilterExpression. */ + class ChannelGroupFilterExpression implements IChannelGroupFilterExpression { /** - * Constructs a new Audience. + * Constructs a new ChannelGroupFilterExpression. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IAudience); - - /** Audience name. */ - public name: string; - - /** Audience displayName. */ - public displayName: string; - - /** Audience description. */ - public description: string; + constructor(properties?: google.analytics.admin.v1alpha.IChannelGroupFilterExpression); - /** Audience membershipDurationDays. */ - public membershipDurationDays: number; + /** ChannelGroupFilterExpression andGroup. */ + public andGroup?: (google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList|null); - /** Audience adsPersonalizationEnabled. */ - public adsPersonalizationEnabled: boolean; + /** ChannelGroupFilterExpression orGroup. */ + public orGroup?: (google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList|null); - /** Audience eventTrigger. */ - public eventTrigger?: (google.analytics.admin.v1alpha.IAudienceEventTrigger|null); + /** ChannelGroupFilterExpression notExpression. */ + public notExpression?: (google.analytics.admin.v1alpha.IChannelGroupFilterExpression|null); - /** Audience exclusionDurationMode. */ - public exclusionDurationMode: (google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode|keyof typeof google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode); + /** ChannelGroupFilterExpression filter. */ + public filter?: (google.analytics.admin.v1alpha.IChannelGroupFilter|null); - /** Audience filterClauses. */ - public filterClauses: google.analytics.admin.v1alpha.IAudienceFilterClause[]; + /** ChannelGroupFilterExpression expr. */ + public expr?: ("andGroup"|"orGroup"|"notExpression"|"filter"); /** - * Creates a new Audience instance using the specified properties. + * Creates a new ChannelGroupFilterExpression instance using the specified properties. * @param [properties] Properties to set - * @returns Audience instance + * @returns ChannelGroupFilterExpression instance */ - public static create(properties?: google.analytics.admin.v1alpha.IAudience): google.analytics.admin.v1alpha.Audience; + public static create(properties?: google.analytics.admin.v1alpha.IChannelGroupFilterExpression): google.analytics.admin.v1alpha.ChannelGroupFilterExpression; /** - * Encodes the specified Audience message. Does not implicitly {@link google.analytics.admin.v1alpha.Audience.verify|verify} messages. - * @param message Audience message or plain object to encode + * Encodes the specified ChannelGroupFilterExpression message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilterExpression.verify|verify} messages. + * @param message ChannelGroupFilterExpression message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IAudience, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IChannelGroupFilterExpression, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Audience message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Audience.verify|verify} messages. - * @param message Audience message or plain object to encode + * Encodes the specified ChannelGroupFilterExpression message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilterExpression.verify|verify} messages. + * @param message ChannelGroupFilterExpression message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IAudience, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IChannelGroupFilterExpression, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Audience message from the specified reader or buffer. + * Decodes a ChannelGroupFilterExpression message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Audience + * @returns ChannelGroupFilterExpression * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.Audience; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChannelGroupFilterExpression; /** - * Decodes an Audience message from the specified reader or buffer, length delimited. + * Decodes a ChannelGroupFilterExpression message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Audience + * @returns ChannelGroupFilterExpression * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.Audience; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChannelGroupFilterExpression; /** - * Verifies an Audience message. + * Verifies a ChannelGroupFilterExpression message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Audience message from a plain object. Also converts values to their respective internal types. + * Creates a ChannelGroupFilterExpression message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Audience + * @returns ChannelGroupFilterExpression */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.Audience; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChannelGroupFilterExpression; /** - * Creates a plain object from an Audience message. Also converts values to other types if specified. - * @param message Audience + * Creates a plain object from a ChannelGroupFilterExpression message. Also converts values to other types if specified. + * @param message ChannelGroupFilterExpression * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.Audience, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ChannelGroupFilterExpression, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Audience to JSON. + * Converts this ChannelGroupFilterExpression to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Audience + * Gets the default type url for ChannelGroupFilterExpression * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Audience { - - /** AudienceExclusionDurationMode enum. */ - enum AudienceExclusionDurationMode { - AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED = 0, - EXCLUDE_TEMPORARILY = 1, - EXCLUDE_PERMANENTLY = 2 - } - } - - /** Properties of a ChannelGroupFilter. */ - interface IChannelGroupFilter { - - /** ChannelGroupFilter stringFilter */ - stringFilter?: (google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter|null); - - /** ChannelGroupFilter inListFilter */ - inListFilter?: (google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter|null); + /** Properties of a ChannelGroupFilterExpressionList. */ + interface IChannelGroupFilterExpressionList { - /** ChannelGroupFilter fieldName */ - fieldName?: (string|null); + /** ChannelGroupFilterExpressionList filterExpressions */ + filterExpressions?: (google.analytics.admin.v1alpha.IChannelGroupFilterExpression[]|null); } - /** Represents a ChannelGroupFilter. */ - class ChannelGroupFilter implements IChannelGroupFilter { + /** Represents a ChannelGroupFilterExpressionList. */ + class ChannelGroupFilterExpressionList implements IChannelGroupFilterExpressionList { /** - * Constructs a new ChannelGroupFilter. + * Constructs a new ChannelGroupFilterExpressionList. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IChannelGroupFilter); - - /** ChannelGroupFilter stringFilter. */ - public stringFilter?: (google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter|null); - - /** ChannelGroupFilter inListFilter. */ - public inListFilter?: (google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter|null); - - /** ChannelGroupFilter fieldName. */ - public fieldName: string; + constructor(properties?: google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList); - /** ChannelGroupFilter valueFilter. */ - public valueFilter?: ("stringFilter"|"inListFilter"); + /** ChannelGroupFilterExpressionList filterExpressions. */ + public filterExpressions: google.analytics.admin.v1alpha.IChannelGroupFilterExpression[]; /** - * Creates a new ChannelGroupFilter instance using the specified properties. + * Creates a new ChannelGroupFilterExpressionList instance using the specified properties. * @param [properties] Properties to set - * @returns ChannelGroupFilter instance + * @returns ChannelGroupFilterExpressionList instance */ - public static create(properties?: google.analytics.admin.v1alpha.IChannelGroupFilter): google.analytics.admin.v1alpha.ChannelGroupFilter; + public static create(properties?: google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList): google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList; /** - * Encodes the specified ChannelGroupFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.verify|verify} messages. - * @param message ChannelGroupFilter message or plain object to encode + * Encodes the specified ChannelGroupFilterExpressionList message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.verify|verify} messages. + * @param message ChannelGroupFilterExpressionList message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IChannelGroupFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ChannelGroupFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.verify|verify} messages. - * @param message ChannelGroupFilter message or plain object to encode + * Encodes the specified ChannelGroupFilterExpressionList message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.verify|verify} messages. + * @param message ChannelGroupFilterExpressionList message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IChannelGroupFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChannelGroupFilter message from the specified reader or buffer. + * Decodes a ChannelGroupFilterExpressionList message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ChannelGroupFilter + * @returns ChannelGroupFilterExpressionList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChannelGroupFilter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList; /** - * Decodes a ChannelGroupFilter message from the specified reader or buffer, length delimited. + * Decodes a ChannelGroupFilterExpressionList message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ChannelGroupFilter + * @returns ChannelGroupFilterExpressionList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChannelGroupFilter; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList; /** - * Verifies a ChannelGroupFilter message. + * Verifies a ChannelGroupFilterExpressionList message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ChannelGroupFilter message from a plain object. Also converts values to their respective internal types. + * Creates a ChannelGroupFilterExpressionList message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ChannelGroupFilter + * @returns ChannelGroupFilterExpressionList */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChannelGroupFilter; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList; /** - * Creates a plain object from a ChannelGroupFilter message. Also converts values to other types if specified. - * @param message ChannelGroupFilter + * Creates a plain object from a ChannelGroupFilterExpressionList message. Also converts values to other types if specified. + * @param message ChannelGroupFilterExpressionList * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ChannelGroupFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ChannelGroupFilter to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ChannelGroupFilter - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace ChannelGroupFilter { - - /** Properties of a StringFilter. */ - interface IStringFilter { - - /** StringFilter matchType */ - matchType?: (google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType|keyof typeof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType|null); - - /** StringFilter value */ - value?: (string|null); - } - - /** Represents a StringFilter. */ - class StringFilter implements IStringFilter { - - /** - * Constructs a new StringFilter. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter); - - /** StringFilter matchType. */ - public matchType: (google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType|keyof typeof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType); - - /** StringFilter value. */ - public value: string; - - /** - * Creates a new StringFilter instance using the specified properties. - * @param [properties] Properties to set - * @returns StringFilter instance - */ - public static create(properties?: google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter): google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter; - - /** - * Encodes the specified StringFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.verify|verify} messages. - * @param message StringFilter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StringFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.verify|verify} messages. - * @param message StringFilter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StringFilter message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StringFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter; - - /** - * Decodes a StringFilter message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StringFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter; - - /** - * Verifies a StringFilter message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a StringFilter message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StringFilter - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter; - - /** - * Creates a plain object from a StringFilter message. Also converts values to other types if specified. - * @param message StringFilter - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StringFilter to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for StringFilter - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this ChannelGroupFilterExpressionList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - namespace StringFilter { + /** + * Gets the default type url for ChannelGroupFilterExpressionList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** MatchType enum. */ - enum MatchType { - MATCH_TYPE_UNSPECIFIED = 0, - EXACT = 1, - BEGINS_WITH = 2, - ENDS_WITH = 3, - CONTAINS = 4, - FULL_REGEXP = 5, - PARTIAL_REGEXP = 6 - } - } + /** Properties of a GroupingRule. */ + interface IGroupingRule { - /** Properties of an InListFilter. */ - interface IInListFilter { + /** GroupingRule displayName */ + displayName?: (string|null); - /** InListFilter values */ - values?: (string[]|null); - } + /** GroupingRule expression */ + expression?: (google.analytics.admin.v1alpha.IChannelGroupFilterExpression|null); + } - /** Represents an InListFilter. */ - class InListFilter implements IInListFilter { + /** Represents a GroupingRule. */ + class GroupingRule implements IGroupingRule { - /** - * Constructs a new InListFilter. - * @param [properties] Properties to set - */ - constructor(properties?: google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter); + /** + * Constructs a new GroupingRule. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IGroupingRule); - /** InListFilter values. */ - public values: string[]; + /** GroupingRule displayName. */ + public displayName: string; - /** - * Creates a new InListFilter instance using the specified properties. - * @param [properties] Properties to set - * @returns InListFilter instance - */ - public static create(properties?: google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter): google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter; + /** GroupingRule expression. */ + public expression?: (google.analytics.admin.v1alpha.IChannelGroupFilterExpression|null); - /** - * Encodes the specified InListFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.verify|verify} messages. - * @param message InListFilter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new GroupingRule instance using the specified properties. + * @param [properties] Properties to set + * @returns GroupingRule instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IGroupingRule): google.analytics.admin.v1alpha.GroupingRule; - /** - * Encodes the specified InListFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.verify|verify} messages. - * @param message InListFilter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified GroupingRule message. Does not implicitly {@link google.analytics.admin.v1alpha.GroupingRule.verify|verify} messages. + * @param message GroupingRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IGroupingRule, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an InListFilter message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InListFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter; + /** + * Encodes the specified GroupingRule message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GroupingRule.verify|verify} messages. + * @param message GroupingRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IGroupingRule, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an InListFilter message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InListFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter; + /** + * Decodes a GroupingRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GroupingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GroupingRule; - /** - * Verifies an InListFilter message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a GroupingRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GroupingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GroupingRule; - /** - * Creates an InListFilter message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InListFilter - */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter; + /** + * Verifies a GroupingRule message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from an InListFilter message. Also converts values to other types if specified. - * @param message InListFilter - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a GroupingRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GroupingRule + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GroupingRule; - /** - * Converts this InListFilter to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a GroupingRule message. Also converts values to other types if specified. + * @param message GroupingRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.GroupingRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for InListFilter - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this GroupingRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GroupingRule + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ChannelGroupFilterExpression. */ - interface IChannelGroupFilterExpression { + /** Properties of a ChannelGroup. */ + interface IChannelGroup { - /** ChannelGroupFilterExpression andGroup */ - andGroup?: (google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList|null); + /** ChannelGroup name */ + name?: (string|null); - /** ChannelGroupFilterExpression orGroup */ - orGroup?: (google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList|null); + /** ChannelGroup displayName */ + displayName?: (string|null); - /** ChannelGroupFilterExpression notExpression */ - notExpression?: (google.analytics.admin.v1alpha.IChannelGroupFilterExpression|null); + /** ChannelGroup description */ + description?: (string|null); - /** ChannelGroupFilterExpression filter */ - filter?: (google.analytics.admin.v1alpha.IChannelGroupFilter|null); + /** ChannelGroup groupingRule */ + groupingRule?: (google.analytics.admin.v1alpha.IGroupingRule[]|null); + + /** ChannelGroup systemDefined */ + systemDefined?: (boolean|null); } - /** Represents a ChannelGroupFilterExpression. */ - class ChannelGroupFilterExpression implements IChannelGroupFilterExpression { + /** Represents a ChannelGroup. */ + class ChannelGroup implements IChannelGroup { /** - * Constructs a new ChannelGroupFilterExpression. + * Constructs a new ChannelGroup. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IChannelGroupFilterExpression); + constructor(properties?: google.analytics.admin.v1alpha.IChannelGroup); - /** ChannelGroupFilterExpression andGroup. */ - public andGroup?: (google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList|null); + /** ChannelGroup name. */ + public name: string; - /** ChannelGroupFilterExpression orGroup. */ - public orGroup?: (google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList|null); + /** ChannelGroup displayName. */ + public displayName: string; - /** ChannelGroupFilterExpression notExpression. */ - public notExpression?: (google.analytics.admin.v1alpha.IChannelGroupFilterExpression|null); + /** ChannelGroup description. */ + public description: string; - /** ChannelGroupFilterExpression filter. */ - public filter?: (google.analytics.admin.v1alpha.IChannelGroupFilter|null); + /** ChannelGroup groupingRule. */ + public groupingRule: google.analytics.admin.v1alpha.IGroupingRule[]; - /** ChannelGroupFilterExpression expr. */ - public expr?: ("andGroup"|"orGroup"|"notExpression"|"filter"); + /** ChannelGroup systemDefined. */ + public systemDefined: boolean; /** - * Creates a new ChannelGroupFilterExpression instance using the specified properties. + * Creates a new ChannelGroup instance using the specified properties. * @param [properties] Properties to set - * @returns ChannelGroupFilterExpression instance + * @returns ChannelGroup instance */ - public static create(properties?: google.analytics.admin.v1alpha.IChannelGroupFilterExpression): google.analytics.admin.v1alpha.ChannelGroupFilterExpression; + public static create(properties?: google.analytics.admin.v1alpha.IChannelGroup): google.analytics.admin.v1alpha.ChannelGroup; /** - * Encodes the specified ChannelGroupFilterExpression message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilterExpression.verify|verify} messages. - * @param message ChannelGroupFilterExpression message or plain object to encode + * Encodes the specified ChannelGroup message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroup.verify|verify} messages. + * @param message ChannelGroup message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IChannelGroupFilterExpression, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IChannelGroup, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ChannelGroupFilterExpression message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilterExpression.verify|verify} messages. - * @param message ChannelGroupFilterExpression message or plain object to encode + * Encodes the specified ChannelGroup message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroup.verify|verify} messages. + * @param message ChannelGroup message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IChannelGroupFilterExpression, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IChannelGroup, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChannelGroupFilterExpression message from the specified reader or buffer. + * Decodes a ChannelGroup message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ChannelGroupFilterExpression + * @returns ChannelGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChannelGroupFilterExpression; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChannelGroup; /** - * Decodes a ChannelGroupFilterExpression message from the specified reader or buffer, length delimited. + * Decodes a ChannelGroup message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ChannelGroupFilterExpression + * @returns ChannelGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChannelGroupFilterExpression; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChannelGroup; /** - * Verifies a ChannelGroupFilterExpression message. + * Verifies a ChannelGroup message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ChannelGroupFilterExpression message from a plain object. Also converts values to their respective internal types. + * Creates a ChannelGroup message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ChannelGroupFilterExpression + * @returns ChannelGroup */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChannelGroupFilterExpression; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChannelGroup; /** - * Creates a plain object from a ChannelGroupFilterExpression message. Also converts values to other types if specified. - * @param message ChannelGroupFilterExpression + * Creates a plain object from a ChannelGroup message. Also converts values to other types if specified. + * @param message ChannelGroup * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ChannelGroupFilterExpression, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ChannelGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChannelGroupFilterExpression to JSON. + * Converts this ChannelGroup to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ChannelGroupFilterExpression + * Gets the default type url for ChannelGroup * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ChannelGroupFilterExpressionList. */ - interface IChannelGroupFilterExpressionList { + /** Properties of a ParameterMutation. */ + interface IParameterMutation { - /** ChannelGroupFilterExpressionList filterExpressions */ - filterExpressions?: (google.analytics.admin.v1alpha.IChannelGroupFilterExpression[]|null); + /** ParameterMutation parameter */ + parameter?: (string|null); + + /** ParameterMutation parameterValue */ + parameterValue?: (string|null); } - /** Represents a ChannelGroupFilterExpressionList. */ - class ChannelGroupFilterExpressionList implements IChannelGroupFilterExpressionList { + /** Represents a ParameterMutation. */ + class ParameterMutation implements IParameterMutation { /** - * Constructs a new ChannelGroupFilterExpressionList. + * Constructs a new ParameterMutation. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList); + constructor(properties?: google.analytics.admin.v1alpha.IParameterMutation); - /** ChannelGroupFilterExpressionList filterExpressions. */ - public filterExpressions: google.analytics.admin.v1alpha.IChannelGroupFilterExpression[]; + /** ParameterMutation parameter. */ + public parameter: string; + + /** ParameterMutation parameterValue. */ + public parameterValue: string; /** - * Creates a new ChannelGroupFilterExpressionList instance using the specified properties. + * Creates a new ParameterMutation instance using the specified properties. * @param [properties] Properties to set - * @returns ChannelGroupFilterExpressionList instance + * @returns ParameterMutation instance */ - public static create(properties?: google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList): google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList; + public static create(properties?: google.analytics.admin.v1alpha.IParameterMutation): google.analytics.admin.v1alpha.ParameterMutation; /** - * Encodes the specified ChannelGroupFilterExpressionList message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.verify|verify} messages. - * @param message ChannelGroupFilterExpressionList message or plain object to encode + * Encodes the specified ParameterMutation message. Does not implicitly {@link google.analytics.admin.v1alpha.ParameterMutation.verify|verify} messages. + * @param message ParameterMutation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IParameterMutation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ChannelGroupFilterExpressionList message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.verify|verify} messages. - * @param message ChannelGroupFilterExpressionList message or plain object to encode + * Encodes the specified ParameterMutation message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ParameterMutation.verify|verify} messages. + * @param message ParameterMutation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IParameterMutation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChannelGroupFilterExpressionList message from the specified reader or buffer. + * Decodes a ParameterMutation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ChannelGroupFilterExpressionList + * @returns ParameterMutation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ParameterMutation; /** - * Decodes a ChannelGroupFilterExpressionList message from the specified reader or buffer, length delimited. + * Decodes a ParameterMutation message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ChannelGroupFilterExpressionList + * @returns ParameterMutation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ParameterMutation; /** - * Verifies a ChannelGroupFilterExpressionList message. + * Verifies a ParameterMutation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ChannelGroupFilterExpressionList message from a plain object. Also converts values to their respective internal types. + * Creates a ParameterMutation message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ChannelGroupFilterExpressionList + * @returns ParameterMutation */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ParameterMutation; /** - * Creates a plain object from a ChannelGroupFilterExpressionList message. Also converts values to other types if specified. - * @param message ChannelGroupFilterExpressionList + * Creates a plain object from a ParameterMutation message. Also converts values to other types if specified. + * @param message ParameterMutation * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.ParameterMutation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChannelGroupFilterExpressionList to JSON. + * Converts this ParameterMutation to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ChannelGroupFilterExpressionList + * Gets the default type url for ParameterMutation * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GroupingRule. */ - interface IGroupingRule { + /** Properties of an EventCreateRule. */ + interface IEventCreateRule { - /** GroupingRule displayName */ - displayName?: (string|null); + /** EventCreateRule name */ + name?: (string|null); - /** GroupingRule expression */ - expression?: (google.analytics.admin.v1alpha.IChannelGroupFilterExpression|null); + /** EventCreateRule destinationEvent */ + destinationEvent?: (string|null); + + /** EventCreateRule eventConditions */ + eventConditions?: (google.analytics.admin.v1alpha.IMatchingCondition[]|null); + + /** EventCreateRule sourceCopyParameters */ + sourceCopyParameters?: (boolean|null); + + /** EventCreateRule parameterMutations */ + parameterMutations?: (google.analytics.admin.v1alpha.IParameterMutation[]|null); } - /** Represents a GroupingRule. */ - class GroupingRule implements IGroupingRule { + /** Represents an EventCreateRule. */ + class EventCreateRule implements IEventCreateRule { /** - * Constructs a new GroupingRule. + * Constructs a new EventCreateRule. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IGroupingRule); + constructor(properties?: google.analytics.admin.v1alpha.IEventCreateRule); - /** GroupingRule displayName. */ - public displayName: string; + /** EventCreateRule name. */ + public name: string; - /** GroupingRule expression. */ - public expression?: (google.analytics.admin.v1alpha.IChannelGroupFilterExpression|null); + /** EventCreateRule destinationEvent. */ + public destinationEvent: string; + + /** EventCreateRule eventConditions. */ + public eventConditions: google.analytics.admin.v1alpha.IMatchingCondition[]; + + /** EventCreateRule sourceCopyParameters. */ + public sourceCopyParameters: boolean; + + /** EventCreateRule parameterMutations. */ + public parameterMutations: google.analytics.admin.v1alpha.IParameterMutation[]; /** - * Creates a new GroupingRule instance using the specified properties. + * Creates a new EventCreateRule instance using the specified properties. * @param [properties] Properties to set - * @returns GroupingRule instance + * @returns EventCreateRule instance */ - public static create(properties?: google.analytics.admin.v1alpha.IGroupingRule): google.analytics.admin.v1alpha.GroupingRule; + public static create(properties?: google.analytics.admin.v1alpha.IEventCreateRule): google.analytics.admin.v1alpha.EventCreateRule; /** - * Encodes the specified GroupingRule message. Does not implicitly {@link google.analytics.admin.v1alpha.GroupingRule.verify|verify} messages. - * @param message GroupingRule message or plain object to encode + * Encodes the specified EventCreateRule message. Does not implicitly {@link google.analytics.admin.v1alpha.EventCreateRule.verify|verify} messages. + * @param message EventCreateRule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IGroupingRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IEventCreateRule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GroupingRule message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GroupingRule.verify|verify} messages. - * @param message GroupingRule message or plain object to encode + * Encodes the specified EventCreateRule message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.EventCreateRule.verify|verify} messages. + * @param message EventCreateRule message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IGroupingRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IEventCreateRule, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GroupingRule message from the specified reader or buffer. + * Decodes an EventCreateRule message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GroupingRule + * @returns EventCreateRule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.GroupingRule; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.EventCreateRule; /** - * Decodes a GroupingRule message from the specified reader or buffer, length delimited. + * Decodes an EventCreateRule message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GroupingRule + * @returns EventCreateRule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.GroupingRule; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.EventCreateRule; /** - * Verifies a GroupingRule message. + * Verifies an EventCreateRule message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GroupingRule message from a plain object. Also converts values to their respective internal types. + * Creates an EventCreateRule message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GroupingRule + * @returns EventCreateRule */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.GroupingRule; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.EventCreateRule; /** - * Creates a plain object from a GroupingRule message. Also converts values to other types if specified. - * @param message GroupingRule + * Creates a plain object from an EventCreateRule message. Also converts values to other types if specified. + * @param message EventCreateRule * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.GroupingRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.EventCreateRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GroupingRule to JSON. + * Converts this EventCreateRule to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GroupingRule + * Gets the default type url for EventCreateRule * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ChannelGroup. */ - interface IChannelGroup { - - /** ChannelGroup name */ - name?: (string|null); + /** Properties of a MatchingCondition. */ + interface IMatchingCondition { - /** ChannelGroup displayName */ - displayName?: (string|null); + /** MatchingCondition field */ + field?: (string|null); - /** ChannelGroup description */ - description?: (string|null); + /** MatchingCondition comparisonType */ + comparisonType?: (google.analytics.admin.v1alpha.MatchingCondition.ComparisonType|keyof typeof google.analytics.admin.v1alpha.MatchingCondition.ComparisonType|null); - /** ChannelGroup groupingRule */ - groupingRule?: (google.analytics.admin.v1alpha.IGroupingRule[]|null); + /** MatchingCondition value */ + value?: (string|null); - /** ChannelGroup systemDefined */ - systemDefined?: (boolean|null); + /** MatchingCondition negated */ + negated?: (boolean|null); } - /** Represents a ChannelGroup. */ - class ChannelGroup implements IChannelGroup { + /** Represents a MatchingCondition. */ + class MatchingCondition implements IMatchingCondition { /** - * Constructs a new ChannelGroup. + * Constructs a new MatchingCondition. * @param [properties] Properties to set */ - constructor(properties?: google.analytics.admin.v1alpha.IChannelGroup); - - /** ChannelGroup name. */ - public name: string; + constructor(properties?: google.analytics.admin.v1alpha.IMatchingCondition); - /** ChannelGroup displayName. */ - public displayName: string; + /** MatchingCondition field. */ + public field: string; - /** ChannelGroup description. */ - public description: string; + /** MatchingCondition comparisonType. */ + public comparisonType: (google.analytics.admin.v1alpha.MatchingCondition.ComparisonType|keyof typeof google.analytics.admin.v1alpha.MatchingCondition.ComparisonType); - /** ChannelGroup groupingRule. */ - public groupingRule: google.analytics.admin.v1alpha.IGroupingRule[]; + /** MatchingCondition value. */ + public value: string; - /** ChannelGroup systemDefined. */ - public systemDefined: boolean; + /** MatchingCondition negated. */ + public negated: boolean; /** - * Creates a new ChannelGroup instance using the specified properties. + * Creates a new MatchingCondition instance using the specified properties. * @param [properties] Properties to set - * @returns ChannelGroup instance + * @returns MatchingCondition instance */ - public static create(properties?: google.analytics.admin.v1alpha.IChannelGroup): google.analytics.admin.v1alpha.ChannelGroup; + public static create(properties?: google.analytics.admin.v1alpha.IMatchingCondition): google.analytics.admin.v1alpha.MatchingCondition; /** - * Encodes the specified ChannelGroup message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroup.verify|verify} messages. - * @param message ChannelGroup message or plain object to encode + * Encodes the specified MatchingCondition message. Does not implicitly {@link google.analytics.admin.v1alpha.MatchingCondition.verify|verify} messages. + * @param message MatchingCondition message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.analytics.admin.v1alpha.IChannelGroup, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.analytics.admin.v1alpha.IMatchingCondition, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ChannelGroup message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroup.verify|verify} messages. - * @param message ChannelGroup message or plain object to encode + * Encodes the specified MatchingCondition message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.MatchingCondition.verify|verify} messages. + * @param message MatchingCondition message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.analytics.admin.v1alpha.IChannelGroup, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.analytics.admin.v1alpha.IMatchingCondition, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ChannelGroup message from the specified reader or buffer. + * Decodes a MatchingCondition message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ChannelGroup + * @returns MatchingCondition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.ChannelGroup; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.MatchingCondition; /** - * Decodes a ChannelGroup message from the specified reader or buffer, length delimited. + * Decodes a MatchingCondition message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ChannelGroup + * @returns MatchingCondition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.ChannelGroup; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.MatchingCondition; /** - * Verifies a ChannelGroup message. + * Verifies a MatchingCondition message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ChannelGroup message from a plain object. Also converts values to their respective internal types. + * Creates a MatchingCondition message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ChannelGroup + * @returns MatchingCondition */ - public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.ChannelGroup; + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.MatchingCondition; /** - * Creates a plain object from a ChannelGroup message. Also converts values to other types if specified. - * @param message ChannelGroup + * Creates a plain object from a MatchingCondition message. Also converts values to other types if specified. + * @param message MatchingCondition * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.analytics.admin.v1alpha.ChannelGroup, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.analytics.admin.v1alpha.MatchingCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ChannelGroup to JSON. + * Converts this MatchingCondition to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ChannelGroup + * Gets the default type url for MatchingCondition * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace MatchingCondition { + + /** ComparisonType enum. */ + enum ComparisonType { + COMPARISON_TYPE_UNSPECIFIED = 0, + EQUALS = 1, + EQUALS_CASE_INSENSITIVE = 2, + CONTAINS = 3, + CONTAINS_CASE_INSENSITIVE = 4, + STARTS_WITH = 5, + STARTS_WITH_CASE_INSENSITIVE = 6, + ENDS_WITH = 7, + ENDS_WITH_CASE_INSENSITIVE = 8, + GREATER_THAN = 9, + GREATER_THAN_OR_EQUAL = 10, + LESS_THAN = 11, + LESS_THAN_OR_EQUAL = 12, + REGULAR_EXPRESSION = 13, + REGULAR_EXPRESSION_CASE_INSENSITIVE = 14 + } + } + /** Properties of an ExpandedDataSetFilter. */ interface IExpandedDataSetFilter { @@ -23114,7 +24785,10 @@ export namespace google { ATTRIBUTION_SETTINGS = 20, EXPANDED_DATA_SET = 21, CHANNEL_GROUP = 22, - ENHANCED_MEASUREMENT_SETTINGS = 24 + ENHANCED_MEASUREMENT_SETTINGS = 24, + ADSENSE_LINK = 27, + AUDIENCE = 28, + EVENT_CREATE_RULE = 29 } /** GoogleSignalsState enum. */ @@ -25259,6 +26933,15 @@ export namespace google { /** ChangeHistoryResource enhancedMeasurementSettings */ enhancedMeasurementSettings?: (google.analytics.admin.v1alpha.IEnhancedMeasurementSettings|null); + + /** ChangeHistoryResource adsenseLink */ + adsenseLink?: (google.analytics.admin.v1alpha.IAdSenseLink|null); + + /** ChangeHistoryResource audience */ + audience?: (google.analytics.admin.v1alpha.IAudience|null); + + /** ChangeHistoryResource eventCreateRule */ + eventCreateRule?: (google.analytics.admin.v1alpha.IEventCreateRule|null); } /** Represents a ChangeHistoryResource. */ @@ -25327,8 +27010,17 @@ export namespace google { /** ChangeHistoryResource enhancedMeasurementSettings. */ public enhancedMeasurementSettings?: (google.analytics.admin.v1alpha.IEnhancedMeasurementSettings|null); + /** ChangeHistoryResource adsenseLink. */ + public adsenseLink?: (google.analytics.admin.v1alpha.IAdSenseLink|null); + + /** ChangeHistoryResource audience. */ + public audience?: (google.analytics.admin.v1alpha.IAudience|null); + + /** ChangeHistoryResource eventCreateRule. */ + public eventCreateRule?: (google.analytics.admin.v1alpha.IEventCreateRule|null); + /** ChangeHistoryResource resource. */ - public resource?: ("account"|"property"|"firebaseLink"|"googleAdsLink"|"googleSignalsSettings"|"displayVideo_360AdvertiserLink"|"displayVideo_360AdvertiserLinkProposal"|"conversionEvent"|"measurementProtocolSecret"|"customDimension"|"customMetric"|"dataRetentionSettings"|"searchAds_360Link"|"dataStream"|"attributionSettings"|"expandedDataSet"|"channelGroup"|"bigqueryLink"|"enhancedMeasurementSettings"); + public resource?: ("account"|"property"|"firebaseLink"|"googleAdsLink"|"googleSignalsSettings"|"displayVideo_360AdvertiserLink"|"displayVideo_360AdvertiserLinkProposal"|"conversionEvent"|"measurementProtocolSecret"|"customDimension"|"customMetric"|"dataRetentionSettings"|"searchAds_360Link"|"dataStream"|"attributionSettings"|"expandedDataSet"|"channelGroup"|"bigqueryLink"|"enhancedMeasurementSettings"|"adsenseLink"|"audience"|"eventCreateRule"); /** * Creates a new ChangeHistoryResource instance using the specified properties. @@ -27232,6 +28924,109 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + /** Properties of an AdSenseLink. */ + interface IAdSenseLink { + + /** AdSenseLink name */ + name?: (string|null); + + /** AdSenseLink adClientCode */ + adClientCode?: (string|null); + } + + /** Represents an AdSenseLink. */ + class AdSenseLink implements IAdSenseLink { + + /** + * Constructs a new AdSenseLink. + * @param [properties] Properties to set + */ + constructor(properties?: google.analytics.admin.v1alpha.IAdSenseLink); + + /** AdSenseLink name. */ + public name: string; + + /** AdSenseLink adClientCode. */ + public adClientCode: string; + + /** + * Creates a new AdSenseLink instance using the specified properties. + * @param [properties] Properties to set + * @returns AdSenseLink instance + */ + public static create(properties?: google.analytics.admin.v1alpha.IAdSenseLink): google.analytics.admin.v1alpha.AdSenseLink; + + /** + * Encodes the specified AdSenseLink message. Does not implicitly {@link google.analytics.admin.v1alpha.AdSenseLink.verify|verify} messages. + * @param message AdSenseLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.analytics.admin.v1alpha.IAdSenseLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AdSenseLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AdSenseLink.verify|verify} messages. + * @param message AdSenseLink message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.analytics.admin.v1alpha.IAdSenseLink, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AdSenseLink message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AdSenseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.admin.v1alpha.AdSenseLink; + + /** + * Decodes an AdSenseLink message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AdSenseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.admin.v1alpha.AdSenseLink; + + /** + * Verifies an AdSenseLink message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an AdSenseLink message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AdSenseLink + */ + public static fromObject(object: { [k: string]: any }): google.analytics.admin.v1alpha.AdSenseLink; + + /** + * Creates a plain object from an AdSenseLink message. Also converts values to other types if specified. + * @param message AdSenseLink + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.analytics.admin.v1alpha.AdSenseLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AdSenseLink to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AdSenseLink + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } /** Namespace v1beta. */ diff --git a/packages/google-analytics-admin/protos/protos.js b/packages/google-analytics-admin/protos/protos.js index 15ff3cc56ed..7c3a29f4aa8 100644 --- a/packages/google-analytics-admin/protos/protos.js +++ b/packages/google-analytics-admin/protos/protos.js @@ -9115,6 +9115,303 @@ * @variation 2 */ + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getAdSenseLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetAdSenseLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.AdSenseLink} [response] AdSenseLink + */ + + /** + * Calls GetAdSenseLink. + * @function getAdSenseLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetAdSenseLinkRequest} request GetAdSenseLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetAdSenseLinkCallback} callback Node-style callback called with the error, if any, and AdSenseLink + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getAdSenseLink = function getAdSenseLink(request, callback) { + return this.rpcCall(getAdSenseLink, $root.google.analytics.admin.v1alpha.GetAdSenseLinkRequest, $root.google.analytics.admin.v1alpha.AdSenseLink, request, callback); + }, "name", { value: "GetAdSenseLink" }); + + /** + * Calls GetAdSenseLink. + * @function getAdSenseLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetAdSenseLinkRequest} request GetAdSenseLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createAdSenseLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateAdSenseLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.AdSenseLink} [response] AdSenseLink + */ + + /** + * Calls CreateAdSenseLink. + * @function createAdSenseLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateAdSenseLinkRequest} request CreateAdSenseLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAdSenseLinkCallback} callback Node-style callback called with the error, if any, and AdSenseLink + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.createAdSenseLink = function createAdSenseLink(request, callback) { + return this.rpcCall(createAdSenseLink, $root.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest, $root.google.analytics.admin.v1alpha.AdSenseLink, request, callback); + }, "name", { value: "CreateAdSenseLink" }); + + /** + * Calls CreateAdSenseLink. + * @function createAdSenseLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateAdSenseLinkRequest} request CreateAdSenseLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteAdSenseLink}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteAdSenseLinkCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteAdSenseLink. + * @function deleteAdSenseLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteAdSenseLinkRequest} request DeleteAdSenseLinkRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAdSenseLinkCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.deleteAdSenseLink = function deleteAdSenseLink(request, callback) { + return this.rpcCall(deleteAdSenseLink, $root.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteAdSenseLink" }); + + /** + * Calls DeleteAdSenseLink. + * @function deleteAdSenseLink + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteAdSenseLinkRequest} request DeleteAdSenseLinkRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listAdSenseLinks}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListAdSenseLinksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListAdSenseLinksResponse} [response] ListAdSenseLinksResponse + */ + + /** + * Calls ListAdSenseLinks. + * @function listAdSenseLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListAdSenseLinksRequest} request ListAdSenseLinksRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListAdSenseLinksCallback} callback Node-style callback called with the error, if any, and ListAdSenseLinksResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listAdSenseLinks = function listAdSenseLinks(request, callback) { + return this.rpcCall(listAdSenseLinks, $root.google.analytics.admin.v1alpha.ListAdSenseLinksRequest, $root.google.analytics.admin.v1alpha.ListAdSenseLinksResponse, request, callback); + }, "name", { value: "ListAdSenseLinks" }); + + /** + * Calls ListAdSenseLinks. + * @function listAdSenseLinks + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListAdSenseLinksRequest} request ListAdSenseLinksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|getEventCreateRule}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef GetEventCreateRuleCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.EventCreateRule} [response] EventCreateRule + */ + + /** + * Calls GetEventCreateRule. + * @function getEventCreateRule + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetEventCreateRuleRequest} request GetEventCreateRuleRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.GetEventCreateRuleCallback} callback Node-style callback called with the error, if any, and EventCreateRule + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.getEventCreateRule = function getEventCreateRule(request, callback) { + return this.rpcCall(getEventCreateRule, $root.google.analytics.admin.v1alpha.GetEventCreateRuleRequest, $root.google.analytics.admin.v1alpha.EventCreateRule, request, callback); + }, "name", { value: "GetEventCreateRule" }); + + /** + * Calls GetEventCreateRule. + * @function getEventCreateRule + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IGetEventCreateRuleRequest} request GetEventCreateRuleRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|listEventCreateRules}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef ListEventCreateRulesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.ListEventCreateRulesResponse} [response] ListEventCreateRulesResponse + */ + + /** + * Calls ListEventCreateRules. + * @function listEventCreateRules + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListEventCreateRulesRequest} request ListEventCreateRulesRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.ListEventCreateRulesCallback} callback Node-style callback called with the error, if any, and ListEventCreateRulesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.listEventCreateRules = function listEventCreateRules(request, callback) { + return this.rpcCall(listEventCreateRules, $root.google.analytics.admin.v1alpha.ListEventCreateRulesRequest, $root.google.analytics.admin.v1alpha.ListEventCreateRulesResponse, request, callback); + }, "name", { value: "ListEventCreateRules" }); + + /** + * Calls ListEventCreateRules. + * @function listEventCreateRules + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IListEventCreateRulesRequest} request ListEventCreateRulesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|createEventCreateRule}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef CreateEventCreateRuleCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.EventCreateRule} [response] EventCreateRule + */ + + /** + * Calls CreateEventCreateRule. + * @function createEventCreateRule + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateEventCreateRuleRequest} request CreateEventCreateRuleRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.CreateEventCreateRuleCallback} callback Node-style callback called with the error, if any, and EventCreateRule + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.createEventCreateRule = function createEventCreateRule(request, callback) { + return this.rpcCall(createEventCreateRule, $root.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest, $root.google.analytics.admin.v1alpha.EventCreateRule, request, callback); + }, "name", { value: "CreateEventCreateRule" }); + + /** + * Calls CreateEventCreateRule. + * @function createEventCreateRule + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.ICreateEventCreateRuleRequest} request CreateEventCreateRuleRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|updateEventCreateRule}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef UpdateEventCreateRuleCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.analytics.admin.v1alpha.EventCreateRule} [response] EventCreateRule + */ + + /** + * Calls UpdateEventCreateRule. + * @function updateEventCreateRule + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateEventCreateRuleRequest} request UpdateEventCreateRuleRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateEventCreateRuleCallback} callback Node-style callback called with the error, if any, and EventCreateRule + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.updateEventCreateRule = function updateEventCreateRule(request, callback) { + return this.rpcCall(updateEventCreateRule, $root.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest, $root.google.analytics.admin.v1alpha.EventCreateRule, request, callback); + }, "name", { value: "UpdateEventCreateRule" }); + + /** + * Calls UpdateEventCreateRule. + * @function updateEventCreateRule + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IUpdateEventCreateRuleRequest} request UpdateEventCreateRuleRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.analytics.admin.v1alpha.AnalyticsAdminService|deleteEventCreateRule}. + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @typedef DeleteEventCreateRuleCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteEventCreateRule. + * @function deleteEventCreateRule + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteEventCreateRuleRequest} request DeleteEventCreateRuleRequest message or plain object + * @param {google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteEventCreateRuleCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(AnalyticsAdminService.prototype.deleteEventCreateRule = function deleteEventCreateRule(request, callback) { + return this.rpcCall(deleteEventCreateRule, $root.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteEventCreateRule" }); + + /** + * Calls DeleteEventCreateRule. + * @function deleteEventCreateRule + * @memberof google.analytics.admin.v1alpha.AnalyticsAdminService + * @instance + * @param {google.analytics.admin.v1alpha.IDeleteEventCreateRuleRequest} request DeleteEventCreateRuleRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return AnalyticsAdminService; })(); @@ -20235,6 +20532,9 @@ case 21: case 22: case 24: + case 27: + case 28: + case 29: break; } } @@ -20381,6 +20681,18 @@ case 24: message.resourceType[i] = 24; break; + case "ADSENSE_LINK": + case 27: + message.resourceType[i] = 27; + break; + case "AUDIENCE": + case 28: + message.resourceType[i] = 28; + break; + case "EVENT_CREATE_RULE": + case 29: + message.resourceType[i] = 29; + break; } } if (object.action) { @@ -43345,24 +43657,25 @@ return ListConnectedSiteTagsResponse; })(); - v1alpha.FetchConnectedGa4PropertyRequest = (function() { + v1alpha.CreateAdSenseLinkRequest = (function() { /** - * Properties of a FetchConnectedGa4PropertyRequest. + * Properties of a CreateAdSenseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IFetchConnectedGa4PropertyRequest - * @property {string|null} [property] FetchConnectedGa4PropertyRequest property + * @interface ICreateAdSenseLinkRequest + * @property {string|null} [parent] CreateAdSenseLinkRequest parent + * @property {google.analytics.admin.v1alpha.IAdSenseLink|null} [adsenseLink] CreateAdSenseLinkRequest adsenseLink */ /** - * Constructs a new FetchConnectedGa4PropertyRequest. + * Constructs a new CreateAdSenseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a FetchConnectedGa4PropertyRequest. - * @implements IFetchConnectedGa4PropertyRequest + * @classdesc Represents a CreateAdSenseLinkRequest. + * @implements ICreateAdSenseLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyRequest=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.ICreateAdSenseLinkRequest=} [properties] Properties to set */ - function FetchConnectedGa4PropertyRequest(properties) { + function CreateAdSenseLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -43370,75 +43683,89 @@ } /** - * FetchConnectedGa4PropertyRequest property. - * @member {string} property - * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + * CreateAdSenseLinkRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateAdSenseLinkRequest * @instance */ - FetchConnectedGa4PropertyRequest.prototype.property = ""; + CreateAdSenseLinkRequest.prototype.parent = ""; /** - * Creates a new FetchConnectedGa4PropertyRequest instance using the specified properties. + * CreateAdSenseLinkRequest adsenseLink. + * @member {google.analytics.admin.v1alpha.IAdSenseLink|null|undefined} adsenseLink + * @memberof google.analytics.admin.v1alpha.CreateAdSenseLinkRequest + * @instance + */ + CreateAdSenseLinkRequest.prototype.adsenseLink = null; + + /** + * Creates a new CreateAdSenseLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + * @memberof google.analytics.admin.v1alpha.CreateAdSenseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyRequest=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest} FetchConnectedGa4PropertyRequest instance + * @param {google.analytics.admin.v1alpha.ICreateAdSenseLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateAdSenseLinkRequest} CreateAdSenseLinkRequest instance */ - FetchConnectedGa4PropertyRequest.create = function create(properties) { - return new FetchConnectedGa4PropertyRequest(properties); + CreateAdSenseLinkRequest.create = function create(properties) { + return new CreateAdSenseLinkRequest(properties); }; /** - * Encodes the specified FetchConnectedGa4PropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest.verify|verify} messages. + * Encodes the specified CreateAdSenseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAdSenseLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + * @memberof google.analytics.admin.v1alpha.CreateAdSenseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyRequest} message FetchConnectedGa4PropertyRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateAdSenseLinkRequest} message CreateAdSenseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FetchConnectedGa4PropertyRequest.encode = function encode(message, writer) { + CreateAdSenseLinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.property != null && Object.hasOwnProperty.call(message, "property")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.property); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.adsenseLink != null && Object.hasOwnProperty.call(message, "adsenseLink")) + $root.google.analytics.admin.v1alpha.AdSenseLink.encode(message.adsenseLink, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified FetchConnectedGa4PropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest.verify|verify} messages. + * Encodes the specified CreateAdSenseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateAdSenseLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + * @memberof google.analytics.admin.v1alpha.CreateAdSenseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyRequest} message FetchConnectedGa4PropertyRequest message or plain object to encode + * @param {google.analytics.admin.v1alpha.ICreateAdSenseLinkRequest} message CreateAdSenseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FetchConnectedGa4PropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateAdSenseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FetchConnectedGa4PropertyRequest message from the specified reader or buffer. + * Decodes a CreateAdSenseLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + * @memberof google.analytics.admin.v1alpha.CreateAdSenseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest} FetchConnectedGa4PropertyRequest + * @returns {google.analytics.admin.v1alpha.CreateAdSenseLinkRequest} CreateAdSenseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FetchConnectedGa4PropertyRequest.decode = function decode(reader, length) { + CreateAdSenseLinkRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.property = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.adsenseLink = $root.google.analytics.admin.v1alpha.AdSenseLink.decode(reader, reader.uint32()); break; } default: @@ -43450,122 +43777,136 @@ }; /** - * Decodes a FetchConnectedGa4PropertyRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateAdSenseLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + * @memberof google.analytics.admin.v1alpha.CreateAdSenseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest} FetchConnectedGa4PropertyRequest + * @returns {google.analytics.admin.v1alpha.CreateAdSenseLinkRequest} CreateAdSenseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FetchConnectedGa4PropertyRequest.decodeDelimited = function decodeDelimited(reader) { + CreateAdSenseLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FetchConnectedGa4PropertyRequest message. + * Verifies a CreateAdSenseLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + * @memberof google.analytics.admin.v1alpha.CreateAdSenseLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FetchConnectedGa4PropertyRequest.verify = function verify(message) { + CreateAdSenseLinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.property != null && message.hasOwnProperty("property")) - if (!$util.isString(message.property)) - return "property: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.adsenseLink != null && message.hasOwnProperty("adsenseLink")) { + var error = $root.google.analytics.admin.v1alpha.AdSenseLink.verify(message.adsenseLink); + if (error) + return "adsenseLink." + error; + } return null; }; /** - * Creates a FetchConnectedGa4PropertyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateAdSenseLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + * @memberof google.analytics.admin.v1alpha.CreateAdSenseLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest} FetchConnectedGa4PropertyRequest + * @returns {google.analytics.admin.v1alpha.CreateAdSenseLinkRequest} CreateAdSenseLinkRequest */ - FetchConnectedGa4PropertyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest) + CreateAdSenseLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest(); - if (object.property != null) - message.property = String(object.property); + var message = new $root.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.adsenseLink != null) { + if (typeof object.adsenseLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateAdSenseLinkRequest.adsenseLink: object expected"); + message.adsenseLink = $root.google.analytics.admin.v1alpha.AdSenseLink.fromObject(object.adsenseLink); + } return message; }; /** - * Creates a plain object from a FetchConnectedGa4PropertyRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateAdSenseLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + * @memberof google.analytics.admin.v1alpha.CreateAdSenseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest} message FetchConnectedGa4PropertyRequest + * @param {google.analytics.admin.v1alpha.CreateAdSenseLinkRequest} message CreateAdSenseLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FetchConnectedGa4PropertyRequest.toObject = function toObject(message, options) { + CreateAdSenseLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.property = ""; - if (message.property != null && message.hasOwnProperty("property")) - object.property = message.property; + if (options.defaults) { + object.parent = ""; + object.adsenseLink = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.adsenseLink != null && message.hasOwnProperty("adsenseLink")) + object.adsenseLink = $root.google.analytics.admin.v1alpha.AdSenseLink.toObject(message.adsenseLink, options); return object; }; /** - * Converts this FetchConnectedGa4PropertyRequest to JSON. + * Converts this CreateAdSenseLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + * @memberof google.analytics.admin.v1alpha.CreateAdSenseLinkRequest * @instance * @returns {Object.} JSON object */ - FetchConnectedGa4PropertyRequest.prototype.toJSON = function toJSON() { + CreateAdSenseLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FetchConnectedGa4PropertyRequest + * Gets the default type url for CreateAdSenseLinkRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + * @memberof google.analytics.admin.v1alpha.CreateAdSenseLinkRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FetchConnectedGa4PropertyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateAdSenseLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CreateAdSenseLinkRequest"; }; - return FetchConnectedGa4PropertyRequest; + return CreateAdSenseLinkRequest; })(); - v1alpha.FetchConnectedGa4PropertyResponse = (function() { + v1alpha.GetAdSenseLinkRequest = (function() { /** - * Properties of a FetchConnectedGa4PropertyResponse. + * Properties of a GetAdSenseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IFetchConnectedGa4PropertyResponse - * @property {string|null} [property] FetchConnectedGa4PropertyResponse property + * @interface IGetAdSenseLinkRequest + * @property {string|null} [name] GetAdSenseLinkRequest name */ /** - * Constructs a new FetchConnectedGa4PropertyResponse. + * Constructs a new GetAdSenseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a FetchConnectedGa4PropertyResponse. - * @implements IFetchConnectedGa4PropertyResponse + * @classdesc Represents a GetAdSenseLinkRequest. + * @implements IGetAdSenseLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyResponse=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IGetAdSenseLinkRequest=} [properties] Properties to set */ - function FetchConnectedGa4PropertyResponse(properties) { + function GetAdSenseLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -43573,75 +43914,75 @@ } /** - * FetchConnectedGa4PropertyResponse property. - * @member {string} property - * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + * GetAdSenseLinkRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetAdSenseLinkRequest * @instance */ - FetchConnectedGa4PropertyResponse.prototype.property = ""; + GetAdSenseLinkRequest.prototype.name = ""; /** - * Creates a new FetchConnectedGa4PropertyResponse instance using the specified properties. + * Creates a new GetAdSenseLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + * @memberof google.analytics.admin.v1alpha.GetAdSenseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyResponse=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse} FetchConnectedGa4PropertyResponse instance + * @param {google.analytics.admin.v1alpha.IGetAdSenseLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetAdSenseLinkRequest} GetAdSenseLinkRequest instance */ - FetchConnectedGa4PropertyResponse.create = function create(properties) { - return new FetchConnectedGa4PropertyResponse(properties); + GetAdSenseLinkRequest.create = function create(properties) { + return new GetAdSenseLinkRequest(properties); }; /** - * Encodes the specified FetchConnectedGa4PropertyResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse.verify|verify} messages. + * Encodes the specified GetAdSenseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetAdSenseLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + * @memberof google.analytics.admin.v1alpha.GetAdSenseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyResponse} message FetchConnectedGa4PropertyResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetAdSenseLinkRequest} message GetAdSenseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FetchConnectedGa4PropertyResponse.encode = function encode(message, writer) { + GetAdSenseLinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.property != null && Object.hasOwnProperty.call(message, "property")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.property); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified FetchConnectedGa4PropertyResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse.verify|verify} messages. + * Encodes the specified GetAdSenseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetAdSenseLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + * @memberof google.analytics.admin.v1alpha.GetAdSenseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyResponse} message FetchConnectedGa4PropertyResponse message or plain object to encode + * @param {google.analytics.admin.v1alpha.IGetAdSenseLinkRequest} message GetAdSenseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FetchConnectedGa4PropertyResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetAdSenseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FetchConnectedGa4PropertyResponse message from the specified reader or buffer. + * Decodes a GetAdSenseLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + * @memberof google.analytics.admin.v1alpha.GetAdSenseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse} FetchConnectedGa4PropertyResponse + * @returns {google.analytics.admin.v1alpha.GetAdSenseLinkRequest} GetAdSenseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FetchConnectedGa4PropertyResponse.decode = function decode(reader, length) { + GetAdSenseLinkRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetAdSenseLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.property = reader.string(); + message.name = reader.string(); break; } default: @@ -43653,146 +43994,122 @@ }; /** - * Decodes a FetchConnectedGa4PropertyResponse message from the specified reader or buffer, length delimited. + * Decodes a GetAdSenseLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + * @memberof google.analytics.admin.v1alpha.GetAdSenseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse} FetchConnectedGa4PropertyResponse + * @returns {google.analytics.admin.v1alpha.GetAdSenseLinkRequest} GetAdSenseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FetchConnectedGa4PropertyResponse.decodeDelimited = function decodeDelimited(reader) { + GetAdSenseLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FetchConnectedGa4PropertyResponse message. + * Verifies a GetAdSenseLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + * @memberof google.analytics.admin.v1alpha.GetAdSenseLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FetchConnectedGa4PropertyResponse.verify = function verify(message) { + GetAdSenseLinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.property != null && message.hasOwnProperty("property")) - if (!$util.isString(message.property)) - return "property: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a FetchConnectedGa4PropertyResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetAdSenseLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + * @memberof google.analytics.admin.v1alpha.GetAdSenseLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse} FetchConnectedGa4PropertyResponse + * @returns {google.analytics.admin.v1alpha.GetAdSenseLinkRequest} GetAdSenseLinkRequest */ - FetchConnectedGa4PropertyResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse) + GetAdSenseLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetAdSenseLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse(); - if (object.property != null) - message.property = String(object.property); + var message = new $root.google.analytics.admin.v1alpha.GetAdSenseLinkRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a FetchConnectedGa4PropertyResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetAdSenseLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + * @memberof google.analytics.admin.v1alpha.GetAdSenseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse} message FetchConnectedGa4PropertyResponse + * @param {google.analytics.admin.v1alpha.GetAdSenseLinkRequest} message GetAdSenseLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FetchConnectedGa4PropertyResponse.toObject = function toObject(message, options) { + GetAdSenseLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.property = ""; - if (message.property != null && message.hasOwnProperty("property")) - object.property = message.property; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this FetchConnectedGa4PropertyResponse to JSON. + * Converts this GetAdSenseLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + * @memberof google.analytics.admin.v1alpha.GetAdSenseLinkRequest * @instance * @returns {Object.} JSON object */ - FetchConnectedGa4PropertyResponse.prototype.toJSON = function toJSON() { + GetAdSenseLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FetchConnectedGa4PropertyResponse + * Gets the default type url for GetAdSenseLinkRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + * @memberof google.analytics.admin.v1alpha.GetAdSenseLinkRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FetchConnectedGa4PropertyResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetAdSenseLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetAdSenseLinkRequest"; }; - return FetchConnectedGa4PropertyResponse; - })(); - - /** - * AudienceFilterScope enum. - * @name google.analytics.admin.v1alpha.AudienceFilterScope - * @enum {number} - * @property {number} AUDIENCE_FILTER_SCOPE_UNSPECIFIED=0 AUDIENCE_FILTER_SCOPE_UNSPECIFIED value - * @property {number} AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT=1 AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT value - * @property {number} AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION=2 AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION value - * @property {number} AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS=3 AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS value - */ - v1alpha.AudienceFilterScope = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AUDIENCE_FILTER_SCOPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT"] = 1; - values[valuesById[2] = "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION"] = 2; - values[valuesById[3] = "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS"] = 3; - return values; + return GetAdSenseLinkRequest; })(); - v1alpha.AudienceDimensionOrMetricFilter = (function() { + v1alpha.DeleteAdSenseLinkRequest = (function() { /** - * Properties of an AudienceDimensionOrMetricFilter. + * Properties of a DeleteAdSenseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @interface IAudienceDimensionOrMetricFilter - * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter|null} [stringFilter] AudienceDimensionOrMetricFilter stringFilter - * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter|null} [inListFilter] AudienceDimensionOrMetricFilter inListFilter - * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter|null} [numericFilter] AudienceDimensionOrMetricFilter numericFilter - * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter|null} [betweenFilter] AudienceDimensionOrMetricFilter betweenFilter - * @property {string|null} [fieldName] AudienceDimensionOrMetricFilter fieldName - * @property {boolean|null} [atAnyPointInTime] AudienceDimensionOrMetricFilter atAnyPointInTime - * @property {number|null} [inAnyNDayPeriod] AudienceDimensionOrMetricFilter inAnyNDayPeriod + * @interface IDeleteAdSenseLinkRequest + * @property {string|null} [name] DeleteAdSenseLinkRequest name */ /** - * Constructs a new AudienceDimensionOrMetricFilter. + * Constructs a new DeleteAdSenseLinkRequest. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AudienceDimensionOrMetricFilter. - * @implements IAudienceDimensionOrMetricFilter + * @classdesc Represents a DeleteAdSenseLinkRequest. + * @implements IDeleteAdSenseLinkRequest * @constructor - * @param {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IDeleteAdSenseLinkRequest=} [properties] Properties to set */ - function AudienceDimensionOrMetricFilter(properties) { + function DeleteAdSenseLinkRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -43800,173 +44117,75 @@ } /** - * AudienceDimensionOrMetricFilter stringFilter. - * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter|null|undefined} stringFilter - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @instance - */ - AudienceDimensionOrMetricFilter.prototype.stringFilter = null; - - /** - * AudienceDimensionOrMetricFilter inListFilter. - * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter|null|undefined} inListFilter - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @instance - */ - AudienceDimensionOrMetricFilter.prototype.inListFilter = null; - - /** - * AudienceDimensionOrMetricFilter numericFilter. - * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter|null|undefined} numericFilter - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @instance - */ - AudienceDimensionOrMetricFilter.prototype.numericFilter = null; - - /** - * AudienceDimensionOrMetricFilter betweenFilter. - * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter|null|undefined} betweenFilter - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @instance - */ - AudienceDimensionOrMetricFilter.prototype.betweenFilter = null; - - /** - * AudienceDimensionOrMetricFilter fieldName. - * @member {string} fieldName - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @instance - */ - AudienceDimensionOrMetricFilter.prototype.fieldName = ""; - - /** - * AudienceDimensionOrMetricFilter atAnyPointInTime. - * @member {boolean} atAnyPointInTime - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @instance - */ - AudienceDimensionOrMetricFilter.prototype.atAnyPointInTime = false; - - /** - * AudienceDimensionOrMetricFilter inAnyNDayPeriod. - * @member {number} inAnyNDayPeriod - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @instance - */ - AudienceDimensionOrMetricFilter.prototype.inAnyNDayPeriod = 0; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * AudienceDimensionOrMetricFilter oneFilter. - * @member {"stringFilter"|"inListFilter"|"numericFilter"|"betweenFilter"|undefined} oneFilter - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * DeleteAdSenseLinkRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest * @instance */ - Object.defineProperty(AudienceDimensionOrMetricFilter.prototype, "oneFilter", { - get: $util.oneOfGetter($oneOfFields = ["stringFilter", "inListFilter", "numericFilter", "betweenFilter"]), - set: $util.oneOfSetter($oneOfFields) - }); + DeleteAdSenseLinkRequest.prototype.name = ""; /** - * Creates a new AudienceDimensionOrMetricFilter instance using the specified properties. + * Creates a new DeleteAdSenseLinkRequest instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @memberof google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} AudienceDimensionOrMetricFilter instance + * @param {google.analytics.admin.v1alpha.IDeleteAdSenseLinkRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest} DeleteAdSenseLinkRequest instance */ - AudienceDimensionOrMetricFilter.create = function create(properties) { - return new AudienceDimensionOrMetricFilter(properties); + DeleteAdSenseLinkRequest.create = function create(properties) { + return new DeleteAdSenseLinkRequest(properties); }; /** - * Encodes the specified AudienceDimensionOrMetricFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.verify|verify} messages. + * Encodes the specified DeleteAdSenseLinkRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @memberof google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter} message AudienceDimensionOrMetricFilter message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteAdSenseLinkRequest} message DeleteAdSenseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceDimensionOrMetricFilter.encode = function encode(message, writer) { + DeleteAdSenseLinkRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fieldName != null && Object.hasOwnProperty.call(message, "fieldName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.fieldName); - if (message.stringFilter != null && Object.hasOwnProperty.call(message, "stringFilter")) - $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.encode(message.stringFilter, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.inListFilter != null && Object.hasOwnProperty.call(message, "inListFilter")) - $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.encode(message.inListFilter, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.numericFilter != null && Object.hasOwnProperty.call(message, "numericFilter")) - $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.encode(message.numericFilter, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.betweenFilter != null && Object.hasOwnProperty.call(message, "betweenFilter")) - $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.encode(message.betweenFilter, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.atAnyPointInTime != null && Object.hasOwnProperty.call(message, "atAnyPointInTime")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.atAnyPointInTime); - if (message.inAnyNDayPeriod != null && Object.hasOwnProperty.call(message, "inAnyNDayPeriod")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.inAnyNDayPeriod); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified AudienceDimensionOrMetricFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.verify|verify} messages. + * Encodes the specified DeleteAdSenseLinkRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @memberof google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter} message AudienceDimensionOrMetricFilter message or plain object to encode + * @param {google.analytics.admin.v1alpha.IDeleteAdSenseLinkRequest} message DeleteAdSenseLinkRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceDimensionOrMetricFilter.encodeDelimited = function encodeDelimited(message, writer) { + DeleteAdSenseLinkRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AudienceDimensionOrMetricFilter message from the specified reader or buffer. + * Decodes a DeleteAdSenseLinkRequest message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @memberof google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} AudienceDimensionOrMetricFilter + * @returns {google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest} DeleteAdSenseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceDimensionOrMetricFilter.decode = function decode(reader, length) { + DeleteAdSenseLinkRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - message.stringFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.decode(reader, reader.uint32()); - break; - } - case 3: { - message.inListFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.decode(reader, reader.uint32()); - break; - } - case 4: { - message.numericFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.decode(reader, reader.uint32()); - break; - } - case 5: { - message.betweenFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.decode(reader, reader.uint32()); - break; - } case 1: { - message.fieldName = reader.string(); - break; - } - case 6: { - message.atAnyPointInTime = reader.bool(); - break; - } - case 7: { - message.inAnyNDayPeriod = reader.int32(); + message.name = reader.string(); break; } default: @@ -43978,808 +44197,3410 @@ }; /** - * Decodes an AudienceDimensionOrMetricFilter message from the specified reader or buffer, length delimited. + * Decodes a DeleteAdSenseLinkRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @memberof google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} AudienceDimensionOrMetricFilter + * @returns {google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest} DeleteAdSenseLinkRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceDimensionOrMetricFilter.decodeDelimited = function decodeDelimited(reader) { + DeleteAdSenseLinkRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AudienceDimensionOrMetricFilter message. + * Verifies a DeleteAdSenseLinkRequest message. * @function verify - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @memberof google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AudienceDimensionOrMetricFilter.verify = function verify(message) { + DeleteAdSenseLinkRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.stringFilter != null && message.hasOwnProperty("stringFilter")) { - properties.oneFilter = 1; - { - var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify(message.stringFilter); - if (error) - return "stringFilter." + error; - } - } - if (message.inListFilter != null && message.hasOwnProperty("inListFilter")) { - if (properties.oneFilter === 1) - return "oneFilter: multiple values"; - properties.oneFilter = 1; - { - var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify(message.inListFilter); - if (error) - return "inListFilter." + error; - } - } - if (message.numericFilter != null && message.hasOwnProperty("numericFilter")) { - if (properties.oneFilter === 1) - return "oneFilter: multiple values"; - properties.oneFilter = 1; - { - var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.verify(message.numericFilter); - if (error) - return "numericFilter." + error; - } - } - if (message.betweenFilter != null && message.hasOwnProperty("betweenFilter")) { - if (properties.oneFilter === 1) - return "oneFilter: multiple values"; - properties.oneFilter = 1; - { - var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.verify(message.betweenFilter); - if (error) - return "betweenFilter." + error; - } - } - if (message.fieldName != null && message.hasOwnProperty("fieldName")) - if (!$util.isString(message.fieldName)) - return "fieldName: string expected"; - if (message.atAnyPointInTime != null && message.hasOwnProperty("atAnyPointInTime")) - if (typeof message.atAnyPointInTime !== "boolean") - return "atAnyPointInTime: boolean expected"; - if (message.inAnyNDayPeriod != null && message.hasOwnProperty("inAnyNDayPeriod")) - if (!$util.isInteger(message.inAnyNDayPeriod)) - return "inAnyNDayPeriod: integer expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an AudienceDimensionOrMetricFilter message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteAdSenseLinkRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @memberof google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} AudienceDimensionOrMetricFilter + * @returns {google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest} DeleteAdSenseLinkRequest */ - AudienceDimensionOrMetricFilter.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) + DeleteAdSenseLinkRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest) return object; - var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter(); - if (object.stringFilter != null) { - if (typeof object.stringFilter !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.stringFilter: object expected"); - message.stringFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.fromObject(object.stringFilter); - } - if (object.inListFilter != null) { - if (typeof object.inListFilter !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.inListFilter: object expected"); - message.inListFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.fromObject(object.inListFilter); - } - if (object.numericFilter != null) { - if (typeof object.numericFilter !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.numericFilter: object expected"); - message.numericFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.fromObject(object.numericFilter); - } - if (object.betweenFilter != null) { - if (typeof object.betweenFilter !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.betweenFilter: object expected"); - message.betweenFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.fromObject(object.betweenFilter); - } - if (object.fieldName != null) - message.fieldName = String(object.fieldName); - if (object.atAnyPointInTime != null) - message.atAnyPointInTime = Boolean(object.atAnyPointInTime); - if (object.inAnyNDayPeriod != null) - message.inAnyNDayPeriod = object.inAnyNDayPeriod | 0; + var message = new $root.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an AudienceDimensionOrMetricFilter message. Also converts values to other types if specified. + * Creates a plain object from a DeleteAdSenseLinkRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @memberof google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} message AudienceDimensionOrMetricFilter + * @param {google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest} message DeleteAdSenseLinkRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AudienceDimensionOrMetricFilter.toObject = function toObject(message, options) { + DeleteAdSenseLinkRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.fieldName = ""; - object.atAnyPointInTime = false; - object.inAnyNDayPeriod = 0; - } - if (message.fieldName != null && message.hasOwnProperty("fieldName")) - object.fieldName = message.fieldName; - if (message.stringFilter != null && message.hasOwnProperty("stringFilter")) { - object.stringFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.toObject(message.stringFilter, options); - if (options.oneofs) - object.oneFilter = "stringFilter"; - } - if (message.inListFilter != null && message.hasOwnProperty("inListFilter")) { - object.inListFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.toObject(message.inListFilter, options); - if (options.oneofs) - object.oneFilter = "inListFilter"; - } - if (message.numericFilter != null && message.hasOwnProperty("numericFilter")) { - object.numericFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.toObject(message.numericFilter, options); - if (options.oneofs) - object.oneFilter = "numericFilter"; - } - if (message.betweenFilter != null && message.hasOwnProperty("betweenFilter")) { - object.betweenFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.toObject(message.betweenFilter, options); - if (options.oneofs) - object.oneFilter = "betweenFilter"; - } - if (message.atAnyPointInTime != null && message.hasOwnProperty("atAnyPointInTime")) - object.atAnyPointInTime = message.atAnyPointInTime; - if (message.inAnyNDayPeriod != null && message.hasOwnProperty("inAnyNDayPeriod")) - object.inAnyNDayPeriod = message.inAnyNDayPeriod; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this AudienceDimensionOrMetricFilter to JSON. + * Converts this DeleteAdSenseLinkRequest to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @memberof google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest * @instance * @returns {Object.} JSON object */ - AudienceDimensionOrMetricFilter.prototype.toJSON = function toJSON() { + DeleteAdSenseLinkRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AudienceDimensionOrMetricFilter + * Gets the default type url for DeleteAdSenseLinkRequest * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @memberof google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AudienceDimensionOrMetricFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteAdSenseLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest"; }; - AudienceDimensionOrMetricFilter.StringFilter = (function() { + return DeleteAdSenseLinkRequest; + })(); - /** - * Properties of a StringFilter. - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @interface IStringFilter - * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType|null} [matchType] StringFilter matchType - * @property {string|null} [value] StringFilter value - * @property {boolean|null} [caseSensitive] StringFilter caseSensitive - */ + v1alpha.ListAdSenseLinksRequest = (function() { - /** - * Constructs a new StringFilter. - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @classdesc Represents a StringFilter. - * @implements IStringFilter - * @constructor - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter=} [properties] Properties to set - */ - function StringFilter(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a ListAdSenseLinksRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IListAdSenseLinksRequest + * @property {string|null} [parent] ListAdSenseLinksRequest parent + * @property {number|null} [pageSize] ListAdSenseLinksRequest pageSize + * @property {string|null} [pageToken] ListAdSenseLinksRequest pageToken + */ - /** - * StringFilter matchType. - * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType} matchType - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @instance - */ - StringFilter.prototype.matchType = 0; + /** + * Constructs a new ListAdSenseLinksRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListAdSenseLinksRequest. + * @implements IListAdSenseLinksRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IListAdSenseLinksRequest=} [properties] Properties to set + */ + function ListAdSenseLinksRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * StringFilter value. - * @member {string} value - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @instance - */ - StringFilter.prototype.value = ""; + /** + * ListAdSenseLinksRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksRequest + * @instance + */ + ListAdSenseLinksRequest.prototype.parent = ""; - /** - * StringFilter caseSensitive. - * @member {boolean} caseSensitive - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @instance - */ - StringFilter.prototype.caseSensitive = false; + /** + * ListAdSenseLinksRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksRequest + * @instance + */ + ListAdSenseLinksRequest.prototype.pageSize = 0; - /** - * Creates a new StringFilter instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} StringFilter instance - */ - StringFilter.create = function create(properties) { - return new StringFilter(properties); - }; + /** + * ListAdSenseLinksRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksRequest + * @instance + */ + ListAdSenseLinksRequest.prototype.pageToken = ""; - /** - * Encodes the specified StringFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter} message StringFilter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StringFilter.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.matchType != null && Object.hasOwnProperty.call(message, "matchType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.matchType); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); - if (message.caseSensitive != null && Object.hasOwnProperty.call(message, "caseSensitive")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.caseSensitive); - return writer; - }; + /** + * Creates a new ListAdSenseLinksRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IListAdSenseLinksRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAdSenseLinksRequest} ListAdSenseLinksRequest instance + */ + ListAdSenseLinksRequest.create = function create(properties) { + return new ListAdSenseLinksRequest(properties); + }; - /** - * Encodes the specified StringFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter} message StringFilter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StringFilter.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ListAdSenseLinksRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAdSenseLinksRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IListAdSenseLinksRequest} message ListAdSenseLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAdSenseLinksRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + return writer; + }; - /** - * Decodes a StringFilter message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} StringFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StringFilter.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.matchType = reader.int32(); - break; - } - case 2: { - message.value = reader.string(); - break; - } - case 3: { - message.caseSensitive = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified ListAdSenseLinksRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAdSenseLinksRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.IListAdSenseLinksRequest} message ListAdSenseLinksRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAdSenseLinksRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListAdSenseLinksRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListAdSenseLinksRequest} ListAdSenseLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListAdSenseLinksRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListAdSenseLinksRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); break; } - } - return message; - }; - - /** - * Decodes a StringFilter message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} StringFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StringFilter.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StringFilter message. - * @function verify - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StringFilter.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.matchType != null && message.hasOwnProperty("matchType")) - switch (message.matchType) { - default: - return "matchType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: + case 2: { + message.pageSize = reader.int32(); break; } - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) - if (typeof message.caseSensitive !== "boolean") - return "caseSensitive: boolean expected"; - return null; - }; - - /** - * Creates a StringFilter message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} StringFilter - */ - StringFilter.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) - return object; - var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter(); - switch (object.matchType) { - default: - if (typeof object.matchType === "number") { - message.matchType = object.matchType; + case 3: { + message.pageToken = reader.string(); break; } - break; - case "MATCH_TYPE_UNSPECIFIED": - case 0: - message.matchType = 0; - break; - case "EXACT": - case 1: - message.matchType = 1; - break; - case "BEGINS_WITH": - case 2: - message.matchType = 2; - break; - case "ENDS_WITH": - case 3: - message.matchType = 3; - break; - case "CONTAINS": - case 4: - message.matchType = 4; - break; - case "FULL_REGEXP": - case 5: - message.matchType = 5; + default: + reader.skipType(tag & 7); break; } - if (object.value != null) - message.value = String(object.value); - if (object.caseSensitive != null) - message.caseSensitive = Boolean(object.caseSensitive); - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a StringFilter message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} message StringFilter - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StringFilter.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.matchType = options.enums === String ? "MATCH_TYPE_UNSPECIFIED" : 0; - object.value = ""; - object.caseSensitive = false; - } - if (message.matchType != null && message.hasOwnProperty("matchType")) - object.matchType = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType[message.matchType] === undefined ? message.matchType : $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType[message.matchType] : message.matchType; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; - if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) - object.caseSensitive = message.caseSensitive; - return object; - }; + /** + * Decodes a ListAdSenseLinksRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListAdSenseLinksRequest} ListAdSenseLinksRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListAdSenseLinksRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this StringFilter to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @instance - * @returns {Object.} JSON object - */ - StringFilter.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies a ListAdSenseLinksRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListAdSenseLinksRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; - /** - * Gets the default type url for StringFilter - * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - StringFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter"; - }; + /** + * Creates a ListAdSenseLinksRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListAdSenseLinksRequest} ListAdSenseLinksRequest + */ + ListAdSenseLinksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAdSenseLinksRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListAdSenseLinksRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; - /** - * MatchType enum. - * @name google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType - * @enum {number} - * @property {number} MATCH_TYPE_UNSPECIFIED=0 MATCH_TYPE_UNSPECIFIED value - * @property {number} EXACT=1 EXACT value - * @property {number} BEGINS_WITH=2 BEGINS_WITH value - * @property {number} ENDS_WITH=3 ENDS_WITH value - * @property {number} CONTAINS=4 CONTAINS value - * @property {number} FULL_REGEXP=5 FULL_REGEXP value - */ - StringFilter.MatchType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MATCH_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "EXACT"] = 1; - values[valuesById[2] = "BEGINS_WITH"] = 2; - values[valuesById[3] = "ENDS_WITH"] = 3; - values[valuesById[4] = "CONTAINS"] = 4; - values[valuesById[5] = "FULL_REGEXP"] = 5; - return values; - })(); + /** + * Creates a plain object from a ListAdSenseLinksRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksRequest + * @static + * @param {google.analytics.admin.v1alpha.ListAdSenseLinksRequest} message ListAdSenseLinksRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListAdSenseLinksRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; - return StringFilter; - })(); + /** + * Converts this ListAdSenseLinksRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksRequest + * @instance + * @returns {Object.} JSON object + */ + ListAdSenseLinksRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - AudienceDimensionOrMetricFilter.InListFilter = (function() { + /** + * Gets the default type url for ListAdSenseLinksRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListAdSenseLinksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListAdSenseLinksRequest"; + }; - /** - * Properties of an InListFilter. - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @interface IInListFilter - * @property {Array.|null} [values] InListFilter values - * @property {boolean|null} [caseSensitive] InListFilter caseSensitive - */ + return ListAdSenseLinksRequest; + })(); - /** - * Constructs a new InListFilter. - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @classdesc Represents an InListFilter. - * @implements IInListFilter - * @constructor - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter=} [properties] Properties to set - */ - function InListFilter(properties) { - this.values = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + v1alpha.ListAdSenseLinksResponse = (function() { - /** - * InListFilter values. - * @member {Array.} values - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @instance - */ - InListFilter.prototype.values = $util.emptyArray; + /** + * Properties of a ListAdSenseLinksResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IListAdSenseLinksResponse + * @property {Array.|null} [adsenseLinks] ListAdSenseLinksResponse adsenseLinks + * @property {string|null} [nextPageToken] ListAdSenseLinksResponse nextPageToken + */ - /** - * InListFilter caseSensitive. - * @member {boolean} caseSensitive - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @instance - */ - InListFilter.prototype.caseSensitive = false; + /** + * Constructs a new ListAdSenseLinksResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListAdSenseLinksResponse. + * @implements IListAdSenseLinksResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IListAdSenseLinksResponse=} [properties] Properties to set + */ + function ListAdSenseLinksResponse(properties) { + this.adsenseLinks = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new InListFilter instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} InListFilter instance - */ - InListFilter.create = function create(properties) { - return new InListFilter(properties); - }; + /** + * ListAdSenseLinksResponse adsenseLinks. + * @member {Array.} adsenseLinks + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksResponse + * @instance + */ + ListAdSenseLinksResponse.prototype.adsenseLinks = $util.emptyArray; - /** - * Encodes the specified InListFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter} message InListFilter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InListFilter.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); - if (message.caseSensitive != null && Object.hasOwnProperty.call(message, "caseSensitive")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.caseSensitive); - return writer; - }; + /** + * ListAdSenseLinksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksResponse + * @instance + */ + ListAdSenseLinksResponse.prototype.nextPageToken = ""; - /** - * Encodes the specified InListFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter} message InListFilter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InListFilter.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new ListAdSenseLinksResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IListAdSenseLinksResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListAdSenseLinksResponse} ListAdSenseLinksResponse instance + */ + ListAdSenseLinksResponse.create = function create(properties) { + return new ListAdSenseLinksResponse(properties); + }; - /** - * Decodes an InListFilter message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} InListFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InListFilter.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.values && message.values.length)) - message.values = []; - message.values.push(reader.string()); - break; - } - case 2: { - message.caseSensitive = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified ListAdSenseLinksResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListAdSenseLinksResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IListAdSenseLinksResponse} message ListAdSenseLinksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAdSenseLinksResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.adsenseLinks != null && message.adsenseLinks.length) + for (var i = 0; i < message.adsenseLinks.length; ++i) + $root.google.analytics.admin.v1alpha.AdSenseLink.encode(message.adsenseLinks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified ListAdSenseLinksResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListAdSenseLinksResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.IListAdSenseLinksResponse} message ListAdSenseLinksResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAdSenseLinksResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListAdSenseLinksResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListAdSenseLinksResponse} ListAdSenseLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListAdSenseLinksResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListAdSenseLinksResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.adsenseLinks && message.adsenseLinks.length)) + message.adsenseLinks = []; + message.adsenseLinks.push($root.google.analytics.admin.v1alpha.AdSenseLink.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes an InListFilter message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} InListFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InListFilter.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies an InListFilter message. - * @function verify - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InListFilter.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (!$util.isString(message.values[i])) - return "values: string[] expected"; - } - if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) - if (typeof message.caseSensitive !== "boolean") - return "caseSensitive: boolean expected"; - return null; - }; + /** + * Decodes a ListAdSenseLinksResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListAdSenseLinksResponse} ListAdSenseLinksResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListAdSenseLinksResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates an InListFilter message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} InListFilter - */ - InListFilter.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) - return object; - var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - message.values[i] = String(object.values[i]); + /** + * Verifies a ListAdSenseLinksResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListAdSenseLinksResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.adsenseLinks != null && message.hasOwnProperty("adsenseLinks")) { + if (!Array.isArray(message.adsenseLinks)) + return "adsenseLinks: array expected"; + for (var i = 0; i < message.adsenseLinks.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AdSenseLink.verify(message.adsenseLinks[i]); + if (error) + return "adsenseLinks." + error; } - if (object.caseSensitive != null) - message.caseSensitive = Boolean(object.caseSensitive); - return message; - }; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; - /** - * Creates a plain object from an InListFilter message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @static - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} message InListFilter - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InListFilter.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (options.defaults) - object.caseSensitive = false; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = message.values[j]; - } - if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) - object.caseSensitive = message.caseSensitive; + /** + * Creates a ListAdSenseLinksResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListAdSenseLinksResponse} ListAdSenseLinksResponse + */ + ListAdSenseLinksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListAdSenseLinksResponse) return object; - }; - - /** - * Converts this InListFilter to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @instance - * @returns {Object.} JSON object - */ - InListFilter.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for InListFilter - * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - InListFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + var message = new $root.google.analytics.admin.v1alpha.ListAdSenseLinksResponse(); + if (object.adsenseLinks) { + if (!Array.isArray(object.adsenseLinks)) + throw TypeError(".google.analytics.admin.v1alpha.ListAdSenseLinksResponse.adsenseLinks: array expected"); + message.adsenseLinks = []; + for (var i = 0; i < object.adsenseLinks.length; ++i) { + if (typeof object.adsenseLinks[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListAdSenseLinksResponse.adsenseLinks: object expected"); + message.adsenseLinks[i] = $root.google.analytics.admin.v1alpha.AdSenseLink.fromObject(object.adsenseLinks[i]); } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter"; - }; - - return InListFilter; - })(); + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; - AudienceDimensionOrMetricFilter.NumericValue = (function() { + /** + * Creates a plain object from a ListAdSenseLinksResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksResponse + * @static + * @param {google.analytics.admin.v1alpha.ListAdSenseLinksResponse} message ListAdSenseLinksResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListAdSenseLinksResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.adsenseLinks = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.adsenseLinks && message.adsenseLinks.length) { + object.adsenseLinks = []; + for (var j = 0; j < message.adsenseLinks.length; ++j) + object.adsenseLinks[j] = $root.google.analytics.admin.v1alpha.AdSenseLink.toObject(message.adsenseLinks[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; - /** - * Properties of a NumericValue. - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @interface INumericValue - * @property {number|Long|null} [int64Value] NumericValue int64Value - * @property {number|null} [doubleValue] NumericValue doubleValue - */ + /** + * Converts this ListAdSenseLinksResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksResponse + * @instance + * @returns {Object.} JSON object + */ + ListAdSenseLinksResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new NumericValue. - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter - * @classdesc Represents a NumericValue. - * @implements INumericValue - * @constructor - * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue=} [properties] Properties to set - */ - function NumericValue(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Gets the default type url for ListAdSenseLinksResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListAdSenseLinksResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListAdSenseLinksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListAdSenseLinksResponse"; + }; - /** - * NumericValue int64Value. - * @member {number|Long|null|undefined} int64Value - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue - * @instance - */ - NumericValue.prototype.int64Value = null; + return ListAdSenseLinksResponse; + })(); - /** - * NumericValue doubleValue. - * @member {number|null|undefined} doubleValue - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue - * @instance - */ - NumericValue.prototype.doubleValue = null; + v1alpha.FetchConnectedGa4PropertyRequest = (function() { - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Properties of a FetchConnectedGa4PropertyRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IFetchConnectedGa4PropertyRequest + * @property {string|null} [property] FetchConnectedGa4PropertyRequest property + */ - /** - * NumericValue oneValue. - * @member {"int64Value"|"doubleValue"|undefined} oneValue - * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue - * @instance - */ - Object.defineProperty(NumericValue.prototype, "oneValue", { - get: $util.oneOfGetter($oneOfFields = ["int64Value", "doubleValue"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Constructs a new FetchConnectedGa4PropertyRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a FetchConnectedGa4PropertyRequest. + * @implements IFetchConnectedGa4PropertyRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyRequest=} [properties] Properties to set + */ + function FetchConnectedGa4PropertyRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new NumericValue instance using the specified properties. + /** + * FetchConnectedGa4PropertyRequest property. + * @member {string} property + * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + * @instance + */ + FetchConnectedGa4PropertyRequest.prototype.property = ""; + + /** + * Creates a new FetchConnectedGa4PropertyRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + * @static + * @param {google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest} FetchConnectedGa4PropertyRequest instance + */ + FetchConnectedGa4PropertyRequest.create = function create(properties) { + return new FetchConnectedGa4PropertyRequest(properties); + }; + + /** + * Encodes the specified FetchConnectedGa4PropertyRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + * @static + * @param {google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyRequest} message FetchConnectedGa4PropertyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FetchConnectedGa4PropertyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.property); + return writer; + }; + + /** + * Encodes the specified FetchConnectedGa4PropertyRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + * @static + * @param {google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyRequest} message FetchConnectedGa4PropertyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FetchConnectedGa4PropertyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FetchConnectedGa4PropertyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest} FetchConnectedGa4PropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FetchConnectedGa4PropertyRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.property = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FetchConnectedGa4PropertyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest} FetchConnectedGa4PropertyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FetchConnectedGa4PropertyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FetchConnectedGa4PropertyRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FetchConnectedGa4PropertyRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.property != null && message.hasOwnProperty("property")) + if (!$util.isString(message.property)) + return "property: string expected"; + return null; + }; + + /** + * Creates a FetchConnectedGa4PropertyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest} FetchConnectedGa4PropertyRequest + */ + FetchConnectedGa4PropertyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest(); + if (object.property != null) + message.property = String(object.property); + return message; + }; + + /** + * Creates a plain object from a FetchConnectedGa4PropertyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + * @static + * @param {google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest} message FetchConnectedGa4PropertyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FetchConnectedGa4PropertyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.property = ""; + if (message.property != null && message.hasOwnProperty("property")) + object.property = message.property; + return object; + }; + + /** + * Converts this FetchConnectedGa4PropertyRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + * @instance + * @returns {Object.} JSON object + */ + FetchConnectedGa4PropertyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FetchConnectedGa4PropertyRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FetchConnectedGa4PropertyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest"; + }; + + return FetchConnectedGa4PropertyRequest; + })(); + + v1alpha.FetchConnectedGa4PropertyResponse = (function() { + + /** + * Properties of a FetchConnectedGa4PropertyResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IFetchConnectedGa4PropertyResponse + * @property {string|null} [property] FetchConnectedGa4PropertyResponse property + */ + + /** + * Constructs a new FetchConnectedGa4PropertyResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a FetchConnectedGa4PropertyResponse. + * @implements IFetchConnectedGa4PropertyResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyResponse=} [properties] Properties to set + */ + function FetchConnectedGa4PropertyResponse(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FetchConnectedGa4PropertyResponse property. + * @member {string} property + * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + * @instance + */ + FetchConnectedGa4PropertyResponse.prototype.property = ""; + + /** + * Creates a new FetchConnectedGa4PropertyResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + * @static + * @param {google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse} FetchConnectedGa4PropertyResponse instance + */ + FetchConnectedGa4PropertyResponse.create = function create(properties) { + return new FetchConnectedGa4PropertyResponse(properties); + }; + + /** + * Encodes the specified FetchConnectedGa4PropertyResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + * @static + * @param {google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyResponse} message FetchConnectedGa4PropertyResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FetchConnectedGa4PropertyResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.property != null && Object.hasOwnProperty.call(message, "property")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.property); + return writer; + }; + + /** + * Encodes the specified FetchConnectedGa4PropertyResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + * @static + * @param {google.analytics.admin.v1alpha.IFetchConnectedGa4PropertyResponse} message FetchConnectedGa4PropertyResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FetchConnectedGa4PropertyResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FetchConnectedGa4PropertyResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse} FetchConnectedGa4PropertyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FetchConnectedGa4PropertyResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.property = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FetchConnectedGa4PropertyResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse} FetchConnectedGa4PropertyResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FetchConnectedGa4PropertyResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FetchConnectedGa4PropertyResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FetchConnectedGa4PropertyResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.property != null && message.hasOwnProperty("property")) + if (!$util.isString(message.property)) + return "property: string expected"; + return null; + }; + + /** + * Creates a FetchConnectedGa4PropertyResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse} FetchConnectedGa4PropertyResponse + */ + FetchConnectedGa4PropertyResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse(); + if (object.property != null) + message.property = String(object.property); + return message; + }; + + /** + * Creates a plain object from a FetchConnectedGa4PropertyResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + * @static + * @param {google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse} message FetchConnectedGa4PropertyResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FetchConnectedGa4PropertyResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.property = ""; + if (message.property != null && message.hasOwnProperty("property")) + object.property = message.property; + return object; + }; + + /** + * Converts this FetchConnectedGa4PropertyResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + * @instance + * @returns {Object.} JSON object + */ + FetchConnectedGa4PropertyResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FetchConnectedGa4PropertyResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FetchConnectedGa4PropertyResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse"; + }; + + return FetchConnectedGa4PropertyResponse; + })(); + + v1alpha.CreateEventCreateRuleRequest = (function() { + + /** + * Properties of a CreateEventCreateRuleRequest. + * @memberof google.analytics.admin.v1alpha + * @interface ICreateEventCreateRuleRequest + * @property {string|null} [parent] CreateEventCreateRuleRequest parent + * @property {google.analytics.admin.v1alpha.IEventCreateRule|null} [eventCreateRule] CreateEventCreateRuleRequest eventCreateRule + */ + + /** + * Constructs a new CreateEventCreateRuleRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a CreateEventCreateRuleRequest. + * @implements ICreateEventCreateRuleRequest + * @constructor + * @param {google.analytics.admin.v1alpha.ICreateEventCreateRuleRequest=} [properties] Properties to set + */ + function CreateEventCreateRuleRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateEventCreateRuleRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.CreateEventCreateRuleRequest + * @instance + */ + CreateEventCreateRuleRequest.prototype.parent = ""; + + /** + * CreateEventCreateRuleRequest eventCreateRule. + * @member {google.analytics.admin.v1alpha.IEventCreateRule|null|undefined} eventCreateRule + * @memberof google.analytics.admin.v1alpha.CreateEventCreateRuleRequest + * @instance + */ + CreateEventCreateRuleRequest.prototype.eventCreateRule = null; + + /** + * Creates a new CreateEventCreateRuleRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.CreateEventCreateRuleRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateEventCreateRuleRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.CreateEventCreateRuleRequest} CreateEventCreateRuleRequest instance + */ + CreateEventCreateRuleRequest.create = function create(properties) { + return new CreateEventCreateRuleRequest(properties); + }; + + /** + * Encodes the specified CreateEventCreateRuleRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.CreateEventCreateRuleRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.CreateEventCreateRuleRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateEventCreateRuleRequest} message CreateEventCreateRuleRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateEventCreateRuleRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.eventCreateRule != null && Object.hasOwnProperty.call(message, "eventCreateRule")) + $root.google.analytics.admin.v1alpha.EventCreateRule.encode(message.eventCreateRule, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateEventCreateRuleRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.CreateEventCreateRuleRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateEventCreateRuleRequest + * @static + * @param {google.analytics.admin.v1alpha.ICreateEventCreateRuleRequest} message CreateEventCreateRuleRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateEventCreateRuleRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateEventCreateRuleRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.CreateEventCreateRuleRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.CreateEventCreateRuleRequest} CreateEventCreateRuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateEventCreateRuleRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.eventCreateRule = $root.google.analytics.admin.v1alpha.EventCreateRule.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateEventCreateRuleRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.CreateEventCreateRuleRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.CreateEventCreateRuleRequest} CreateEventCreateRuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateEventCreateRuleRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateEventCreateRuleRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.CreateEventCreateRuleRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateEventCreateRuleRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.eventCreateRule != null && message.hasOwnProperty("eventCreateRule")) { + var error = $root.google.analytics.admin.v1alpha.EventCreateRule.verify(message.eventCreateRule); + if (error) + return "eventCreateRule." + error; + } + return null; + }; + + /** + * Creates a CreateEventCreateRuleRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.CreateEventCreateRuleRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.CreateEventCreateRuleRequest} CreateEventCreateRuleRequest + */ + CreateEventCreateRuleRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.eventCreateRule != null) { + if (typeof object.eventCreateRule !== "object") + throw TypeError(".google.analytics.admin.v1alpha.CreateEventCreateRuleRequest.eventCreateRule: object expected"); + message.eventCreateRule = $root.google.analytics.admin.v1alpha.EventCreateRule.fromObject(object.eventCreateRule); + } + return message; + }; + + /** + * Creates a plain object from a CreateEventCreateRuleRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.CreateEventCreateRuleRequest + * @static + * @param {google.analytics.admin.v1alpha.CreateEventCreateRuleRequest} message CreateEventCreateRuleRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateEventCreateRuleRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.eventCreateRule = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.eventCreateRule != null && message.hasOwnProperty("eventCreateRule")) + object.eventCreateRule = $root.google.analytics.admin.v1alpha.EventCreateRule.toObject(message.eventCreateRule, options); + return object; + }; + + /** + * Converts this CreateEventCreateRuleRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.CreateEventCreateRuleRequest + * @instance + * @returns {Object.} JSON object + */ + CreateEventCreateRuleRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateEventCreateRuleRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.CreateEventCreateRuleRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateEventCreateRuleRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.CreateEventCreateRuleRequest"; + }; + + return CreateEventCreateRuleRequest; + })(); + + v1alpha.UpdateEventCreateRuleRequest = (function() { + + /** + * Properties of an UpdateEventCreateRuleRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IUpdateEventCreateRuleRequest + * @property {google.analytics.admin.v1alpha.IEventCreateRule|null} [eventCreateRule] UpdateEventCreateRuleRequest eventCreateRule + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEventCreateRuleRequest updateMask + */ + + /** + * Constructs a new UpdateEventCreateRuleRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an UpdateEventCreateRuleRequest. + * @implements IUpdateEventCreateRuleRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IUpdateEventCreateRuleRequest=} [properties] Properties to set + */ + function UpdateEventCreateRuleRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UpdateEventCreateRuleRequest eventCreateRule. + * @member {google.analytics.admin.v1alpha.IEventCreateRule|null|undefined} eventCreateRule + * @memberof google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest + * @instance + */ + UpdateEventCreateRuleRequest.prototype.eventCreateRule = null; + + /** + * UpdateEventCreateRuleRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest + * @instance + */ + UpdateEventCreateRuleRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateEventCreateRuleRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateEventCreateRuleRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest} UpdateEventCreateRuleRequest instance + */ + UpdateEventCreateRuleRequest.create = function create(properties) { + return new UpdateEventCreateRuleRequest(properties); + }; + + /** + * Encodes the specified UpdateEventCreateRuleRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateEventCreateRuleRequest} message UpdateEventCreateRuleRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateEventCreateRuleRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.eventCreateRule != null && Object.hasOwnProperty.call(message, "eventCreateRule")) + $root.google.analytics.admin.v1alpha.EventCreateRule.encode(message.eventCreateRule, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UpdateEventCreateRuleRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest + * @static + * @param {google.analytics.admin.v1alpha.IUpdateEventCreateRuleRequest} message UpdateEventCreateRuleRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateEventCreateRuleRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateEventCreateRuleRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest} UpdateEventCreateRuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateEventCreateRuleRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.eventCreateRule = $root.google.analytics.admin.v1alpha.EventCreateRule.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateEventCreateRuleRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest} UpdateEventCreateRuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateEventCreateRuleRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateEventCreateRuleRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateEventCreateRuleRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.eventCreateRule != null && message.hasOwnProperty("eventCreateRule")) { + var error = $root.google.analytics.admin.v1alpha.EventCreateRule.verify(message.eventCreateRule); + if (error) + return "eventCreateRule." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + return null; + }; + + /** + * Creates an UpdateEventCreateRuleRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest} UpdateEventCreateRuleRequest + */ + UpdateEventCreateRuleRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest(); + if (object.eventCreateRule != null) { + if (typeof object.eventCreateRule !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest.eventCreateRule: object expected"); + message.eventCreateRule = $root.google.analytics.admin.v1alpha.EventCreateRule.fromObject(object.eventCreateRule); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; + + /** + * Creates a plain object from an UpdateEventCreateRuleRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest + * @static + * @param {google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest} message UpdateEventCreateRuleRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateEventCreateRuleRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.eventCreateRule = null; + object.updateMask = null; + } + if (message.eventCreateRule != null && message.hasOwnProperty("eventCreateRule")) + object.eventCreateRule = $root.google.analytics.admin.v1alpha.EventCreateRule.toObject(message.eventCreateRule, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + return object; + }; + + /** + * Converts this UpdateEventCreateRuleRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateEventCreateRuleRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UpdateEventCreateRuleRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateEventCreateRuleRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest"; + }; + + return UpdateEventCreateRuleRequest; + })(); + + v1alpha.DeleteEventCreateRuleRequest = (function() { + + /** + * Properties of a DeleteEventCreateRuleRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IDeleteEventCreateRuleRequest + * @property {string|null} [name] DeleteEventCreateRuleRequest name + */ + + /** + * Constructs a new DeleteEventCreateRuleRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a DeleteEventCreateRuleRequest. + * @implements IDeleteEventCreateRuleRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IDeleteEventCreateRuleRequest=} [properties] Properties to set + */ + function DeleteEventCreateRuleRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteEventCreateRuleRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest + * @instance + */ + DeleteEventCreateRuleRequest.prototype.name = ""; + + /** + * Creates a new DeleteEventCreateRuleRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteEventCreateRuleRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest} DeleteEventCreateRuleRequest instance + */ + DeleteEventCreateRuleRequest.create = function create(properties) { + return new DeleteEventCreateRuleRequest(properties); + }; + + /** + * Encodes the specified DeleteEventCreateRuleRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteEventCreateRuleRequest} message DeleteEventCreateRuleRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteEventCreateRuleRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified DeleteEventCreateRuleRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest + * @static + * @param {google.analytics.admin.v1alpha.IDeleteEventCreateRuleRequest} message DeleteEventCreateRuleRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteEventCreateRuleRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteEventCreateRuleRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest} DeleteEventCreateRuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteEventCreateRuleRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteEventCreateRuleRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest} DeleteEventCreateRuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteEventCreateRuleRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteEventCreateRuleRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteEventCreateRuleRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a DeleteEventCreateRuleRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest} DeleteEventCreateRuleRequest + */ + DeleteEventCreateRuleRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteEventCreateRuleRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest + * @static + * @param {google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest} message DeleteEventCreateRuleRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteEventCreateRuleRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this DeleteEventCreateRuleRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteEventCreateRuleRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeleteEventCreateRuleRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteEventCreateRuleRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest"; + }; + + return DeleteEventCreateRuleRequest; + })(); + + v1alpha.GetEventCreateRuleRequest = (function() { + + /** + * Properties of a GetEventCreateRuleRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IGetEventCreateRuleRequest + * @property {string|null} [name] GetEventCreateRuleRequest name + */ + + /** + * Constructs a new GetEventCreateRuleRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GetEventCreateRuleRequest. + * @implements IGetEventCreateRuleRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IGetEventCreateRuleRequest=} [properties] Properties to set + */ + function GetEventCreateRuleRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetEventCreateRuleRequest name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.GetEventCreateRuleRequest + * @instance + */ + GetEventCreateRuleRequest.prototype.name = ""; + + /** + * Creates a new GetEventCreateRuleRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GetEventCreateRuleRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetEventCreateRuleRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GetEventCreateRuleRequest} GetEventCreateRuleRequest instance + */ + GetEventCreateRuleRequest.create = function create(properties) { + return new GetEventCreateRuleRequest(properties); + }; + + /** + * Encodes the specified GetEventCreateRuleRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.GetEventCreateRuleRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GetEventCreateRuleRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetEventCreateRuleRequest} message GetEventCreateRuleRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetEventCreateRuleRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetEventCreateRuleRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GetEventCreateRuleRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GetEventCreateRuleRequest + * @static + * @param {google.analytics.admin.v1alpha.IGetEventCreateRuleRequest} message GetEventCreateRuleRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetEventCreateRuleRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetEventCreateRuleRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GetEventCreateRuleRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GetEventCreateRuleRequest} GetEventCreateRuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetEventCreateRuleRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GetEventCreateRuleRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetEventCreateRuleRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GetEventCreateRuleRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GetEventCreateRuleRequest} GetEventCreateRuleRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetEventCreateRuleRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetEventCreateRuleRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GetEventCreateRuleRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetEventCreateRuleRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetEventCreateRuleRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GetEventCreateRuleRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GetEventCreateRuleRequest} GetEventCreateRuleRequest + */ + GetEventCreateRuleRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GetEventCreateRuleRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.GetEventCreateRuleRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetEventCreateRuleRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GetEventCreateRuleRequest + * @static + * @param {google.analytics.admin.v1alpha.GetEventCreateRuleRequest} message GetEventCreateRuleRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetEventCreateRuleRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetEventCreateRuleRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GetEventCreateRuleRequest + * @instance + * @returns {Object.} JSON object + */ + GetEventCreateRuleRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GetEventCreateRuleRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GetEventCreateRuleRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetEventCreateRuleRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GetEventCreateRuleRequest"; + }; + + return GetEventCreateRuleRequest; + })(); + + v1alpha.ListEventCreateRulesRequest = (function() { + + /** + * Properties of a ListEventCreateRulesRequest. + * @memberof google.analytics.admin.v1alpha + * @interface IListEventCreateRulesRequest + * @property {string|null} [parent] ListEventCreateRulesRequest parent + * @property {number|null} [pageSize] ListEventCreateRulesRequest pageSize + * @property {string|null} [pageToken] ListEventCreateRulesRequest pageToken + */ + + /** + * Constructs a new ListEventCreateRulesRequest. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListEventCreateRulesRequest. + * @implements IListEventCreateRulesRequest + * @constructor + * @param {google.analytics.admin.v1alpha.IListEventCreateRulesRequest=} [properties] Properties to set + */ + function ListEventCreateRulesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListEventCreateRulesRequest parent. + * @member {string} parent + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesRequest + * @instance + */ + ListEventCreateRulesRequest.prototype.parent = ""; + + /** + * ListEventCreateRulesRequest pageSize. + * @member {number} pageSize + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesRequest + * @instance + */ + ListEventCreateRulesRequest.prototype.pageSize = 0; + + /** + * ListEventCreateRulesRequest pageToken. + * @member {string} pageToken + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesRequest + * @instance + */ + ListEventCreateRulesRequest.prototype.pageToken = ""; + + /** + * Creates a new ListEventCreateRulesRequest instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesRequest + * @static + * @param {google.analytics.admin.v1alpha.IListEventCreateRulesRequest=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListEventCreateRulesRequest} ListEventCreateRulesRequest instance + */ + ListEventCreateRulesRequest.create = function create(properties) { + return new ListEventCreateRulesRequest(properties); + }; + + /** + * Encodes the specified ListEventCreateRulesRequest message. Does not implicitly {@link google.analytics.admin.v1alpha.ListEventCreateRulesRequest.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesRequest + * @static + * @param {google.analytics.admin.v1alpha.IListEventCreateRulesRequest} message ListEventCreateRulesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListEventCreateRulesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + return writer; + }; + + /** + * Encodes the specified ListEventCreateRulesRequest message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListEventCreateRulesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesRequest + * @static + * @param {google.analytics.admin.v1alpha.IListEventCreateRulesRequest} message ListEventCreateRulesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListEventCreateRulesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListEventCreateRulesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListEventCreateRulesRequest} ListEventCreateRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListEventCreateRulesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListEventCreateRulesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListEventCreateRulesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListEventCreateRulesRequest} ListEventCreateRulesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListEventCreateRulesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListEventCreateRulesRequest message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListEventCreateRulesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + return null; + }; + + /** + * Creates a ListEventCreateRulesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListEventCreateRulesRequest} ListEventCreateRulesRequest + */ + ListEventCreateRulesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListEventCreateRulesRequest) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListEventCreateRulesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + return message; + }; + + /** + * Creates a plain object from a ListEventCreateRulesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesRequest + * @static + * @param {google.analytics.admin.v1alpha.ListEventCreateRulesRequest} message ListEventCreateRulesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListEventCreateRulesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + return object; + }; + + /** + * Converts this ListEventCreateRulesRequest to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesRequest + * @instance + * @returns {Object.} JSON object + */ + ListEventCreateRulesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListEventCreateRulesRequest + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListEventCreateRulesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListEventCreateRulesRequest"; + }; + + return ListEventCreateRulesRequest; + })(); + + v1alpha.ListEventCreateRulesResponse = (function() { + + /** + * Properties of a ListEventCreateRulesResponse. + * @memberof google.analytics.admin.v1alpha + * @interface IListEventCreateRulesResponse + * @property {Array.|null} [eventCreateRules] ListEventCreateRulesResponse eventCreateRules + * @property {string|null} [nextPageToken] ListEventCreateRulesResponse nextPageToken + */ + + /** + * Constructs a new ListEventCreateRulesResponse. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ListEventCreateRulesResponse. + * @implements IListEventCreateRulesResponse + * @constructor + * @param {google.analytics.admin.v1alpha.IListEventCreateRulesResponse=} [properties] Properties to set + */ + function ListEventCreateRulesResponse(properties) { + this.eventCreateRules = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListEventCreateRulesResponse eventCreateRules. + * @member {Array.} eventCreateRules + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesResponse + * @instance + */ + ListEventCreateRulesResponse.prototype.eventCreateRules = $util.emptyArray; + + /** + * ListEventCreateRulesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesResponse + * @instance + */ + ListEventCreateRulesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListEventCreateRulesResponse instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesResponse + * @static + * @param {google.analytics.admin.v1alpha.IListEventCreateRulesResponse=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ListEventCreateRulesResponse} ListEventCreateRulesResponse instance + */ + ListEventCreateRulesResponse.create = function create(properties) { + return new ListEventCreateRulesResponse(properties); + }; + + /** + * Encodes the specified ListEventCreateRulesResponse message. Does not implicitly {@link google.analytics.admin.v1alpha.ListEventCreateRulesResponse.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesResponse + * @static + * @param {google.analytics.admin.v1alpha.IListEventCreateRulesResponse} message ListEventCreateRulesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListEventCreateRulesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.eventCreateRules != null && message.eventCreateRules.length) + for (var i = 0; i < message.eventCreateRules.length; ++i) + $root.google.analytics.admin.v1alpha.EventCreateRule.encode(message.eventCreateRules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified ListEventCreateRulesResponse message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ListEventCreateRulesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesResponse + * @static + * @param {google.analytics.admin.v1alpha.IListEventCreateRulesResponse} message ListEventCreateRulesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListEventCreateRulesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListEventCreateRulesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ListEventCreateRulesResponse} ListEventCreateRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListEventCreateRulesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ListEventCreateRulesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.eventCreateRules && message.eventCreateRules.length)) + message.eventCreateRules = []; + message.eventCreateRules.push($root.google.analytics.admin.v1alpha.EventCreateRule.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListEventCreateRulesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ListEventCreateRulesResponse} ListEventCreateRulesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListEventCreateRulesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListEventCreateRulesResponse message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListEventCreateRulesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.eventCreateRules != null && message.hasOwnProperty("eventCreateRules")) { + if (!Array.isArray(message.eventCreateRules)) + return "eventCreateRules: array expected"; + for (var i = 0; i < message.eventCreateRules.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.EventCreateRule.verify(message.eventCreateRules[i]); + if (error) + return "eventCreateRules." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListEventCreateRulesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ListEventCreateRulesResponse} ListEventCreateRulesResponse + */ + ListEventCreateRulesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ListEventCreateRulesResponse) + return object; + var message = new $root.google.analytics.admin.v1alpha.ListEventCreateRulesResponse(); + if (object.eventCreateRules) { + if (!Array.isArray(object.eventCreateRules)) + throw TypeError(".google.analytics.admin.v1alpha.ListEventCreateRulesResponse.eventCreateRules: array expected"); + message.eventCreateRules = []; + for (var i = 0; i < object.eventCreateRules.length; ++i) { + if (typeof object.eventCreateRules[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ListEventCreateRulesResponse.eventCreateRules: object expected"); + message.eventCreateRules[i] = $root.google.analytics.admin.v1alpha.EventCreateRule.fromObject(object.eventCreateRules[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListEventCreateRulesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesResponse + * @static + * @param {google.analytics.admin.v1alpha.ListEventCreateRulesResponse} message ListEventCreateRulesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListEventCreateRulesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.eventCreateRules = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.eventCreateRules && message.eventCreateRules.length) { + object.eventCreateRules = []; + for (var j = 0; j < message.eventCreateRules.length; ++j) + object.eventCreateRules[j] = $root.google.analytics.admin.v1alpha.EventCreateRule.toObject(message.eventCreateRules[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListEventCreateRulesResponse to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesResponse + * @instance + * @returns {Object.} JSON object + */ + ListEventCreateRulesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ListEventCreateRulesResponse + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ListEventCreateRulesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListEventCreateRulesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ListEventCreateRulesResponse"; + }; + + return ListEventCreateRulesResponse; + })(); + + /** + * AudienceFilterScope enum. + * @name google.analytics.admin.v1alpha.AudienceFilterScope + * @enum {number} + * @property {number} AUDIENCE_FILTER_SCOPE_UNSPECIFIED=0 AUDIENCE_FILTER_SCOPE_UNSPECIFIED value + * @property {number} AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT=1 AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT value + * @property {number} AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION=2 AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION value + * @property {number} AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS=3 AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS value + */ + v1alpha.AudienceFilterScope = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AUDIENCE_FILTER_SCOPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT"] = 1; + values[valuesById[2] = "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION"] = 2; + values[valuesById[3] = "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS"] = 3; + return values; + })(); + + v1alpha.AudienceDimensionOrMetricFilter = (function() { + + /** + * Properties of an AudienceDimensionOrMetricFilter. + * @memberof google.analytics.admin.v1alpha + * @interface IAudienceDimensionOrMetricFilter + * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter|null} [stringFilter] AudienceDimensionOrMetricFilter stringFilter + * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter|null} [inListFilter] AudienceDimensionOrMetricFilter inListFilter + * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter|null} [numericFilter] AudienceDimensionOrMetricFilter numericFilter + * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter|null} [betweenFilter] AudienceDimensionOrMetricFilter betweenFilter + * @property {string|null} [fieldName] AudienceDimensionOrMetricFilter fieldName + * @property {boolean|null} [atAnyPointInTime] AudienceDimensionOrMetricFilter atAnyPointInTime + * @property {number|null} [inAnyNDayPeriod] AudienceDimensionOrMetricFilter inAnyNDayPeriod + */ + + /** + * Constructs a new AudienceDimensionOrMetricFilter. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AudienceDimensionOrMetricFilter. + * @implements IAudienceDimensionOrMetricFilter + * @constructor + * @param {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter=} [properties] Properties to set + */ + function AudienceDimensionOrMetricFilter(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AudienceDimensionOrMetricFilter stringFilter. + * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter|null|undefined} stringFilter + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @instance + */ + AudienceDimensionOrMetricFilter.prototype.stringFilter = null; + + /** + * AudienceDimensionOrMetricFilter inListFilter. + * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter|null|undefined} inListFilter + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @instance + */ + AudienceDimensionOrMetricFilter.prototype.inListFilter = null; + + /** + * AudienceDimensionOrMetricFilter numericFilter. + * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericFilter|null|undefined} numericFilter + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @instance + */ + AudienceDimensionOrMetricFilter.prototype.numericFilter = null; + + /** + * AudienceDimensionOrMetricFilter betweenFilter. + * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IBetweenFilter|null|undefined} betweenFilter + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @instance + */ + AudienceDimensionOrMetricFilter.prototype.betweenFilter = null; + + /** + * AudienceDimensionOrMetricFilter fieldName. + * @member {string} fieldName + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @instance + */ + AudienceDimensionOrMetricFilter.prototype.fieldName = ""; + + /** + * AudienceDimensionOrMetricFilter atAnyPointInTime. + * @member {boolean} atAnyPointInTime + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @instance + */ + AudienceDimensionOrMetricFilter.prototype.atAnyPointInTime = false; + + /** + * AudienceDimensionOrMetricFilter inAnyNDayPeriod. + * @member {number} inAnyNDayPeriod + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @instance + */ + AudienceDimensionOrMetricFilter.prototype.inAnyNDayPeriod = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * AudienceDimensionOrMetricFilter oneFilter. + * @member {"stringFilter"|"inListFilter"|"numericFilter"|"betweenFilter"|undefined} oneFilter + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @instance + */ + Object.defineProperty(AudienceDimensionOrMetricFilter.prototype, "oneFilter", { + get: $util.oneOfGetter($oneOfFields = ["stringFilter", "inListFilter", "numericFilter", "betweenFilter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AudienceDimensionOrMetricFilter instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @static + * @param {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} AudienceDimensionOrMetricFilter instance + */ + AudienceDimensionOrMetricFilter.create = function create(properties) { + return new AudienceDimensionOrMetricFilter(properties); + }; + + /** + * Encodes the specified AudienceDimensionOrMetricFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @static + * @param {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter} message AudienceDimensionOrMetricFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AudienceDimensionOrMetricFilter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fieldName != null && Object.hasOwnProperty.call(message, "fieldName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.fieldName); + if (message.stringFilter != null && Object.hasOwnProperty.call(message, "stringFilter")) + $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.encode(message.stringFilter, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.inListFilter != null && Object.hasOwnProperty.call(message, "inListFilter")) + $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.encode(message.inListFilter, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.numericFilter != null && Object.hasOwnProperty.call(message, "numericFilter")) + $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.encode(message.numericFilter, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.betweenFilter != null && Object.hasOwnProperty.call(message, "betweenFilter")) + $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.encode(message.betweenFilter, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.atAnyPointInTime != null && Object.hasOwnProperty.call(message, "atAnyPointInTime")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.atAnyPointInTime); + if (message.inAnyNDayPeriod != null && Object.hasOwnProperty.call(message, "inAnyNDayPeriod")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.inAnyNDayPeriod); + return writer; + }; + + /** + * Encodes the specified AudienceDimensionOrMetricFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @static + * @param {google.analytics.admin.v1alpha.IAudienceDimensionOrMetricFilter} message AudienceDimensionOrMetricFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AudienceDimensionOrMetricFilter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AudienceDimensionOrMetricFilter message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} AudienceDimensionOrMetricFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AudienceDimensionOrMetricFilter.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.stringFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.decode(reader, reader.uint32()); + break; + } + case 3: { + message.inListFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.decode(reader, reader.uint32()); + break; + } + case 4: { + message.numericFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.decode(reader, reader.uint32()); + break; + } + case 5: { + message.betweenFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.decode(reader, reader.uint32()); + break; + } + case 1: { + message.fieldName = reader.string(); + break; + } + case 6: { + message.atAnyPointInTime = reader.bool(); + break; + } + case 7: { + message.inAnyNDayPeriod = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AudienceDimensionOrMetricFilter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} AudienceDimensionOrMetricFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AudienceDimensionOrMetricFilter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AudienceDimensionOrMetricFilter message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AudienceDimensionOrMetricFilter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.stringFilter != null && message.hasOwnProperty("stringFilter")) { + properties.oneFilter = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify(message.stringFilter); + if (error) + return "stringFilter." + error; + } + } + if (message.inListFilter != null && message.hasOwnProperty("inListFilter")) { + if (properties.oneFilter === 1) + return "oneFilter: multiple values"; + properties.oneFilter = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify(message.inListFilter); + if (error) + return "inListFilter." + error; + } + } + if (message.numericFilter != null && message.hasOwnProperty("numericFilter")) { + if (properties.oneFilter === 1) + return "oneFilter: multiple values"; + properties.oneFilter = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.verify(message.numericFilter); + if (error) + return "numericFilter." + error; + } + } + if (message.betweenFilter != null && message.hasOwnProperty("betweenFilter")) { + if (properties.oneFilter === 1) + return "oneFilter: multiple values"; + properties.oneFilter = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.verify(message.betweenFilter); + if (error) + return "betweenFilter." + error; + } + } + if (message.fieldName != null && message.hasOwnProperty("fieldName")) + if (!$util.isString(message.fieldName)) + return "fieldName: string expected"; + if (message.atAnyPointInTime != null && message.hasOwnProperty("atAnyPointInTime")) + if (typeof message.atAnyPointInTime !== "boolean") + return "atAnyPointInTime: boolean expected"; + if (message.inAnyNDayPeriod != null && message.hasOwnProperty("inAnyNDayPeriod")) + if (!$util.isInteger(message.inAnyNDayPeriod)) + return "inAnyNDayPeriod: integer expected"; + return null; + }; + + /** + * Creates an AudienceDimensionOrMetricFilter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} AudienceDimensionOrMetricFilter + */ + AudienceDimensionOrMetricFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) + return object; + var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter(); + if (object.stringFilter != null) { + if (typeof object.stringFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.stringFilter: object expected"); + message.stringFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.fromObject(object.stringFilter); + } + if (object.inListFilter != null) { + if (typeof object.inListFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.inListFilter: object expected"); + message.inListFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.fromObject(object.inListFilter); + } + if (object.numericFilter != null) { + if (typeof object.numericFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.numericFilter: object expected"); + message.numericFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.fromObject(object.numericFilter); + } + if (object.betweenFilter != null) { + if (typeof object.betweenFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.betweenFilter: object expected"); + message.betweenFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.fromObject(object.betweenFilter); + } + if (object.fieldName != null) + message.fieldName = String(object.fieldName); + if (object.atAnyPointInTime != null) + message.atAnyPointInTime = Boolean(object.atAnyPointInTime); + if (object.inAnyNDayPeriod != null) + message.inAnyNDayPeriod = object.inAnyNDayPeriod | 0; + return message; + }; + + /** + * Creates a plain object from an AudienceDimensionOrMetricFilter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} message AudienceDimensionOrMetricFilter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AudienceDimensionOrMetricFilter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.fieldName = ""; + object.atAnyPointInTime = false; + object.inAnyNDayPeriod = 0; + } + if (message.fieldName != null && message.hasOwnProperty("fieldName")) + object.fieldName = message.fieldName; + if (message.stringFilter != null && message.hasOwnProperty("stringFilter")) { + object.stringFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.toObject(message.stringFilter, options); + if (options.oneofs) + object.oneFilter = "stringFilter"; + } + if (message.inListFilter != null && message.hasOwnProperty("inListFilter")) { + object.inListFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.toObject(message.inListFilter, options); + if (options.oneofs) + object.oneFilter = "inListFilter"; + } + if (message.numericFilter != null && message.hasOwnProperty("numericFilter")) { + object.numericFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.toObject(message.numericFilter, options); + if (options.oneofs) + object.oneFilter = "numericFilter"; + } + if (message.betweenFilter != null && message.hasOwnProperty("betweenFilter")) { + object.betweenFilter = $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.toObject(message.betweenFilter, options); + if (options.oneofs) + object.oneFilter = "betweenFilter"; + } + if (message.atAnyPointInTime != null && message.hasOwnProperty("atAnyPointInTime")) + object.atAnyPointInTime = message.atAnyPointInTime; + if (message.inAnyNDayPeriod != null && message.hasOwnProperty("inAnyNDayPeriod")) + object.inAnyNDayPeriod = message.inAnyNDayPeriod; + return object; + }; + + /** + * Converts this AudienceDimensionOrMetricFilter to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @instance + * @returns {Object.} JSON object + */ + AudienceDimensionOrMetricFilter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AudienceDimensionOrMetricFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AudienceDimensionOrMetricFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter"; + }; + + AudienceDimensionOrMetricFilter.StringFilter = (function() { + + /** + * Properties of a StringFilter. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @interface IStringFilter + * @property {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType|null} [matchType] StringFilter matchType + * @property {string|null} [value] StringFilter value + * @property {boolean|null} [caseSensitive] StringFilter caseSensitive + */ + + /** + * Constructs a new StringFilter. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @classdesc Represents a StringFilter. + * @implements IStringFilter + * @constructor + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter=} [properties] Properties to set + */ + function StringFilter(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * StringFilter matchType. + * @member {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType} matchType + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @instance + */ + StringFilter.prototype.matchType = 0; + + /** + * StringFilter value. + * @member {string} value + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @instance + */ + StringFilter.prototype.value = ""; + + /** + * StringFilter caseSensitive. + * @member {boolean} caseSensitive + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @instance + */ + StringFilter.prototype.caseSensitive = false; + + /** + * Creates a new StringFilter instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} StringFilter instance + */ + StringFilter.create = function create(properties) { + return new StringFilter(properties); + }; + + /** + * Encodes the specified StringFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter} message StringFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StringFilter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.matchType != null && Object.hasOwnProperty.call(message, "matchType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.matchType); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (message.caseSensitive != null && Object.hasOwnProperty.call(message, "caseSensitive")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.caseSensitive); + return writer; + }; + + /** + * Encodes the specified StringFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IStringFilter} message StringFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StringFilter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StringFilter message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} StringFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StringFilter.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.matchType = reader.int32(); + break; + } + case 2: { + message.value = reader.string(); + break; + } + case 3: { + message.caseSensitive = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StringFilter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} StringFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StringFilter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StringFilter message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StringFilter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.matchType != null && message.hasOwnProperty("matchType")) + switch (message.matchType) { + default: + return "matchType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) + if (typeof message.caseSensitive !== "boolean") + return "caseSensitive: boolean expected"; + return null; + }; + + /** + * Creates a StringFilter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} StringFilter + */ + StringFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + return object; + var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter(); + switch (object.matchType) { + default: + if (typeof object.matchType === "number") { + message.matchType = object.matchType; + break; + } + break; + case "MATCH_TYPE_UNSPECIFIED": + case 0: + message.matchType = 0; + break; + case "EXACT": + case 1: + message.matchType = 1; + break; + case "BEGINS_WITH": + case 2: + message.matchType = 2; + break; + case "ENDS_WITH": + case 3: + message.matchType = 3; + break; + case "CONTAINS": + case 4: + message.matchType = 4; + break; + case "FULL_REGEXP": + case 5: + message.matchType = 5; + break; + } + if (object.value != null) + message.value = String(object.value); + if (object.caseSensitive != null) + message.caseSensitive = Boolean(object.caseSensitive); + return message; + }; + + /** + * Creates a plain object from a StringFilter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} message StringFilter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StringFilter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.matchType = options.enums === String ? "MATCH_TYPE_UNSPECIFIED" : 0; + object.value = ""; + object.caseSensitive = false; + } + if (message.matchType != null && message.hasOwnProperty("matchType")) + object.matchType = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType[message.matchType] === undefined ? message.matchType : $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType[message.matchType] : message.matchType; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) + object.caseSensitive = message.caseSensitive; + return object; + }; + + /** + * Converts this StringFilter to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @instance + * @returns {Object.} JSON object + */ + StringFilter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StringFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StringFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter"; + }; + + /** + * MatchType enum. + * @name google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType + * @enum {number} + * @property {number} MATCH_TYPE_UNSPECIFIED=0 MATCH_TYPE_UNSPECIFIED value + * @property {number} EXACT=1 EXACT value + * @property {number} BEGINS_WITH=2 BEGINS_WITH value + * @property {number} ENDS_WITH=3 ENDS_WITH value + * @property {number} CONTAINS=4 CONTAINS value + * @property {number} FULL_REGEXP=5 FULL_REGEXP value + */ + StringFilter.MatchType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MATCH_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EXACT"] = 1; + values[valuesById[2] = "BEGINS_WITH"] = 2; + values[valuesById[3] = "ENDS_WITH"] = 3; + values[valuesById[4] = "CONTAINS"] = 4; + values[valuesById[5] = "FULL_REGEXP"] = 5; + return values; + })(); + + return StringFilter; + })(); + + AudienceDimensionOrMetricFilter.InListFilter = (function() { + + /** + * Properties of an InListFilter. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @interface IInListFilter + * @property {Array.|null} [values] InListFilter values + * @property {boolean|null} [caseSensitive] InListFilter caseSensitive + */ + + /** + * Constructs a new InListFilter. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @classdesc Represents an InListFilter. + * @implements IInListFilter + * @constructor + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter=} [properties] Properties to set + */ + function InListFilter(properties) { + this.values = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InListFilter values. + * @member {Array.} values + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @instance + */ + InListFilter.prototype.values = $util.emptyArray; + + /** + * InListFilter caseSensitive. + * @member {boolean} caseSensitive + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @instance + */ + InListFilter.prototype.caseSensitive = false; + + /** + * Creates a new InListFilter instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} InListFilter instance + */ + InListFilter.create = function create(properties) { + return new InListFilter(properties); + }; + + /** + * Encodes the specified InListFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter} message InListFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InListFilter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); + if (message.caseSensitive != null && Object.hasOwnProperty.call(message, "caseSensitive")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.caseSensitive); + return writer; + }; + + /** + * Encodes the specified InListFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.IInListFilter} message InListFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InListFilter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InListFilter message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} InListFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InListFilter.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); + break; + } + case 2: { + message.caseSensitive = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InListFilter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} InListFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InListFilter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InListFilter message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InListFilter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isString(message.values[i])) + return "values: string[] expected"; + } + if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) + if (typeof message.caseSensitive !== "boolean") + return "caseSensitive: boolean expected"; + return null; + }; + + /** + * Creates an InListFilter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} InListFilter + */ + InListFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + return object; + var message = new $root.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = String(object.values[i]); + } + if (object.caseSensitive != null) + message.caseSensitive = Boolean(object.caseSensitive); + return message; + }; + + /** + * Creates a plain object from an InListFilter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} message InListFilter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InListFilter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (options.defaults) + object.caseSensitive = false; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = message.values[j]; + } + if (message.caseSensitive != null && message.hasOwnProperty("caseSensitive")) + object.caseSensitive = message.caseSensitive; + return object; + }; + + /** + * Converts this InListFilter to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @instance + * @returns {Object.} JSON object + */ + InListFilter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InListFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InListFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter"; + }; + + return InListFilter; + })(); + + AudienceDimensionOrMetricFilter.NumericValue = (function() { + + /** + * Properties of a NumericValue. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @interface INumericValue + * @property {number|Long|null} [int64Value] NumericValue int64Value + * @property {number|null} [doubleValue] NumericValue doubleValue + */ + + /** + * Constructs a new NumericValue. + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + * @classdesc Represents a NumericValue. + * @implements INumericValue + * @constructor + * @param {google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.INumericValue=} [properties] Properties to set + */ + function NumericValue(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NumericValue int64Value. + * @member {number|Long|null|undefined} int64Value + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @instance + */ + NumericValue.prototype.int64Value = null; + + /** + * NumericValue doubleValue. + * @member {number|null|undefined} doubleValue + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @instance + */ + NumericValue.prototype.doubleValue = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * NumericValue oneValue. + * @member {"int64Value"|"doubleValue"|undefined} oneValue + * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + * @instance + */ + Object.defineProperty(NumericValue.prototype, "oneValue", { + get: $util.oneOfGetter($oneOfFields = ["int64Value", "doubleValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NumericValue instance using the specified properties. * @function create * @memberof google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue * @static @@ -46118,8 +48939,495 @@ * @constructor * @param {google.analytics.admin.v1alpha.IAudienceFilterExpressionList=} [properties] Properties to set */ - function AudienceFilterExpressionList(properties) { - this.filterExpressions = []; + function AudienceFilterExpressionList(properties) { + this.filterExpressions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AudienceFilterExpressionList filterExpressions. + * @member {Array.} filterExpressions + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @instance + */ + AudienceFilterExpressionList.prototype.filterExpressions = $util.emptyArray; + + /** + * Creates a new AudienceFilterExpressionList instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @static + * @param {google.analytics.admin.v1alpha.IAudienceFilterExpressionList=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceFilterExpressionList} AudienceFilterExpressionList instance + */ + AudienceFilterExpressionList.create = function create(properties) { + return new AudienceFilterExpressionList(properties); + }; + + /** + * Encodes the specified AudienceFilterExpressionList message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @static + * @param {google.analytics.admin.v1alpha.IAudienceFilterExpressionList} message AudienceFilterExpressionList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AudienceFilterExpressionList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.filterExpressions != null && message.filterExpressions.length) + for (var i = 0; i < message.filterExpressions.length; ++i) + $root.google.analytics.admin.v1alpha.AudienceFilterExpression.encode(message.filterExpressions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AudienceFilterExpressionList message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @static + * @param {google.analytics.admin.v1alpha.IAudienceFilterExpressionList} message AudienceFilterExpressionList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AudienceFilterExpressionList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AudienceFilterExpressionList message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AudienceFilterExpressionList} AudienceFilterExpressionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AudienceFilterExpressionList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.filterExpressions && message.filterExpressions.length)) + message.filterExpressions = []; + message.filterExpressions.push($root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AudienceFilterExpressionList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AudienceFilterExpressionList} AudienceFilterExpressionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AudienceFilterExpressionList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AudienceFilterExpressionList message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AudienceFilterExpressionList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.filterExpressions != null && message.hasOwnProperty("filterExpressions")) { + if (!Array.isArray(message.filterExpressions)) + return "filterExpressions: array expected"; + for (var i = 0; i < message.filterExpressions.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.verify(message.filterExpressions[i]); + if (error) + return "filterExpressions." + error; + } + } + return null; + }; + + /** + * Creates an AudienceFilterExpressionList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AudienceFilterExpressionList} AudienceFilterExpressionList + */ + AudienceFilterExpressionList.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList) + return object; + var message = new $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList(); + if (object.filterExpressions) { + if (!Array.isArray(object.filterExpressions)) + throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpressionList.filterExpressions: array expected"); + message.filterExpressions = []; + for (var i = 0; i < object.filterExpressions.length; ++i) { + if (typeof object.filterExpressions[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpressionList.filterExpressions: object expected"); + message.filterExpressions[i] = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.fromObject(object.filterExpressions[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an AudienceFilterExpressionList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @static + * @param {google.analytics.admin.v1alpha.AudienceFilterExpressionList} message AudienceFilterExpressionList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AudienceFilterExpressionList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.filterExpressions = []; + if (message.filterExpressions && message.filterExpressions.length) { + object.filterExpressions = []; + for (var j = 0; j < message.filterExpressions.length; ++j) + object.filterExpressions[j] = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.toObject(message.filterExpressions[j], options); + } + return object; + }; + + /** + * Converts this AudienceFilterExpressionList to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @instance + * @returns {Object.} JSON object + */ + AudienceFilterExpressionList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AudienceFilterExpressionList + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AudienceFilterExpressionList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceFilterExpressionList"; + }; + + return AudienceFilterExpressionList; + })(); + + v1alpha.AudienceSimpleFilter = (function() { + + /** + * Properties of an AudienceSimpleFilter. + * @memberof google.analytics.admin.v1alpha + * @interface IAudienceSimpleFilter + * @property {google.analytics.admin.v1alpha.AudienceFilterScope|null} [scope] AudienceSimpleFilter scope + * @property {google.analytics.admin.v1alpha.IAudienceFilterExpression|null} [filterExpression] AudienceSimpleFilter filterExpression + */ + + /** + * Constructs a new AudienceSimpleFilter. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AudienceSimpleFilter. + * @implements IAudienceSimpleFilter + * @constructor + * @param {google.analytics.admin.v1alpha.IAudienceSimpleFilter=} [properties] Properties to set + */ + function AudienceSimpleFilter(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AudienceSimpleFilter scope. + * @member {google.analytics.admin.v1alpha.AudienceFilterScope} scope + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @instance + */ + AudienceSimpleFilter.prototype.scope = 0; + + /** + * AudienceSimpleFilter filterExpression. + * @member {google.analytics.admin.v1alpha.IAudienceFilterExpression|null|undefined} filterExpression + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @instance + */ + AudienceSimpleFilter.prototype.filterExpression = null; + + /** + * Creates a new AudienceSimpleFilter instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @static + * @param {google.analytics.admin.v1alpha.IAudienceSimpleFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceSimpleFilter} AudienceSimpleFilter instance + */ + AudienceSimpleFilter.create = function create(properties) { + return new AudienceSimpleFilter(properties); + }; + + /** + * Encodes the specified AudienceSimpleFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSimpleFilter.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @static + * @param {google.analytics.admin.v1alpha.IAudienceSimpleFilter} message AudienceSimpleFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AudienceSimpleFilter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.scope); + if (message.filterExpression != null && Object.hasOwnProperty.call(message, "filterExpression")) + $root.google.analytics.admin.v1alpha.AudienceFilterExpression.encode(message.filterExpression, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AudienceSimpleFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSimpleFilter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @static + * @param {google.analytics.admin.v1alpha.IAudienceSimpleFilter} message AudienceSimpleFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AudienceSimpleFilter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AudienceSimpleFilter message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AudienceSimpleFilter} AudienceSimpleFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AudienceSimpleFilter.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceSimpleFilter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.scope = reader.int32(); + break; + } + case 2: { + message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AudienceSimpleFilter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AudienceSimpleFilter} AudienceSimpleFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AudienceSimpleFilter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AudienceSimpleFilter message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AudienceSimpleFilter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.scope != null && message.hasOwnProperty("scope")) + switch (message.scope) { + default: + return "scope: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.filterExpression != null && message.hasOwnProperty("filterExpression")) { + var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.verify(message.filterExpression); + if (error) + return "filterExpression." + error; + } + return null; + }; + + /** + * Creates an AudienceSimpleFilter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AudienceSimpleFilter} AudienceSimpleFilter + */ + AudienceSimpleFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceSimpleFilter) + return object; + var message = new $root.google.analytics.admin.v1alpha.AudienceSimpleFilter(); + switch (object.scope) { + default: + if (typeof object.scope === "number") { + message.scope = object.scope; + break; + } + break; + case "AUDIENCE_FILTER_SCOPE_UNSPECIFIED": + case 0: + message.scope = 0; + break; + case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT": + case 1: + message.scope = 1; + break; + case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION": + case 2: + message.scope = 2; + break; + case "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS": + case 3: + message.scope = 3; + break; + } + if (object.filterExpression != null) { + if (typeof object.filterExpression !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceSimpleFilter.filterExpression: object expected"); + message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.fromObject(object.filterExpression); + } + return message; + }; + + /** + * Creates a plain object from an AudienceSimpleFilter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @static + * @param {google.analytics.admin.v1alpha.AudienceSimpleFilter} message AudienceSimpleFilter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AudienceSimpleFilter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.scope = options.enums === String ? "AUDIENCE_FILTER_SCOPE_UNSPECIFIED" : 0; + object.filterExpression = null; + } + if (message.scope != null && message.hasOwnProperty("scope")) + object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] === undefined ? message.scope : $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] : message.scope; + if (message.filterExpression != null && message.hasOwnProperty("filterExpression")) + object.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.toObject(message.filterExpression, options); + return object; + }; + + /** + * Converts this AudienceSimpleFilter to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @instance + * @returns {Object.} JSON object + */ + AudienceSimpleFilter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AudienceSimpleFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AudienceSimpleFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceSimpleFilter"; + }; + + return AudienceSimpleFilter; + })(); + + v1alpha.AudienceSequenceFilter = (function() { + + /** + * Properties of an AudienceSequenceFilter. + * @memberof google.analytics.admin.v1alpha + * @interface IAudienceSequenceFilter + * @property {google.analytics.admin.v1alpha.AudienceFilterScope|null} [scope] AudienceSequenceFilter scope + * @property {google.protobuf.IDuration|null} [sequenceMaximumDuration] AudienceSequenceFilter sequenceMaximumDuration + * @property {Array.|null} [sequenceSteps] AudienceSequenceFilter sequenceSteps + */ + + /** + * Constructs a new AudienceSequenceFilter. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AudienceSequenceFilter. + * @implements IAudienceSequenceFilter + * @constructor + * @param {google.analytics.admin.v1alpha.IAudienceSequenceFilter=} [properties] Properties to set + */ + function AudienceSequenceFilter(properties) { + this.sequenceSteps = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46127,78 +49435,106 @@ } /** - * AudienceFilterExpressionList filterExpressions. - * @member {Array.} filterExpressions - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * AudienceSequenceFilter scope. + * @member {google.analytics.admin.v1alpha.AudienceFilterScope} scope + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @instance */ - AudienceFilterExpressionList.prototype.filterExpressions = $util.emptyArray; + AudienceSequenceFilter.prototype.scope = 0; /** - * Creates a new AudienceFilterExpressionList instance using the specified properties. + * AudienceSequenceFilter sequenceMaximumDuration. + * @member {google.protobuf.IDuration|null|undefined} sequenceMaximumDuration + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @instance + */ + AudienceSequenceFilter.prototype.sequenceMaximumDuration = null; + + /** + * AudienceSequenceFilter sequenceSteps. + * @member {Array.} sequenceSteps + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @instance + */ + AudienceSequenceFilter.prototype.sequenceSteps = $util.emptyArray; + + /** + * Creates a new AudienceSequenceFilter instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static - * @param {google.analytics.admin.v1alpha.IAudienceFilterExpressionList=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AudienceFilterExpressionList} AudienceFilterExpressionList instance + * @param {google.analytics.admin.v1alpha.IAudienceSequenceFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter} AudienceSequenceFilter instance */ - AudienceFilterExpressionList.create = function create(properties) { - return new AudienceFilterExpressionList(properties); + AudienceSequenceFilter.create = function create(properties) { + return new AudienceSequenceFilter(properties); }; /** - * Encodes the specified AudienceFilterExpressionList message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify|verify} messages. + * Encodes the specified AudienceSequenceFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static - * @param {google.analytics.admin.v1alpha.IAudienceFilterExpressionList} message AudienceFilterExpressionList message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceSequenceFilter} message AudienceSequenceFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceFilterExpressionList.encode = function encode(message, writer) { + AudienceSequenceFilter.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.filterExpressions != null && message.filterExpressions.length) - for (var i = 0; i < message.filterExpressions.length; ++i) - $root.google.analytics.admin.v1alpha.AudienceFilterExpression.encode(message.filterExpressions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.scope); + if (message.sequenceMaximumDuration != null && Object.hasOwnProperty.call(message, "sequenceMaximumDuration")) + $root.google.protobuf.Duration.encode(message.sequenceMaximumDuration, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sequenceSteps != null && message.sequenceSteps.length) + for (var i = 0; i < message.sequenceSteps.length; ++i) + $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.encode(message.sequenceSteps[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified AudienceFilterExpressionList message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterExpressionList.verify|verify} messages. + * Encodes the specified AudienceSequenceFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static - * @param {google.analytics.admin.v1alpha.IAudienceFilterExpressionList} message AudienceFilterExpressionList message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceSequenceFilter} message AudienceSequenceFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceFilterExpressionList.encodeDelimited = function encodeDelimited(message, writer) { + AudienceSequenceFilter.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AudienceFilterExpressionList message from the specified reader or buffer. + * Decodes an AudienceSequenceFilter message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AudienceFilterExpressionList} AudienceFilterExpressionList + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter} AudienceSequenceFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceFilterExpressionList.decode = function decode(reader, length) { + AudienceSequenceFilter.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceSequenceFilter(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.filterExpressions && message.filterExpressions.length)) - message.filterExpressions = []; - message.filterExpressions.push($root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32())); + message.scope = reader.int32(); + break; + } + case 2: { + message.sequenceMaximumDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 3: { + if (!(message.sequenceSteps && message.sequenceSteps.length)) + message.sequenceSteps = []; + message.sequenceSteps.push($root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.decode(reader, reader.uint32())); break; } default: @@ -46210,140 +49546,505 @@ }; /** - * Decodes an AudienceFilterExpressionList message from the specified reader or buffer, length delimited. + * Decodes an AudienceSequenceFilter message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AudienceFilterExpressionList} AudienceFilterExpressionList + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter} AudienceSequenceFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceFilterExpressionList.decodeDelimited = function decodeDelimited(reader) { + AudienceSequenceFilter.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AudienceFilterExpressionList message. + * Verifies an AudienceSequenceFilter message. * @function verify - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AudienceFilterExpressionList.verify = function verify(message) { + AudienceSequenceFilter.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.filterExpressions != null && message.hasOwnProperty("filterExpressions")) { - if (!Array.isArray(message.filterExpressions)) - return "filterExpressions: array expected"; - for (var i = 0; i < message.filterExpressions.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.verify(message.filterExpressions[i]); + if (message.scope != null && message.hasOwnProperty("scope")) + switch (message.scope) { + default: + return "scope: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.sequenceMaximumDuration != null && message.hasOwnProperty("sequenceMaximumDuration")) { + var error = $root.google.protobuf.Duration.verify(message.sequenceMaximumDuration); + if (error) + return "sequenceMaximumDuration." + error; + } + if (message.sequenceSteps != null && message.hasOwnProperty("sequenceSteps")) { + if (!Array.isArray(message.sequenceSteps)) + return "sequenceSteps: array expected"; + for (var i = 0; i < message.sequenceSteps.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify(message.sequenceSteps[i]); if (error) - return "filterExpressions." + error; + return "sequenceSteps." + error; } } return null; }; /** - * Creates an AudienceFilterExpressionList message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceSequenceFilter message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AudienceFilterExpressionList} AudienceFilterExpressionList + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter} AudienceSequenceFilter */ - AudienceFilterExpressionList.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList) + AudienceSequenceFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceSequenceFilter) return object; - var message = new $root.google.analytics.admin.v1alpha.AudienceFilterExpressionList(); - if (object.filterExpressions) { - if (!Array.isArray(object.filterExpressions)) - throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpressionList.filterExpressions: array expected"); - message.filterExpressions = []; - for (var i = 0; i < object.filterExpressions.length; ++i) { - if (typeof object.filterExpressions[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterExpressionList.filterExpressions: object expected"); - message.filterExpressions[i] = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.fromObject(object.filterExpressions[i]); + var message = new $root.google.analytics.admin.v1alpha.AudienceSequenceFilter(); + switch (object.scope) { + default: + if (typeof object.scope === "number") { + message.scope = object.scope; + break; + } + break; + case "AUDIENCE_FILTER_SCOPE_UNSPECIFIED": + case 0: + message.scope = 0; + break; + case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT": + case 1: + message.scope = 1; + break; + case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION": + case 2: + message.scope = 2; + break; + case "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS": + case 3: + message.scope = 3; + break; + } + if (object.sequenceMaximumDuration != null) { + if (typeof object.sequenceMaximumDuration !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.sequenceMaximumDuration: object expected"); + message.sequenceMaximumDuration = $root.google.protobuf.Duration.fromObject(object.sequenceMaximumDuration); + } + if (object.sequenceSteps) { + if (!Array.isArray(object.sequenceSteps)) + throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.sequenceSteps: array expected"); + message.sequenceSteps = []; + for (var i = 0; i < object.sequenceSteps.length; ++i) { + if (typeof object.sequenceSteps[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.sequenceSteps: object expected"); + message.sequenceSteps[i] = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.fromObject(object.sequenceSteps[i]); } } return message; }; /** - * Creates a plain object from an AudienceFilterExpressionList message. Also converts values to other types if specified. + * Creates a plain object from an AudienceSequenceFilter message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter * @static - * @param {google.analytics.admin.v1alpha.AudienceFilterExpressionList} message AudienceFilterExpressionList + * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter} message AudienceSequenceFilter * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AudienceFilterExpressionList.toObject = function toObject(message, options) { + AudienceSequenceFilter.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.filterExpressions = []; - if (message.filterExpressions && message.filterExpressions.length) { - object.filterExpressions = []; - for (var j = 0; j < message.filterExpressions.length; ++j) - object.filterExpressions[j] = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.toObject(message.filterExpressions[j], options); + object.sequenceSteps = []; + if (options.defaults) { + object.scope = options.enums === String ? "AUDIENCE_FILTER_SCOPE_UNSPECIFIED" : 0; + object.sequenceMaximumDuration = null; + } + if (message.scope != null && message.hasOwnProperty("scope")) + object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] === undefined ? message.scope : $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] : message.scope; + if (message.sequenceMaximumDuration != null && message.hasOwnProperty("sequenceMaximumDuration")) + object.sequenceMaximumDuration = $root.google.protobuf.Duration.toObject(message.sequenceMaximumDuration, options); + if (message.sequenceSteps && message.sequenceSteps.length) { + object.sequenceSteps = []; + for (var j = 0; j < message.sequenceSteps.length; ++j) + object.sequenceSteps[j] = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.toObject(message.sequenceSteps[j], options); } return object; }; - /** - * Converts this AudienceFilterExpressionList to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList - * @instance - * @returns {Object.} JSON object - */ - AudienceFilterExpressionList.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this AudienceSequenceFilter to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @instance + * @returns {Object.} JSON object + */ + AudienceSequenceFilter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AudienceSequenceFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AudienceSequenceFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceSequenceFilter"; + }; + + AudienceSequenceFilter.AudienceSequenceStep = (function() { + + /** + * Properties of an AudienceSequenceStep. + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @interface IAudienceSequenceStep + * @property {google.analytics.admin.v1alpha.AudienceFilterScope|null} [scope] AudienceSequenceStep scope + * @property {boolean|null} [immediatelyFollows] AudienceSequenceStep immediatelyFollows + * @property {google.protobuf.IDuration|null} [constraintDuration] AudienceSequenceStep constraintDuration + * @property {google.analytics.admin.v1alpha.IAudienceFilterExpression|null} [filterExpression] AudienceSequenceStep filterExpression + */ + + /** + * Constructs a new AudienceSequenceStep. + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @classdesc Represents an AudienceSequenceStep. + * @implements IAudienceSequenceStep + * @constructor + * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep=} [properties] Properties to set + */ + function AudienceSequenceStep(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AudienceSequenceStep scope. + * @member {google.analytics.admin.v1alpha.AudienceFilterScope} scope + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @instance + */ + AudienceSequenceStep.prototype.scope = 0; + + /** + * AudienceSequenceStep immediatelyFollows. + * @member {boolean} immediatelyFollows + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @instance + */ + AudienceSequenceStep.prototype.immediatelyFollows = false; + + /** + * AudienceSequenceStep constraintDuration. + * @member {google.protobuf.IDuration|null|undefined} constraintDuration + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @instance + */ + AudienceSequenceStep.prototype.constraintDuration = null; + + /** + * AudienceSequenceStep filterExpression. + * @member {google.analytics.admin.v1alpha.IAudienceFilterExpression|null|undefined} filterExpression + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @instance + */ + AudienceSequenceStep.prototype.filterExpression = null; + + /** + * Creates a new AudienceSequenceStep instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} AudienceSequenceStep instance + */ + AudienceSequenceStep.create = function create(properties) { + return new AudienceSequenceStep(properties); + }; + + /** + * Encodes the specified AudienceSequenceStep message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep} message AudienceSequenceStep message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AudienceSequenceStep.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.scope); + if (message.immediatelyFollows != null && Object.hasOwnProperty.call(message, "immediatelyFollows")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.immediatelyFollows); + if (message.constraintDuration != null && Object.hasOwnProperty.call(message, "constraintDuration")) + $root.google.protobuf.Duration.encode(message.constraintDuration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.filterExpression != null && Object.hasOwnProperty.call(message, "filterExpression")) + $root.google.analytics.admin.v1alpha.AudienceFilterExpression.encode(message.filterExpression, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AudienceSequenceStep message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep} message AudienceSequenceStep message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AudienceSequenceStep.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AudienceSequenceStep message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} AudienceSequenceStep + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AudienceSequenceStep.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.scope = reader.int32(); + break; + } + case 2: { + message.immediatelyFollows = reader.bool(); + break; + } + case 3: { + message.constraintDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 4: { + message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AudienceSequenceStep message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} AudienceSequenceStep + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AudienceSequenceStep.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AudienceSequenceStep message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AudienceSequenceStep.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.scope != null && message.hasOwnProperty("scope")) + switch (message.scope) { + default: + return "scope: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.immediatelyFollows != null && message.hasOwnProperty("immediatelyFollows")) + if (typeof message.immediatelyFollows !== "boolean") + return "immediatelyFollows: boolean expected"; + if (message.constraintDuration != null && message.hasOwnProperty("constraintDuration")) { + var error = $root.google.protobuf.Duration.verify(message.constraintDuration); + if (error) + return "constraintDuration." + error; + } + if (message.filterExpression != null && message.hasOwnProperty("filterExpression")) { + var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.verify(message.filterExpression); + if (error) + return "filterExpression." + error; + } + return null; + }; + + /** + * Creates an AudienceSequenceStep message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} AudienceSequenceStep + */ + AudienceSequenceStep.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) + return object; + var message = new $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep(); + switch (object.scope) { + default: + if (typeof object.scope === "number") { + message.scope = object.scope; + break; + } + break; + case "AUDIENCE_FILTER_SCOPE_UNSPECIFIED": + case 0: + message.scope = 0; + break; + case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT": + case 1: + message.scope = 1; + break; + case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION": + case 2: + message.scope = 2; + break; + case "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS": + case 3: + message.scope = 3; + break; + } + if (object.immediatelyFollows != null) + message.immediatelyFollows = Boolean(object.immediatelyFollows); + if (object.constraintDuration != null) { + if (typeof object.constraintDuration !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.constraintDuration: object expected"); + message.constraintDuration = $root.google.protobuf.Duration.fromObject(object.constraintDuration); + } + if (object.filterExpression != null) { + if (typeof object.filterExpression !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.filterExpression: object expected"); + message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.fromObject(object.filterExpression); + } + return message; + }; + + /** + * Creates a plain object from an AudienceSequenceStep message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} message AudienceSequenceStep + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AudienceSequenceStep.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.scope = options.enums === String ? "AUDIENCE_FILTER_SCOPE_UNSPECIFIED" : 0; + object.immediatelyFollows = false; + object.constraintDuration = null; + object.filterExpression = null; + } + if (message.scope != null && message.hasOwnProperty("scope")) + object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] === undefined ? message.scope : $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] : message.scope; + if (message.immediatelyFollows != null && message.hasOwnProperty("immediatelyFollows")) + object.immediatelyFollows = message.immediatelyFollows; + if (message.constraintDuration != null && message.hasOwnProperty("constraintDuration")) + object.constraintDuration = $root.google.protobuf.Duration.toObject(message.constraintDuration, options); + if (message.filterExpression != null && message.hasOwnProperty("filterExpression")) + object.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.toObject(message.filterExpression, options); + return object; + }; + + /** + * Converts this AudienceSequenceStep to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @instance + * @returns {Object.} JSON object + */ + AudienceSequenceStep.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for AudienceFilterExpressionList - * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AudienceFilterExpressionList - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - AudienceFilterExpressionList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceFilterExpressionList"; - }; + /** + * Gets the default type url for AudienceSequenceStep + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AudienceSequenceStep.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep"; + }; - return AudienceFilterExpressionList; + return AudienceSequenceStep; + })(); + + return AudienceSequenceFilter; })(); - v1alpha.AudienceSimpleFilter = (function() { + v1alpha.AudienceFilterClause = (function() { /** - * Properties of an AudienceSimpleFilter. + * Properties of an AudienceFilterClause. * @memberof google.analytics.admin.v1alpha - * @interface IAudienceSimpleFilter - * @property {google.analytics.admin.v1alpha.AudienceFilterScope|null} [scope] AudienceSimpleFilter scope - * @property {google.analytics.admin.v1alpha.IAudienceFilterExpression|null} [filterExpression] AudienceSimpleFilter filterExpression + * @interface IAudienceFilterClause + * @property {google.analytics.admin.v1alpha.IAudienceSimpleFilter|null} [simpleFilter] AudienceFilterClause simpleFilter + * @property {google.analytics.admin.v1alpha.IAudienceSequenceFilter|null} [sequenceFilter] AudienceFilterClause sequenceFilter + * @property {google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType|null} [clauseType] AudienceFilterClause clauseType */ /** - * Constructs a new AudienceSimpleFilter. + * Constructs a new AudienceFilterClause. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AudienceSimpleFilter. - * @implements IAudienceSimpleFilter + * @classdesc Represents an AudienceFilterClause. + * @implements IAudienceFilterClause * @constructor - * @param {google.analytics.admin.v1alpha.IAudienceSimpleFilter=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAudienceFilterClause=} [properties] Properties to set */ - function AudienceSimpleFilter(properties) { + function AudienceFilterClause(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46351,89 +50052,117 @@ } /** - * AudienceSimpleFilter scope. - * @member {google.analytics.admin.v1alpha.AudienceFilterScope} scope - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * AudienceFilterClause simpleFilter. + * @member {google.analytics.admin.v1alpha.IAudienceSimpleFilter|null|undefined} simpleFilter + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @instance */ - AudienceSimpleFilter.prototype.scope = 0; + AudienceFilterClause.prototype.simpleFilter = null; /** - * AudienceSimpleFilter filterExpression. - * @member {google.analytics.admin.v1alpha.IAudienceFilterExpression|null|undefined} filterExpression - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * AudienceFilterClause sequenceFilter. + * @member {google.analytics.admin.v1alpha.IAudienceSequenceFilter|null|undefined} sequenceFilter + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @instance */ - AudienceSimpleFilter.prototype.filterExpression = null; + AudienceFilterClause.prototype.sequenceFilter = null; /** - * Creates a new AudienceSimpleFilter instance using the specified properties. + * AudienceFilterClause clauseType. + * @member {google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType} clauseType + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @instance + */ + AudienceFilterClause.prototype.clauseType = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * AudienceFilterClause filter. + * @member {"simpleFilter"|"sequenceFilter"|undefined} filter + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @instance + */ + Object.defineProperty(AudienceFilterClause.prototype, "filter", { + get: $util.oneOfGetter($oneOfFields = ["simpleFilter", "sequenceFilter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AudienceFilterClause instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static - * @param {google.analytics.admin.v1alpha.IAudienceSimpleFilter=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AudienceSimpleFilter} AudienceSimpleFilter instance + * @param {google.analytics.admin.v1alpha.IAudienceFilterClause=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceFilterClause} AudienceFilterClause instance */ - AudienceSimpleFilter.create = function create(properties) { - return new AudienceSimpleFilter(properties); + AudienceFilterClause.create = function create(properties) { + return new AudienceFilterClause(properties); }; /** - * Encodes the specified AudienceSimpleFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSimpleFilter.verify|verify} messages. + * Encodes the specified AudienceFilterClause message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterClause.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static - * @param {google.analytics.admin.v1alpha.IAudienceSimpleFilter} message AudienceSimpleFilter message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceFilterClause} message AudienceFilterClause message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceSimpleFilter.encode = function encode(message, writer) { + AudienceFilterClause.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.scope); - if (message.filterExpression != null && Object.hasOwnProperty.call(message, "filterExpression")) - $root.google.analytics.admin.v1alpha.AudienceFilterExpression.encode(message.filterExpression, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.clauseType != null && Object.hasOwnProperty.call(message, "clauseType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.clauseType); + if (message.simpleFilter != null && Object.hasOwnProperty.call(message, "simpleFilter")) + $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.encode(message.simpleFilter, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.sequenceFilter != null && Object.hasOwnProperty.call(message, "sequenceFilter")) + $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.encode(message.sequenceFilter, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified AudienceSimpleFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSimpleFilter.verify|verify} messages. + * Encodes the specified AudienceFilterClause message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterClause.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static - * @param {google.analytics.admin.v1alpha.IAudienceSimpleFilter} message AudienceSimpleFilter message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceFilterClause} message AudienceFilterClause message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceSimpleFilter.encodeDelimited = function encodeDelimited(message, writer) { + AudienceFilterClause.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AudienceSimpleFilter message from the specified reader or buffer. + * Decodes an AudienceFilterClause message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AudienceSimpleFilter} AudienceSimpleFilter + * @returns {google.analytics.admin.v1alpha.AudienceFilterClause} AudienceFilterClause * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceSimpleFilter.decode = function decode(reader, length) { + AudienceFilterClause.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceSimpleFilter(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceFilterClause(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.scope = reader.int32(); + case 2: { + message.simpleFilter = $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.decode(reader, reader.uint32()); break; } - case 2: { - message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); + case 3: { + message.sequenceFilter = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.decode(reader, reader.uint32()); + break; + } + case 1: { + message.clauseType = reader.int32(); break; } default: @@ -46445,168 +50174,202 @@ }; /** - * Decodes an AudienceSimpleFilter message from the specified reader or buffer, length delimited. + * Decodes an AudienceFilterClause message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AudienceSimpleFilter} AudienceSimpleFilter + * @returns {google.analytics.admin.v1alpha.AudienceFilterClause} AudienceFilterClause * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceSimpleFilter.decodeDelimited = function decodeDelimited(reader) { + AudienceFilterClause.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AudienceSimpleFilter message. + * Verifies an AudienceFilterClause message. * @function verify - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AudienceSimpleFilter.verify = function verify(message) { + AudienceFilterClause.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.scope != null && message.hasOwnProperty("scope")) - switch (message.scope) { + var properties = {}; + if (message.simpleFilter != null && message.hasOwnProperty("simpleFilter")) { + properties.filter = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.verify(message.simpleFilter); + if (error) + return "simpleFilter." + error; + } + } + if (message.sequenceFilter != null && message.hasOwnProperty("sequenceFilter")) { + if (properties.filter === 1) + return "filter: multiple values"; + properties.filter = 1; + { + var error = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.verify(message.sequenceFilter); + if (error) + return "sequenceFilter." + error; + } + } + if (message.clauseType != null && message.hasOwnProperty("clauseType")) + switch (message.clauseType) { default: - return "scope: enum value expected"; + return "clauseType: enum value expected"; case 0: case 1: case 2: - case 3: break; } - if (message.filterExpression != null && message.hasOwnProperty("filterExpression")) { - var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.verify(message.filterExpression); - if (error) - return "filterExpression." + error; - } return null; }; /** - * Creates an AudienceSimpleFilter message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceFilterClause message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AudienceSimpleFilter} AudienceSimpleFilter + * @returns {google.analytics.admin.v1alpha.AudienceFilterClause} AudienceFilterClause */ - AudienceSimpleFilter.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AudienceSimpleFilter) + AudienceFilterClause.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceFilterClause) return object; - var message = new $root.google.analytics.admin.v1alpha.AudienceSimpleFilter(); - switch (object.scope) { + var message = new $root.google.analytics.admin.v1alpha.AudienceFilterClause(); + if (object.simpleFilter != null) { + if (typeof object.simpleFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterClause.simpleFilter: object expected"); + message.simpleFilter = $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.fromObject(object.simpleFilter); + } + if (object.sequenceFilter != null) { + if (typeof object.sequenceFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterClause.sequenceFilter: object expected"); + message.sequenceFilter = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.fromObject(object.sequenceFilter); + } + switch (object.clauseType) { default: - if (typeof object.scope === "number") { - message.scope = object.scope; + if (typeof object.clauseType === "number") { + message.clauseType = object.clauseType; break; } break; - case "AUDIENCE_FILTER_SCOPE_UNSPECIFIED": + case "AUDIENCE_CLAUSE_TYPE_UNSPECIFIED": case 0: - message.scope = 0; + message.clauseType = 0; break; - case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT": + case "INCLUDE": case 1: - message.scope = 1; + message.clauseType = 1; break; - case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION": + case "EXCLUDE": case 2: - message.scope = 2; - break; - case "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS": - case 3: - message.scope = 3; + message.clauseType = 2; break; } - if (object.filterExpression != null) { - if (typeof object.filterExpression !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceSimpleFilter.filterExpression: object expected"); - message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.fromObject(object.filterExpression); - } return message; }; /** - * Creates a plain object from an AudienceSimpleFilter message. Also converts values to other types if specified. + * Creates a plain object from an AudienceFilterClause message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static - * @param {google.analytics.admin.v1alpha.AudienceSimpleFilter} message AudienceSimpleFilter + * @param {google.analytics.admin.v1alpha.AudienceFilterClause} message AudienceFilterClause * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AudienceSimpleFilter.toObject = function toObject(message, options) { + AudienceFilterClause.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.scope = options.enums === String ? "AUDIENCE_FILTER_SCOPE_UNSPECIFIED" : 0; - object.filterExpression = null; + if (options.defaults) + object.clauseType = options.enums === String ? "AUDIENCE_CLAUSE_TYPE_UNSPECIFIED" : 0; + if (message.clauseType != null && message.hasOwnProperty("clauseType")) + object.clauseType = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType[message.clauseType] === undefined ? message.clauseType : $root.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType[message.clauseType] : message.clauseType; + if (message.simpleFilter != null && message.hasOwnProperty("simpleFilter")) { + object.simpleFilter = $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.toObject(message.simpleFilter, options); + if (options.oneofs) + object.filter = "simpleFilter"; + } + if (message.sequenceFilter != null && message.hasOwnProperty("sequenceFilter")) { + object.sequenceFilter = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.toObject(message.sequenceFilter, options); + if (options.oneofs) + object.filter = "sequenceFilter"; } - if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] === undefined ? message.scope : $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] : message.scope; - if (message.filterExpression != null && message.hasOwnProperty("filterExpression")) - object.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.toObject(message.filterExpression, options); return object; }; /** - * Converts this AudienceSimpleFilter to JSON. + * Converts this AudienceFilterClause to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @instance * @returns {Object.} JSON object */ - AudienceSimpleFilter.prototype.toJSON = function toJSON() { + AudienceFilterClause.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AudienceSimpleFilter + * Gets the default type url for AudienceFilterClause * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AudienceSimpleFilter + * @memberof google.analytics.admin.v1alpha.AudienceFilterClause * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AudienceSimpleFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AudienceFilterClause.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceSimpleFilter"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceFilterClause"; }; - return AudienceSimpleFilter; + /** + * AudienceClauseType enum. + * @name google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType + * @enum {number} + * @property {number} AUDIENCE_CLAUSE_TYPE_UNSPECIFIED=0 AUDIENCE_CLAUSE_TYPE_UNSPECIFIED value + * @property {number} INCLUDE=1 INCLUDE value + * @property {number} EXCLUDE=2 EXCLUDE value + */ + AudienceFilterClause.AudienceClauseType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "AUDIENCE_CLAUSE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "INCLUDE"] = 1; + values[valuesById[2] = "EXCLUDE"] = 2; + return values; + })(); + + return AudienceFilterClause; })(); - v1alpha.AudienceSequenceFilter = (function() { + v1alpha.AudienceEventTrigger = (function() { /** - * Properties of an AudienceSequenceFilter. + * Properties of an AudienceEventTrigger. * @memberof google.analytics.admin.v1alpha - * @interface IAudienceSequenceFilter - * @property {google.analytics.admin.v1alpha.AudienceFilterScope|null} [scope] AudienceSequenceFilter scope - * @property {google.protobuf.IDuration|null} [sequenceMaximumDuration] AudienceSequenceFilter sequenceMaximumDuration - * @property {Array.|null} [sequenceSteps] AudienceSequenceFilter sequenceSteps + * @interface IAudienceEventTrigger + * @property {string|null} [eventName] AudienceEventTrigger eventName + * @property {google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition|null} [logCondition] AudienceEventTrigger logCondition */ /** - * Constructs a new AudienceSequenceFilter. + * Constructs a new AudienceEventTrigger. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AudienceSequenceFilter. - * @implements IAudienceSequenceFilter + * @classdesc Represents an AudienceEventTrigger. + * @implements IAudienceEventTrigger * @constructor - * @param {google.analytics.admin.v1alpha.IAudienceSequenceFilter=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAudienceEventTrigger=} [properties] Properties to set */ - function AudienceSequenceFilter(properties) { - this.sequenceSteps = []; + function AudienceEventTrigger(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -46614,106 +50377,89 @@ } /** - * AudienceSequenceFilter scope. - * @member {google.analytics.admin.v1alpha.AudienceFilterScope} scope - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter - * @instance - */ - AudienceSequenceFilter.prototype.scope = 0; - - /** - * AudienceSequenceFilter sequenceMaximumDuration. - * @member {google.protobuf.IDuration|null|undefined} sequenceMaximumDuration - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * AudienceEventTrigger eventName. + * @member {string} eventName + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @instance */ - AudienceSequenceFilter.prototype.sequenceMaximumDuration = null; + AudienceEventTrigger.prototype.eventName = ""; /** - * AudienceSequenceFilter sequenceSteps. - * @member {Array.} sequenceSteps - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * AudienceEventTrigger logCondition. + * @member {google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition} logCondition + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @instance */ - AudienceSequenceFilter.prototype.sequenceSteps = $util.emptyArray; + AudienceEventTrigger.prototype.logCondition = 0; /** - * Creates a new AudienceSequenceFilter instance using the specified properties. + * Creates a new AudienceEventTrigger instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static - * @param {google.analytics.admin.v1alpha.IAudienceSequenceFilter=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter} AudienceSequenceFilter instance + * @param {google.analytics.admin.v1alpha.IAudienceEventTrigger=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AudienceEventTrigger} AudienceEventTrigger instance */ - AudienceSequenceFilter.create = function create(properties) { - return new AudienceSequenceFilter(properties); + AudienceEventTrigger.create = function create(properties) { + return new AudienceEventTrigger(properties); }; /** - * Encodes the specified AudienceSequenceFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.verify|verify} messages. + * Encodes the specified AudienceEventTrigger message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventTrigger.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static - * @param {google.analytics.admin.v1alpha.IAudienceSequenceFilter} message AudienceSequenceFilter message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceEventTrigger} message AudienceEventTrigger message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceSequenceFilter.encode = function encode(message, writer) { + AudienceEventTrigger.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.scope); - if (message.sequenceMaximumDuration != null && Object.hasOwnProperty.call(message, "sequenceMaximumDuration")) - $root.google.protobuf.Duration.encode(message.sequenceMaximumDuration, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sequenceSteps != null && message.sequenceSteps.length) - for (var i = 0; i < message.sequenceSteps.length; ++i) - $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.encode(message.sequenceSteps[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.eventName != null && Object.hasOwnProperty.call(message, "eventName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.eventName); + if (message.logCondition != null && Object.hasOwnProperty.call(message, "logCondition")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.logCondition); return writer; }; /** - * Encodes the specified AudienceSequenceFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.verify|verify} messages. + * Encodes the specified AudienceEventTrigger message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventTrigger.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static - * @param {google.analytics.admin.v1alpha.IAudienceSequenceFilter} message AudienceSequenceFilter message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudienceEventTrigger} message AudienceEventTrigger message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceSequenceFilter.encodeDelimited = function encodeDelimited(message, writer) { + AudienceEventTrigger.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AudienceSequenceFilter message from the specified reader or buffer. + * Decodes an AudienceEventTrigger message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter} AudienceSequenceFilter + * @returns {google.analytics.admin.v1alpha.AudienceEventTrigger} AudienceEventTrigger * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceSequenceFilter.decode = function decode(reader, length) { + AudienceEventTrigger.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceSequenceFilter(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceEventTrigger(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.scope = reader.int32(); + message.eventName = reader.string(); break; } case 2: { - message.sequenceMaximumDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 3: { - if (!(message.sequenceSteps && message.sequenceSteps.length)) - message.sequenceSteps = []; - message.sequenceSteps.push($root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.decode(reader, reader.uint32())); + message.logCondition = reader.int32(); break; } default: @@ -46725,505 +50471,179 @@ }; /** - * Decodes an AudienceSequenceFilter message from the specified reader or buffer, length delimited. + * Decodes an AudienceEventTrigger message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter} AudienceSequenceFilter + * @returns {google.analytics.admin.v1alpha.AudienceEventTrigger} AudienceEventTrigger * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceSequenceFilter.decodeDelimited = function decodeDelimited(reader) { + AudienceEventTrigger.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AudienceSequenceFilter message. + * Verifies an AudienceEventTrigger message. * @function verify - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AudienceSequenceFilter.verify = function verify(message) { + AudienceEventTrigger.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.scope != null && message.hasOwnProperty("scope")) - switch (message.scope) { + if (message.eventName != null && message.hasOwnProperty("eventName")) + if (!$util.isString(message.eventName)) + return "eventName: string expected"; + if (message.logCondition != null && message.hasOwnProperty("logCondition")) + switch (message.logCondition) { default: - return "scope: enum value expected"; + return "logCondition: enum value expected"; case 0: case 1: case 2: - case 3: break; } - if (message.sequenceMaximumDuration != null && message.hasOwnProperty("sequenceMaximumDuration")) { - var error = $root.google.protobuf.Duration.verify(message.sequenceMaximumDuration); - if (error) - return "sequenceMaximumDuration." + error; - } - if (message.sequenceSteps != null && message.hasOwnProperty("sequenceSteps")) { - if (!Array.isArray(message.sequenceSteps)) - return "sequenceSteps: array expected"; - for (var i = 0; i < message.sequenceSteps.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify(message.sequenceSteps[i]); - if (error) - return "sequenceSteps." + error; - } - } return null; }; /** - * Creates an AudienceSequenceFilter message from a plain object. Also converts values to their respective internal types. + * Creates an AudienceEventTrigger message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter} AudienceSequenceFilter + * @returns {google.analytics.admin.v1alpha.AudienceEventTrigger} AudienceEventTrigger */ - AudienceSequenceFilter.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AudienceSequenceFilter) + AudienceEventTrigger.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AudienceEventTrigger) return object; - var message = new $root.google.analytics.admin.v1alpha.AudienceSequenceFilter(); - switch (object.scope) { + var message = new $root.google.analytics.admin.v1alpha.AudienceEventTrigger(); + if (object.eventName != null) + message.eventName = String(object.eventName); + switch (object.logCondition) { default: - if (typeof object.scope === "number") { - message.scope = object.scope; + if (typeof object.logCondition === "number") { + message.logCondition = object.logCondition; break; } break; - case "AUDIENCE_FILTER_SCOPE_UNSPECIFIED": + case "LOG_CONDITION_UNSPECIFIED": case 0: - message.scope = 0; + message.logCondition = 0; break; - case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT": + case "AUDIENCE_JOINED": case 1: - message.scope = 1; - break; - case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION": - case 2: - message.scope = 2; + message.logCondition = 1; break; - case "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS": - case 3: - message.scope = 3; + case "AUDIENCE_MEMBERSHIP_RENEWED": + case 2: + message.logCondition = 2; break; } - if (object.sequenceMaximumDuration != null) { - if (typeof object.sequenceMaximumDuration !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.sequenceMaximumDuration: object expected"); - message.sequenceMaximumDuration = $root.google.protobuf.Duration.fromObject(object.sequenceMaximumDuration); - } - if (object.sequenceSteps) { - if (!Array.isArray(object.sequenceSteps)) - throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.sequenceSteps: array expected"); - message.sequenceSteps = []; - for (var i = 0; i < object.sequenceSteps.length; ++i) { - if (typeof object.sequenceSteps[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.sequenceSteps: object expected"); - message.sequenceSteps[i] = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.fromObject(object.sequenceSteps[i]); - } - } return message; }; /** - * Creates a plain object from an AudienceSequenceFilter message. Also converts values to other types if specified. + * Creates a plain object from an AudienceEventTrigger message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static - * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter} message AudienceSequenceFilter + * @param {google.analytics.admin.v1alpha.AudienceEventTrigger} message AudienceEventTrigger * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AudienceSequenceFilter.toObject = function toObject(message, options) { + AudienceEventTrigger.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.sequenceSteps = []; if (options.defaults) { - object.scope = options.enums === String ? "AUDIENCE_FILTER_SCOPE_UNSPECIFIED" : 0; - object.sequenceMaximumDuration = null; - } - if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] === undefined ? message.scope : $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] : message.scope; - if (message.sequenceMaximumDuration != null && message.hasOwnProperty("sequenceMaximumDuration")) - object.sequenceMaximumDuration = $root.google.protobuf.Duration.toObject(message.sequenceMaximumDuration, options); - if (message.sequenceSteps && message.sequenceSteps.length) { - object.sequenceSteps = []; - for (var j = 0; j < message.sequenceSteps.length; ++j) - object.sequenceSteps[j] = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.toObject(message.sequenceSteps[j], options); + object.eventName = ""; + object.logCondition = options.enums === String ? "LOG_CONDITION_UNSPECIFIED" : 0; } + if (message.eventName != null && message.hasOwnProperty("eventName")) + object.eventName = message.eventName; + if (message.logCondition != null && message.hasOwnProperty("logCondition")) + object.logCondition = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition[message.logCondition] === undefined ? message.logCondition : $root.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition[message.logCondition] : message.logCondition; return object; }; /** - * Converts this AudienceSequenceFilter to JSON. + * Converts this AudienceEventTrigger to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @instance * @returns {Object.} JSON object */ - AudienceSequenceFilter.prototype.toJSON = function toJSON() { + AudienceEventTrigger.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AudienceSequenceFilter + * Gets the default type url for AudienceEventTrigger * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter + * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AudienceSequenceFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AudienceEventTrigger.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceSequenceFilter"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceEventTrigger"; }; - AudienceSequenceFilter.AudienceSequenceStep = (function() { - - /** - * Properties of an AudienceSequenceStep. - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter - * @interface IAudienceSequenceStep - * @property {google.analytics.admin.v1alpha.AudienceFilterScope|null} [scope] AudienceSequenceStep scope - * @property {boolean|null} [immediatelyFollows] AudienceSequenceStep immediatelyFollows - * @property {google.protobuf.IDuration|null} [constraintDuration] AudienceSequenceStep constraintDuration - * @property {google.analytics.admin.v1alpha.IAudienceFilterExpression|null} [filterExpression] AudienceSequenceStep filterExpression - */ - - /** - * Constructs a new AudienceSequenceStep. - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter - * @classdesc Represents an AudienceSequenceStep. - * @implements IAudienceSequenceStep - * @constructor - * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep=} [properties] Properties to set - */ - function AudienceSequenceStep(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AudienceSequenceStep scope. - * @member {google.analytics.admin.v1alpha.AudienceFilterScope} scope - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @instance - */ - AudienceSequenceStep.prototype.scope = 0; - - /** - * AudienceSequenceStep immediatelyFollows. - * @member {boolean} immediatelyFollows - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @instance - */ - AudienceSequenceStep.prototype.immediatelyFollows = false; - - /** - * AudienceSequenceStep constraintDuration. - * @member {google.protobuf.IDuration|null|undefined} constraintDuration - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @instance - */ - AudienceSequenceStep.prototype.constraintDuration = null; - - /** - * AudienceSequenceStep filterExpression. - * @member {google.analytics.admin.v1alpha.IAudienceFilterExpression|null|undefined} filterExpression - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @instance - */ - AudienceSequenceStep.prototype.filterExpression = null; - - /** - * Creates a new AudienceSequenceStep instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @static - * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} AudienceSequenceStep instance - */ - AudienceSequenceStep.create = function create(properties) { - return new AudienceSequenceStep(properties); - }; - - /** - * Encodes the specified AudienceSequenceStep message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @static - * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep} message AudienceSequenceStep message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AudienceSequenceStep.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.scope); - if (message.immediatelyFollows != null && Object.hasOwnProperty.call(message, "immediatelyFollows")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.immediatelyFollows); - if (message.constraintDuration != null && Object.hasOwnProperty.call(message, "constraintDuration")) - $root.google.protobuf.Duration.encode(message.constraintDuration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.filterExpression != null && Object.hasOwnProperty.call(message, "filterExpression")) - $root.google.analytics.admin.v1alpha.AudienceFilterExpression.encode(message.filterExpression, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified AudienceSequenceStep message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @static - * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.IAudienceSequenceStep} message AudienceSequenceStep message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AudienceSequenceStep.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an AudienceSequenceStep message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} AudienceSequenceStep - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AudienceSequenceStep.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.scope = reader.int32(); - break; - } - case 2: { - message.immediatelyFollows = reader.bool(); - break; - } - case 3: { - message.constraintDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 4: { - message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an AudienceSequenceStep message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} AudienceSequenceStep - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AudienceSequenceStep.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an AudienceSequenceStep message. - * @function verify - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AudienceSequenceStep.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.scope != null && message.hasOwnProperty("scope")) - switch (message.scope) { - default: - return "scope: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.immediatelyFollows != null && message.hasOwnProperty("immediatelyFollows")) - if (typeof message.immediatelyFollows !== "boolean") - return "immediatelyFollows: boolean expected"; - if (message.constraintDuration != null && message.hasOwnProperty("constraintDuration")) { - var error = $root.google.protobuf.Duration.verify(message.constraintDuration); - if (error) - return "constraintDuration." + error; - } - if (message.filterExpression != null && message.hasOwnProperty("filterExpression")) { - var error = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.verify(message.filterExpression); - if (error) - return "filterExpression." + error; - } - return null; - }; - - /** - * Creates an AudienceSequenceStep message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} AudienceSequenceStep - */ - AudienceSequenceStep.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) - return object; - var message = new $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep(); - switch (object.scope) { - default: - if (typeof object.scope === "number") { - message.scope = object.scope; - break; - } - break; - case "AUDIENCE_FILTER_SCOPE_UNSPECIFIED": - case 0: - message.scope = 0; - break; - case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT": - case 1: - message.scope = 1; - break; - case "AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION": - case 2: - message.scope = 2; - break; - case "AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS": - case 3: - message.scope = 3; - break; - } - if (object.immediatelyFollows != null) - message.immediatelyFollows = Boolean(object.immediatelyFollows); - if (object.constraintDuration != null) { - if (typeof object.constraintDuration !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.constraintDuration: object expected"); - message.constraintDuration = $root.google.protobuf.Duration.fromObject(object.constraintDuration); - } - if (object.filterExpression != null) { - if (typeof object.filterExpression !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.filterExpression: object expected"); - message.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.fromObject(object.filterExpression); - } - return message; - }; - - /** - * Creates a plain object from an AudienceSequenceStep message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @static - * @param {google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} message AudienceSequenceStep - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AudienceSequenceStep.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.scope = options.enums === String ? "AUDIENCE_FILTER_SCOPE_UNSPECIFIED" : 0; - object.immediatelyFollows = false; - object.constraintDuration = null; - object.filterExpression = null; - } - if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] === undefined ? message.scope : $root.google.analytics.admin.v1alpha.AudienceFilterScope[message.scope] : message.scope; - if (message.immediatelyFollows != null && message.hasOwnProperty("immediatelyFollows")) - object.immediatelyFollows = message.immediatelyFollows; - if (message.constraintDuration != null && message.hasOwnProperty("constraintDuration")) - object.constraintDuration = $root.google.protobuf.Duration.toObject(message.constraintDuration, options); - if (message.filterExpression != null && message.hasOwnProperty("filterExpression")) - object.filterExpression = $root.google.analytics.admin.v1alpha.AudienceFilterExpression.toObject(message.filterExpression, options); - return object; - }; - - /** - * Converts this AudienceSequenceStep to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @instance - * @returns {Object.} JSON object - */ - AudienceSequenceStep.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for AudienceSequenceStep - * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - AudienceSequenceStep.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep"; - }; - - return AudienceSequenceStep; + /** + * LogCondition enum. + * @name google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition + * @enum {number} + * @property {number} LOG_CONDITION_UNSPECIFIED=0 LOG_CONDITION_UNSPECIFIED value + * @property {number} AUDIENCE_JOINED=1 AUDIENCE_JOINED value + * @property {number} AUDIENCE_MEMBERSHIP_RENEWED=2 AUDIENCE_MEMBERSHIP_RENEWED value + */ + AudienceEventTrigger.LogCondition = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LOG_CONDITION_UNSPECIFIED"] = 0; + values[valuesById[1] = "AUDIENCE_JOINED"] = 1; + values[valuesById[2] = "AUDIENCE_MEMBERSHIP_RENEWED"] = 2; + return values; })(); - return AudienceSequenceFilter; + return AudienceEventTrigger; })(); - v1alpha.AudienceFilterClause = (function() { + v1alpha.Audience = (function() { /** - * Properties of an AudienceFilterClause. + * Properties of an Audience. * @memberof google.analytics.admin.v1alpha - * @interface IAudienceFilterClause - * @property {google.analytics.admin.v1alpha.IAudienceSimpleFilter|null} [simpleFilter] AudienceFilterClause simpleFilter - * @property {google.analytics.admin.v1alpha.IAudienceSequenceFilter|null} [sequenceFilter] AudienceFilterClause sequenceFilter - * @property {google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType|null} [clauseType] AudienceFilterClause clauseType + * @interface IAudience + * @property {string|null} [name] Audience name + * @property {string|null} [displayName] Audience displayName + * @property {string|null} [description] Audience description + * @property {number|null} [membershipDurationDays] Audience membershipDurationDays + * @property {boolean|null} [adsPersonalizationEnabled] Audience adsPersonalizationEnabled + * @property {google.analytics.admin.v1alpha.IAudienceEventTrigger|null} [eventTrigger] Audience eventTrigger + * @property {google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode|null} [exclusionDurationMode] Audience exclusionDurationMode + * @property {Array.|null} [filterClauses] Audience filterClauses */ /** - * Constructs a new AudienceFilterClause. + * Constructs a new Audience. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AudienceFilterClause. - * @implements IAudienceFilterClause + * @classdesc Represents an Audience. + * @implements IAudience * @constructor - * @param {google.analytics.admin.v1alpha.IAudienceFilterClause=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IAudience=} [properties] Properties to set */ - function AudienceFilterClause(properties) { + function Audience(properties) { + this.filterClauses = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47231,117 +50651,176 @@ } /** - * AudienceFilterClause simpleFilter. - * @member {google.analytics.admin.v1alpha.IAudienceSimpleFilter|null|undefined} simpleFilter - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * Audience name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.Audience * @instance */ - AudienceFilterClause.prototype.simpleFilter = null; + Audience.prototype.name = ""; /** - * AudienceFilterClause sequenceFilter. - * @member {google.analytics.admin.v1alpha.IAudienceSequenceFilter|null|undefined} sequenceFilter - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * Audience displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.Audience * @instance */ - AudienceFilterClause.prototype.sequenceFilter = null; + Audience.prototype.displayName = ""; /** - * AudienceFilterClause clauseType. - * @member {google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType} clauseType - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * Audience description. + * @member {string} description + * @memberof google.analytics.admin.v1alpha.Audience * @instance */ - AudienceFilterClause.prototype.clauseType = 0; + Audience.prototype.description = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Audience membershipDurationDays. + * @member {number} membershipDurationDays + * @memberof google.analytics.admin.v1alpha.Audience + * @instance + */ + Audience.prototype.membershipDurationDays = 0; /** - * AudienceFilterClause filter. - * @member {"simpleFilter"|"sequenceFilter"|undefined} filter - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * Audience adsPersonalizationEnabled. + * @member {boolean} adsPersonalizationEnabled + * @memberof google.analytics.admin.v1alpha.Audience * @instance */ - Object.defineProperty(AudienceFilterClause.prototype, "filter", { - get: $util.oneOfGetter($oneOfFields = ["simpleFilter", "sequenceFilter"]), - set: $util.oneOfSetter($oneOfFields) - }); + Audience.prototype.adsPersonalizationEnabled = false; /** - * Creates a new AudienceFilterClause instance using the specified properties. + * Audience eventTrigger. + * @member {google.analytics.admin.v1alpha.IAudienceEventTrigger|null|undefined} eventTrigger + * @memberof google.analytics.admin.v1alpha.Audience + * @instance + */ + Audience.prototype.eventTrigger = null; + + /** + * Audience exclusionDurationMode. + * @member {google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode} exclusionDurationMode + * @memberof google.analytics.admin.v1alpha.Audience + * @instance + */ + Audience.prototype.exclusionDurationMode = 0; + + /** + * Audience filterClauses. + * @member {Array.} filterClauses + * @memberof google.analytics.admin.v1alpha.Audience + * @instance + */ + Audience.prototype.filterClauses = $util.emptyArray; + + /** + * Creates a new Audience instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @memberof google.analytics.admin.v1alpha.Audience * @static - * @param {google.analytics.admin.v1alpha.IAudienceFilterClause=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AudienceFilterClause} AudienceFilterClause instance + * @param {google.analytics.admin.v1alpha.IAudience=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.Audience} Audience instance */ - AudienceFilterClause.create = function create(properties) { - return new AudienceFilterClause(properties); + Audience.create = function create(properties) { + return new Audience(properties); }; /** - * Encodes the specified AudienceFilterClause message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterClause.verify|verify} messages. + * Encodes the specified Audience message. Does not implicitly {@link google.analytics.admin.v1alpha.Audience.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @memberof google.analytics.admin.v1alpha.Audience * @static - * @param {google.analytics.admin.v1alpha.IAudienceFilterClause} message AudienceFilterClause message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudience} message Audience message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceFilterClause.encode = function encode(message, writer) { + Audience.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.clauseType != null && Object.hasOwnProperty.call(message, "clauseType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.clauseType); - if (message.simpleFilter != null && Object.hasOwnProperty.call(message, "simpleFilter")) - $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.encode(message.simpleFilter, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sequenceFilter != null && Object.hasOwnProperty.call(message, "sequenceFilter")) - $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.encode(message.sequenceFilter, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.membershipDurationDays != null && Object.hasOwnProperty.call(message, "membershipDurationDays")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.membershipDurationDays); + if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.adsPersonalizationEnabled); + if (message.eventTrigger != null && Object.hasOwnProperty.call(message, "eventTrigger")) + $root.google.analytics.admin.v1alpha.AudienceEventTrigger.encode(message.eventTrigger, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.exclusionDurationMode != null && Object.hasOwnProperty.call(message, "exclusionDurationMode")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.exclusionDurationMode); + if (message.filterClauses != null && message.filterClauses.length) + for (var i = 0; i < message.filterClauses.length; ++i) + $root.google.analytics.admin.v1alpha.AudienceFilterClause.encode(message.filterClauses[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified AudienceFilterClause message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceFilterClause.verify|verify} messages. + * Encodes the specified Audience message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Audience.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @memberof google.analytics.admin.v1alpha.Audience * @static - * @param {google.analytics.admin.v1alpha.IAudienceFilterClause} message AudienceFilterClause message or plain object to encode + * @param {google.analytics.admin.v1alpha.IAudience} message Audience message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceFilterClause.encodeDelimited = function encodeDelimited(message, writer) { + Audience.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AudienceFilterClause message from the specified reader or buffer. + * Decodes an Audience message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @memberof google.analytics.admin.v1alpha.Audience * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AudienceFilterClause} AudienceFilterClause + * @returns {google.analytics.admin.v1alpha.Audience} Audience * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceFilterClause.decode = function decode(reader, length) { + Audience.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceFilterClause(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.Audience(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } case 2: { - message.simpleFilter = $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.decode(reader, reader.uint32()); + message.displayName = reader.string(); break; } case 3: { - message.sequenceFilter = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.decode(reader, reader.uint32()); + message.description = reader.string(); break; } - case 1: { - message.clauseType = reader.int32(); + case 4: { + message.membershipDurationDays = reader.int32(); + break; + } + case 5: { + message.adsPersonalizationEnabled = reader.bool(); + break; + } + case 6: { + message.eventTrigger = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.decode(reader, reader.uint32()); + break; + } + case 7: { + message.exclusionDurationMode = reader.int32(); + break; + } + case 8: { + if (!(message.filterClauses && message.filterClauses.length)) + message.filterClauses = []; + message.filterClauses.push($root.google.analytics.admin.v1alpha.AudienceFilterClause.decode(reader, reader.uint32())); break; } default: @@ -47353,202 +50832,244 @@ }; /** - * Decodes an AudienceFilterClause message from the specified reader or buffer, length delimited. + * Decodes an Audience message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @memberof google.analytics.admin.v1alpha.Audience * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AudienceFilterClause} AudienceFilterClause + * @returns {google.analytics.admin.v1alpha.Audience} Audience * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceFilterClause.decodeDelimited = function decodeDelimited(reader) { + Audience.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AudienceFilterClause message. + * Verifies an Audience message. * @function verify - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @memberof google.analytics.admin.v1alpha.Audience * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AudienceFilterClause.verify = function verify(message) { + Audience.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.simpleFilter != null && message.hasOwnProperty("simpleFilter")) { - properties.filter = 1; - { - var error = $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.verify(message.simpleFilter); - if (error) - return "simpleFilter." + error; - } - } - if (message.sequenceFilter != null && message.hasOwnProperty("sequenceFilter")) { - if (properties.filter === 1) - return "filter: multiple values"; - properties.filter = 1; - { - var error = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.verify(message.sequenceFilter); - if (error) - return "sequenceFilter." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.membershipDurationDays != null && message.hasOwnProperty("membershipDurationDays")) + if (!$util.isInteger(message.membershipDurationDays)) + return "membershipDurationDays: integer expected"; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) + if (typeof message.adsPersonalizationEnabled !== "boolean") + return "adsPersonalizationEnabled: boolean expected"; + if (message.eventTrigger != null && message.hasOwnProperty("eventTrigger")) { + var error = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.verify(message.eventTrigger); + if (error) + return "eventTrigger." + error; } - if (message.clauseType != null && message.hasOwnProperty("clauseType")) - switch (message.clauseType) { + if (message.exclusionDurationMode != null && message.hasOwnProperty("exclusionDurationMode")) + switch (message.exclusionDurationMode) { default: - return "clauseType: enum value expected"; + return "exclusionDurationMode: enum value expected"; case 0: case 1: case 2: break; } + if (message.filterClauses != null && message.hasOwnProperty("filterClauses")) { + if (!Array.isArray(message.filterClauses)) + return "filterClauses: array expected"; + for (var i = 0; i < message.filterClauses.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.AudienceFilterClause.verify(message.filterClauses[i]); + if (error) + return "filterClauses." + error; + } + } return null; }; /** - * Creates an AudienceFilterClause message from a plain object. Also converts values to their respective internal types. + * Creates an Audience message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @memberof google.analytics.admin.v1alpha.Audience * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AudienceFilterClause} AudienceFilterClause + * @returns {google.analytics.admin.v1alpha.Audience} Audience */ - AudienceFilterClause.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AudienceFilterClause) + Audience.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.Audience) return object; - var message = new $root.google.analytics.admin.v1alpha.AudienceFilterClause(); - if (object.simpleFilter != null) { - if (typeof object.simpleFilter !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterClause.simpleFilter: object expected"); - message.simpleFilter = $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.fromObject(object.simpleFilter); - } - if (object.sequenceFilter != null) { - if (typeof object.sequenceFilter !== "object") - throw TypeError(".google.analytics.admin.v1alpha.AudienceFilterClause.sequenceFilter: object expected"); - message.sequenceFilter = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.fromObject(object.sequenceFilter); + var message = new $root.google.analytics.admin.v1alpha.Audience(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + if (object.membershipDurationDays != null) + message.membershipDurationDays = object.membershipDurationDays | 0; + if (object.adsPersonalizationEnabled != null) + message.adsPersonalizationEnabled = Boolean(object.adsPersonalizationEnabled); + if (object.eventTrigger != null) { + if (typeof object.eventTrigger !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Audience.eventTrigger: object expected"); + message.eventTrigger = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.fromObject(object.eventTrigger); } - switch (object.clauseType) { + switch (object.exclusionDurationMode) { default: - if (typeof object.clauseType === "number") { - message.clauseType = object.clauseType; + if (typeof object.exclusionDurationMode === "number") { + message.exclusionDurationMode = object.exclusionDurationMode; break; } break; - case "AUDIENCE_CLAUSE_TYPE_UNSPECIFIED": + case "AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED": case 0: - message.clauseType = 0; + message.exclusionDurationMode = 0; break; - case "INCLUDE": + case "EXCLUDE_TEMPORARILY": case 1: - message.clauseType = 1; + message.exclusionDurationMode = 1; break; - case "EXCLUDE": + case "EXCLUDE_PERMANENTLY": case 2: - message.clauseType = 2; + message.exclusionDurationMode = 2; break; } + if (object.filterClauses) { + if (!Array.isArray(object.filterClauses)) + throw TypeError(".google.analytics.admin.v1alpha.Audience.filterClauses: array expected"); + message.filterClauses = []; + for (var i = 0; i < object.filterClauses.length; ++i) { + if (typeof object.filterClauses[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.Audience.filterClauses: object expected"); + message.filterClauses[i] = $root.google.analytics.admin.v1alpha.AudienceFilterClause.fromObject(object.filterClauses[i]); + } + } return message; }; /** - * Creates a plain object from an AudienceFilterClause message. Also converts values to other types if specified. + * Creates a plain object from an Audience message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @memberof google.analytics.admin.v1alpha.Audience * @static - * @param {google.analytics.admin.v1alpha.AudienceFilterClause} message AudienceFilterClause + * @param {google.analytics.admin.v1alpha.Audience} message Audience * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AudienceFilterClause.toObject = function toObject(message, options) { + Audience.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.clauseType = options.enums === String ? "AUDIENCE_CLAUSE_TYPE_UNSPECIFIED" : 0; - if (message.clauseType != null && message.hasOwnProperty("clauseType")) - object.clauseType = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType[message.clauseType] === undefined ? message.clauseType : $root.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType[message.clauseType] : message.clauseType; - if (message.simpleFilter != null && message.hasOwnProperty("simpleFilter")) { - object.simpleFilter = $root.google.analytics.admin.v1alpha.AudienceSimpleFilter.toObject(message.simpleFilter, options); - if (options.oneofs) - object.filter = "simpleFilter"; + if (options.arrays || options.defaults) + object.filterClauses = []; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.description = ""; + object.membershipDurationDays = 0; + object.adsPersonalizationEnabled = false; + object.eventTrigger = null; + object.exclusionDurationMode = options.enums === String ? "AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED" : 0; } - if (message.sequenceFilter != null && message.hasOwnProperty("sequenceFilter")) { - object.sequenceFilter = $root.google.analytics.admin.v1alpha.AudienceSequenceFilter.toObject(message.sequenceFilter, options); - if (options.oneofs) - object.filter = "sequenceFilter"; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.membershipDurationDays != null && message.hasOwnProperty("membershipDurationDays")) + object.membershipDurationDays = message.membershipDurationDays; + if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) + object.adsPersonalizationEnabled = message.adsPersonalizationEnabled; + if (message.eventTrigger != null && message.hasOwnProperty("eventTrigger")) + object.eventTrigger = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.toObject(message.eventTrigger, options); + if (message.exclusionDurationMode != null && message.hasOwnProperty("exclusionDurationMode")) + object.exclusionDurationMode = options.enums === String ? $root.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode[message.exclusionDurationMode] === undefined ? message.exclusionDurationMode : $root.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode[message.exclusionDurationMode] : message.exclusionDurationMode; + if (message.filterClauses && message.filterClauses.length) { + object.filterClauses = []; + for (var j = 0; j < message.filterClauses.length; ++j) + object.filterClauses[j] = $root.google.analytics.admin.v1alpha.AudienceFilterClause.toObject(message.filterClauses[j], options); } return object; }; /** - * Converts this AudienceFilterClause to JSON. + * Converts this Audience to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @memberof google.analytics.admin.v1alpha.Audience * @instance * @returns {Object.} JSON object */ - AudienceFilterClause.prototype.toJSON = function toJSON() { + Audience.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AudienceFilterClause + * Gets the default type url for Audience * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AudienceFilterClause + * @memberof google.analytics.admin.v1alpha.Audience * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AudienceFilterClause.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Audience.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceFilterClause"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.Audience"; }; /** - * AudienceClauseType enum. - * @name google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType + * AudienceExclusionDurationMode enum. + * @name google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode * @enum {number} - * @property {number} AUDIENCE_CLAUSE_TYPE_UNSPECIFIED=0 AUDIENCE_CLAUSE_TYPE_UNSPECIFIED value - * @property {number} INCLUDE=1 INCLUDE value - * @property {number} EXCLUDE=2 EXCLUDE value + * @property {number} AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED=0 AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED value + * @property {number} EXCLUDE_TEMPORARILY=1 EXCLUDE_TEMPORARILY value + * @property {number} EXCLUDE_PERMANENTLY=2 EXCLUDE_PERMANENTLY value */ - AudienceFilterClause.AudienceClauseType = (function() { + Audience.AudienceExclusionDurationMode = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AUDIENCE_CLAUSE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "INCLUDE"] = 1; - values[valuesById[2] = "EXCLUDE"] = 2; + values[valuesById[0] = "AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EXCLUDE_TEMPORARILY"] = 1; + values[valuesById[2] = "EXCLUDE_PERMANENTLY"] = 2; return values; })(); - return AudienceFilterClause; + return Audience; })(); - v1alpha.AudienceEventTrigger = (function() { + v1alpha.ChannelGroupFilter = (function() { /** - * Properties of an AudienceEventTrigger. + * Properties of a ChannelGroupFilter. * @memberof google.analytics.admin.v1alpha - * @interface IAudienceEventTrigger - * @property {string|null} [eventName] AudienceEventTrigger eventName - * @property {google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition|null} [logCondition] AudienceEventTrigger logCondition + * @interface IChannelGroupFilter + * @property {google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter|null} [stringFilter] ChannelGroupFilter stringFilter + * @property {google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter|null} [inListFilter] ChannelGroupFilter inListFilter + * @property {string|null} [fieldName] ChannelGroupFilter fieldName */ /** - * Constructs a new AudienceEventTrigger. + * Constructs a new ChannelGroupFilter. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an AudienceEventTrigger. - * @implements IAudienceEventTrigger + * @classdesc Represents a ChannelGroupFilter. + * @implements IChannelGroupFilter * @constructor - * @param {google.analytics.admin.v1alpha.IAudienceEventTrigger=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IChannelGroupFilter=} [properties] Properties to set */ - function AudienceEventTrigger(properties) { + function ChannelGroupFilter(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -47556,89 +51077,117 @@ } /** - * AudienceEventTrigger eventName. - * @member {string} eventName - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * ChannelGroupFilter stringFilter. + * @member {google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter|null|undefined} stringFilter + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter * @instance */ - AudienceEventTrigger.prototype.eventName = ""; + ChannelGroupFilter.prototype.stringFilter = null; /** - * AudienceEventTrigger logCondition. - * @member {google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition} logCondition - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * ChannelGroupFilter inListFilter. + * @member {google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter|null|undefined} inListFilter + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter * @instance */ - AudienceEventTrigger.prototype.logCondition = 0; + ChannelGroupFilter.prototype.inListFilter = null; /** - * Creates a new AudienceEventTrigger instance using the specified properties. + * ChannelGroupFilter fieldName. + * @member {string} fieldName + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter + * @instance + */ + ChannelGroupFilter.prototype.fieldName = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ChannelGroupFilter valueFilter. + * @member {"stringFilter"|"inListFilter"|undefined} valueFilter + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter + * @instance + */ + Object.defineProperty(ChannelGroupFilter.prototype, "valueFilter", { + get: $util.oneOfGetter($oneOfFields = ["stringFilter", "inListFilter"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ChannelGroupFilter instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter * @static - * @param {google.analytics.admin.v1alpha.IAudienceEventTrigger=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.AudienceEventTrigger} AudienceEventTrigger instance + * @param {google.analytics.admin.v1alpha.IChannelGroupFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter} ChannelGroupFilter instance */ - AudienceEventTrigger.create = function create(properties) { - return new AudienceEventTrigger(properties); + ChannelGroupFilter.create = function create(properties) { + return new ChannelGroupFilter(properties); }; /** - * Encodes the specified AudienceEventTrigger message. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventTrigger.verify|verify} messages. + * Encodes the specified ChannelGroupFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter * @static - * @param {google.analytics.admin.v1alpha.IAudienceEventTrigger} message AudienceEventTrigger message or plain object to encode + * @param {google.analytics.admin.v1alpha.IChannelGroupFilter} message ChannelGroupFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceEventTrigger.encode = function encode(message, writer) { + ChannelGroupFilter.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.eventName != null && Object.hasOwnProperty.call(message, "eventName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.eventName); - if (message.logCondition != null && Object.hasOwnProperty.call(message, "logCondition")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.logCondition); + if (message.fieldName != null && Object.hasOwnProperty.call(message, "fieldName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.fieldName); + if (message.stringFilter != null && Object.hasOwnProperty.call(message, "stringFilter")) + $root.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.encode(message.stringFilter, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.inListFilter != null && Object.hasOwnProperty.call(message, "inListFilter")) + $root.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.encode(message.inListFilter, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified AudienceEventTrigger message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AudienceEventTrigger.verify|verify} messages. + * Encodes the specified ChannelGroupFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter * @static - * @param {google.analytics.admin.v1alpha.IAudienceEventTrigger} message AudienceEventTrigger message or plain object to encode + * @param {google.analytics.admin.v1alpha.IChannelGroupFilter} message ChannelGroupFilter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AudienceEventTrigger.encodeDelimited = function encodeDelimited(message, writer) { + ChannelGroupFilter.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AudienceEventTrigger message from the specified reader or buffer. + * Decodes a ChannelGroupFilter message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.AudienceEventTrigger} AudienceEventTrigger + * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter} ChannelGroupFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceEventTrigger.decode = function decode(reader, length) { + ChannelGroupFilter.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AudienceEventTrigger(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ChannelGroupFilter(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.eventName = reader.string(); + case 2: { + message.stringFilter = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.decode(reader, reader.uint32()); break; } - case 2: { - message.logCondition = reader.int32(); + case 3: { + message.inListFilter = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.decode(reader, reader.uint32()); + break; + } + case 1: { + message.fieldName = reader.string(); break; } default: @@ -47650,605 +51199,678 @@ }; /** - * Decodes an AudienceEventTrigger message from the specified reader or buffer, length delimited. + * Decodes a ChannelGroupFilter message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.AudienceEventTrigger} AudienceEventTrigger + * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter} ChannelGroupFilter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AudienceEventTrigger.decodeDelimited = function decodeDelimited(reader) { + ChannelGroupFilter.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AudienceEventTrigger message. + * Verifies a ChannelGroupFilter message. * @function verify - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AudienceEventTrigger.verify = function verify(message) { + ChannelGroupFilter.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.eventName != null && message.hasOwnProperty("eventName")) - if (!$util.isString(message.eventName)) - return "eventName: string expected"; - if (message.logCondition != null && message.hasOwnProperty("logCondition")) - switch (message.logCondition) { - default: - return "logCondition: enum value expected"; - case 0: - case 1: - case 2: - break; + var properties = {}; + if (message.stringFilter != null && message.hasOwnProperty("stringFilter")) { + properties.valueFilter = 1; + { + var error = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.verify(message.stringFilter); + if (error) + return "stringFilter." + error; + } + } + if (message.inListFilter != null && message.hasOwnProperty("inListFilter")) { + if (properties.valueFilter === 1) + return "valueFilter: multiple values"; + properties.valueFilter = 1; + { + var error = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.verify(message.inListFilter); + if (error) + return "inListFilter." + error; } + } + if (message.fieldName != null && message.hasOwnProperty("fieldName")) + if (!$util.isString(message.fieldName)) + return "fieldName: string expected"; return null; }; /** - * Creates an AudienceEventTrigger message from a plain object. Also converts values to their respective internal types. + * Creates a ChannelGroupFilter message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.AudienceEventTrigger} AudienceEventTrigger + * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter} ChannelGroupFilter */ - AudienceEventTrigger.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.AudienceEventTrigger) + ChannelGroupFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ChannelGroupFilter) return object; - var message = new $root.google.analytics.admin.v1alpha.AudienceEventTrigger(); - if (object.eventName != null) - message.eventName = String(object.eventName); - switch (object.logCondition) { - default: - if (typeof object.logCondition === "number") { - message.logCondition = object.logCondition; - break; - } - break; - case "LOG_CONDITION_UNSPECIFIED": - case 0: - message.logCondition = 0; - break; - case "AUDIENCE_JOINED": - case 1: - message.logCondition = 1; - break; - case "AUDIENCE_MEMBERSHIP_RENEWED": - case 2: - message.logCondition = 2; - break; + var message = new $root.google.analytics.admin.v1alpha.ChannelGroupFilter(); + if (object.stringFilter != null) { + if (typeof object.stringFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChannelGroupFilter.stringFilter: object expected"); + message.stringFilter = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.fromObject(object.stringFilter); + } + if (object.inListFilter != null) { + if (typeof object.inListFilter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChannelGroupFilter.inListFilter: object expected"); + message.inListFilter = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.fromObject(object.inListFilter); } + if (object.fieldName != null) + message.fieldName = String(object.fieldName); return message; }; /** - * Creates a plain object from an AudienceEventTrigger message. Also converts values to other types if specified. + * Creates a plain object from a ChannelGroupFilter message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter * @static - * @param {google.analytics.admin.v1alpha.AudienceEventTrigger} message AudienceEventTrigger + * @param {google.analytics.admin.v1alpha.ChannelGroupFilter} message ChannelGroupFilter * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AudienceEventTrigger.toObject = function toObject(message, options) { + ChannelGroupFilter.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.eventName = ""; - object.logCondition = options.enums === String ? "LOG_CONDITION_UNSPECIFIED" : 0; + if (options.defaults) + object.fieldName = ""; + if (message.fieldName != null && message.hasOwnProperty("fieldName")) + object.fieldName = message.fieldName; + if (message.stringFilter != null && message.hasOwnProperty("stringFilter")) { + object.stringFilter = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.toObject(message.stringFilter, options); + if (options.oneofs) + object.valueFilter = "stringFilter"; + } + if (message.inListFilter != null && message.hasOwnProperty("inListFilter")) { + object.inListFilter = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.toObject(message.inListFilter, options); + if (options.oneofs) + object.valueFilter = "inListFilter"; } - if (message.eventName != null && message.hasOwnProperty("eventName")) - object.eventName = message.eventName; - if (message.logCondition != null && message.hasOwnProperty("logCondition")) - object.logCondition = options.enums === String ? $root.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition[message.logCondition] === undefined ? message.logCondition : $root.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition[message.logCondition] : message.logCondition; return object; }; /** - * Converts this AudienceEventTrigger to JSON. + * Converts this ChannelGroupFilter to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter * @instance * @returns {Object.} JSON object */ - AudienceEventTrigger.prototype.toJSON = function toJSON() { + ChannelGroupFilter.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AudienceEventTrigger + * Gets the default type url for ChannelGroupFilter * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.AudienceEventTrigger + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AudienceEventTrigger.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ChannelGroupFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.AudienceEventTrigger"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ChannelGroupFilter"; }; - /** - * LogCondition enum. - * @name google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition - * @enum {number} - * @property {number} LOG_CONDITION_UNSPECIFIED=0 LOG_CONDITION_UNSPECIFIED value - * @property {number} AUDIENCE_JOINED=1 AUDIENCE_JOINED value - * @property {number} AUDIENCE_MEMBERSHIP_RENEWED=2 AUDIENCE_MEMBERSHIP_RENEWED value - */ - AudienceEventTrigger.LogCondition = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LOG_CONDITION_UNSPECIFIED"] = 0; - values[valuesById[1] = "AUDIENCE_JOINED"] = 1; - values[valuesById[2] = "AUDIENCE_MEMBERSHIP_RENEWED"] = 2; - return values; - })(); + ChannelGroupFilter.StringFilter = (function() { - return AudienceEventTrigger; - })(); + /** + * Properties of a StringFilter. + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter + * @interface IStringFilter + * @property {google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType|null} [matchType] StringFilter matchType + * @property {string|null} [value] StringFilter value + */ - v1alpha.Audience = (function() { + /** + * Constructs a new StringFilter. + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter + * @classdesc Represents a StringFilter. + * @implements IStringFilter + * @constructor + * @param {google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter=} [properties] Properties to set + */ + function StringFilter(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Properties of an Audience. - * @memberof google.analytics.admin.v1alpha - * @interface IAudience - * @property {string|null} [name] Audience name - * @property {string|null} [displayName] Audience displayName - * @property {string|null} [description] Audience description - * @property {number|null} [membershipDurationDays] Audience membershipDurationDays - * @property {boolean|null} [adsPersonalizationEnabled] Audience adsPersonalizationEnabled - * @property {google.analytics.admin.v1alpha.IAudienceEventTrigger|null} [eventTrigger] Audience eventTrigger - * @property {google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode|null} [exclusionDurationMode] Audience exclusionDurationMode - * @property {Array.|null} [filterClauses] Audience filterClauses - */ + /** + * StringFilter matchType. + * @member {google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType} matchType + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + * @instance + */ + StringFilter.prototype.matchType = 0; - /** - * Constructs a new Audience. - * @memberof google.analytics.admin.v1alpha - * @classdesc Represents an Audience. - * @implements IAudience - * @constructor - * @param {google.analytics.admin.v1alpha.IAudience=} [properties] Properties to set - */ - function Audience(properties) { - this.filterClauses = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * StringFilter value. + * @member {string} value + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + * @instance + */ + StringFilter.prototype.value = ""; - /** - * Audience name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.Audience - * @instance - */ - Audience.prototype.name = ""; + /** + * Creates a new StringFilter instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + * @static + * @param {google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter} StringFilter instance + */ + StringFilter.create = function create(properties) { + return new StringFilter(properties); + }; - /** - * Audience displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.Audience - * @instance - */ - Audience.prototype.displayName = ""; + /** + * Encodes the specified StringFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + * @static + * @param {google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter} message StringFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StringFilter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.matchType != null && Object.hasOwnProperty.call(message, "matchType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.matchType); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + return writer; + }; - /** - * Audience description. - * @member {string} description - * @memberof google.analytics.admin.v1alpha.Audience - * @instance - */ - Audience.prototype.description = ""; + /** + * Encodes the specified StringFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + * @static + * @param {google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter} message StringFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StringFilter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Audience membershipDurationDays. - * @member {number} membershipDurationDays - * @memberof google.analytics.admin.v1alpha.Audience - * @instance - */ - Audience.prototype.membershipDurationDays = 0; + /** + * Decodes a StringFilter message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter} StringFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StringFilter.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.matchType = reader.int32(); + break; + } + case 2: { + message.value = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Audience adsPersonalizationEnabled. - * @member {boolean} adsPersonalizationEnabled - * @memberof google.analytics.admin.v1alpha.Audience - * @instance - */ - Audience.prototype.adsPersonalizationEnabled = false; + /** + * Decodes a StringFilter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter} StringFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StringFilter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Audience eventTrigger. - * @member {google.analytics.admin.v1alpha.IAudienceEventTrigger|null|undefined} eventTrigger - * @memberof google.analytics.admin.v1alpha.Audience - * @instance - */ - Audience.prototype.eventTrigger = null; + /** + * Verifies a StringFilter message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StringFilter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.matchType != null && message.hasOwnProperty("matchType")) + switch (message.matchType) { + default: + return "matchType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + return null; + }; - /** - * Audience exclusionDurationMode. - * @member {google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode} exclusionDurationMode - * @memberof google.analytics.admin.v1alpha.Audience - * @instance - */ - Audience.prototype.exclusionDurationMode = 0; + /** + * Creates a StringFilter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter} StringFilter + */ + StringFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) + return object; + var message = new $root.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter(); + switch (object.matchType) { + default: + if (typeof object.matchType === "number") { + message.matchType = object.matchType; + break; + } + break; + case "MATCH_TYPE_UNSPECIFIED": + case 0: + message.matchType = 0; + break; + case "EXACT": + case 1: + message.matchType = 1; + break; + case "BEGINS_WITH": + case 2: + message.matchType = 2; + break; + case "ENDS_WITH": + case 3: + message.matchType = 3; + break; + case "CONTAINS": + case 4: + message.matchType = 4; + break; + case "FULL_REGEXP": + case 5: + message.matchType = 5; + break; + case "PARTIAL_REGEXP": + case 6: + message.matchType = 6; + break; + } + if (object.value != null) + message.value = String(object.value); + return message; + }; - /** - * Audience filterClauses. - * @member {Array.} filterClauses - * @memberof google.analytics.admin.v1alpha.Audience - * @instance - */ - Audience.prototype.filterClauses = $util.emptyArray; + /** + * Creates a plain object from a StringFilter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + * @static + * @param {google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter} message StringFilter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StringFilter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.matchType = options.enums === String ? "MATCH_TYPE_UNSPECIFIED" : 0; + object.value = ""; + } + if (message.matchType != null && message.hasOwnProperty("matchType")) + object.matchType = options.enums === String ? $root.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType[message.matchType] === undefined ? message.matchType : $root.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType[message.matchType] : message.matchType; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + return object; + }; - /** - * Creates a new Audience instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.Audience - * @static - * @param {google.analytics.admin.v1alpha.IAudience=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.Audience} Audience instance - */ - Audience.create = function create(properties) { - return new Audience(properties); - }; + /** + * Converts this StringFilter to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + * @instance + * @returns {Object.} JSON object + */ + StringFilter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Encodes the specified Audience message. Does not implicitly {@link google.analytics.admin.v1alpha.Audience.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.Audience - * @static - * @param {google.analytics.admin.v1alpha.IAudience} message Audience message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Audience.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.membershipDurationDays != null && Object.hasOwnProperty.call(message, "membershipDurationDays")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.membershipDurationDays); - if (message.adsPersonalizationEnabled != null && Object.hasOwnProperty.call(message, "adsPersonalizationEnabled")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.adsPersonalizationEnabled); - if (message.eventTrigger != null && Object.hasOwnProperty.call(message, "eventTrigger")) - $root.google.analytics.admin.v1alpha.AudienceEventTrigger.encode(message.eventTrigger, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.exclusionDurationMode != null && Object.hasOwnProperty.call(message, "exclusionDurationMode")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.exclusionDurationMode); - if (message.filterClauses != null && message.filterClauses.length) - for (var i = 0; i < message.filterClauses.length; ++i) - $root.google.analytics.admin.v1alpha.AudienceFilterClause.encode(message.filterClauses[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - return writer; - }; + /** + * Gets the default type url for StringFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StringFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter"; + }; - /** - * Encodes the specified Audience message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.Audience.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.Audience - * @static - * @param {google.analytics.admin.v1alpha.IAudience} message Audience message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Audience.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * MatchType enum. + * @name google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType + * @enum {number} + * @property {number} MATCH_TYPE_UNSPECIFIED=0 MATCH_TYPE_UNSPECIFIED value + * @property {number} EXACT=1 EXACT value + * @property {number} BEGINS_WITH=2 BEGINS_WITH value + * @property {number} ENDS_WITH=3 ENDS_WITH value + * @property {number} CONTAINS=4 CONTAINS value + * @property {number} FULL_REGEXP=5 FULL_REGEXP value + * @property {number} PARTIAL_REGEXP=6 PARTIAL_REGEXP value + */ + StringFilter.MatchType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MATCH_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EXACT"] = 1; + values[valuesById[2] = "BEGINS_WITH"] = 2; + values[valuesById[3] = "ENDS_WITH"] = 3; + values[valuesById[4] = "CONTAINS"] = 4; + values[valuesById[5] = "FULL_REGEXP"] = 5; + values[valuesById[6] = "PARTIAL_REGEXP"] = 6; + return values; + })(); + + return StringFilter; + })(); + + ChannelGroupFilter.InListFilter = (function() { + + /** + * Properties of an InListFilter. + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter + * @interface IInListFilter + * @property {Array.|null} [values] InListFilter values + */ + + /** + * Constructs a new InListFilter. + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter + * @classdesc Represents an InListFilter. + * @implements IInListFilter + * @constructor + * @param {google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter=} [properties] Properties to set + */ + function InListFilter(properties) { + this.values = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * InListFilter values. + * @member {Array.} values + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + * @instance + */ + InListFilter.prototype.values = $util.emptyArray; + + /** + * Creates a new InListFilter instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + * @static + * @param {google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter} InListFilter instance + */ + InListFilter.create = function create(properties) { + return new InListFilter(properties); + }; + + /** + * Encodes the specified InListFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + * @static + * @param {google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter} message InListFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InListFilter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); + return writer; + }; + + /** + * Encodes the specified InListFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + * @static + * @param {google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter} message InListFilter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InListFilter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an Audience message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.Audience - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.Audience} Audience - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Audience.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.Audience(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.displayName = reader.string(); - break; - } - case 3: { - message.description = reader.string(); - break; - } - case 4: { - message.membershipDurationDays = reader.int32(); - break; - } - case 5: { - message.adsPersonalizationEnabled = reader.bool(); - break; - } - case 6: { - message.eventTrigger = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.decode(reader, reader.uint32()); - break; - } - case 7: { - message.exclusionDurationMode = reader.int32(); - break; - } - case 8: { - if (!(message.filterClauses && message.filterClauses.length)) - message.filterClauses = []; - message.filterClauses.push($root.google.analytics.admin.v1alpha.AudienceFilterClause.decode(reader, reader.uint32())); + /** + * Decodes an InListFilter message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter} InListFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InListFilter.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes an Audience message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.Audience - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.Audience} Audience - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Audience.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an InListFilter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter} InListFilter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InListFilter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an Audience message. - * @function verify - * @memberof google.analytics.admin.v1alpha.Audience - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Audience.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.membershipDurationDays != null && message.hasOwnProperty("membershipDurationDays")) - if (!$util.isInteger(message.membershipDurationDays)) - return "membershipDurationDays: integer expected"; - if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) - if (typeof message.adsPersonalizationEnabled !== "boolean") - return "adsPersonalizationEnabled: boolean expected"; - if (message.eventTrigger != null && message.hasOwnProperty("eventTrigger")) { - var error = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.verify(message.eventTrigger); - if (error) - return "eventTrigger." + error; - } - if (message.exclusionDurationMode != null && message.hasOwnProperty("exclusionDurationMode")) - switch (message.exclusionDurationMode) { - default: - return "exclusionDurationMode: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.filterClauses != null && message.hasOwnProperty("filterClauses")) { - if (!Array.isArray(message.filterClauses)) - return "filterClauses: array expected"; - for (var i = 0; i < message.filterClauses.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.AudienceFilterClause.verify(message.filterClauses[i]); - if (error) - return "filterClauses." + error; + /** + * Verifies an InListFilter message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InListFilter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isString(message.values[i])) + return "values: string[] expected"; } - } - return null; - }; + return null; + }; - /** - * Creates an Audience message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.Audience - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.Audience} Audience - */ - Audience.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.Audience) - return object; - var message = new $root.google.analytics.admin.v1alpha.Audience(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - if (object.membershipDurationDays != null) - message.membershipDurationDays = object.membershipDurationDays | 0; - if (object.adsPersonalizationEnabled != null) - message.adsPersonalizationEnabled = Boolean(object.adsPersonalizationEnabled); - if (object.eventTrigger != null) { - if (typeof object.eventTrigger !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Audience.eventTrigger: object expected"); - message.eventTrigger = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.fromObject(object.eventTrigger); - } - switch (object.exclusionDurationMode) { - default: - if (typeof object.exclusionDurationMode === "number") { - message.exclusionDurationMode = object.exclusionDurationMode; - break; - } - break; - case "AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED": - case 0: - message.exclusionDurationMode = 0; - break; - case "EXCLUDE_TEMPORARILY": - case 1: - message.exclusionDurationMode = 1; - break; - case "EXCLUDE_PERMANENTLY": - case 2: - message.exclusionDurationMode = 2; - break; - } - if (object.filterClauses) { - if (!Array.isArray(object.filterClauses)) - throw TypeError(".google.analytics.admin.v1alpha.Audience.filterClauses: array expected"); - message.filterClauses = []; - for (var i = 0; i < object.filterClauses.length; ++i) { - if (typeof object.filterClauses[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.Audience.filterClauses: object expected"); - message.filterClauses[i] = $root.google.analytics.admin.v1alpha.AudienceFilterClause.fromObject(object.filterClauses[i]); + /** + * Creates an InListFilter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter} InListFilter + */ + InListFilter.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) + return object; + var message = new $root.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = String(object.values[i]); } - } - return message; - }; + return message; + }; - /** - * Creates a plain object from an Audience message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.Audience - * @static - * @param {google.analytics.admin.v1alpha.Audience} message Audience - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Audience.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.filterClauses = []; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.description = ""; - object.membershipDurationDays = 0; - object.adsPersonalizationEnabled = false; - object.eventTrigger = null; - object.exclusionDurationMode = options.enums === String ? "AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED" : 0; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.membershipDurationDays != null && message.hasOwnProperty("membershipDurationDays")) - object.membershipDurationDays = message.membershipDurationDays; - if (message.adsPersonalizationEnabled != null && message.hasOwnProperty("adsPersonalizationEnabled")) - object.adsPersonalizationEnabled = message.adsPersonalizationEnabled; - if (message.eventTrigger != null && message.hasOwnProperty("eventTrigger")) - object.eventTrigger = $root.google.analytics.admin.v1alpha.AudienceEventTrigger.toObject(message.eventTrigger, options); - if (message.exclusionDurationMode != null && message.hasOwnProperty("exclusionDurationMode")) - object.exclusionDurationMode = options.enums === String ? $root.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode[message.exclusionDurationMode] === undefined ? message.exclusionDurationMode : $root.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode[message.exclusionDurationMode] : message.exclusionDurationMode; - if (message.filterClauses && message.filterClauses.length) { - object.filterClauses = []; - for (var j = 0; j < message.filterClauses.length; ++j) - object.filterClauses[j] = $root.google.analytics.admin.v1alpha.AudienceFilterClause.toObject(message.filterClauses[j], options); - } - return object; - }; + /** + * Creates a plain object from an InListFilter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + * @static + * @param {google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter} message InListFilter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InListFilter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = message.values[j]; + } + return object; + }; - /** - * Converts this Audience to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.Audience - * @instance - * @returns {Object.} JSON object - */ - Audience.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this InListFilter to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + * @instance + * @returns {Object.} JSON object + */ + InListFilter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for Audience - * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.Audience - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Audience.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.Audience"; - }; + /** + * Gets the default type url for InListFilter + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InListFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter"; + }; - /** - * AudienceExclusionDurationMode enum. - * @name google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode - * @enum {number} - * @property {number} AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED=0 AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED value - * @property {number} EXCLUDE_TEMPORARILY=1 EXCLUDE_TEMPORARILY value - * @property {number} EXCLUDE_PERMANENTLY=2 EXCLUDE_PERMANENTLY value - */ - Audience.AudienceExclusionDurationMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED"] = 0; - values[valuesById[1] = "EXCLUDE_TEMPORARILY"] = 1; - values[valuesById[2] = "EXCLUDE_PERMANENTLY"] = 2; - return values; + return InListFilter; })(); - return Audience; + return ChannelGroupFilter; })(); - v1alpha.ChannelGroupFilter = (function() { + v1alpha.ChannelGroupFilterExpression = (function() { /** - * Properties of a ChannelGroupFilter. + * Properties of a ChannelGroupFilterExpression. * @memberof google.analytics.admin.v1alpha - * @interface IChannelGroupFilter - * @property {google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter|null} [stringFilter] ChannelGroupFilter stringFilter - * @property {google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter|null} [inListFilter] ChannelGroupFilter inListFilter - * @property {string|null} [fieldName] ChannelGroupFilter fieldName + * @interface IChannelGroupFilterExpression + * @property {google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList|null} [andGroup] ChannelGroupFilterExpression andGroup + * @property {google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList|null} [orGroup] ChannelGroupFilterExpression orGroup + * @property {google.analytics.admin.v1alpha.IChannelGroupFilterExpression|null} [notExpression] ChannelGroupFilterExpression notExpression + * @property {google.analytics.admin.v1alpha.IChannelGroupFilter|null} [filter] ChannelGroupFilterExpression filter */ /** - * Constructs a new ChannelGroupFilter. + * Constructs a new ChannelGroupFilterExpression. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ChannelGroupFilter. - * @implements IChannelGroupFilter + * @classdesc Represents a ChannelGroupFilterExpression. + * @implements IChannelGroupFilterExpression * @constructor - * @param {google.analytics.admin.v1alpha.IChannelGroupFilter=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IChannelGroupFilterExpression=} [properties] Properties to set */ - function ChannelGroupFilter(properties) { + function ChannelGroupFilterExpression(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -48256,117 +51878,131 @@ } /** - * ChannelGroupFilter stringFilter. - * @member {google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter|null|undefined} stringFilter - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter + * ChannelGroupFilterExpression andGroup. + * @member {google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList|null|undefined} andGroup + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression * @instance */ - ChannelGroupFilter.prototype.stringFilter = null; + ChannelGroupFilterExpression.prototype.andGroup = null; /** - * ChannelGroupFilter inListFilter. - * @member {google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter|null|undefined} inListFilter - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter + * ChannelGroupFilterExpression orGroup. + * @member {google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList|null|undefined} orGroup + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression * @instance */ - ChannelGroupFilter.prototype.inListFilter = null; + ChannelGroupFilterExpression.prototype.orGroup = null; /** - * ChannelGroupFilter fieldName. - * @member {string} fieldName - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter + * ChannelGroupFilterExpression notExpression. + * @member {google.analytics.admin.v1alpha.IChannelGroupFilterExpression|null|undefined} notExpression + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression * @instance */ - ChannelGroupFilter.prototype.fieldName = ""; + ChannelGroupFilterExpression.prototype.notExpression = null; + + /** + * ChannelGroupFilterExpression filter. + * @member {google.analytics.admin.v1alpha.IChannelGroupFilter|null|undefined} filter + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression + * @instance + */ + ChannelGroupFilterExpression.prototype.filter = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * ChannelGroupFilter valueFilter. - * @member {"stringFilter"|"inListFilter"|undefined} valueFilter - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter + * ChannelGroupFilterExpression expr. + * @member {"andGroup"|"orGroup"|"notExpression"|"filter"|undefined} expr + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression * @instance */ - Object.defineProperty(ChannelGroupFilter.prototype, "valueFilter", { - get: $util.oneOfGetter($oneOfFields = ["stringFilter", "inListFilter"]), + Object.defineProperty(ChannelGroupFilterExpression.prototype, "expr", { + get: $util.oneOfGetter($oneOfFields = ["andGroup", "orGroup", "notExpression", "filter"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new ChannelGroupFilter instance using the specified properties. + * Creates a new ChannelGroupFilterExpression instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression * @static - * @param {google.analytics.admin.v1alpha.IChannelGroupFilter=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter} ChannelGroupFilter instance + * @param {google.analytics.admin.v1alpha.IChannelGroupFilterExpression=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ChannelGroupFilterExpression} ChannelGroupFilterExpression instance */ - ChannelGroupFilter.create = function create(properties) { - return new ChannelGroupFilter(properties); + ChannelGroupFilterExpression.create = function create(properties) { + return new ChannelGroupFilterExpression(properties); }; /** - * Encodes the specified ChannelGroupFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.verify|verify} messages. + * Encodes the specified ChannelGroupFilterExpression message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilterExpression.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression * @static - * @param {google.analytics.admin.v1alpha.IChannelGroupFilter} message ChannelGroupFilter message or plain object to encode + * @param {google.analytics.admin.v1alpha.IChannelGroupFilterExpression} message ChannelGroupFilterExpression message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChannelGroupFilter.encode = function encode(message, writer) { + ChannelGroupFilterExpression.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fieldName != null && Object.hasOwnProperty.call(message, "fieldName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.fieldName); - if (message.stringFilter != null && Object.hasOwnProperty.call(message, "stringFilter")) - $root.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.encode(message.stringFilter, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.inListFilter != null && Object.hasOwnProperty.call(message, "inListFilter")) - $root.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.encode(message.inListFilter, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.andGroup != null && Object.hasOwnProperty.call(message, "andGroup")) + $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.encode(message.andGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.orGroup != null && Object.hasOwnProperty.call(message, "orGroup")) + $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.encode(message.orGroup, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.notExpression != null && Object.hasOwnProperty.call(message, "notExpression")) + $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.encode(message.notExpression, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + $root.google.analytics.admin.v1alpha.ChannelGroupFilter.encode(message.filter, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified ChannelGroupFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.verify|verify} messages. + * Encodes the specified ChannelGroupFilterExpression message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilterExpression.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression * @static - * @param {google.analytics.admin.v1alpha.IChannelGroupFilter} message ChannelGroupFilter message or plain object to encode + * @param {google.analytics.admin.v1alpha.IChannelGroupFilterExpression} message ChannelGroupFilterExpression message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChannelGroupFilter.encodeDelimited = function encodeDelimited(message, writer) { + ChannelGroupFilterExpression.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChannelGroupFilter message from the specified reader or buffer. + * Decodes a ChannelGroupFilterExpression message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter} ChannelGroupFilter + * @returns {google.analytics.admin.v1alpha.ChannelGroupFilterExpression} ChannelGroupFilterExpression * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChannelGroupFilter.decode = function decode(reader, length) { + ChannelGroupFilterExpression.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ChannelGroupFilter(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.andGroup = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.decode(reader, reader.uint32()); + break; + } case 2: { - message.stringFilter = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.decode(reader, reader.uint32()); + message.orGroup = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.decode(reader, reader.uint32()); break; } case 3: { - message.inListFilter = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.decode(reader, reader.uint32()); + message.notExpression = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.decode(reader, reader.uint32()); break; } - case 1: { - message.fieldName = reader.string(); + case 4: { + message.filter = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.decode(reader, reader.uint32()); break; } default: @@ -48378,678 +52014,653 @@ }; /** - * Decodes a ChannelGroupFilter message from the specified reader or buffer, length delimited. + * Decodes a ChannelGroupFilterExpression message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter} ChannelGroupFilter + * @returns {google.analytics.admin.v1alpha.ChannelGroupFilterExpression} ChannelGroupFilterExpression * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChannelGroupFilter.decodeDelimited = function decodeDelimited(reader) { + ChannelGroupFilterExpression.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChannelGroupFilter message. + * Verifies a ChannelGroupFilterExpression message. * @function verify - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChannelGroupFilter.verify = function verify(message) { + ChannelGroupFilterExpression.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.stringFilter != null && message.hasOwnProperty("stringFilter")) { - properties.valueFilter = 1; + if (message.andGroup != null && message.hasOwnProperty("andGroup")) { + properties.expr = 1; { - var error = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.verify(message.stringFilter); + var error = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.verify(message.andGroup); if (error) - return "stringFilter." + error; + return "andGroup." + error; } } - if (message.inListFilter != null && message.hasOwnProperty("inListFilter")) { - if (properties.valueFilter === 1) - return "valueFilter: multiple values"; - properties.valueFilter = 1; + if (message.orGroup != null && message.hasOwnProperty("orGroup")) { + if (properties.expr === 1) + return "expr: multiple values"; + properties.expr = 1; { - var error = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.verify(message.inListFilter); + var error = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.verify(message.orGroup); if (error) - return "inListFilter." + error; + return "orGroup." + error; + } + } + if (message.notExpression != null && message.hasOwnProperty("notExpression")) { + if (properties.expr === 1) + return "expr: multiple values"; + properties.expr = 1; + { + var error = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.verify(message.notExpression); + if (error) + return "notExpression." + error; + } + } + if (message.filter != null && message.hasOwnProperty("filter")) { + if (properties.expr === 1) + return "expr: multiple values"; + properties.expr = 1; + { + var error = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.verify(message.filter); + if (error) + return "filter." + error; } } - if (message.fieldName != null && message.hasOwnProperty("fieldName")) - if (!$util.isString(message.fieldName)) - return "fieldName: string expected"; return null; }; /** - * Creates a ChannelGroupFilter message from a plain object. Also converts values to their respective internal types. + * Creates a ChannelGroupFilterExpression message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter} ChannelGroupFilter + * @returns {google.analytics.admin.v1alpha.ChannelGroupFilterExpression} ChannelGroupFilterExpression */ - ChannelGroupFilter.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ChannelGroupFilter) + ChannelGroupFilterExpression.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression) return object; - var message = new $root.google.analytics.admin.v1alpha.ChannelGroupFilter(); - if (object.stringFilter != null) { - if (typeof object.stringFilter !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChannelGroupFilter.stringFilter: object expected"); - message.stringFilter = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.fromObject(object.stringFilter); + var message = new $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression(); + if (object.andGroup != null) { + if (typeof object.andGroup !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChannelGroupFilterExpression.andGroup: object expected"); + message.andGroup = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.fromObject(object.andGroup); } - if (object.inListFilter != null) { - if (typeof object.inListFilter !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChannelGroupFilter.inListFilter: object expected"); - message.inListFilter = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.fromObject(object.inListFilter); + if (object.orGroup != null) { + if (typeof object.orGroup !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChannelGroupFilterExpression.orGroup: object expected"); + message.orGroup = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.fromObject(object.orGroup); + } + if (object.notExpression != null) { + if (typeof object.notExpression !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChannelGroupFilterExpression.notExpression: object expected"); + message.notExpression = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.fromObject(object.notExpression); + } + if (object.filter != null) { + if (typeof object.filter !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChannelGroupFilterExpression.filter: object expected"); + message.filter = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.fromObject(object.filter); } - if (object.fieldName != null) - message.fieldName = String(object.fieldName); return message; }; /** - * Creates a plain object from a ChannelGroupFilter message. Also converts values to other types if specified. + * Creates a plain object from a ChannelGroupFilterExpression message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression * @static - * @param {google.analytics.admin.v1alpha.ChannelGroupFilter} message ChannelGroupFilter + * @param {google.analytics.admin.v1alpha.ChannelGroupFilterExpression} message ChannelGroupFilterExpression * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChannelGroupFilter.toObject = function toObject(message, options) { + ChannelGroupFilterExpression.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.fieldName = ""; - if (message.fieldName != null && message.hasOwnProperty("fieldName")) - object.fieldName = message.fieldName; - if (message.stringFilter != null && message.hasOwnProperty("stringFilter")) { - object.stringFilter = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.toObject(message.stringFilter, options); + if (message.andGroup != null && message.hasOwnProperty("andGroup")) { + object.andGroup = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.toObject(message.andGroup, options); if (options.oneofs) - object.valueFilter = "stringFilter"; + object.expr = "andGroup"; } - if (message.inListFilter != null && message.hasOwnProperty("inListFilter")) { - object.inListFilter = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.toObject(message.inListFilter, options); + if (message.orGroup != null && message.hasOwnProperty("orGroup")) { + object.orGroup = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.toObject(message.orGroup, options); if (options.oneofs) - object.valueFilter = "inListFilter"; + object.expr = "orGroup"; + } + if (message.notExpression != null && message.hasOwnProperty("notExpression")) { + object.notExpression = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.toObject(message.notExpression, options); + if (options.oneofs) + object.expr = "notExpression"; + } + if (message.filter != null && message.hasOwnProperty("filter")) { + object.filter = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.toObject(message.filter, options); + if (options.oneofs) + object.expr = "filter"; } return object; }; /** - * Converts this ChannelGroupFilter to JSON. + * Converts this ChannelGroupFilterExpression to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression * @instance * @returns {Object.} JSON object */ - ChannelGroupFilter.prototype.toJSON = function toJSON() { + ChannelGroupFilterExpression.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ChannelGroupFilter + * Gets the default type url for ChannelGroupFilterExpression * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ChannelGroupFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ChannelGroupFilterExpression.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.ChannelGroupFilter"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ChannelGroupFilterExpression"; }; - ChannelGroupFilter.StringFilter = (function() { - - /** - * Properties of a StringFilter. - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter - * @interface IStringFilter - * @property {google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType|null} [matchType] StringFilter matchType - * @property {string|null} [value] StringFilter value - */ - - /** - * Constructs a new StringFilter. - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter - * @classdesc Represents a StringFilter. - * @implements IStringFilter - * @constructor - * @param {google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter=} [properties] Properties to set - */ - function StringFilter(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + return ChannelGroupFilterExpression; + })(); - /** - * StringFilter matchType. - * @member {google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType} matchType - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter - * @instance - */ - StringFilter.prototype.matchType = 0; + v1alpha.ChannelGroupFilterExpressionList = (function() { - /** - * StringFilter value. - * @member {string} value - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter - * @instance - */ - StringFilter.prototype.value = ""; + /** + * Properties of a ChannelGroupFilterExpressionList. + * @memberof google.analytics.admin.v1alpha + * @interface IChannelGroupFilterExpressionList + * @property {Array.|null} [filterExpressions] ChannelGroupFilterExpressionList filterExpressions + */ - /** - * Creates a new StringFilter instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter - * @static - * @param {google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter} StringFilter instance - */ - StringFilter.create = function create(properties) { - return new StringFilter(properties); - }; + /** + * Constructs a new ChannelGroupFilterExpressionList. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a ChannelGroupFilterExpressionList. + * @implements IChannelGroupFilterExpressionList + * @constructor + * @param {google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList=} [properties] Properties to set + */ + function ChannelGroupFilterExpressionList(properties) { + this.filterExpressions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified StringFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter - * @static - * @param {google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter} message StringFilter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StringFilter.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.matchType != null && Object.hasOwnProperty.call(message, "matchType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.matchType); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); - return writer; - }; + /** + * ChannelGroupFilterExpressionList filterExpressions. + * @member {Array.} filterExpressions + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + * @instance + */ + ChannelGroupFilterExpressionList.prototype.filterExpressions = $util.emptyArray; - /** - * Encodes the specified StringFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter - * @static - * @param {google.analytics.admin.v1alpha.ChannelGroupFilter.IStringFilter} message StringFilter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StringFilter.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new ChannelGroupFilterExpressionList instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + * @static + * @param {google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList} ChannelGroupFilterExpressionList instance + */ + ChannelGroupFilterExpressionList.create = function create(properties) { + return new ChannelGroupFilterExpressionList(properties); + }; - /** - * Decodes a StringFilter message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter} StringFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StringFilter.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.matchType = reader.int32(); - break; - } - case 2: { - message.value = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified ChannelGroupFilterExpressionList message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + * @static + * @param {google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList} message ChannelGroupFilterExpressionList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChannelGroupFilterExpressionList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.filterExpressions != null && message.filterExpressions.length) + for (var i = 0; i < message.filterExpressions.length; ++i) + $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.encode(message.filterExpressions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Decodes a StringFilter message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter} StringFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StringFilter.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified ChannelGroupFilterExpressionList message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + * @static + * @param {google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList} message ChannelGroupFilterExpressionList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ChannelGroupFilterExpressionList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a StringFilter message. - * @function verify - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StringFilter.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.matchType != null && message.hasOwnProperty("matchType")) - switch (message.matchType) { - default: - return "matchType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: + /** + * Decodes a ChannelGroupFilterExpressionList message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList} ChannelGroupFilterExpressionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChannelGroupFilterExpressionList.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.filterExpressions && message.filterExpressions.length)) + message.filterExpressions = []; + message.filterExpressions.push($root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.decode(reader, reader.uint32())); break; } - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; - - /** - * Creates a StringFilter message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter} StringFilter - */ - StringFilter.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) - return object; - var message = new $root.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter(); - switch (object.matchType) { default: - if (typeof object.matchType === "number") { - message.matchType = object.matchType; - break; - } - break; - case "MATCH_TYPE_UNSPECIFIED": - case 0: - message.matchType = 0; - break; - case "EXACT": - case 1: - message.matchType = 1; - break; - case "BEGINS_WITH": - case 2: - message.matchType = 2; - break; - case "ENDS_WITH": - case 3: - message.matchType = 3; - break; - case "CONTAINS": - case 4: - message.matchType = 4; - break; - case "FULL_REGEXP": - case 5: - message.matchType = 5; - break; - case "PARTIAL_REGEXP": - case 6: - message.matchType = 6; + reader.skipType(tag & 7); break; } - if (object.value != null) - message.value = String(object.value); - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a StringFilter message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter - * @static - * @param {google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter} message StringFilter - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StringFilter.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.matchType = options.enums === String ? "MATCH_TYPE_UNSPECIFIED" : 0; - object.value = ""; + /** + * Decodes a ChannelGroupFilterExpressionList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList} ChannelGroupFilterExpressionList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ChannelGroupFilterExpressionList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ChannelGroupFilterExpressionList message. + * @function verify + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ChannelGroupFilterExpressionList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.filterExpressions != null && message.hasOwnProperty("filterExpressions")) { + if (!Array.isArray(message.filterExpressions)) + return "filterExpressions: array expected"; + for (var i = 0; i < message.filterExpressions.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.verify(message.filterExpressions[i]); + if (error) + return "filterExpressions." + error; } - if (message.matchType != null && message.hasOwnProperty("matchType")) - object.matchType = options.enums === String ? $root.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType[message.matchType] === undefined ? message.matchType : $root.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType[message.matchType] : message.matchType; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; + } + return null; + }; + + /** + * Creates a ChannelGroupFilterExpressionList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList} ChannelGroupFilterExpressionList + */ + ChannelGroupFilterExpressionList.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) return object; - }; + var message = new $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList(); + if (object.filterExpressions) { + if (!Array.isArray(object.filterExpressions)) + throw TypeError(".google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.filterExpressions: array expected"); + message.filterExpressions = []; + for (var i = 0; i < object.filterExpressions.length; ++i) { + if (typeof object.filterExpressions[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.filterExpressions: object expected"); + message.filterExpressions[i] = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.fromObject(object.filterExpressions[i]); + } + } + return message; + }; - /** - * Converts this StringFilter to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter - * @instance - * @returns {Object.} JSON object - */ - StringFilter.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ChannelGroupFilterExpressionList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + * @static + * @param {google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList} message ChannelGroupFilterExpressionList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ChannelGroupFilterExpressionList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.filterExpressions = []; + if (message.filterExpressions && message.filterExpressions.length) { + object.filterExpressions = []; + for (var j = 0; j < message.filterExpressions.length; ++j) + object.filterExpressions[j] = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.toObject(message.filterExpressions[j], options); + } + return object; + }; - /** - * Gets the default type url for StringFilter - * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - StringFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter"; - }; + /** + * Converts this ChannelGroupFilterExpressionList to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + * @instance + * @returns {Object.} JSON object + */ + ChannelGroupFilterExpressionList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * MatchType enum. - * @name google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType - * @enum {number} - * @property {number} MATCH_TYPE_UNSPECIFIED=0 MATCH_TYPE_UNSPECIFIED value - * @property {number} EXACT=1 EXACT value - * @property {number} BEGINS_WITH=2 BEGINS_WITH value - * @property {number} ENDS_WITH=3 ENDS_WITH value - * @property {number} CONTAINS=4 CONTAINS value - * @property {number} FULL_REGEXP=5 FULL_REGEXP value - * @property {number} PARTIAL_REGEXP=6 PARTIAL_REGEXP value - */ - StringFilter.MatchType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MATCH_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "EXACT"] = 1; - values[valuesById[2] = "BEGINS_WITH"] = 2; - values[valuesById[3] = "ENDS_WITH"] = 3; - values[valuesById[4] = "CONTAINS"] = 4; - values[valuesById[5] = "FULL_REGEXP"] = 5; - values[valuesById[6] = "PARTIAL_REGEXP"] = 6; - return values; - })(); + /** + * Gets the default type url for ChannelGroupFilterExpressionList + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ChannelGroupFilterExpressionList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList"; + }; - return StringFilter; - })(); + return ChannelGroupFilterExpressionList; + })(); - ChannelGroupFilter.InListFilter = (function() { + v1alpha.GroupingRule = (function() { - /** - * Properties of an InListFilter. - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter - * @interface IInListFilter - * @property {Array.|null} [values] InListFilter values - */ + /** + * Properties of a GroupingRule. + * @memberof google.analytics.admin.v1alpha + * @interface IGroupingRule + * @property {string|null} [displayName] GroupingRule displayName + * @property {google.analytics.admin.v1alpha.IChannelGroupFilterExpression|null} [expression] GroupingRule expression + */ - /** - * Constructs a new InListFilter. - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter - * @classdesc Represents an InListFilter. - * @implements IInListFilter - * @constructor - * @param {google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter=} [properties] Properties to set - */ - function InListFilter(properties) { - this.values = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new GroupingRule. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents a GroupingRule. + * @implements IGroupingRule + * @constructor + * @param {google.analytics.admin.v1alpha.IGroupingRule=} [properties] Properties to set + */ + function GroupingRule(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * InListFilter values. - * @member {Array.} values - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter - * @instance - */ - InListFilter.prototype.values = $util.emptyArray; + /** + * GroupingRule displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.GroupingRule + * @instance + */ + GroupingRule.prototype.displayName = ""; - /** - * Creates a new InListFilter instance using the specified properties. - * @function create - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter - * @static - * @param {google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter} InListFilter instance - */ - InListFilter.create = function create(properties) { - return new InListFilter(properties); - }; + /** + * GroupingRule expression. + * @member {google.analytics.admin.v1alpha.IChannelGroupFilterExpression|null|undefined} expression + * @memberof google.analytics.admin.v1alpha.GroupingRule + * @instance + */ + GroupingRule.prototype.expression = null; - /** - * Encodes the specified InListFilter message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.verify|verify} messages. - * @function encode - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter - * @static - * @param {google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter} message InListFilter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InListFilter.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); - return writer; - }; + /** + * Creates a new GroupingRule instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.GroupingRule + * @static + * @param {google.analytics.admin.v1alpha.IGroupingRule=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.GroupingRule} GroupingRule instance + */ + GroupingRule.create = function create(properties) { + return new GroupingRule(properties); + }; - /** - * Encodes the specified InListFilter message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.verify|verify} messages. - * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter - * @static - * @param {google.analytics.admin.v1alpha.ChannelGroupFilter.IInListFilter} message InListFilter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InListFilter.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified GroupingRule message. Does not implicitly {@link google.analytics.admin.v1alpha.GroupingRule.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.GroupingRule + * @static + * @param {google.analytics.admin.v1alpha.IGroupingRule} message GroupingRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroupingRule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); + if (message.expression != null && Object.hasOwnProperty.call(message, "expression")) + $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.encode(message.expression, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Decodes an InListFilter message from the specified reader or buffer. - * @function decode - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter} InListFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InListFilter.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.values && message.values.length)) - message.values = []; - message.values.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified GroupingRule message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GroupingRule.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.GroupingRule + * @static + * @param {google.analytics.admin.v1alpha.IGroupingRule} message GroupingRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GroupingRule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GroupingRule message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.GroupingRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.GroupingRule} GroupingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroupingRule.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GroupingRule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.displayName = reader.string(); break; } + case 2: { + message.expression = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes an InListFilter message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter} InListFilter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InListFilter.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies an InListFilter message. - * @function verify - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InListFilter.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (!$util.isString(message.values[i])) - return "values: string[] expected"; - } - return null; - }; + /** + * Decodes a GroupingRule message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.GroupingRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.GroupingRule} GroupingRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GroupingRule.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates an InListFilter message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter - * @static - * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter} InListFilter - */ - InListFilter.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) - return object; - var message = new $root.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - message.values[i] = String(object.values[i]); - } - return message; - }; + /** + * Verifies a GroupingRule message. + * @function verify + * @memberof google.analytics.admin.v1alpha.GroupingRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GroupingRule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.expression != null && message.hasOwnProperty("expression")) { + var error = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.verify(message.expression); + if (error) + return "expression." + error; + } + return null; + }; - /** - * Creates a plain object from an InListFilter message. Also converts values to other types if specified. - * @function toObject - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter - * @static - * @param {google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter} message InListFilter - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InListFilter.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = message.values[j]; - } + /** + * Creates a GroupingRule message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.GroupingRule + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.GroupingRule} GroupingRule + */ + GroupingRule.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.GroupingRule) return object; - }; - - /** - * Converts this InListFilter to JSON. - * @function toJSON - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter - * @instance - * @returns {Object.} JSON object - */ - InListFilter.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + var message = new $root.google.analytics.admin.v1alpha.GroupingRule(); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.expression != null) { + if (typeof object.expression !== "object") + throw TypeError(".google.analytics.admin.v1alpha.GroupingRule.expression: object expected"); + message.expression = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.fromObject(object.expression); + } + return message; + }; - /** - * Gets the default type url for InListFilter - * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - InListFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter"; - }; + /** + * Creates a plain object from a GroupingRule message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.GroupingRule + * @static + * @param {google.analytics.admin.v1alpha.GroupingRule} message GroupingRule + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GroupingRule.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.displayName = ""; + object.expression = null; + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.expression != null && message.hasOwnProperty("expression")) + object.expression = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.toObject(message.expression, options); + return object; + }; - return InListFilter; - })(); + /** + * Converts this GroupingRule to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.GroupingRule + * @instance + * @returns {Object.} JSON object + */ + GroupingRule.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ChannelGroupFilter; + /** + * Gets the default type url for GroupingRule + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.GroupingRule + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GroupingRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.GroupingRule"; + }; + + return GroupingRule; })(); - v1alpha.ChannelGroupFilterExpression = (function() { + v1alpha.ChannelGroup = (function() { /** - * Properties of a ChannelGroupFilterExpression. + * Properties of a ChannelGroup. * @memberof google.analytics.admin.v1alpha - * @interface IChannelGroupFilterExpression - * @property {google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList|null} [andGroup] ChannelGroupFilterExpression andGroup - * @property {google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList|null} [orGroup] ChannelGroupFilterExpression orGroup - * @property {google.analytics.admin.v1alpha.IChannelGroupFilterExpression|null} [notExpression] ChannelGroupFilterExpression notExpression - * @property {google.analytics.admin.v1alpha.IChannelGroupFilter|null} [filter] ChannelGroupFilterExpression filter + * @interface IChannelGroup + * @property {string|null} [name] ChannelGroup name + * @property {string|null} [displayName] ChannelGroup displayName + * @property {string|null} [description] ChannelGroup description + * @property {Array.|null} [groupingRule] ChannelGroup groupingRule + * @property {boolean|null} [systemDefined] ChannelGroup systemDefined */ /** - * Constructs a new ChannelGroupFilterExpression. + * Constructs a new ChannelGroup. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ChannelGroupFilterExpression. - * @implements IChannelGroupFilterExpression + * @classdesc Represents a ChannelGroup. + * @implements IChannelGroup * @constructor - * @param {google.analytics.admin.v1alpha.IChannelGroupFilterExpression=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IChannelGroup=} [properties] Properties to set */ - function ChannelGroupFilterExpression(properties) { + function ChannelGroup(properties) { + this.groupingRule = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49057,131 +52668,134 @@ } /** - * ChannelGroupFilterExpression andGroup. - * @member {google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList|null|undefined} andGroup - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression + * ChannelGroup name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.ChannelGroup * @instance */ - ChannelGroupFilterExpression.prototype.andGroup = null; + ChannelGroup.prototype.name = ""; /** - * ChannelGroupFilterExpression orGroup. - * @member {google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList|null|undefined} orGroup - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression + * ChannelGroup displayName. + * @member {string} displayName + * @memberof google.analytics.admin.v1alpha.ChannelGroup * @instance */ - ChannelGroupFilterExpression.prototype.orGroup = null; + ChannelGroup.prototype.displayName = ""; /** - * ChannelGroupFilterExpression notExpression. - * @member {google.analytics.admin.v1alpha.IChannelGroupFilterExpression|null|undefined} notExpression - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression + * ChannelGroup description. + * @member {string} description + * @memberof google.analytics.admin.v1alpha.ChannelGroup * @instance */ - ChannelGroupFilterExpression.prototype.notExpression = null; + ChannelGroup.prototype.description = ""; /** - * ChannelGroupFilterExpression filter. - * @member {google.analytics.admin.v1alpha.IChannelGroupFilter|null|undefined} filter - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression + * ChannelGroup groupingRule. + * @member {Array.} groupingRule + * @memberof google.analytics.admin.v1alpha.ChannelGroup * @instance */ - ChannelGroupFilterExpression.prototype.filter = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ChannelGroup.prototype.groupingRule = $util.emptyArray; /** - * ChannelGroupFilterExpression expr. - * @member {"andGroup"|"orGroup"|"notExpression"|"filter"|undefined} expr - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression + * ChannelGroup systemDefined. + * @member {boolean} systemDefined + * @memberof google.analytics.admin.v1alpha.ChannelGroup * @instance */ - Object.defineProperty(ChannelGroupFilterExpression.prototype, "expr", { - get: $util.oneOfGetter($oneOfFields = ["andGroup", "orGroup", "notExpression", "filter"]), - set: $util.oneOfSetter($oneOfFields) - }); + ChannelGroup.prototype.systemDefined = false; /** - * Creates a new ChannelGroupFilterExpression instance using the specified properties. + * Creates a new ChannelGroup instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression + * @memberof google.analytics.admin.v1alpha.ChannelGroup * @static - * @param {google.analytics.admin.v1alpha.IChannelGroupFilterExpression=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ChannelGroupFilterExpression} ChannelGroupFilterExpression instance + * @param {google.analytics.admin.v1alpha.IChannelGroup=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ChannelGroup} ChannelGroup instance */ - ChannelGroupFilterExpression.create = function create(properties) { - return new ChannelGroupFilterExpression(properties); + ChannelGroup.create = function create(properties) { + return new ChannelGroup(properties); }; /** - * Encodes the specified ChannelGroupFilterExpression message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilterExpression.verify|verify} messages. + * Encodes the specified ChannelGroup message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroup.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression + * @memberof google.analytics.admin.v1alpha.ChannelGroup * @static - * @param {google.analytics.admin.v1alpha.IChannelGroupFilterExpression} message ChannelGroupFilterExpression message or plain object to encode + * @param {google.analytics.admin.v1alpha.IChannelGroup} message ChannelGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChannelGroupFilterExpression.encode = function encode(message, writer) { + ChannelGroup.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.andGroup != null && Object.hasOwnProperty.call(message, "andGroup")) - $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.encode(message.andGroup, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.orGroup != null && Object.hasOwnProperty.call(message, "orGroup")) - $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.encode(message.orGroup, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.notExpression != null && Object.hasOwnProperty.call(message, "notExpression")) - $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.encode(message.notExpression, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - $root.google.analytics.admin.v1alpha.ChannelGroupFilter.encode(message.filter, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.groupingRule != null && message.groupingRule.length) + for (var i = 0; i < message.groupingRule.length; ++i) + $root.google.analytics.admin.v1alpha.GroupingRule.encode(message.groupingRule[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.systemDefined != null && Object.hasOwnProperty.call(message, "systemDefined")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.systemDefined); return writer; }; /** - * Encodes the specified ChannelGroupFilterExpression message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilterExpression.verify|verify} messages. + * Encodes the specified ChannelGroup message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroup.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression + * @memberof google.analytics.admin.v1alpha.ChannelGroup * @static - * @param {google.analytics.admin.v1alpha.IChannelGroupFilterExpression} message ChannelGroupFilterExpression message or plain object to encode + * @param {google.analytics.admin.v1alpha.IChannelGroup} message ChannelGroup message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChannelGroupFilterExpression.encodeDelimited = function encodeDelimited(message, writer) { + ChannelGroup.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChannelGroupFilterExpression message from the specified reader or buffer. + * Decodes a ChannelGroup message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression + * @memberof google.analytics.admin.v1alpha.ChannelGroup * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ChannelGroupFilterExpression} ChannelGroupFilterExpression + * @returns {google.analytics.admin.v1alpha.ChannelGroup} ChannelGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChannelGroupFilterExpression.decode = function decode(reader, length) { + ChannelGroup.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ChannelGroup(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.andGroup = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.decode(reader, reader.uint32()); + message.name = reader.string(); break; } case 2: { - message.orGroup = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.decode(reader, reader.uint32()); + message.displayName = reader.string(); break; } case 3: { - message.notExpression = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.decode(reader, reader.uint32()); + message.description = reader.string(); break; } case 4: { - message.filter = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.decode(reader, reader.uint32()); + if (!(message.groupingRule && message.groupingRule.length)) + message.groupingRule = []; + message.groupingRule.push($root.google.analytics.admin.v1alpha.GroupingRule.decode(reader, reader.uint32())); + break; + } + case 5: { + message.systemDefined = reader.bool(); break; } default: @@ -49193,193 +52807,174 @@ }; /** - * Decodes a ChannelGroupFilterExpression message from the specified reader or buffer, length delimited. + * Decodes a ChannelGroup message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression + * @memberof google.analytics.admin.v1alpha.ChannelGroup * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ChannelGroupFilterExpression} ChannelGroupFilterExpression + * @returns {google.analytics.admin.v1alpha.ChannelGroup} ChannelGroup * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChannelGroupFilterExpression.decodeDelimited = function decodeDelimited(reader) { + ChannelGroup.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChannelGroupFilterExpression message. + * Verifies a ChannelGroup message. * @function verify - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression + * @memberof google.analytics.admin.v1alpha.ChannelGroup * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChannelGroupFilterExpression.verify = function verify(message) { + ChannelGroup.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.andGroup != null && message.hasOwnProperty("andGroup")) { - properties.expr = 1; - { - var error = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.verify(message.andGroup); - if (error) - return "andGroup." + error; - } - } - if (message.orGroup != null && message.hasOwnProperty("orGroup")) { - if (properties.expr === 1) - return "expr: multiple values"; - properties.expr = 1; - { - var error = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.verify(message.orGroup); - if (error) - return "orGroup." + error; - } - } - if (message.notExpression != null && message.hasOwnProperty("notExpression")) { - if (properties.expr === 1) - return "expr: multiple values"; - properties.expr = 1; - { - var error = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.verify(message.notExpression); - if (error) - return "notExpression." + error; - } - } - if (message.filter != null && message.hasOwnProperty("filter")) { - if (properties.expr === 1) - return "expr: multiple values"; - properties.expr = 1; - { - var error = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.verify(message.filter); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.groupingRule != null && message.hasOwnProperty("groupingRule")) { + if (!Array.isArray(message.groupingRule)) + return "groupingRule: array expected"; + for (var i = 0; i < message.groupingRule.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.GroupingRule.verify(message.groupingRule[i]); if (error) - return "filter." + error; + return "groupingRule." + error; } } + if (message.systemDefined != null && message.hasOwnProperty("systemDefined")) + if (typeof message.systemDefined !== "boolean") + return "systemDefined: boolean expected"; return null; }; /** - * Creates a ChannelGroupFilterExpression message from a plain object. Also converts values to their respective internal types. + * Creates a ChannelGroup message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression + * @memberof google.analytics.admin.v1alpha.ChannelGroup * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ChannelGroupFilterExpression} ChannelGroupFilterExpression + * @returns {google.analytics.admin.v1alpha.ChannelGroup} ChannelGroup */ - ChannelGroupFilterExpression.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression) + ChannelGroup.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ChannelGroup) return object; - var message = new $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression(); - if (object.andGroup != null) { - if (typeof object.andGroup !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChannelGroupFilterExpression.andGroup: object expected"); - message.andGroup = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.fromObject(object.andGroup); - } - if (object.orGroup != null) { - if (typeof object.orGroup !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChannelGroupFilterExpression.orGroup: object expected"); - message.orGroup = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.fromObject(object.orGroup); - } - if (object.notExpression != null) { - if (typeof object.notExpression !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChannelGroupFilterExpression.notExpression: object expected"); - message.notExpression = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.fromObject(object.notExpression); - } - if (object.filter != null) { - if (typeof object.filter !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChannelGroupFilterExpression.filter: object expected"); - message.filter = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.fromObject(object.filter); + var message = new $root.google.analytics.admin.v1alpha.ChannelGroup(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + if (object.groupingRule) { + if (!Array.isArray(object.groupingRule)) + throw TypeError(".google.analytics.admin.v1alpha.ChannelGroup.groupingRule: array expected"); + message.groupingRule = []; + for (var i = 0; i < object.groupingRule.length; ++i) { + if (typeof object.groupingRule[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChannelGroup.groupingRule: object expected"); + message.groupingRule[i] = $root.google.analytics.admin.v1alpha.GroupingRule.fromObject(object.groupingRule[i]); + } } + if (object.systemDefined != null) + message.systemDefined = Boolean(object.systemDefined); return message; }; /** - * Creates a plain object from a ChannelGroupFilterExpression message. Also converts values to other types if specified. + * Creates a plain object from a ChannelGroup message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression + * @memberof google.analytics.admin.v1alpha.ChannelGroup * @static - * @param {google.analytics.admin.v1alpha.ChannelGroupFilterExpression} message ChannelGroupFilterExpression + * @param {google.analytics.admin.v1alpha.ChannelGroup} message ChannelGroup * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChannelGroupFilterExpression.toObject = function toObject(message, options) { + ChannelGroup.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.andGroup != null && message.hasOwnProperty("andGroup")) { - object.andGroup = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.toObject(message.andGroup, options); - if (options.oneofs) - object.expr = "andGroup"; - } - if (message.orGroup != null && message.hasOwnProperty("orGroup")) { - object.orGroup = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.toObject(message.orGroup, options); - if (options.oneofs) - object.expr = "orGroup"; - } - if (message.notExpression != null && message.hasOwnProperty("notExpression")) { - object.notExpression = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.toObject(message.notExpression, options); - if (options.oneofs) - object.expr = "notExpression"; + if (options.arrays || options.defaults) + object.groupingRule = []; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.description = ""; + object.systemDefined = false; } - if (message.filter != null && message.hasOwnProperty("filter")) { - object.filter = $root.google.analytics.admin.v1alpha.ChannelGroupFilter.toObject(message.filter, options); - if (options.oneofs) - object.expr = "filter"; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.groupingRule && message.groupingRule.length) { + object.groupingRule = []; + for (var j = 0; j < message.groupingRule.length; ++j) + object.groupingRule[j] = $root.google.analytics.admin.v1alpha.GroupingRule.toObject(message.groupingRule[j], options); } + if (message.systemDefined != null && message.hasOwnProperty("systemDefined")) + object.systemDefined = message.systemDefined; return object; }; /** - * Converts this ChannelGroupFilterExpression to JSON. + * Converts this ChannelGroup to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression + * @memberof google.analytics.admin.v1alpha.ChannelGroup * @instance * @returns {Object.} JSON object */ - ChannelGroupFilterExpression.prototype.toJSON = function toJSON() { + ChannelGroup.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ChannelGroupFilterExpression + * Gets the default type url for ChannelGroup * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpression + * @memberof google.analytics.admin.v1alpha.ChannelGroup * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ChannelGroupFilterExpression.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ChannelGroup.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.ChannelGroupFilterExpression"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ChannelGroup"; }; - return ChannelGroupFilterExpression; + return ChannelGroup; })(); - v1alpha.ChannelGroupFilterExpressionList = (function() { + v1alpha.ParameterMutation = (function() { /** - * Properties of a ChannelGroupFilterExpressionList. + * Properties of a ParameterMutation. * @memberof google.analytics.admin.v1alpha - * @interface IChannelGroupFilterExpressionList - * @property {Array.|null} [filterExpressions] ChannelGroupFilterExpressionList filterExpressions + * @interface IParameterMutation + * @property {string|null} [parameter] ParameterMutation parameter + * @property {string|null} [parameterValue] ParameterMutation parameterValue */ /** - * Constructs a new ChannelGroupFilterExpressionList. + * Constructs a new ParameterMutation. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ChannelGroupFilterExpressionList. - * @implements IChannelGroupFilterExpressionList + * @classdesc Represents a ParameterMutation. + * @implements IParameterMutation * @constructor - * @param {google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IParameterMutation=} [properties] Properties to set */ - function ChannelGroupFilterExpressionList(properties) { - this.filterExpressions = []; + function ParameterMutation(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49387,78 +52982,89 @@ } /** - * ChannelGroupFilterExpressionList filterExpressions. - * @member {Array.} filterExpressions - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + * ParameterMutation parameter. + * @member {string} parameter + * @memberof google.analytics.admin.v1alpha.ParameterMutation * @instance */ - ChannelGroupFilterExpressionList.prototype.filterExpressions = $util.emptyArray; + ParameterMutation.prototype.parameter = ""; /** - * Creates a new ChannelGroupFilterExpressionList instance using the specified properties. + * ParameterMutation parameterValue. + * @member {string} parameterValue + * @memberof google.analytics.admin.v1alpha.ParameterMutation + * @instance + */ + ParameterMutation.prototype.parameterValue = ""; + + /** + * Creates a new ParameterMutation instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + * @memberof google.analytics.admin.v1alpha.ParameterMutation * @static - * @param {google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList} ChannelGroupFilterExpressionList instance + * @param {google.analytics.admin.v1alpha.IParameterMutation=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.ParameterMutation} ParameterMutation instance */ - ChannelGroupFilterExpressionList.create = function create(properties) { - return new ChannelGroupFilterExpressionList(properties); + ParameterMutation.create = function create(properties) { + return new ParameterMutation(properties); }; /** - * Encodes the specified ChannelGroupFilterExpressionList message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.verify|verify} messages. + * Encodes the specified ParameterMutation message. Does not implicitly {@link google.analytics.admin.v1alpha.ParameterMutation.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + * @memberof google.analytics.admin.v1alpha.ParameterMutation * @static - * @param {google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList} message ChannelGroupFilterExpressionList message or plain object to encode + * @param {google.analytics.admin.v1alpha.IParameterMutation} message ParameterMutation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChannelGroupFilterExpressionList.encode = function encode(message, writer) { + ParameterMutation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.filterExpressions != null && message.filterExpressions.length) - for (var i = 0; i < message.filterExpressions.length; ++i) - $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.encode(message.filterExpressions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parameter != null && Object.hasOwnProperty.call(message, "parameter")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parameter); + if (message.parameterValue != null && Object.hasOwnProperty.call(message, "parameterValue")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameterValue); return writer; }; /** - * Encodes the specified ChannelGroupFilterExpressionList message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.verify|verify} messages. + * Encodes the specified ParameterMutation message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ParameterMutation.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + * @memberof google.analytics.admin.v1alpha.ParameterMutation * @static - * @param {google.analytics.admin.v1alpha.IChannelGroupFilterExpressionList} message ChannelGroupFilterExpressionList message or plain object to encode + * @param {google.analytics.admin.v1alpha.IParameterMutation} message ParameterMutation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChannelGroupFilterExpressionList.encodeDelimited = function encodeDelimited(message, writer) { + ParameterMutation.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChannelGroupFilterExpressionList message from the specified reader or buffer. + * Decodes a ParameterMutation message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + * @memberof google.analytics.admin.v1alpha.ParameterMutation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList} ChannelGroupFilterExpressionList + * @returns {google.analytics.admin.v1alpha.ParameterMutation} ParameterMutation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChannelGroupFilterExpressionList.decode = function decode(reader, length) { + ParameterMutation.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ParameterMutation(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.filterExpressions && message.filterExpressions.length)) - message.filterExpressions = []; - message.filterExpressions.push($root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.decode(reader, reader.uint32())); + message.parameter = reader.string(); + break; + } + case 2: { + message.parameterValue = reader.string(); break; } default: @@ -49470,140 +53076,137 @@ }; /** - * Decodes a ChannelGroupFilterExpressionList message from the specified reader or buffer, length delimited. + * Decodes a ParameterMutation message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + * @memberof google.analytics.admin.v1alpha.ParameterMutation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList} ChannelGroupFilterExpressionList + * @returns {google.analytics.admin.v1alpha.ParameterMutation} ParameterMutation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChannelGroupFilterExpressionList.decodeDelimited = function decodeDelimited(reader) { + ParameterMutation.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChannelGroupFilterExpressionList message. + * Verifies a ParameterMutation message. * @function verify - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + * @memberof google.analytics.admin.v1alpha.ParameterMutation * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChannelGroupFilterExpressionList.verify = function verify(message) { + ParameterMutation.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.filterExpressions != null && message.hasOwnProperty("filterExpressions")) { - if (!Array.isArray(message.filterExpressions)) - return "filterExpressions: array expected"; - for (var i = 0; i < message.filterExpressions.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.verify(message.filterExpressions[i]); - if (error) - return "filterExpressions." + error; - } - } + if (message.parameter != null && message.hasOwnProperty("parameter")) + if (!$util.isString(message.parameter)) + return "parameter: string expected"; + if (message.parameterValue != null && message.hasOwnProperty("parameterValue")) + if (!$util.isString(message.parameterValue)) + return "parameterValue: string expected"; return null; }; /** - * Creates a ChannelGroupFilterExpressionList message from a plain object. Also converts values to their respective internal types. + * Creates a ParameterMutation message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + * @memberof google.analytics.admin.v1alpha.ParameterMutation * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList} ChannelGroupFilterExpressionList + * @returns {google.analytics.admin.v1alpha.ParameterMutation} ParameterMutation */ - ChannelGroupFilterExpressionList.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) + ParameterMutation.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.ParameterMutation) return object; - var message = new $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList(); - if (object.filterExpressions) { - if (!Array.isArray(object.filterExpressions)) - throw TypeError(".google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.filterExpressions: array expected"); - message.filterExpressions = []; - for (var i = 0; i < object.filterExpressions.length; ++i) { - if (typeof object.filterExpressions[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.filterExpressions: object expected"); - message.filterExpressions[i] = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.fromObject(object.filterExpressions[i]); - } - } + var message = new $root.google.analytics.admin.v1alpha.ParameterMutation(); + if (object.parameter != null) + message.parameter = String(object.parameter); + if (object.parameterValue != null) + message.parameterValue = String(object.parameterValue); return message; }; /** - * Creates a plain object from a ChannelGroupFilterExpressionList message. Also converts values to other types if specified. + * Creates a plain object from a ParameterMutation message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + * @memberof google.analytics.admin.v1alpha.ParameterMutation * @static - * @param {google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList} message ChannelGroupFilterExpressionList + * @param {google.analytics.admin.v1alpha.ParameterMutation} message ParameterMutation * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChannelGroupFilterExpressionList.toObject = function toObject(message, options) { + ParameterMutation.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.filterExpressions = []; - if (message.filterExpressions && message.filterExpressions.length) { - object.filterExpressions = []; - for (var j = 0; j < message.filterExpressions.length; ++j) - object.filterExpressions[j] = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.toObject(message.filterExpressions[j], options); + if (options.defaults) { + object.parameter = ""; + object.parameterValue = ""; } + if (message.parameter != null && message.hasOwnProperty("parameter")) + object.parameter = message.parameter; + if (message.parameterValue != null && message.hasOwnProperty("parameterValue")) + object.parameterValue = message.parameterValue; return object; }; /** - * Converts this ChannelGroupFilterExpressionList to JSON. + * Converts this ParameterMutation to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + * @memberof google.analytics.admin.v1alpha.ParameterMutation * @instance * @returns {Object.} JSON object */ - ChannelGroupFilterExpressionList.prototype.toJSON = function toJSON() { + ParameterMutation.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ChannelGroupFilterExpressionList + * Gets the default type url for ParameterMutation * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + * @memberof google.analytics.admin.v1alpha.ParameterMutation * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ChannelGroupFilterExpressionList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ParameterMutation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.ParameterMutation"; }; - return ChannelGroupFilterExpressionList; + return ParameterMutation; })(); - v1alpha.GroupingRule = (function() { + v1alpha.EventCreateRule = (function() { /** - * Properties of a GroupingRule. + * Properties of an EventCreateRule. * @memberof google.analytics.admin.v1alpha - * @interface IGroupingRule - * @property {string|null} [displayName] GroupingRule displayName - * @property {google.analytics.admin.v1alpha.IChannelGroupFilterExpression|null} [expression] GroupingRule expression + * @interface IEventCreateRule + * @property {string|null} [name] EventCreateRule name + * @property {string|null} [destinationEvent] EventCreateRule destinationEvent + * @property {Array.|null} [eventConditions] EventCreateRule eventConditions + * @property {boolean|null} [sourceCopyParameters] EventCreateRule sourceCopyParameters + * @property {Array.|null} [parameterMutations] EventCreateRule parameterMutations */ /** - * Constructs a new GroupingRule. + * Constructs a new EventCreateRule. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a GroupingRule. - * @implements IGroupingRule + * @classdesc Represents an EventCreateRule. + * @implements IEventCreateRule * @constructor - * @param {google.analytics.admin.v1alpha.IGroupingRule=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IEventCreateRule=} [properties] Properties to set */ - function GroupingRule(properties) { + function EventCreateRule(properties) { + this.eventConditions = []; + this.parameterMutations = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49611,89 +53214,137 @@ } /** - * GroupingRule displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.GroupingRule + * EventCreateRule name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.EventCreateRule * @instance */ - GroupingRule.prototype.displayName = ""; + EventCreateRule.prototype.name = ""; /** - * GroupingRule expression. - * @member {google.analytics.admin.v1alpha.IChannelGroupFilterExpression|null|undefined} expression - * @memberof google.analytics.admin.v1alpha.GroupingRule + * EventCreateRule destinationEvent. + * @member {string} destinationEvent + * @memberof google.analytics.admin.v1alpha.EventCreateRule * @instance */ - GroupingRule.prototype.expression = null; + EventCreateRule.prototype.destinationEvent = ""; /** - * Creates a new GroupingRule instance using the specified properties. + * EventCreateRule eventConditions. + * @member {Array.} eventConditions + * @memberof google.analytics.admin.v1alpha.EventCreateRule + * @instance + */ + EventCreateRule.prototype.eventConditions = $util.emptyArray; + + /** + * EventCreateRule sourceCopyParameters. + * @member {boolean} sourceCopyParameters + * @memberof google.analytics.admin.v1alpha.EventCreateRule + * @instance + */ + EventCreateRule.prototype.sourceCopyParameters = false; + + /** + * EventCreateRule parameterMutations. + * @member {Array.} parameterMutations + * @memberof google.analytics.admin.v1alpha.EventCreateRule + * @instance + */ + EventCreateRule.prototype.parameterMutations = $util.emptyArray; + + /** + * Creates a new EventCreateRule instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.GroupingRule + * @memberof google.analytics.admin.v1alpha.EventCreateRule * @static - * @param {google.analytics.admin.v1alpha.IGroupingRule=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.GroupingRule} GroupingRule instance + * @param {google.analytics.admin.v1alpha.IEventCreateRule=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.EventCreateRule} EventCreateRule instance */ - GroupingRule.create = function create(properties) { - return new GroupingRule(properties); + EventCreateRule.create = function create(properties) { + return new EventCreateRule(properties); }; /** - * Encodes the specified GroupingRule message. Does not implicitly {@link google.analytics.admin.v1alpha.GroupingRule.verify|verify} messages. + * Encodes the specified EventCreateRule message. Does not implicitly {@link google.analytics.admin.v1alpha.EventCreateRule.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.GroupingRule + * @memberof google.analytics.admin.v1alpha.EventCreateRule * @static - * @param {google.analytics.admin.v1alpha.IGroupingRule} message GroupingRule message or plain object to encode + * @param {google.analytics.admin.v1alpha.IEventCreateRule} message EventCreateRule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GroupingRule.encode = function encode(message, writer) { + EventCreateRule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); - if (message.expression != null && Object.hasOwnProperty.call(message, "expression")) - $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.encode(message.expression, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.destinationEvent != null && Object.hasOwnProperty.call(message, "destinationEvent")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.destinationEvent); + if (message.eventConditions != null && message.eventConditions.length) + for (var i = 0; i < message.eventConditions.length; ++i) + $root.google.analytics.admin.v1alpha.MatchingCondition.encode(message.eventConditions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.sourceCopyParameters != null && Object.hasOwnProperty.call(message, "sourceCopyParameters")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.sourceCopyParameters); + if (message.parameterMutations != null && message.parameterMutations.length) + for (var i = 0; i < message.parameterMutations.length; ++i) + $root.google.analytics.admin.v1alpha.ParameterMutation.encode(message.parameterMutations[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified GroupingRule message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.GroupingRule.verify|verify} messages. + * Encodes the specified EventCreateRule message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.EventCreateRule.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.GroupingRule + * @memberof google.analytics.admin.v1alpha.EventCreateRule * @static - * @param {google.analytics.admin.v1alpha.IGroupingRule} message GroupingRule message or plain object to encode + * @param {google.analytics.admin.v1alpha.IEventCreateRule} message EventCreateRule message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GroupingRule.encodeDelimited = function encodeDelimited(message, writer) { + EventCreateRule.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GroupingRule message from the specified reader or buffer. + * Decodes an EventCreateRule message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.GroupingRule + * @memberof google.analytics.admin.v1alpha.EventCreateRule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.GroupingRule} GroupingRule + * @returns {google.analytics.admin.v1alpha.EventCreateRule} EventCreateRule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GroupingRule.decode = function decode(reader, length) { + EventCreateRule.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.GroupingRule(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.EventCreateRule(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.displayName = reader.string(); + message.name = reader.string(); break; } case 2: { - message.expression = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.decode(reader, reader.uint32()); + message.destinationEvent = reader.string(); + break; + } + case 3: { + if (!(message.eventConditions && message.eventConditions.length)) + message.eventConditions = []; + message.eventConditions.push($root.google.analytics.admin.v1alpha.MatchingCondition.decode(reader, reader.uint32())); + break; + } + case 4: { + message.sourceCopyParameters = reader.bool(); + break; + } + case 5: { + if (!(message.parameterMutations && message.parameterMutations.length)) + message.parameterMutations = []; + message.parameterMutations.push($root.google.analytics.admin.v1alpha.ParameterMutation.decode(reader, reader.uint32())); break; } default: @@ -49705,141 +53356,194 @@ }; /** - * Decodes a GroupingRule message from the specified reader or buffer, length delimited. + * Decodes an EventCreateRule message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.GroupingRule + * @memberof google.analytics.admin.v1alpha.EventCreateRule * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.GroupingRule} GroupingRule + * @returns {google.analytics.admin.v1alpha.EventCreateRule} EventCreateRule * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GroupingRule.decodeDelimited = function decodeDelimited(reader) { + EventCreateRule.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GroupingRule message. + * Verifies an EventCreateRule message. * @function verify - * @memberof google.analytics.admin.v1alpha.GroupingRule + * @memberof google.analytics.admin.v1alpha.EventCreateRule * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GroupingRule.verify = function verify(message) { + EventCreateRule.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.expression != null && message.hasOwnProperty("expression")) { - var error = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.verify(message.expression); - if (error) - return "expression." + error; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.destinationEvent != null && message.hasOwnProperty("destinationEvent")) + if (!$util.isString(message.destinationEvent)) + return "destinationEvent: string expected"; + if (message.eventConditions != null && message.hasOwnProperty("eventConditions")) { + if (!Array.isArray(message.eventConditions)) + return "eventConditions: array expected"; + for (var i = 0; i < message.eventConditions.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.MatchingCondition.verify(message.eventConditions[i]); + if (error) + return "eventConditions." + error; + } + } + if (message.sourceCopyParameters != null && message.hasOwnProperty("sourceCopyParameters")) + if (typeof message.sourceCopyParameters !== "boolean") + return "sourceCopyParameters: boolean expected"; + if (message.parameterMutations != null && message.hasOwnProperty("parameterMutations")) { + if (!Array.isArray(message.parameterMutations)) + return "parameterMutations: array expected"; + for (var i = 0; i < message.parameterMutations.length; ++i) { + var error = $root.google.analytics.admin.v1alpha.ParameterMutation.verify(message.parameterMutations[i]); + if (error) + return "parameterMutations." + error; + } } return null; }; /** - * Creates a GroupingRule message from a plain object. Also converts values to their respective internal types. + * Creates an EventCreateRule message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.GroupingRule + * @memberof google.analytics.admin.v1alpha.EventCreateRule * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.GroupingRule} GroupingRule + * @returns {google.analytics.admin.v1alpha.EventCreateRule} EventCreateRule */ - GroupingRule.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.GroupingRule) + EventCreateRule.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.EventCreateRule) return object; - var message = new $root.google.analytics.admin.v1alpha.GroupingRule(); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.expression != null) { - if (typeof object.expression !== "object") - throw TypeError(".google.analytics.admin.v1alpha.GroupingRule.expression: object expected"); - message.expression = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.fromObject(object.expression); + var message = new $root.google.analytics.admin.v1alpha.EventCreateRule(); + if (object.name != null) + message.name = String(object.name); + if (object.destinationEvent != null) + message.destinationEvent = String(object.destinationEvent); + if (object.eventConditions) { + if (!Array.isArray(object.eventConditions)) + throw TypeError(".google.analytics.admin.v1alpha.EventCreateRule.eventConditions: array expected"); + message.eventConditions = []; + for (var i = 0; i < object.eventConditions.length; ++i) { + if (typeof object.eventConditions[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.EventCreateRule.eventConditions: object expected"); + message.eventConditions[i] = $root.google.analytics.admin.v1alpha.MatchingCondition.fromObject(object.eventConditions[i]); + } + } + if (object.sourceCopyParameters != null) + message.sourceCopyParameters = Boolean(object.sourceCopyParameters); + if (object.parameterMutations) { + if (!Array.isArray(object.parameterMutations)) + throw TypeError(".google.analytics.admin.v1alpha.EventCreateRule.parameterMutations: array expected"); + message.parameterMutations = []; + for (var i = 0; i < object.parameterMutations.length; ++i) { + if (typeof object.parameterMutations[i] !== "object") + throw TypeError(".google.analytics.admin.v1alpha.EventCreateRule.parameterMutations: object expected"); + message.parameterMutations[i] = $root.google.analytics.admin.v1alpha.ParameterMutation.fromObject(object.parameterMutations[i]); + } } return message; }; /** - * Creates a plain object from a GroupingRule message. Also converts values to other types if specified. + * Creates a plain object from an EventCreateRule message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.GroupingRule + * @memberof google.analytics.admin.v1alpha.EventCreateRule * @static - * @param {google.analytics.admin.v1alpha.GroupingRule} message GroupingRule + * @param {google.analytics.admin.v1alpha.EventCreateRule} message EventCreateRule * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GroupingRule.toObject = function toObject(message, options) { + EventCreateRule.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.eventConditions = []; + object.parameterMutations = []; + } if (options.defaults) { - object.displayName = ""; - object.expression = null; + object.name = ""; + object.destinationEvent = ""; + object.sourceCopyParameters = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.destinationEvent != null && message.hasOwnProperty("destinationEvent")) + object.destinationEvent = message.destinationEvent; + if (message.eventConditions && message.eventConditions.length) { + object.eventConditions = []; + for (var j = 0; j < message.eventConditions.length; ++j) + object.eventConditions[j] = $root.google.analytics.admin.v1alpha.MatchingCondition.toObject(message.eventConditions[j], options); + } + if (message.sourceCopyParameters != null && message.hasOwnProperty("sourceCopyParameters")) + object.sourceCopyParameters = message.sourceCopyParameters; + if (message.parameterMutations && message.parameterMutations.length) { + object.parameterMutations = []; + for (var j = 0; j < message.parameterMutations.length; ++j) + object.parameterMutations[j] = $root.google.analytics.admin.v1alpha.ParameterMutation.toObject(message.parameterMutations[j], options); } - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.expression != null && message.hasOwnProperty("expression")) - object.expression = $root.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.toObject(message.expression, options); return object; }; /** - * Converts this GroupingRule to JSON. + * Converts this EventCreateRule to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.GroupingRule + * @memberof google.analytics.admin.v1alpha.EventCreateRule * @instance * @returns {Object.} JSON object */ - GroupingRule.prototype.toJSON = function toJSON() { + EventCreateRule.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GroupingRule + * Gets the default type url for EventCreateRule * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.GroupingRule + * @memberof google.analytics.admin.v1alpha.EventCreateRule * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GroupingRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EventCreateRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.GroupingRule"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.EventCreateRule"; }; - return GroupingRule; + return EventCreateRule; })(); - v1alpha.ChannelGroup = (function() { + v1alpha.MatchingCondition = (function() { /** - * Properties of a ChannelGroup. + * Properties of a MatchingCondition. * @memberof google.analytics.admin.v1alpha - * @interface IChannelGroup - * @property {string|null} [name] ChannelGroup name - * @property {string|null} [displayName] ChannelGroup displayName - * @property {string|null} [description] ChannelGroup description - * @property {Array.|null} [groupingRule] ChannelGroup groupingRule - * @property {boolean|null} [systemDefined] ChannelGroup systemDefined + * @interface IMatchingCondition + * @property {string|null} [field] MatchingCondition field + * @property {google.analytics.admin.v1alpha.MatchingCondition.ComparisonType|null} [comparisonType] MatchingCondition comparisonType + * @property {string|null} [value] MatchingCondition value + * @property {boolean|null} [negated] MatchingCondition negated */ /** - * Constructs a new ChannelGroup. + * Constructs a new MatchingCondition. * @memberof google.analytics.admin.v1alpha - * @classdesc Represents a ChannelGroup. - * @implements IChannelGroup + * @classdesc Represents a MatchingCondition. + * @implements IMatchingCondition * @constructor - * @param {google.analytics.admin.v1alpha.IChannelGroup=} [properties] Properties to set + * @param {google.analytics.admin.v1alpha.IMatchingCondition=} [properties] Properties to set */ - function ChannelGroup(properties) { - this.groupingRule = []; + function MatchingCondition(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -49847,134 +53551,117 @@ } /** - * ChannelGroup name. - * @member {string} name - * @memberof google.analytics.admin.v1alpha.ChannelGroup - * @instance - */ - ChannelGroup.prototype.name = ""; - - /** - * ChannelGroup displayName. - * @member {string} displayName - * @memberof google.analytics.admin.v1alpha.ChannelGroup + * MatchingCondition field. + * @member {string} field + * @memberof google.analytics.admin.v1alpha.MatchingCondition * @instance */ - ChannelGroup.prototype.displayName = ""; + MatchingCondition.prototype.field = ""; /** - * ChannelGroup description. - * @member {string} description - * @memberof google.analytics.admin.v1alpha.ChannelGroup + * MatchingCondition comparisonType. + * @member {google.analytics.admin.v1alpha.MatchingCondition.ComparisonType} comparisonType + * @memberof google.analytics.admin.v1alpha.MatchingCondition * @instance */ - ChannelGroup.prototype.description = ""; + MatchingCondition.prototype.comparisonType = 0; /** - * ChannelGroup groupingRule. - * @member {Array.} groupingRule - * @memberof google.analytics.admin.v1alpha.ChannelGroup + * MatchingCondition value. + * @member {string} value + * @memberof google.analytics.admin.v1alpha.MatchingCondition * @instance */ - ChannelGroup.prototype.groupingRule = $util.emptyArray; + MatchingCondition.prototype.value = ""; /** - * ChannelGroup systemDefined. - * @member {boolean} systemDefined - * @memberof google.analytics.admin.v1alpha.ChannelGroup + * MatchingCondition negated. + * @member {boolean} negated + * @memberof google.analytics.admin.v1alpha.MatchingCondition * @instance */ - ChannelGroup.prototype.systemDefined = false; + MatchingCondition.prototype.negated = false; /** - * Creates a new ChannelGroup instance using the specified properties. + * Creates a new MatchingCondition instance using the specified properties. * @function create - * @memberof google.analytics.admin.v1alpha.ChannelGroup + * @memberof google.analytics.admin.v1alpha.MatchingCondition * @static - * @param {google.analytics.admin.v1alpha.IChannelGroup=} [properties] Properties to set - * @returns {google.analytics.admin.v1alpha.ChannelGroup} ChannelGroup instance + * @param {google.analytics.admin.v1alpha.IMatchingCondition=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.MatchingCondition} MatchingCondition instance */ - ChannelGroup.create = function create(properties) { - return new ChannelGroup(properties); + MatchingCondition.create = function create(properties) { + return new MatchingCondition(properties); }; /** - * Encodes the specified ChannelGroup message. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroup.verify|verify} messages. + * Encodes the specified MatchingCondition message. Does not implicitly {@link google.analytics.admin.v1alpha.MatchingCondition.verify|verify} messages. * @function encode - * @memberof google.analytics.admin.v1alpha.ChannelGroup + * @memberof google.analytics.admin.v1alpha.MatchingCondition * @static - * @param {google.analytics.admin.v1alpha.IChannelGroup} message ChannelGroup message or plain object to encode + * @param {google.analytics.admin.v1alpha.IMatchingCondition} message MatchingCondition message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChannelGroup.encode = function encode(message, writer) { + MatchingCondition.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.groupingRule != null && message.groupingRule.length) - for (var i = 0; i < message.groupingRule.length; ++i) - $root.google.analytics.admin.v1alpha.GroupingRule.encode(message.groupingRule[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.systemDefined != null && Object.hasOwnProperty.call(message, "systemDefined")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.systemDefined); + if (message.field != null && Object.hasOwnProperty.call(message, "field")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.field); + if (message.comparisonType != null && Object.hasOwnProperty.call(message, "comparisonType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.comparisonType); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.value); + if (message.negated != null && Object.hasOwnProperty.call(message, "negated")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.negated); return writer; }; /** - * Encodes the specified ChannelGroup message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.ChannelGroup.verify|verify} messages. + * Encodes the specified MatchingCondition message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.MatchingCondition.verify|verify} messages. * @function encodeDelimited - * @memberof google.analytics.admin.v1alpha.ChannelGroup + * @memberof google.analytics.admin.v1alpha.MatchingCondition * @static - * @param {google.analytics.admin.v1alpha.IChannelGroup} message ChannelGroup message or plain object to encode + * @param {google.analytics.admin.v1alpha.IMatchingCondition} message MatchingCondition message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ChannelGroup.encodeDelimited = function encodeDelimited(message, writer) { + MatchingCondition.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ChannelGroup message from the specified reader or buffer. + * Decodes a MatchingCondition message from the specified reader or buffer. * @function decode - * @memberof google.analytics.admin.v1alpha.ChannelGroup + * @memberof google.analytics.admin.v1alpha.MatchingCondition * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.analytics.admin.v1alpha.ChannelGroup} ChannelGroup + * @returns {google.analytics.admin.v1alpha.MatchingCondition} MatchingCondition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChannelGroup.decode = function decode(reader, length) { + MatchingCondition.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.ChannelGroup(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.MatchingCondition(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.field = reader.string(); break; } case 2: { - message.displayName = reader.string(); + message.comparisonType = reader.int32(); break; } case 3: { - message.description = reader.string(); + message.value = reader.string(); break; } case 4: { - if (!(message.groupingRule && message.groupingRule.length)) - message.groupingRule = []; - message.groupingRule.push($root.google.analytics.admin.v1alpha.GroupingRule.decode(reader, reader.uint32())); - break; - } - case 5: { - message.systemDefined = reader.bool(); + message.negated = reader.bool(); break; } default: @@ -49986,153 +53673,251 @@ }; /** - * Decodes a ChannelGroup message from the specified reader or buffer, length delimited. + * Decodes a MatchingCondition message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.analytics.admin.v1alpha.ChannelGroup + * @memberof google.analytics.admin.v1alpha.MatchingCondition * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.analytics.admin.v1alpha.ChannelGroup} ChannelGroup + * @returns {google.analytics.admin.v1alpha.MatchingCondition} MatchingCondition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ChannelGroup.decodeDelimited = function decodeDelimited(reader) { + MatchingCondition.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ChannelGroup message. + * Verifies a MatchingCondition message. * @function verify - * @memberof google.analytics.admin.v1alpha.ChannelGroup + * @memberof google.analytics.admin.v1alpha.MatchingCondition * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ChannelGroup.verify = function verify(message) { + MatchingCondition.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.groupingRule != null && message.hasOwnProperty("groupingRule")) { - if (!Array.isArray(message.groupingRule)) - return "groupingRule: array expected"; - for (var i = 0; i < message.groupingRule.length; ++i) { - var error = $root.google.analytics.admin.v1alpha.GroupingRule.verify(message.groupingRule[i]); - if (error) - return "groupingRule." + error; + if (message.field != null && message.hasOwnProperty("field")) + if (!$util.isString(message.field)) + return "field: string expected"; + if (message.comparisonType != null && message.hasOwnProperty("comparisonType")) + switch (message.comparisonType) { + default: + return "comparisonType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + break; } - } - if (message.systemDefined != null && message.hasOwnProperty("systemDefined")) - if (typeof message.systemDefined !== "boolean") - return "systemDefined: boolean expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + if (message.negated != null && message.hasOwnProperty("negated")) + if (typeof message.negated !== "boolean") + return "negated: boolean expected"; return null; }; /** - * Creates a ChannelGroup message from a plain object. Also converts values to their respective internal types. + * Creates a MatchingCondition message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.analytics.admin.v1alpha.ChannelGroup + * @memberof google.analytics.admin.v1alpha.MatchingCondition * @static * @param {Object.} object Plain object - * @returns {google.analytics.admin.v1alpha.ChannelGroup} ChannelGroup + * @returns {google.analytics.admin.v1alpha.MatchingCondition} MatchingCondition */ - ChannelGroup.fromObject = function fromObject(object) { - if (object instanceof $root.google.analytics.admin.v1alpha.ChannelGroup) + MatchingCondition.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.MatchingCondition) return object; - var message = new $root.google.analytics.admin.v1alpha.ChannelGroup(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - if (object.groupingRule) { - if (!Array.isArray(object.groupingRule)) - throw TypeError(".google.analytics.admin.v1alpha.ChannelGroup.groupingRule: array expected"); - message.groupingRule = []; - for (var i = 0; i < object.groupingRule.length; ++i) { - if (typeof object.groupingRule[i] !== "object") - throw TypeError(".google.analytics.admin.v1alpha.ChannelGroup.groupingRule: object expected"); - message.groupingRule[i] = $root.google.analytics.admin.v1alpha.GroupingRule.fromObject(object.groupingRule[i]); + var message = new $root.google.analytics.admin.v1alpha.MatchingCondition(); + if (object.field != null) + message.field = String(object.field); + switch (object.comparisonType) { + default: + if (typeof object.comparisonType === "number") { + message.comparisonType = object.comparisonType; + break; } + break; + case "COMPARISON_TYPE_UNSPECIFIED": + case 0: + message.comparisonType = 0; + break; + case "EQUALS": + case 1: + message.comparisonType = 1; + break; + case "EQUALS_CASE_INSENSITIVE": + case 2: + message.comparisonType = 2; + break; + case "CONTAINS": + case 3: + message.comparisonType = 3; + break; + case "CONTAINS_CASE_INSENSITIVE": + case 4: + message.comparisonType = 4; + break; + case "STARTS_WITH": + case 5: + message.comparisonType = 5; + break; + case "STARTS_WITH_CASE_INSENSITIVE": + case 6: + message.comparisonType = 6; + break; + case "ENDS_WITH": + case 7: + message.comparisonType = 7; + break; + case "ENDS_WITH_CASE_INSENSITIVE": + case 8: + message.comparisonType = 8; + break; + case "GREATER_THAN": + case 9: + message.comparisonType = 9; + break; + case "GREATER_THAN_OR_EQUAL": + case 10: + message.comparisonType = 10; + break; + case "LESS_THAN": + case 11: + message.comparisonType = 11; + break; + case "LESS_THAN_OR_EQUAL": + case 12: + message.comparisonType = 12; + break; + case "REGULAR_EXPRESSION": + case 13: + message.comparisonType = 13; + break; + case "REGULAR_EXPRESSION_CASE_INSENSITIVE": + case 14: + message.comparisonType = 14; + break; } - if (object.systemDefined != null) - message.systemDefined = Boolean(object.systemDefined); + if (object.value != null) + message.value = String(object.value); + if (object.negated != null) + message.negated = Boolean(object.negated); return message; }; /** - * Creates a plain object from a ChannelGroup message. Also converts values to other types if specified. + * Creates a plain object from a MatchingCondition message. Also converts values to other types if specified. * @function toObject - * @memberof google.analytics.admin.v1alpha.ChannelGroup + * @memberof google.analytics.admin.v1alpha.MatchingCondition * @static - * @param {google.analytics.admin.v1alpha.ChannelGroup} message ChannelGroup + * @param {google.analytics.admin.v1alpha.MatchingCondition} message MatchingCondition * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ChannelGroup.toObject = function toObject(message, options) { + MatchingCondition.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.groupingRule = []; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.description = ""; - object.systemDefined = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.groupingRule && message.groupingRule.length) { - object.groupingRule = []; - for (var j = 0; j < message.groupingRule.length; ++j) - object.groupingRule[j] = $root.google.analytics.admin.v1alpha.GroupingRule.toObject(message.groupingRule[j], options); + object.field = ""; + object.comparisonType = options.enums === String ? "COMPARISON_TYPE_UNSPECIFIED" : 0; + object.value = ""; + object.negated = false; } - if (message.systemDefined != null && message.hasOwnProperty("systemDefined")) - object.systemDefined = message.systemDefined; + if (message.field != null && message.hasOwnProperty("field")) + object.field = message.field; + if (message.comparisonType != null && message.hasOwnProperty("comparisonType")) + object.comparisonType = options.enums === String ? $root.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType[message.comparisonType] === undefined ? message.comparisonType : $root.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType[message.comparisonType] : message.comparisonType; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + if (message.negated != null && message.hasOwnProperty("negated")) + object.negated = message.negated; return object; }; /** - * Converts this ChannelGroup to JSON. + * Converts this MatchingCondition to JSON. * @function toJSON - * @memberof google.analytics.admin.v1alpha.ChannelGroup + * @memberof google.analytics.admin.v1alpha.MatchingCondition * @instance * @returns {Object.} JSON object */ - ChannelGroup.prototype.toJSON = function toJSON() { + MatchingCondition.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ChannelGroup + * Gets the default type url for MatchingCondition * @function getTypeUrl - * @memberof google.analytics.admin.v1alpha.ChannelGroup + * @memberof google.analytics.admin.v1alpha.MatchingCondition * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ChannelGroup.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MatchingCondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.analytics.admin.v1alpha.ChannelGroup"; + return typeUrlPrefix + "/google.analytics.admin.v1alpha.MatchingCondition"; }; - return ChannelGroup; + /** + * ComparisonType enum. + * @name google.analytics.admin.v1alpha.MatchingCondition.ComparisonType + * @enum {number} + * @property {number} COMPARISON_TYPE_UNSPECIFIED=0 COMPARISON_TYPE_UNSPECIFIED value + * @property {number} EQUALS=1 EQUALS value + * @property {number} EQUALS_CASE_INSENSITIVE=2 EQUALS_CASE_INSENSITIVE value + * @property {number} CONTAINS=3 CONTAINS value + * @property {number} CONTAINS_CASE_INSENSITIVE=4 CONTAINS_CASE_INSENSITIVE value + * @property {number} STARTS_WITH=5 STARTS_WITH value + * @property {number} STARTS_WITH_CASE_INSENSITIVE=6 STARTS_WITH_CASE_INSENSITIVE value + * @property {number} ENDS_WITH=7 ENDS_WITH value + * @property {number} ENDS_WITH_CASE_INSENSITIVE=8 ENDS_WITH_CASE_INSENSITIVE value + * @property {number} GREATER_THAN=9 GREATER_THAN value + * @property {number} GREATER_THAN_OR_EQUAL=10 GREATER_THAN_OR_EQUAL value + * @property {number} LESS_THAN=11 LESS_THAN value + * @property {number} LESS_THAN_OR_EQUAL=12 LESS_THAN_OR_EQUAL value + * @property {number} REGULAR_EXPRESSION=13 REGULAR_EXPRESSION value + * @property {number} REGULAR_EXPRESSION_CASE_INSENSITIVE=14 REGULAR_EXPRESSION_CASE_INSENSITIVE value + */ + MatchingCondition.ComparisonType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "COMPARISON_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EQUALS"] = 1; + values[valuesById[2] = "EQUALS_CASE_INSENSITIVE"] = 2; + values[valuesById[3] = "CONTAINS"] = 3; + values[valuesById[4] = "CONTAINS_CASE_INSENSITIVE"] = 4; + values[valuesById[5] = "STARTS_WITH"] = 5; + values[valuesById[6] = "STARTS_WITH_CASE_INSENSITIVE"] = 6; + values[valuesById[7] = "ENDS_WITH"] = 7; + values[valuesById[8] = "ENDS_WITH_CASE_INSENSITIVE"] = 8; + values[valuesById[9] = "GREATER_THAN"] = 9; + values[valuesById[10] = "GREATER_THAN_OR_EQUAL"] = 10; + values[valuesById[11] = "LESS_THAN"] = 11; + values[valuesById[12] = "LESS_THAN_OR_EQUAL"] = 12; + values[valuesById[13] = "REGULAR_EXPRESSION"] = 13; + values[valuesById[14] = "REGULAR_EXPRESSION_CASE_INSENSITIVE"] = 14; + return values; + })(); + + return MatchingCondition; })(); v1alpha.ExpandedDataSetFilter = (function() { @@ -52000,6 +55785,9 @@ * @property {number} EXPANDED_DATA_SET=21 EXPANDED_DATA_SET value * @property {number} CHANNEL_GROUP=22 CHANNEL_GROUP value * @property {number} ENHANCED_MEASUREMENT_SETTINGS=24 ENHANCED_MEASUREMENT_SETTINGS value + * @property {number} ADSENSE_LINK=27 ADSENSE_LINK value + * @property {number} AUDIENCE=28 AUDIENCE value + * @property {number} EVENT_CREATE_RULE=29 EVENT_CREATE_RULE value */ v1alpha.ChangeHistoryResourceType = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -52022,6 +55810,9 @@ values[valuesById[21] = "EXPANDED_DATA_SET"] = 21; values[valuesById[22] = "CHANNEL_GROUP"] = 22; values[valuesById[24] = "ENHANCED_MEASUREMENT_SETTINGS"] = 24; + values[valuesById[27] = "ADSENSE_LINK"] = 27; + values[valuesById[28] = "AUDIENCE"] = 28; + values[valuesById[29] = "EVENT_CREATE_RULE"] = 29; return values; })(); @@ -57604,6 +61395,9 @@ * @property {google.analytics.admin.v1alpha.IChannelGroup|null} [channelGroup] ChangeHistoryResource channelGroup * @property {google.analytics.admin.v1alpha.IBigQueryLink|null} [bigqueryLink] ChangeHistoryResource bigqueryLink * @property {google.analytics.admin.v1alpha.IEnhancedMeasurementSettings|null} [enhancedMeasurementSettings] ChangeHistoryResource enhancedMeasurementSettings + * @property {google.analytics.admin.v1alpha.IAdSenseLink|null} [adsenseLink] ChangeHistoryResource adsenseLink + * @property {google.analytics.admin.v1alpha.IAudience|null} [audience] ChangeHistoryResource audience + * @property {google.analytics.admin.v1alpha.IEventCreateRule|null} [eventCreateRule] ChangeHistoryResource eventCreateRule */ /** @@ -57773,17 +61567,41 @@ */ ChangeHistoryResource.prototype.enhancedMeasurementSettings = null; + /** + * ChangeHistoryResource adsenseLink. + * @member {google.analytics.admin.v1alpha.IAdSenseLink|null|undefined} adsenseLink + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.adsenseLink = null; + + /** + * ChangeHistoryResource audience. + * @member {google.analytics.admin.v1alpha.IAudience|null|undefined} audience + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.audience = null; + + /** + * ChangeHistoryResource eventCreateRule. + * @member {google.analytics.admin.v1alpha.IEventCreateRule|null|undefined} eventCreateRule + * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + * @instance + */ + ChangeHistoryResource.prototype.eventCreateRule = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; /** * ChangeHistoryResource resource. - * @member {"account"|"property"|"firebaseLink"|"googleAdsLink"|"googleSignalsSettings"|"displayVideo_360AdvertiserLink"|"displayVideo_360AdvertiserLinkProposal"|"conversionEvent"|"measurementProtocolSecret"|"customDimension"|"customMetric"|"dataRetentionSettings"|"searchAds_360Link"|"dataStream"|"attributionSettings"|"expandedDataSet"|"channelGroup"|"bigqueryLink"|"enhancedMeasurementSettings"|undefined} resource + * @member {"account"|"property"|"firebaseLink"|"googleAdsLink"|"googleSignalsSettings"|"displayVideo_360AdvertiserLink"|"displayVideo_360AdvertiserLinkProposal"|"conversionEvent"|"measurementProtocolSecret"|"customDimension"|"customMetric"|"dataRetentionSettings"|"searchAds_360Link"|"dataStream"|"attributionSettings"|"expandedDataSet"|"channelGroup"|"bigqueryLink"|"enhancedMeasurementSettings"|"adsenseLink"|"audience"|"eventCreateRule"|undefined} resource * @memberof google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource * @instance */ Object.defineProperty(ChangeHistoryResource.prototype, "resource", { - get: $util.oneOfGetter($oneOfFields = ["account", "property", "firebaseLink", "googleAdsLink", "googleSignalsSettings", "displayVideo_360AdvertiserLink", "displayVideo_360AdvertiserLinkProposal", "conversionEvent", "measurementProtocolSecret", "customDimension", "customMetric", "dataRetentionSettings", "searchAds_360Link", "dataStream", "attributionSettings", "expandedDataSet", "channelGroup", "bigqueryLink", "enhancedMeasurementSettings"]), + get: $util.oneOfGetter($oneOfFields = ["account", "property", "firebaseLink", "googleAdsLink", "googleSignalsSettings", "displayVideo_360AdvertiserLink", "displayVideo_360AdvertiserLinkProposal", "conversionEvent", "measurementProtocolSecret", "customDimension", "customMetric", "dataRetentionSettings", "searchAds_360Link", "dataStream", "attributionSettings", "expandedDataSet", "channelGroup", "bigqueryLink", "enhancedMeasurementSettings", "adsenseLink", "audience", "eventCreateRule"]), set: $util.oneOfSetter($oneOfFields) }); @@ -57849,6 +61667,12 @@ $root.google.analytics.admin.v1alpha.BigQueryLink.encode(message.bigqueryLink, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); if (message.enhancedMeasurementSettings != null && Object.hasOwnProperty.call(message, "enhancedMeasurementSettings")) $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.encode(message.enhancedMeasurementSettings, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim(); + if (message.adsenseLink != null && Object.hasOwnProperty.call(message, "adsenseLink")) + $root.google.analytics.admin.v1alpha.AdSenseLink.encode(message.adsenseLink, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim(); + if (message.audience != null && Object.hasOwnProperty.call(message, "audience")) + $root.google.analytics.admin.v1alpha.Audience.encode(message.audience, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim(); + if (message.eventCreateRule != null && Object.hasOwnProperty.call(message, "eventCreateRule")) + $root.google.analytics.admin.v1alpha.EventCreateRule.encode(message.eventCreateRule, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim(); return writer; }; @@ -57959,6 +61783,18 @@ message.enhancedMeasurementSettings = $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.decode(reader, reader.uint32()); break; } + case 27: { + message.adsenseLink = $root.google.analytics.admin.v1alpha.AdSenseLink.decode(reader, reader.uint32()); + break; + } + case 28: { + message.audience = $root.google.analytics.admin.v1alpha.Audience.decode(reader, reader.uint32()); + break; + } + case 29: { + message.eventCreateRule = $root.google.analytics.admin.v1alpha.EventCreateRule.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -58183,6 +62019,36 @@ return "enhancedMeasurementSettings." + error; } } + if (message.adsenseLink != null && message.hasOwnProperty("adsenseLink")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.AdSenseLink.verify(message.adsenseLink); + if (error) + return "adsenseLink." + error; + } + } + if (message.audience != null && message.hasOwnProperty("audience")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.Audience.verify(message.audience); + if (error) + return "audience." + error; + } + } + if (message.eventCreateRule != null && message.hasOwnProperty("eventCreateRule")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.analytics.admin.v1alpha.EventCreateRule.verify(message.eventCreateRule); + if (error) + return "eventCreateRule." + error; + } + } return null; }; @@ -58293,6 +62159,21 @@ throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.enhancedMeasurementSettings: object expected"); message.enhancedMeasurementSettings = $root.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.fromObject(object.enhancedMeasurementSettings); } + if (object.adsenseLink != null) { + if (typeof object.adsenseLink !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.adsenseLink: object expected"); + message.adsenseLink = $root.google.analytics.admin.v1alpha.AdSenseLink.fromObject(object.adsenseLink); + } + if (object.audience != null) { + if (typeof object.audience !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.audience: object expected"); + message.audience = $root.google.analytics.admin.v1alpha.Audience.fromObject(object.audience); + } + if (object.eventCreateRule != null) { + if (typeof object.eventCreateRule !== "object") + throw TypeError(".google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.eventCreateRule: object expected"); + message.eventCreateRule = $root.google.analytics.admin.v1alpha.EventCreateRule.fromObject(object.eventCreateRule); + } return message; }; @@ -58404,6 +62285,21 @@ if (options.oneofs) object.resource = "enhancedMeasurementSettings"; } + if (message.adsenseLink != null && message.hasOwnProperty("adsenseLink")) { + object.adsenseLink = $root.google.analytics.admin.v1alpha.AdSenseLink.toObject(message.adsenseLink, options); + if (options.oneofs) + object.resource = "adsenseLink"; + } + if (message.audience != null && message.hasOwnProperty("audience")) { + object.audience = $root.google.analytics.admin.v1alpha.Audience.toObject(message.audience, options); + if (options.oneofs) + object.resource = "audience"; + } + if (message.eventCreateRule != null && message.hasOwnProperty("eventCreateRule")) { + object.eventCreateRule = $root.google.analytics.admin.v1alpha.EventCreateRule.toObject(message.eventCreateRule, options); + if (options.oneofs) + object.resource = "eventCreateRule"; + } return object; }; @@ -63458,6 +67354,233 @@ return ConnectedSiteTag; })(); + v1alpha.AdSenseLink = (function() { + + /** + * Properties of an AdSenseLink. + * @memberof google.analytics.admin.v1alpha + * @interface IAdSenseLink + * @property {string|null} [name] AdSenseLink name + * @property {string|null} [adClientCode] AdSenseLink adClientCode + */ + + /** + * Constructs a new AdSenseLink. + * @memberof google.analytics.admin.v1alpha + * @classdesc Represents an AdSenseLink. + * @implements IAdSenseLink + * @constructor + * @param {google.analytics.admin.v1alpha.IAdSenseLink=} [properties] Properties to set + */ + function AdSenseLink(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AdSenseLink name. + * @member {string} name + * @memberof google.analytics.admin.v1alpha.AdSenseLink + * @instance + */ + AdSenseLink.prototype.name = ""; + + /** + * AdSenseLink adClientCode. + * @member {string} adClientCode + * @memberof google.analytics.admin.v1alpha.AdSenseLink + * @instance + */ + AdSenseLink.prototype.adClientCode = ""; + + /** + * Creates a new AdSenseLink instance using the specified properties. + * @function create + * @memberof google.analytics.admin.v1alpha.AdSenseLink + * @static + * @param {google.analytics.admin.v1alpha.IAdSenseLink=} [properties] Properties to set + * @returns {google.analytics.admin.v1alpha.AdSenseLink} AdSenseLink instance + */ + AdSenseLink.create = function create(properties) { + return new AdSenseLink(properties); + }; + + /** + * Encodes the specified AdSenseLink message. Does not implicitly {@link google.analytics.admin.v1alpha.AdSenseLink.verify|verify} messages. + * @function encode + * @memberof google.analytics.admin.v1alpha.AdSenseLink + * @static + * @param {google.analytics.admin.v1alpha.IAdSenseLink} message AdSenseLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AdSenseLink.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.adClientCode != null && Object.hasOwnProperty.call(message, "adClientCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.adClientCode); + return writer; + }; + + /** + * Encodes the specified AdSenseLink message, length delimited. Does not implicitly {@link google.analytics.admin.v1alpha.AdSenseLink.verify|verify} messages. + * @function encodeDelimited + * @memberof google.analytics.admin.v1alpha.AdSenseLink + * @static + * @param {google.analytics.admin.v1alpha.IAdSenseLink} message AdSenseLink message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AdSenseLink.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AdSenseLink message from the specified reader or buffer. + * @function decode + * @memberof google.analytics.admin.v1alpha.AdSenseLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.analytics.admin.v1alpha.AdSenseLink} AdSenseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AdSenseLink.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.analytics.admin.v1alpha.AdSenseLink(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.adClientCode = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AdSenseLink message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.analytics.admin.v1alpha.AdSenseLink + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.analytics.admin.v1alpha.AdSenseLink} AdSenseLink + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AdSenseLink.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AdSenseLink message. + * @function verify + * @memberof google.analytics.admin.v1alpha.AdSenseLink + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AdSenseLink.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.adClientCode != null && message.hasOwnProperty("adClientCode")) + if (!$util.isString(message.adClientCode)) + return "adClientCode: string expected"; + return null; + }; + + /** + * Creates an AdSenseLink message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.analytics.admin.v1alpha.AdSenseLink + * @static + * @param {Object.} object Plain object + * @returns {google.analytics.admin.v1alpha.AdSenseLink} AdSenseLink + */ + AdSenseLink.fromObject = function fromObject(object) { + if (object instanceof $root.google.analytics.admin.v1alpha.AdSenseLink) + return object; + var message = new $root.google.analytics.admin.v1alpha.AdSenseLink(); + if (object.name != null) + message.name = String(object.name); + if (object.adClientCode != null) + message.adClientCode = String(object.adClientCode); + return message; + }; + + /** + * Creates a plain object from an AdSenseLink message. Also converts values to other types if specified. + * @function toObject + * @memberof google.analytics.admin.v1alpha.AdSenseLink + * @static + * @param {google.analytics.admin.v1alpha.AdSenseLink} message AdSenseLink + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AdSenseLink.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.adClientCode = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.adClientCode != null && message.hasOwnProperty("adClientCode")) + object.adClientCode = message.adClientCode; + return object; + }; + + /** + * Converts this AdSenseLink to JSON. + * @function toJSON + * @memberof google.analytics.admin.v1alpha.AdSenseLink + * @instance + * @returns {Object.} JSON object + */ + AdSenseLink.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AdSenseLink + * @function getTypeUrl + * @memberof google.analytics.admin.v1alpha.AdSenseLink + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AdSenseLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.analytics.admin.v1alpha.AdSenseLink"; + }; + + return AdSenseLink; + })(); + return v1alpha; })(); diff --git a/packages/google-analytics-admin/protos/protos.json b/packages/google-analytics-admin/protos/protos.json index 0dde7e59b43..36aea395127 100644 --- a/packages/google-analytics-admin/protos/protos.json +++ b/packages/google-analytics-admin/protos/protos.json @@ -2504,6 +2504,174 @@ } } ] + }, + "GetAdSenseLink": { + "requestType": "GetAdSenseLinkRequest", + "responseType": "AdSenseLink", + "options": { + "(google.api.http).get": "/v1alpha/{name=properties/*/adSenseLinks/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=properties/*/adSenseLinks/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "CreateAdSenseLink": { + "requestType": "CreateAdSenseLinkRequest", + "responseType": "AdSenseLink", + "options": { + "(google.api.http).post": "/v1alpha/{parent=properties/*}/adSenseLinks", + "(google.api.http).body": "adsense_link", + "(google.api.method_signature)": "parent,adsense_link" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{parent=properties/*}/adSenseLinks", + "body": "adsense_link" + } + }, + { + "(google.api.method_signature)": "parent,adsense_link" + } + ] + }, + "DeleteAdSenseLink": { + "requestType": "DeleteAdSenseLinkRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1alpha/{name=properties/*/adSenseLinks/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1alpha/{name=properties/*/adSenseLinks/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListAdSenseLinks": { + "requestType": "ListAdSenseLinksRequest", + "responseType": "ListAdSenseLinksResponse", + "options": { + "(google.api.http).get": "/v1alpha/{parent=properties/*}/adSenseLinks", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{parent=properties/*}/adSenseLinks" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "GetEventCreateRule": { + "requestType": "GetEventCreateRuleRequest", + "responseType": "EventCreateRule", + "options": { + "(google.api.http).get": "/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListEventCreateRules": { + "requestType": "ListEventCreateRulesRequest", + "responseType": "ListEventCreateRulesResponse", + "options": { + "(google.api.http).get": "/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "CreateEventCreateRule": { + "requestType": "CreateEventCreateRuleRequest", + "responseType": "EventCreateRule", + "options": { + "(google.api.http).post": "/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules", + "(google.api.http).body": "event_create_rule", + "(google.api.method_signature)": "parent,event_create_rule" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1alpha/{parent=properties/*/dataStreams/*}/eventCreateRules", + "body": "event_create_rule" + } + }, + { + "(google.api.method_signature)": "parent,event_create_rule" + } + ] + }, + "UpdateEventCreateRule": { + "requestType": "UpdateEventCreateRuleRequest", + "responseType": "EventCreateRule", + "options": { + "(google.api.http).patch": "/v1alpha/{event_create_rule.name=properties/*/dataStreams/*/eventCreateRules/*}", + "(google.api.http).body": "event_create_rule", + "(google.api.method_signature)": "event_create_rule,update_mask" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "patch": "/v1alpha/{event_create_rule.name=properties/*/dataStreams/*/eventCreateRules/*}", + "body": "event_create_rule" + } + }, + { + "(google.api.method_signature)": "event_create_rule,update_mask" + } + ] + }, + "DeleteEventCreateRule": { + "requestType": "DeleteEventCreateRuleRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).delete": "/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1alpha/{name=properties/*/dataStreams/*/eventCreateRules/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] } } }, @@ -4763,6 +4931,82 @@ } } }, + "CreateAdSenseLinkRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/AdSenseLink" + } + }, + "adsenseLink": { + "type": "AdSenseLink", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GetAdSenseLinkRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/AdSenseLink" + } + } + } + }, + "DeleteAdSenseLinkRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/AdSenseLink" + } + } + } + }, + "ListAdSenseLinksRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/AdSenseLink" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListAdSenseLinksResponse": { + "fields": { + "adsenseLinks": { + "rule": "repeated", + "type": "AdSenseLink", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, "FetchConnectedGa4PropertyRequest": { "fields": { "property": { @@ -4786,6 +5030,100 @@ } } }, + "CreateEventCreateRuleRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/EventCreateRule" + } + }, + "eventCreateRule": { + "type": "EventCreateRule", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "UpdateEventCreateRuleRequest": { + "fields": { + "eventCreateRule": { + "type": "EventCreateRule", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteEventCreateRuleRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/EventCreateRule" + } + } + } + }, + "GetEventCreateRuleRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "analyticsadmin.googleapis.com/EventCreateRule" + } + } + } + }, + "ListEventCreateRulesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).child_type": "analyticsadmin.googleapis.com/EventCreateRule" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListEventCreateRulesResponse": { + "fields": { + "eventCreateRules": { + "rule": "repeated", + "type": "EventCreateRule", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, "AudienceFilterScope": { "values": { "AUDIENCE_FILTER_SCOPE_UNSPECIFIED": 0, @@ -5416,6 +5754,113 @@ } } }, + "ParameterMutation": { + "fields": { + "parameter": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "parameterValue": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "EventCreateRule": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/EventCreateRule", + "(google.api.resource).pattern": "properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "destinationEvent": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "eventConditions": { + "rule": "repeated", + "type": "MatchingCondition", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "sourceCopyParameters": { + "type": "bool", + "id": 4 + }, + "parameterMutations": { + "rule": "repeated", + "type": "ParameterMutation", + "id": 5 + } + } + }, + "MatchingCondition": { + "fields": { + "field": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "comparisonType": { + "type": "ComparisonType", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "value": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "negated": { + "type": "bool", + "id": 4 + } + }, + "nested": { + "ComparisonType": { + "values": { + "COMPARISON_TYPE_UNSPECIFIED": 0, + "EQUALS": 1, + "EQUALS_CASE_INSENSITIVE": 2, + "CONTAINS": 3, + "CONTAINS_CASE_INSENSITIVE": 4, + "STARTS_WITH": 5, + "STARTS_WITH_CASE_INSENSITIVE": 6, + "ENDS_WITH": 7, + "ENDS_WITH_CASE_INSENSITIVE": 8, + "GREATER_THAN": 9, + "GREATER_THAN_OR_EQUAL": 10, + "LESS_THAN": 11, + "LESS_THAN_OR_EQUAL": 12, + "REGULAR_EXPRESSION": 13, + "REGULAR_EXPRESSION_CASE_INSENSITIVE": 14 + } + } + } + }, "ExpandedDataSetFilter": { "oneofs": { "oneFilter": { @@ -5665,7 +6110,10 @@ "ATTRIBUTION_SETTINGS": 20, "EXPANDED_DATA_SET": 21, "CHANNEL_GROUP": 22, - "ENHANCED_MEASUREMENT_SETTINGS": 24 + "ENHANCED_MEASUREMENT_SETTINGS": 24, + "ADSENSE_LINK": 27, + "AUDIENCE": 28, + "EVENT_CREATE_RULE": 29 } }, "GoogleSignalsState": { @@ -6321,7 +6769,10 @@ "expandedDataSet", "channelGroup", "bigqueryLink", - "enhancedMeasurementSettings" + "enhancedMeasurementSettings", + "adsenseLink", + "audience", + "eventCreateRule" ] } }, @@ -6401,6 +6852,18 @@ "enhancedMeasurementSettings": { "type": "EnhancedMeasurementSettings", "id": 24 + }, + "adsenseLink": { + "type": "AdSenseLink", + "id": 27 + }, + "audience": { + "type": "Audience", + "id": 28 + }, + "eventCreateRule": { + "type": "EventCreateRule", + "id": 29 } } } @@ -7071,6 +7534,28 @@ } } } + }, + "AdSenseLink": { + "options": { + "(google.api.resource).type": "analyticsadmin.googleapis.com/AdSenseLink", + "(google.api.resource).pattern": "properties/{property}/adSenseLinks/{adsense_link}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "adClientCode": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "IMMUTABLE" + } + } + } } } }, diff --git a/packages/google-analytics-admin/samples/README.md b/packages/google-analytics-admin/samples/README.md index 7e83416bde2..448d8cb4ba0 100644 --- a/packages/google-analytics-admin/samples/README.md +++ b/packages/google-analytics-admin/samples/README.md @@ -28,6 +28,7 @@ * [Analytics_admin_service.batch_update_user_links](#analytics_admin_service.batch_update_user_links) * [Analytics_admin_service.cancel_display_video360_advertiser_link_proposal](#analytics_admin_service.cancel_display_video360_advertiser_link_proposal) * [Analytics_admin_service.create_access_binding](#analytics_admin_service.create_access_binding) + * [Analytics_admin_service.create_ad_sense_link](#analytics_admin_service.create_ad_sense_link) * [Analytics_admin_service.create_audience](#analytics_admin_service.create_audience) * [Analytics_admin_service.create_channel_group](#analytics_admin_service.create_channel_group) * [Analytics_admin_service.create_connected_site_tag](#analytics_admin_service.create_connected_site_tag) @@ -37,6 +38,7 @@ * [Analytics_admin_service.create_data_stream](#analytics_admin_service.create_data_stream) * [Analytics_admin_service.create_display_video360_advertiser_link](#analytics_admin_service.create_display_video360_advertiser_link) * [Analytics_admin_service.create_display_video360_advertiser_link_proposal](#analytics_admin_service.create_display_video360_advertiser_link_proposal) + * [Analytics_admin_service.create_event_create_rule](#analytics_admin_service.create_event_create_rule) * [Analytics_admin_service.create_expanded_data_set](#analytics_admin_service.create_expanded_data_set) * [Analytics_admin_service.create_firebase_link](#analytics_admin_service.create_firebase_link) * [Analytics_admin_service.create_google_ads_link](#analytics_admin_service.create_google_ads_link) @@ -47,6 +49,7 @@ * [Analytics_admin_service.create_web_data_stream](#analytics_admin_service.create_web_data_stream) * [Analytics_admin_service.delete_access_binding](#analytics_admin_service.delete_access_binding) * [Analytics_admin_service.delete_account](#analytics_admin_service.delete_account) + * [Analytics_admin_service.delete_ad_sense_link](#analytics_admin_service.delete_ad_sense_link) * [Analytics_admin_service.delete_android_app_data_stream](#analytics_admin_service.delete_android_app_data_stream) * [Analytics_admin_service.delete_channel_group](#analytics_admin_service.delete_channel_group) * [Analytics_admin_service.delete_connected_site_tag](#analytics_admin_service.delete_connected_site_tag) @@ -54,6 +57,7 @@ * [Analytics_admin_service.delete_data_stream](#analytics_admin_service.delete_data_stream) * [Analytics_admin_service.delete_display_video360_advertiser_link](#analytics_admin_service.delete_display_video360_advertiser_link) * [Analytics_admin_service.delete_display_video360_advertiser_link_proposal](#analytics_admin_service.delete_display_video360_advertiser_link_proposal) + * [Analytics_admin_service.delete_event_create_rule](#analytics_admin_service.delete_event_create_rule) * [Analytics_admin_service.delete_expanded_data_set](#analytics_admin_service.delete_expanded_data_set) * [Analytics_admin_service.delete_firebase_link](#analytics_admin_service.delete_firebase_link) * [Analytics_admin_service.delete_google_ads_link](#analytics_admin_service.delete_google_ads_link) @@ -67,6 +71,7 @@ * [Analytics_admin_service.fetch_connected_ga4_property](#analytics_admin_service.fetch_connected_ga4_property) * [Analytics_admin_service.get_access_binding](#analytics_admin_service.get_access_binding) * [Analytics_admin_service.get_account](#analytics_admin_service.get_account) + * [Analytics_admin_service.get_ad_sense_link](#analytics_admin_service.get_ad_sense_link) * [Analytics_admin_service.get_android_app_data_stream](#analytics_admin_service.get_android_app_data_stream) * [Analytics_admin_service.get_attribution_settings](#analytics_admin_service.get_attribution_settings) * [Analytics_admin_service.get_audience](#analytics_admin_service.get_audience) @@ -81,6 +86,7 @@ * [Analytics_admin_service.get_display_video360_advertiser_link](#analytics_admin_service.get_display_video360_advertiser_link) * [Analytics_admin_service.get_display_video360_advertiser_link_proposal](#analytics_admin_service.get_display_video360_advertiser_link_proposal) * [Analytics_admin_service.get_enhanced_measurement_settings](#analytics_admin_service.get_enhanced_measurement_settings) + * [Analytics_admin_service.get_event_create_rule](#analytics_admin_service.get_event_create_rule) * [Analytics_admin_service.get_expanded_data_set](#analytics_admin_service.get_expanded_data_set) * [Analytics_admin_service.get_global_site_tag](#analytics_admin_service.get_global_site_tag) * [Analytics_admin_service.get_google_signals_settings](#analytics_admin_service.get_google_signals_settings) @@ -93,6 +99,7 @@ * [Analytics_admin_service.list_access_bindings](#analytics_admin_service.list_access_bindings) * [Analytics_admin_service.list_account_summaries](#analytics_admin_service.list_account_summaries) * [Analytics_admin_service.list_accounts](#analytics_admin_service.list_accounts) + * [Analytics_admin_service.list_ad_sense_links](#analytics_admin_service.list_ad_sense_links) * [Analytics_admin_service.list_android_app_data_streams](#analytics_admin_service.list_android_app_data_streams) * [Analytics_admin_service.list_audiences](#analytics_admin_service.list_audiences) * [Analytics_admin_service.list_big_query_links](#analytics_admin_service.list_big_query_links) @@ -104,6 +111,7 @@ * [Analytics_admin_service.list_data_streams](#analytics_admin_service.list_data_streams) * [Analytics_admin_service.list_display_video360_advertiser_link_proposals](#analytics_admin_service.list_display_video360_advertiser_link_proposals) * [Analytics_admin_service.list_display_video360_advertiser_links](#analytics_admin_service.list_display_video360_advertiser_links) + * [Analytics_admin_service.list_event_create_rules](#analytics_admin_service.list_event_create_rules) * [Analytics_admin_service.list_expanded_data_sets](#analytics_admin_service.list_expanded_data_sets) * [Analytics_admin_service.list_firebase_links](#analytics_admin_service.list_firebase_links) * [Analytics_admin_service.list_google_ads_links](#analytics_admin_service.list_google_ads_links) @@ -129,6 +137,7 @@ * [Analytics_admin_service.update_data_stream](#analytics_admin_service.update_data_stream) * [Analytics_admin_service.update_display_video360_advertiser_link](#analytics_admin_service.update_display_video360_advertiser_link) * [Analytics_admin_service.update_enhanced_measurement_settings](#analytics_admin_service.update_enhanced_measurement_settings) + * [Analytics_admin_service.update_event_create_rule](#analytics_admin_service.update_event_create_rule) * [Analytics_admin_service.update_expanded_data_set](#analytics_admin_service.update_expanded_data_set) * [Analytics_admin_service.update_google_ads_link](#analytics_admin_service.update_google_ads_link) * [Analytics_admin_service.update_google_signals_settings](#analytics_admin_service.update_google_signals_settings) @@ -187,7 +196,6 @@ * [Analytics_admin_service.update_measurement_protocol_secret](#analytics_admin_service.update_measurement_protocol_secret) * [Analytics_admin_service.update_property](#analytics_admin_service.update_property) * [Quickstart](#quickstart) - * [Quickstart.test](#quickstart.test) ## Before you begin @@ -476,6 +484,23 @@ __Usage:__ +### Analytics_admin_service.create_ad_sense_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_ad_sense_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_ad_sense_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_ad_sense_link.js` + + +----- + + + + ### Analytics_admin_service.create_audience View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_audience.js). @@ -629,6 +654,23 @@ __Usage:__ +### Analytics_admin_service.create_event_create_rule + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_event_create_rule.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_event_create_rule.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_event_create_rule.js` + + +----- + + + + ### Analytics_admin_service.create_expanded_data_set View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_expanded_data_set.js). @@ -799,6 +841,23 @@ __Usage:__ +### Analytics_admin_service.delete_ad_sense_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ad_sense_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ad_sense_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ad_sense_link.js` + + +----- + + + + ### Analytics_admin_service.delete_android_app_data_stream View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_android_app_data_stream.js). @@ -918,6 +977,23 @@ __Usage:__ +### Analytics_admin_service.delete_event_create_rule + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_event_create_rule.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_event_create_rule.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_event_create_rule.js` + + +----- + + + + ### Analytics_admin_service.delete_expanded_data_set View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_expanded_data_set.js). @@ -1139,6 +1215,23 @@ __Usage:__ +### Analytics_admin_service.get_ad_sense_link + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ad_sense_link.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ad_sense_link.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ad_sense_link.js` + + +----- + + + + ### Analytics_admin_service.get_android_app_data_stream View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_android_app_data_stream.js). @@ -1377,6 +1470,23 @@ __Usage:__ +### Analytics_admin_service.get_event_create_rule + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_event_create_rule.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_event_create_rule.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_event_create_rule.js` + + +----- + + + + ### Analytics_admin_service.get_expanded_data_set View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_expanded_data_set.js). @@ -1581,6 +1691,23 @@ __Usage:__ +### Analytics_admin_service.list_ad_sense_links + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ad_sense_links.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ad_sense_links.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ad_sense_links.js` + + +----- + + + + ### Analytics_admin_service.list_android_app_data_streams View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_android_app_data_streams.js). @@ -1768,6 +1895,23 @@ __Usage:__ +### Analytics_admin_service.list_event_create_rules + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_event_create_rules.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_event_create_rules.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_event_create_rules.js` + + +----- + + + + ### Analytics_admin_service.list_expanded_data_sets View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_expanded_data_sets.js). @@ -2193,6 +2337,23 @@ __Usage:__ +### Analytics_admin_service.update_event_create_rule + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_event_create_rule.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_event_create_rule.js,samples/README.md) + +__Usage:__ + + +`node packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_event_create_rule.js` + + +----- + + + + ### Analytics_admin_service.update_expanded_data_set View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_expanded_data_set.js). @@ -3174,23 +3335,6 @@ __Usage:__ `node packages/google-analytics-admin/samples/quickstart.js` ------ - - - - -### Quickstart.test - -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-analytics-admin/samples/test/quickstart.test.js). - -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-analytics-admin/samples/test/quickstart.test.js,samples/README.md) - -__Usage:__ - - -`node packages/google-analytics-admin/samples/test/quickstart.test.js` - - diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_ad_sense_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_ad_sense_link.js new file mode 100644 index 00000000000..01bf8526bec --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_ad_sense_link.js @@ -0,0 +1,68 @@ +// 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, adsenseLink) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAdSenseLink_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The property for which to create an AdSense Link. + * Format: properties/{propertyId} + * Example: properties/1234 + */ + // const parent = 'abc123' + /** + * Required. The AdSense Link to create + */ + // const adsenseLink = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateAdSenseLink() { + // Construct request + const request = { + parent, + adsenseLink, + }; + + // Run request + const response = await adminClient.createAdSenseLink(request); + console.log(response); + } + + callCreateAdSenseLink(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAdSenseLink_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_event_create_rule.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_event_create_rule.js new file mode 100644 index 00000000000..ba124061974 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.create_event_create_rule.js @@ -0,0 +1,66 @@ +// 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, eventCreateRule) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateEventCreateRule_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/123/dataStreams/456 + */ + // const parent = 'abc123' + /** + * Required. The EventCreateRule to create. + */ + // const eventCreateRule = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callCreateEventCreateRule() { + // Construct request + const request = { + parent, + eventCreateRule, + }; + + // Run request + const response = await adminClient.createEventCreateRule(request); + console.log(response); + } + + callCreateEventCreateRule(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateEventCreateRule_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ad_sense_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ad_sense_link.js new file mode 100644 index 00000000000..cfe7bd0a7bc --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_ad_sense_link.js @@ -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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAdSenseLink_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Unique identifier for the AdSense Link to be deleted. + * Format: properties/{propertyId}/adSenseLinks/{linkId} + * Example: properties/1234/adSenseLinks/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callDeleteAdSenseLink() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.deleteAdSenseLink(request); + console.log(response); + } + + callDeleteAdSenseLink(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAdSenseLink_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_event_create_rule.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_event_create_rule.js new file mode 100644 index 00000000000..252d89c28e2 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.delete_event_create_rule.js @@ -0,0 +1,62 @@ +// 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteEventCreateRule_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: + * properties/123/dataStreams/456/eventCreateRules/789 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callDeleteEventCreateRule() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.deleteEventCreateRule(request); + console.log(response); + } + + callDeleteEventCreateRule(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteEventCreateRule_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ad_sense_link.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ad_sense_link.js new file mode 100644 index 00000000000..29cb24550eb --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_ad_sense_link.js @@ -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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAdSenseLink_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Unique identifier for the AdSense Link requested. + * Format: properties/{propertyId}/adSenseLinks/{linkId} + * Example: properties/1234/adSenseLinks/5678 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetAdSenseLink() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getAdSenseLink(request); + console.log(response); + } + + callGetAdSenseLink(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAdSenseLink_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_event_create_rule.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_event_create_rule.js new file mode 100644 index 00000000000..1142386797b --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.get_event_create_rule.js @@ -0,0 +1,62 @@ +// 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEventCreateRule_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the EventCreateRule to get. + * Example format: properties/123/dataStreams/456/eventCreateRules/789 + */ + // const name = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callGetEventCreateRule() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await adminClient.getEventCreateRule(request); + console.log(response); + } + + callGetEventCreateRule(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEventCreateRule_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ad_sense_links.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ad_sense_links.js new file mode 100644 index 00000000000..b18a2f145d4 --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_ad_sense_links.js @@ -0,0 +1,78 @@ +// 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAdSenseLinks_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Resource name of the parent property. + * Format: properties/{propertyId} + * Example: properties/1234 + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + */ + // const pageSize = 1234 + /** + * A page token received from a previous `ListAdSenseLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAdSenseLinks` must + * match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListAdSenseLinks() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listAdSenseLinksAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListAdSenseLinks(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAdSenseLinks_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_event_create_rules.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_event_create_rules.js new file mode 100644 index 00000000000..df7f8c7147d --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.list_event_create_rules.js @@ -0,0 +1,76 @@ +// 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListEventCreateRules_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. Example format: properties/123/dataStreams/456 + */ + // const parent = 'abc123' + /** + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). + */ + // const pageSize = 1234 + /** + * A page token, received from a previous `ListEventCreateRules` call. Provide + * this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListEventCreateRules` + * must match the call that provided the page token. + */ + // const pageToken = 'abc123' + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callListEventCreateRules() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await adminClient.listEventCreateRulesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListEventCreateRules(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListEventCreateRules_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_event_create_rule.js b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_event_create_rule.js new file mode 100644 index 00000000000..e42af282caa --- /dev/null +++ b/packages/google-analytics-admin/samples/generated/v1alpha/analytics_admin_service.update_event_create_rule.js @@ -0,0 +1,71 @@ +// 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(eventCreateRule, updateMask) { + // [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEventCreateRule_async] + /** + * 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. + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The EventCreateRule to update. + * The resource's `name` field is used to identify the EventCreateRule to be + * updated. + */ + // const eventCreateRule = {} + /** + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + */ + // const updateMask = {} + + // Imports the Admin library + const {AnalyticsAdminServiceClient} = require('@google-analytics/admin').v1alpha; + + // Instantiates a client + const adminClient = new AnalyticsAdminServiceClient(); + + async function callUpdateEventCreateRule() { + // Construct request + const request = { + eventCreateRule, + updateMask, + }; + + // Run request + const response = await adminClient.updateEventCreateRule(request); + console.log(response); + } + + callUpdateEventCreateRule(); + // [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEventCreateRule_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json b/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json index 5a8a40f43d4..58d25094d47 100644 --- a/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json +++ b/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata.google.analytics.admin.v1alpha.json @@ -4946,6 +4946,394 @@ } } } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAdSenseLink_async", + "title": "AnalyticsAdminService getAdSenseLink Sample", + "origin": "API_DEFINITION", + "description": " Looks up a single AdSenseLink.", + "canonical": true, + "file": "analytics_admin_service.get_ad_sense_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetAdSenseLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAdSenseLink", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.AdSenseLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetAdSenseLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAdSenseLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAdSenseLink_async", + "title": "AnalyticsAdminService createAdSenseLink Sample", + "origin": "API_DEFINITION", + "description": " Creates an AdSenseLink.", + "canonical": true, + "file": "analytics_admin_service.create_ad_sense_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateAdSenseLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAdSenseLink", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "adsense_link", + "type": ".google.analytics.admin.v1alpha.AdSenseLink" + } + ], + "resultType": ".google.analytics.admin.v1alpha.AdSenseLink", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateAdSenseLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAdSenseLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAdSenseLink_async", + "title": "AnalyticsAdminService deleteAdSenseLink Sample", + "origin": "API_DEFINITION", + "description": " Deletes an AdSenseLink.", + "canonical": true, + "file": "analytics_admin_service.delete_ad_sense_link.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteAdSenseLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAdSenseLink", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteAdSenseLink", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAdSenseLink", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAdSenseLinks_async", + "title": "AnalyticsAdminService listAdSenseLinks Sample", + "origin": "API_DEFINITION", + "description": " Lists AdSenseLinks on a property.", + "canonical": true, + "file": "analytics_admin_service.list_ad_sense_links.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 70, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListAdSenseLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAdSenseLinks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListAdSenseLinksResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListAdSenseLinks", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAdSenseLinks", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEventCreateRule_async", + "title": "AnalyticsAdminService getEventCreateRule Sample", + "origin": "API_DEFINITION", + "description": " Lookup for a single EventCreateRule.", + "canonical": true, + "file": "analytics_admin_service.get_event_create_rule.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetEventCreateRule", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetEventCreateRule", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.EventCreateRule", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "GetEventCreateRule", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetEventCreateRule", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListEventCreateRules_async", + "title": "AnalyticsAdminService listEventCreateRules Sample", + "origin": "API_DEFINITION", + "description": " Lists EventCreateRules on a web data stream.", + "canonical": true, + "file": "analytics_admin_service.list_event_create_rules.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 68, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListEventCreateRules", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListEventCreateRules", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.analytics.admin.v1alpha.ListEventCreateRulesResponse", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "ListEventCreateRules", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListEventCreateRules", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateEventCreateRule_async", + "title": "AnalyticsAdminService createEventCreateRule Sample", + "origin": "API_DEFINITION", + "description": " Creates an EventCreateRule.", + "canonical": true, + "file": "analytics_admin_service.create_event_create_rule.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 58, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateEventCreateRule", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateEventCreateRule", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "event_create_rule", + "type": ".google.analytics.admin.v1alpha.EventCreateRule" + } + ], + "resultType": ".google.analytics.admin.v1alpha.EventCreateRule", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "CreateEventCreateRule", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateEventCreateRule", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEventCreateRule_async", + "title": "AnalyticsAdminService updateEventCreateRule Sample", + "origin": "API_DEFINITION", + "description": " Updates an EventCreateRule.", + "canonical": true, + "file": "analytics_admin_service.update_event_create_rule.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateEventCreateRule", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateEventCreateRule", + "async": true, + "parameters": [ + { + "name": "event_create_rule", + "type": ".google.analytics.admin.v1alpha.EventCreateRule" + }, + { + "name": "update_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.analytics.admin.v1alpha.EventCreateRule", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "UpdateEventCreateRule", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateEventCreateRule", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } + }, + { + "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteEventCreateRule_async", + "title": "AnalyticsAdminService deleteEventCreateRule Sample", + "origin": "API_DEFINITION", + "description": " Deletes an EventCreateRule.", + "canonical": true, + "file": "analytics_admin_service.delete_event_create_rule.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteEventCreateRule", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteEventCreateRule", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "AnalyticsAdminServiceClient", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" + }, + "method": { + "shortName": "DeleteEventCreateRule", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteEventCreateRule", + "service": { + "shortName": "AnalyticsAdminService", + "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" + } + } + } } ] } \ No newline at end of file diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts index 50a81132a82..920df2ba2d4 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client.ts @@ -191,6 +191,9 @@ export class AnalyticsAdminServiceClient { accountUserLinkPathTemplate: new this._gaxModule.PathTemplate( 'accounts/{account}/userLinks/{user_link}' ), + adSenseLinkPathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/adSenseLinks/{adsense_link}' + ), attributionSettingsPathTemplate: new this._gaxModule.PathTemplate( 'properties/{property}/attributionSettings' ), @@ -232,6 +235,9 @@ export class AnalyticsAdminServiceClient { enhancedMeasurementSettingsPathTemplate: new this._gaxModule.PathTemplate( 'properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings' ), + eventCreateRulePathTemplate: new this._gaxModule.PathTemplate( + 'properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}' + ), expandedDataSetPathTemplate: new this._gaxModule.PathTemplate( 'properties/{property}/expandedDataSets/{expanded_data_set}' ), @@ -374,6 +380,16 @@ export class AnalyticsAdminServiceClient { 'nextPageToken', 'bigqueryLinks' ), + listAdSenseLinks: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'adsenseLinks' + ), + listEventCreateRules: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'eventCreateRules' + ), }; // Put together the default options sent with requests. @@ -540,6 +556,15 @@ export class AnalyticsAdminServiceClient { 'deleteConnectedSiteTag', 'listConnectedSiteTags', 'fetchConnectedGa4Property', + 'getAdSenseLink', + 'createAdSenseLink', + 'deleteAdSenseLink', + 'listAdSenseLinks', + 'getEventCreateRule', + 'listEventCreateRules', + 'createEventCreateRule', + 'updateEventCreateRule', + 'deleteEventCreateRule', ]; for (const methodName of analyticsAdminServiceStubMethods) { const callPromise = this.analyticsAdminServiceStub.then( @@ -9974,97 +9999,79 @@ export class AnalyticsAdminServiceClient { callback ); } - /** - * Returns all accounts accessible by the caller. - * - * Note that these accounts might not currently have GA4 properties. - * Soft-deleted (ie: "trashed") accounts are excluded by default. - * Returns an empty list if no relevant accounts are found. + * Looks up a single AdSenseLink. * * @param {Object} request * The request object that will be sent. - * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * A page token, received from a previous `ListAccounts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccounts` must - * match the call that provided the page token. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. + * @param {string} request.name + * Required. Unique identifier for the AdSense Link requested. + * Format: properties/{propertyId}/adSenseLinks/{linkId} + * Example: properties/1234/adSenseLinks/5678 * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link google.analytics.admin.v1alpha.Account | Account}. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed and will merge results from all the pages into this array. - * Note that it can affect your quota. - * We recommend using `listAccountsAsync()` - * method described below for async iteration which you can stop as needed. + * The first element of the array is an object representing {@link google.analytics.admin.v1alpha.AdSenseLink | AdSenseLink}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_ad_sense_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAdSenseLink_async */ - listAccounts( - request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + getAdSenseLink( + request?: protos.google.analytics.admin.v1alpha.IGetAdSenseLinkRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IAccount[], - protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountsResponse + protos.google.analytics.admin.v1alpha.IAdSenseLink, + protos.google.analytics.admin.v1alpha.IGetAdSenseLinkRequest | undefined, + {} | undefined ] >; - listAccounts( - request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + getAdSenseLink( + request: protos.google.analytics.admin.v1alpha.IGetAdSenseLinkRequest, options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse + callback: Callback< + protos.google.analytics.admin.v1alpha.IAdSenseLink, + | protos.google.analytics.admin.v1alpha.IGetAdSenseLinkRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccount + {} | null | undefined > ): void; - listAccounts( - request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse + getAdSenseLink( + request: protos.google.analytics.admin.v1alpha.IGetAdSenseLinkRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAdSenseLink, + | protos.google.analytics.admin.v1alpha.IGetAdSenseLinkRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccount + {} | null | undefined > ): void; - listAccounts( - request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + getAdSenseLink( + request?: protos.google.analytics.admin.v1alpha.IGetAdSenseLinkRequest, optionsOrCallback?: | CallOptions - | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | Callback< + protos.google.analytics.admin.v1alpha.IAdSenseLink, + | protos.google.analytics.admin.v1alpha.IGetAdSenseLinkRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccount + {} | null | undefined >, - callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountsRequest, - | protos.google.analytics.admin.v1alpha.IListAccountsResponse + callback?: Callback< + protos.google.analytics.admin.v1alpha.IAdSenseLink, + | protos.google.analytics.admin.v1alpha.IGetAdSenseLinkRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccount + {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAccount[], - protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountsResponse + protos.google.analytics.admin.v1alpha.IAdSenseLink, + protos.google.analytics.admin.v1alpha.IGetAdSenseLinkRequest | undefined, + {} | undefined ] > | void { request = request || {}; @@ -10078,190 +10085,94 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); this.initialize(); - return this.innerApiCalls.listAccounts(request, options, callback); - } - - /** - * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. - * @param {Object} request - * The request object that will be sent. - * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * A page token, received from a previous `ListAccounts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccounts` must - * match the call that provided the page token. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Stream} - * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.Account | Account} on 'data' event. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed. Note that it can affect your quota. - * We recommend using `listAccountsAsync()` - * method described below for async iteration which you can stop as needed. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. - */ - listAccountsStream( - request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, - options?: CallOptions - ): Transform { - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - const defaultCallSettings = this._defaults['listAccounts']; - const callSettings = defaultCallSettings.merge(options); - this.initialize(); - return this.descriptors.page.listAccounts.createStream( - this.innerApiCalls.listAccounts as GaxCall, - request, - callSettings - ); - } - - /** - * Equivalent to `listAccounts`, but returns an iterable object. - * - * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. - * @param {Object} request - * The request object that will be sent. - * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * A page token, received from a previous `ListAccounts` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccounts` must - * match the call that provided the page token. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Accounts in the - * results. Accounts can be inspected to determine whether they are deleted or - * not. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Object} - * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). - * When you iterate the returned iterable, each element will be an object representing - * {@link google.analytics.admin.v1alpha.Account | Account}. The API will be called under the hood as needed, once per the page, - * so you can stop the iteration when you don't need more results. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_accounts.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_async - */ - listAccountsAsync( - request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, - options?: CallOptions - ): AsyncIterable { - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - const defaultCallSettings = this._defaults['listAccounts']; - const callSettings = defaultCallSettings.merge(options); - this.initialize(); - return this.descriptors.page.listAccounts.asyncIterate( - this.innerApiCalls['listAccounts'] as GaxCall, - request as {}, - callSettings - ) as AsyncIterable; + return this.innerApiCalls.getAdSenseLink(request, options, callback); } /** - * Returns summaries of all accounts accessible by the caller. + * Creates an AdSenseLink. * * @param {Object} request * The request object that will be sent. - * @param {number} request.pageSize - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) - * @param {string} request.pageToken - * A page token, received from a previous `ListAccountSummaries` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. + * @param {string} request.parent + * Required. The property for which to create an AdSense Link. + * Format: properties/{propertyId} + * Example: properties/1234 + * @param {google.analytics.admin.v1alpha.AdSenseLink} request.adsenseLink + * Required. The AdSense Link to create * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link google.analytics.admin.v1alpha.AccountSummary | AccountSummary}. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed and will merge results from all the pages into this array. - * Note that it can affect your quota. - * We recommend using `listAccountSummariesAsync()` - * method described below for async iteration which you can stop as needed. + * The first element of the array is an object representing {@link google.analytics.admin.v1alpha.AdSenseLink | AdSenseLink}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.create_ad_sense_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAdSenseLink_async */ - listAccountSummaries( - request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + createAdSenseLink( + request?: protos.google.analytics.admin.v1alpha.ICreateAdSenseLinkRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IAccountSummary[], - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + protos.google.analytics.admin.v1alpha.IAdSenseLink, + ( + | protos.google.analytics.admin.v1alpha.ICreateAdSenseLinkRequest + | undefined + ), + {} | undefined ] >; - listAccountSummaries( - request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + createAdSenseLink( + request: protos.google.analytics.admin.v1alpha.ICreateAdSenseLinkRequest, options: CallOptions, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + callback: Callback< + protos.google.analytics.admin.v1alpha.IAdSenseLink, + | protos.google.analytics.admin.v1alpha.ICreateAdSenseLinkRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccountSummary + {} | null | undefined > ): void; - listAccountSummaries( - request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + createAdSenseLink( + request: protos.google.analytics.admin.v1alpha.ICreateAdSenseLinkRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IAdSenseLink, + | protos.google.analytics.admin.v1alpha.ICreateAdSenseLinkRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccountSummary + {} | null | undefined > ): void; - listAccountSummaries( - request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + createAdSenseLink( + request?: protos.google.analytics.admin.v1alpha.ICreateAdSenseLinkRequest, optionsOrCallback?: | CallOptions - | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | Callback< + protos.google.analytics.admin.v1alpha.IAdSenseLink, + | protos.google.analytics.admin.v1alpha.ICreateAdSenseLinkRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccountSummary + {} | null | undefined >, - callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, - | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + callback?: Callback< + protos.google.analytics.admin.v1alpha.IAdSenseLink, + | protos.google.analytics.admin.v1alpha.ICreateAdSenseLinkRequest | null | undefined, - protos.google.analytics.admin.v1alpha.IAccountSummary + {} | null | undefined > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAccountSummary[], - protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, - protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + protos.google.analytics.admin.v1alpha.IAdSenseLink, + ( + | protos.google.analytics.admin.v1alpha.ICreateAdSenseLinkRequest + | undefined + ), + {} | undefined ] > | void { request = request || {}; @@ -10275,208 +10186,1462 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); this.initialize(); - return this.innerApiCalls.listAccountSummaries(request, options, callback); + return this.innerApiCalls.createAdSenseLink(request, options, callback); } - /** - * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * Deletes an AdSenseLink. + * * @param {Object} request * The request object that will be sent. + * @param {string} request.name + * Required. Unique identifier for the AdSense Link to be deleted. + * Format: properties/{propertyId}/adSenseLinks/{linkId} + * Example: properties/1234/adSenseLinks/5678 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.protobuf.Empty | Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.delete_ad_sense_link.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAdSenseLink_async + */ + deleteAdSenseLink( + request?: protos.google.analytics.admin.v1alpha.IDeleteAdSenseLinkRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IDeleteAdSenseLinkRequest + | undefined + ), + {} | undefined + ] + >; + deleteAdSenseLink( + request: protos.google.analytics.admin.v1alpha.IDeleteAdSenseLinkRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteAdSenseLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteAdSenseLink( + request: protos.google.analytics.admin.v1alpha.IDeleteAdSenseLinkRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteAdSenseLinkRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteAdSenseLink( + request?: protos.google.analytics.admin.v1alpha.IDeleteAdSenseLinkRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteAdSenseLinkRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteAdSenseLinkRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IDeleteAdSenseLinkRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteAdSenseLink(request, options, callback); + } + /** + * Lookup for a single EventCreateRule. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the EventCreateRule to get. + * Example format: properties/123/dataStreams/456/eventCreateRules/789 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.analytics.admin.v1alpha.EventCreateRule | EventCreateRule}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.get_event_create_rule.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEventCreateRule_async + */ + getEventCreateRule( + request?: protos.google.analytics.admin.v1alpha.IGetEventCreateRuleRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IEventCreateRule, + ( + | protos.google.analytics.admin.v1alpha.IGetEventCreateRuleRequest + | undefined + ), + {} | undefined + ] + >; + getEventCreateRule( + request: protos.google.analytics.admin.v1alpha.IGetEventCreateRuleRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IEventCreateRule, + | protos.google.analytics.admin.v1alpha.IGetEventCreateRuleRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getEventCreateRule( + request: protos.google.analytics.admin.v1alpha.IGetEventCreateRuleRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IEventCreateRule, + | protos.google.analytics.admin.v1alpha.IGetEventCreateRuleRequest + | null + | undefined, + {} | null | undefined + > + ): void; + getEventCreateRule( + request?: protos.google.analytics.admin.v1alpha.IGetEventCreateRuleRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IEventCreateRule, + | protos.google.analytics.admin.v1alpha.IGetEventCreateRuleRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IEventCreateRule, + | protos.google.analytics.admin.v1alpha.IGetEventCreateRuleRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IEventCreateRule, + ( + | protos.google.analytics.admin.v1alpha.IGetEventCreateRuleRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.getEventCreateRule(request, options, callback); + } + /** + * Creates an EventCreateRule. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/123/dataStreams/456 + * @param {google.analytics.admin.v1alpha.EventCreateRule} request.eventCreateRule + * Required. The EventCreateRule to create. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.analytics.admin.v1alpha.EventCreateRule | EventCreateRule}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.create_event_create_rule.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateEventCreateRule_async + */ + createEventCreateRule( + request?: protos.google.analytics.admin.v1alpha.ICreateEventCreateRuleRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IEventCreateRule, + ( + | protos.google.analytics.admin.v1alpha.ICreateEventCreateRuleRequest + | undefined + ), + {} | undefined + ] + >; + createEventCreateRule( + request: protos.google.analytics.admin.v1alpha.ICreateEventCreateRuleRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IEventCreateRule, + | protos.google.analytics.admin.v1alpha.ICreateEventCreateRuleRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createEventCreateRule( + request: protos.google.analytics.admin.v1alpha.ICreateEventCreateRuleRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IEventCreateRule, + | protos.google.analytics.admin.v1alpha.ICreateEventCreateRuleRequest + | null + | undefined, + {} | null | undefined + > + ): void; + createEventCreateRule( + request?: protos.google.analytics.admin.v1alpha.ICreateEventCreateRuleRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IEventCreateRule, + | protos.google.analytics.admin.v1alpha.ICreateEventCreateRuleRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IEventCreateRule, + | protos.google.analytics.admin.v1alpha.ICreateEventCreateRuleRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IEventCreateRule, + ( + | protos.google.analytics.admin.v1alpha.ICreateEventCreateRuleRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.createEventCreateRule(request, options, callback); + } + /** + * Updates an EventCreateRule. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.analytics.admin.v1alpha.EventCreateRule} request.eventCreateRule + * Required. The EventCreateRule to update. + * The resource's `name` field is used to identify the EventCreateRule to be + * updated. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The list of fields to be updated. Field names must be in snake + * case (e.g., "field_to_update"). Omitted fields will not be updated. To + * replace the entire entity, use one path with the string "*" to match all + * fields. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.analytics.admin.v1alpha.EventCreateRule | EventCreateRule}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.update_event_create_rule.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEventCreateRule_async + */ + updateEventCreateRule( + request?: protos.google.analytics.admin.v1alpha.IUpdateEventCreateRuleRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IEventCreateRule, + ( + | protos.google.analytics.admin.v1alpha.IUpdateEventCreateRuleRequest + | undefined + ), + {} | undefined + ] + >; + updateEventCreateRule( + request: protos.google.analytics.admin.v1alpha.IUpdateEventCreateRuleRequest, + options: CallOptions, + callback: Callback< + protos.google.analytics.admin.v1alpha.IEventCreateRule, + | protos.google.analytics.admin.v1alpha.IUpdateEventCreateRuleRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateEventCreateRule( + request: protos.google.analytics.admin.v1alpha.IUpdateEventCreateRuleRequest, + callback: Callback< + protos.google.analytics.admin.v1alpha.IEventCreateRule, + | protos.google.analytics.admin.v1alpha.IUpdateEventCreateRuleRequest + | null + | undefined, + {} | null | undefined + > + ): void; + updateEventCreateRule( + request?: protos.google.analytics.admin.v1alpha.IUpdateEventCreateRuleRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.analytics.admin.v1alpha.IEventCreateRule, + | protos.google.analytics.admin.v1alpha.IUpdateEventCreateRuleRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.analytics.admin.v1alpha.IEventCreateRule, + | protos.google.analytics.admin.v1alpha.IUpdateEventCreateRuleRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IEventCreateRule, + ( + | protos.google.analytics.admin.v1alpha.IUpdateEventCreateRuleRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + 'event_create_rule.name': request.eventCreateRule!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateEventCreateRule(request, options, callback); + } + /** + * Deletes an EventCreateRule. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Example format: + * properties/123/dataStreams/456/eventCreateRules/789 + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing {@link google.protobuf.Empty | Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.delete_event_create_rule.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteEventCreateRule_async + */ + deleteEventCreateRule( + request?: protos.google.analytics.admin.v1alpha.IDeleteEventCreateRuleRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IDeleteEventCreateRuleRequest + | undefined + ), + {} | undefined + ] + >; + deleteEventCreateRule( + request: protos.google.analytics.admin.v1alpha.IDeleteEventCreateRuleRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteEventCreateRuleRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteEventCreateRule( + request: protos.google.analytics.admin.v1alpha.IDeleteEventCreateRuleRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteEventCreateRuleRequest + | null + | undefined, + {} | null | undefined + > + ): void; + deleteEventCreateRule( + request?: protos.google.analytics.admin.v1alpha.IDeleteEventCreateRuleRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteEventCreateRuleRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.analytics.admin.v1alpha.IDeleteEventCreateRuleRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.analytics.admin.v1alpha.IDeleteEventCreateRuleRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteEventCreateRule(request, options, callback); + } + + /** + * Returns all accounts accessible by the caller. + * + * Note that these accounts might not currently have GA4 properties. + * Soft-deleted (ie: "trashed") accounts are excluded by default. + * Returns an empty list if no relevant accounts are found. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccounts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccounts` must + * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link google.analytics.admin.v1alpha.Account | Account}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAccountsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAccounts( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccount[], + protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountsResponse + ] + >; + listAccounts( + request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + > + ): void; + listAccounts( + request: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + > + ): void; + listAccounts( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountsRequest, + | protos.google.analytics.admin.v1alpha.IListAccountsResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccount + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccount[], + protos.google.analytics.admin.v1alpha.IListAccountsRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + this.initialize(); + return this.innerApiCalls.listAccounts(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccounts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccounts` must + * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.Account | Account} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAccountsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAccountsStream( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listAccounts']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listAccounts.createStream( + this.innerApiCalls.listAccounts as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listAccounts`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccounts` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccounts` must + * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Accounts in the + * results. Accounts can be inspected to determine whether they are deleted or + * not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * {@link google.analytics.admin.v1alpha.Account | Account}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.list_accounts.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_async + */ + listAccountsAsync( + request?: protos.google.analytics.admin.v1alpha.IListAccountsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listAccounts']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listAccounts.asyncIterate( + this.innerApiCalls['listAccounts'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Returns summaries of all accounts accessible by the caller. + * + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link google.analytics.admin.v1alpha.AccountSummary | AccountSummary}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listAccountSummariesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAccountSummaries( + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccountSummary[], + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + ] + >; + listAccountSummaries( + request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccountSummary + > + ): void; + listAccountSummaries( + request: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccountSummary + > + ): void; + listAccountSummaries( + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccountSummary + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + | protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IAccountSummary + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IAccountSummary[], + protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest | null, + protos.google.analytics.admin.v1alpha.IListAccountSummariesResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + this.initialize(); + return this.innerApiCalls.listAccountSummaries(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.AccountSummary | AccountSummary} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listAccountSummariesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listAccountSummariesStream( + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listAccountSummaries']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listAccountSummaries.createStream( + this.innerApiCalls.listAccountSummaries as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listAccountSummaries`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {number} request.pageSize + * The maximum number of AccountSummary resources to return. The service may + * return fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListAccountSummaries` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccountSummaries` + * must match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * {@link google.analytics.admin.v1alpha.AccountSummary | AccountSummary}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_async + */ + listAccountSummariesAsync( + request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listAccountSummaries']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listAccountSummaries.asyncIterate( + this.innerApiCalls['listAccountSummaries'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Returns child Properties under the specified parent Account. + * + * Only "GA4" properties will be returned. + * Properties will be excluded if the caller does not have access. + * Soft-deleted (ie: "trashed") properties are excluded by default. + * Returns an empty list if no relevant properties are found. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link google.analytics.admin.v1alpha.Property | Property}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listPropertiesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listProperties( + request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IProperty[], + protos.google.analytics.admin.v1alpha.IListPropertiesRequest | null, + protos.google.analytics.admin.v1alpha.IListPropertiesResponse + ] + >; + listProperties( + request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IProperty + > + ): void; + listProperties( + request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IProperty + > + ): void; + listProperties( + request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IProperty + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IProperty + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IProperty[], + protos.google.analytics.admin.v1alpha.IListPropertiesRequest | null, + protos.google.analytics.admin.v1alpha.IListPropertiesResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + this.initialize(); + return this.innerApiCalls.listProperties(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.Property | Property} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listPropertiesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listPropertiesStream( + request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listProperties']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listProperties.createStream( + this.innerApiCalls.listProperties as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listProperties`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.filter + * Required. An expression for filtering the results of the request. + * Fields eligible for filtering are: + * `parent:`(The resource name of the parent account/property) or + * `ancestor:`(The resource name of the parent account) or + * `firebase_project:`(The id or number of the linked firebase project). + * Some examples of filters: + * + * ``` + * | Filter | Description | + * |-----------------------------|-------------------------------------------| + * | parent:accounts/123 | The account with account id: 123. | + * | parent:properties/123 | The property with property id: 123. | + * | ancestor:accounts/123 | The account with account id: 123. | + * | firebase_project:project-id | The firebase project with id: project-id. | + * | firebase_project:123 | The firebase project with number: 123. | + * ``` + * @param {number} request.pageSize + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) + * @param {string} request.pageToken + * A page token, received from a previous `ListProperties` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListProperties` must + * match the call that provided the page token. + * @param {boolean} request.showDeleted + * Whether to include soft-deleted (ie: "trashed") Properties in the + * results. Properties can be inspected to determine whether they are deleted + * or not. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * {@link google.analytics.admin.v1alpha.Property | Property}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1alpha/analytics_admin_service.list_properties.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_async + */ + listPropertiesAsync( + request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + const defaultCallSettings = this._defaults['listProperties']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listProperties.asyncIterate( + this.innerApiCalls['listProperties'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists all user links on an account or property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 200 user links will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. * @param {string} request.pageToken - * A page token, received from a previous `ListAccountSummaries` call. + * A page token, received from a previous `ListUserLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. + * When paginating, all other parameters provided to `ListUserLinks` must + * match the call that provided the page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of {@link google.analytics.admin.v1alpha.UserLink | UserLink}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listUserLinksAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listUserLinks( + request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + options?: CallOptions + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IUserLink[], + protos.google.analytics.admin.v1alpha.IListUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListUserLinksResponse + ] + >; + listUserLinks( + request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IUserLink + > + ): void; + listUserLinks( + request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + callback: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IUserLink + > + ): void; + listUserLinks( + request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IUserLink + >, + callback?: PaginationCallback< + protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + | null + | undefined, + protos.google.analytics.admin.v1alpha.IUserLink + > + ): Promise< + [ + protos.google.analytics.admin.v1alpha.IUserLink[], + protos.google.analytics.admin.v1alpha.IListUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListUserLinksResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.listUserLinks(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 + * @param {number} request.pageSize + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 200 user links will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. + * @param {string} request.pageToken + * A page token, received from a previous `ListUserLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListUserLinks` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.AccountSummary | AccountSummary} on 'data' event. + * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.UserLink | UserLink} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listAccountSummariesAsync()` + * We recommend using `listUserLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listAccountSummariesStream( - request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + listUserLinksStream( + request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, options?: CallOptions ): Transform { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - const defaultCallSettings = this._defaults['listAccountSummaries']; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listUserLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listAccountSummaries.createStream( - this.innerApiCalls.listAccountSummaries as GaxCall, + return this.descriptors.page.listUserLinks.createStream( + this.innerApiCalls.listUserLinks as GaxCall, request, callSettings ); } /** - * Equivalent to `listAccountSummaries`, but returns an iterable object. + * Equivalent to `listUserLinks`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of AccountSummary resources to return. The service may - * return fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 200 user links will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. * @param {string} request.pageToken - * A page token, received from a previous `ListAccountSummaries` call. + * A page token, received from a previous `ListUserLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccountSummaries` - * must match the call that provided the page token. + * When paginating, all other parameters provided to `ListUserLinks` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * {@link google.analytics.admin.v1alpha.AccountSummary | AccountSummary}. The API will be called under the hood as needed, once per the page, + * {@link google.analytics.admin.v1alpha.UserLink | UserLink}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_account_summaries.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_user_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_async */ - listAccountSummariesAsync( - request?: protos.google.analytics.admin.v1alpha.IListAccountSummariesRequest, + listUserLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - const defaultCallSettings = this._defaults['listAccountSummaries']; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['listUserLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listAccountSummaries.asyncIterate( - this.innerApiCalls['listAccountSummaries'] as GaxCall, + return this.descriptors.page.listUserLinks.asyncIterate( + this.innerApiCalls['listUserLinks'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Returns child Properties under the specified parent Account. + * Lists all user links on an account or property, including implicit ones + * that come from effective permissions granted by groups or organization + * admin roles. * - * Only "GA4" properties will be returned. - * Properties will be excluded if the caller does not have access. - * Soft-deleted (ie: "trashed") properties are excluded by default. - * Returns an empty list if no relevant properties are found. + * If a returned user link does not have direct permissions, they cannot + * be removed from the account or property directly with the DeleteUserLink + * command. They have to be removed from the group/etc that gives them + * permissions, which is currently only usable/discoverable in the GA or GMP + * UIs. * * @param {Object} request * The request object that will be sent. - * @param {string} request.filter - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` + * @param {string} request.parent + * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 1000 user links will be returned. + * The maximum value is 5000; values above 5000 will be coerced to 5000. * @param {string} request.pageToken - * A page token, received from a previous `ListProperties` call. + * A page token, received from a previous `AuditUserLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must + * When paginating, all other parameters provided to `AuditUserLinks` must * match the call that provided the page token. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link google.analytics.admin.v1alpha.Property | Property}. + * The first element of the array is Array of {@link google.analytics.admin.v1alpha.AuditUserLink | AuditUserLink}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listPropertiesAsync()` + * We recommend using `auditUserLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listProperties( - request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + auditUserLinks( + request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IProperty[], - protos.google.analytics.admin.v1alpha.IListPropertiesRequest | null, - protos.google.analytics.admin.v1alpha.IListPropertiesResponse + protos.google.analytics.admin.v1alpha.IAuditUserLink[], + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse ] >; - listProperties( - request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + auditUserLinks( + request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IProperty + protos.google.analytics.admin.v1alpha.IAuditUserLink > ): void; - listProperties( - request: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + auditUserLinks( + request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IProperty + protos.google.analytics.admin.v1alpha.IAuditUserLink > ): void; - listProperties( - request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + auditUserLinks( + request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IProperty + protos.google.analytics.admin.v1alpha.IAuditUserLink >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListPropertiesRequest, - | protos.google.analytics.admin.v1alpha.IListPropertiesResponse + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IProperty + protos.google.analytics.admin.v1alpha.IAuditUserLink > ): Promise< [ - protos.google.analytics.admin.v1alpha.IProperty[], - protos.google.analytics.admin.v1alpha.IListPropertiesRequest | null, - protos.google.analytics.admin.v1alpha.IListPropertiesResponse + protos.google.analytics.admin.v1alpha.IAuditUserLink[], + protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse ] > | void { request = request || {}; @@ -10490,226 +11655,202 @@ export class AnalyticsAdminServiceClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); this.initialize(); - return this.innerApiCalls.listProperties(request, options, callback); + return this.innerApiCalls.auditUserLinks(request, options, callback); } /** * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. - * @param {string} request.filter - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` + * @param {string} request.parent + * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 1000 user links will be returned. + * The maximum value is 5000; values above 5000 will be coerced to 5000. * @param {string} request.pageToken - * A page token, received from a previous `ListProperties` call. + * A page token, received from a previous `AuditUserLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must + * When paginating, all other parameters provided to `AuditUserLinks` must * match the call that provided the page token. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.Property | Property} on 'data' event. + * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.AuditUserLink | AuditUserLink} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listPropertiesAsync()` + * We recommend using `auditUserLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listPropertiesStream( - request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + auditUserLinksStream( + request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, options?: CallOptions ): Transform { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - const defaultCallSettings = this._defaults['listProperties']; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['auditUserLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listProperties.createStream( - this.innerApiCalls.listProperties as GaxCall, + return this.descriptors.page.auditUserLinks.createStream( + this.innerApiCalls.auditUserLinks as GaxCall, request, callSettings ); } /** - * Equivalent to `listProperties`, but returns an iterable object. + * Equivalent to `auditUserLinks`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. - * @param {string} request.filter - * Required. An expression for filtering the results of the request. - * Fields eligible for filtering are: - * `parent:`(The resource name of the parent account/property) or - * `ancestor:`(The resource name of the parent account) or - * `firebase_project:`(The id or number of the linked firebase project). - * Some examples of filters: - * - * ``` - * | Filter | Description | - * |-----------------------------|-------------------------------------------| - * | parent:accounts/123 | The account with account id: 123. | - * | parent:properties/123 | The property with property id: 123. | - * | ancestor:accounts/123 | The account with account id: 123. | - * | firebase_project:project-id | The firebase project with id: project-id. | - * | firebase_project:123 | The firebase project with number: 123. | - * ``` + * @param {string} request.parent + * Required. Example format: accounts/1234 * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of user links to return. + * The service may return fewer than this value. + * If unspecified, at most 1000 user links will be returned. + * The maximum value is 5000; values above 5000 will be coerced to 5000. * @param {string} request.pageToken - * A page token, received from a previous `ListProperties` call. + * A page token, received from a previous `AuditUserLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProperties` must + * When paginating, all other parameters provided to `AuditUserLinks` must * match the call that provided the page token. - * @param {boolean} request.showDeleted - * Whether to include soft-deleted (ie: "trashed") Properties in the - * results. Properties can be inspected to determine whether they are deleted - * or not. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * {@link google.analytics.admin.v1alpha.Property | Property}. The API will be called under the hood as needed, once per the page, + * {@link google.analytics.admin.v1alpha.AuditUserLink | AuditUserLink}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_properties.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_async + * @example include:samples/generated/v1alpha/analytics_admin_service.audit_user_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_AuditUserLinks_async */ - listPropertiesAsync( - request?: protos.google.analytics.admin.v1alpha.IListPropertiesRequest, + auditUserLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - const defaultCallSettings = this._defaults['listProperties']; + options.otherArgs.headers['x-goog-request-params'] = + this._gaxModule.routingHeader.fromParams({ + parent: request.parent ?? '', + }); + const defaultCallSettings = this._defaults['auditUserLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listProperties.asyncIterate( - this.innerApiCalls['listProperties'] as GaxCall, + return this.descriptors.page.auditUserLinks.asyncIterate( + this.innerApiCalls['auditUserLinks'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists all user links on an account or property. + * Lists FirebaseLinks on a property. + * Properties can have at most one FirebaseLink. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. Format: properties/{property_id} + * Example: properties/1234 * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 200 user links will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListUserLinks` call. + * A page token, received from a previous `ListFirebaseLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListUserLinks` must + * When paginating, all other parameters provided to `ListFirebaseLinks` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link google.analytics.admin.v1alpha.UserLink | UserLink}. + * The first element of the array is Array of {@link google.analytics.admin.v1alpha.FirebaseLink | FirebaseLink}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listUserLinksAsync()` + * We recommend using `listFirebaseLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listUserLinks( - request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + listFirebaseLinks( + request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IUserLink[], - protos.google.analytics.admin.v1alpha.IListUserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListUserLinksResponse + protos.google.analytics.admin.v1alpha.IFirebaseLink[], + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse ] >; - listUserLinks( - request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + listFirebaseLinks( + request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IUserLink + protos.google.analytics.admin.v1alpha.IFirebaseLink > ): void; - listUserLinks( - request: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + listFirebaseLinks( + request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IUserLink + protos.google.analytics.admin.v1alpha.IFirebaseLink > ): void; - listUserLinks( - request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + listFirebaseLinks( + request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IUserLink + protos.google.analytics.admin.v1alpha.IFirebaseLink >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListUserLinksResponse + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IUserLink + protos.google.analytics.admin.v1alpha.IFirebaseLink > ): Promise< [ - protos.google.analytics.admin.v1alpha.IUserLink[], - protos.google.analytics.admin.v1alpha.IListUserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListUserLinksResponse + protos.google.analytics.admin.v1alpha.IFirebaseLink[], + protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse ] > | void { request = request || {}; @@ -10728,7 +11869,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listUserLinks(request, options, callback); + return this.innerApiCalls.listFirebaseLinks(request, options, callback); } /** @@ -10736,31 +11877,32 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. Format: properties/{property_id} + * Example: properties/1234 * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 200 user links will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListUserLinks` call. + * A page token, received from a previous `ListFirebaseLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListUserLinks` must + * When paginating, all other parameters provided to `ListFirebaseLinks` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.UserLink | UserLink} on 'data' event. + * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.FirebaseLink | FirebaseLink} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listUserLinksAsync()` + * We recommend using `listFirebaseLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listUserLinksStream( - request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + listFirebaseLinksStream( + request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, options?: CallOptions ): Transform { request = request || {}; @@ -10771,51 +11913,52 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listUserLinks']; + const defaultCallSettings = this._defaults['listFirebaseLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listUserLinks.createStream( - this.innerApiCalls.listUserLinks as GaxCall, + return this.descriptors.page.listFirebaseLinks.createStream( + this.innerApiCalls.listFirebaseLinks as GaxCall, request, callSettings ); } /** - * Equivalent to `listUserLinks`, but returns an iterable object. + * Equivalent to `listFirebaseLinks`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. Format: properties/{property_id} + * Example: properties/1234 * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 200 user links will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListUserLinks` call. + * A page token, received from a previous `ListFirebaseLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListUserLinks` must + * When paginating, all other parameters provided to `ListFirebaseLinks` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * {@link google.analytics.admin.v1alpha.UserLink | UserLink}. The API will be called under the hood as needed, once per the page, + * {@link google.analytics.admin.v1alpha.FirebaseLink | FirebaseLink}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_user_links.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListUserLinks_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListFirebaseLinks_async */ - listUserLinksAsync( - request?: protos.google.analytics.admin.v1alpha.IListUserLinksRequest, + listFirebaseLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -10824,107 +11967,99 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listUserLinks']; + const defaultCallSettings = this._defaults['listFirebaseLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listUserLinks.asyncIterate( - this.innerApiCalls['listUserLinks'] as GaxCall, + return this.descriptors.page.listFirebaseLinks.asyncIterate( + this.innerApiCalls['listFirebaseLinks'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists all user links on an account or property, including implicit ones - * that come from effective permissions granted by groups or organization - * admin roles. - * - * If a returned user link does not have direct permissions, they cannot - * be removed from the account or property directly with the DeleteUserLink - * command. They have to be removed from the group/etc that gives them - * permissions, which is currently only usable/discoverable in the GA or GMP - * UIs. + * Lists GoogleAdsLinks on a property. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. Example format: properties/1234 * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 1000 user links will be returned. - * The maximum value is 5000; values above 5000 will be coerced to 5000. + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `AuditUserLinks` call. + * A page token, received from a previous `ListGoogleAdsLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `AuditUserLinks` must + * + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link google.analytics.admin.v1alpha.AuditUserLink | AuditUserLink}. + * The first element of the array is Array of {@link google.analytics.admin.v1alpha.GoogleAdsLink | GoogleAdsLink}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `auditUserLinksAsync()` + * We recommend using `listGoogleAdsLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - auditUserLinks( - request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listGoogleAdsLinks( + request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IAuditUserLink[], - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IGoogleAdsLink[], + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse ] >; - auditUserLinks( - request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listGoogleAdsLinks( + request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAuditUserLink + protos.google.analytics.admin.v1alpha.IGoogleAdsLink > ): void; - auditUserLinks( - request: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listGoogleAdsLinks( + request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAuditUserLink + protos.google.analytics.admin.v1alpha.IGoogleAdsLink > ): void; - auditUserLinks( - request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listGoogleAdsLinks( + request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAuditUserLink + protos.google.analytics.admin.v1alpha.IGoogleAdsLink >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, - | protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAuditUserLink + protos.google.analytics.admin.v1alpha.IGoogleAdsLink > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAuditUserLink[], - protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IAuditUserLinksResponse + protos.google.analytics.admin.v1alpha.IGoogleAdsLink[], + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse ] > | void { request = request || {}; @@ -10943,7 +12078,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.auditUserLinks(request, options, callback); + return this.innerApiCalls.listGoogleAdsLinks(request, options, callback); } /** @@ -10951,31 +12086,31 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. Example format: properties/1234 * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 1000 user links will be returned. - * The maximum value is 5000; values above 5000 will be coerced to 5000. + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `AuditUserLinks` call. + * A page token, received from a previous `ListGoogleAdsLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `AuditUserLinks` must + * + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.AuditUserLink | AuditUserLink} on 'data' event. + * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.GoogleAdsLink | GoogleAdsLink} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `auditUserLinksAsync()` + * We recommend using `listGoogleAdsLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - auditUserLinksStream( - request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listGoogleAdsLinksStream( + request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, options?: CallOptions ): Transform { request = request || {}; @@ -10986,51 +12121,51 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['auditUserLinks']; + const defaultCallSettings = this._defaults['listGoogleAdsLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.auditUserLinks.createStream( - this.innerApiCalls.auditUserLinks as GaxCall, + return this.descriptors.page.listGoogleAdsLinks.createStream( + this.innerApiCalls.listGoogleAdsLinks as GaxCall, request, callSettings ); } /** - * Equivalent to `auditUserLinks`, but returns an iterable object. + * Equivalent to `listGoogleAdsLinks`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: accounts/1234 + * Required. Example format: properties/1234 * @param {number} request.pageSize - * The maximum number of user links to return. - * The service may return fewer than this value. - * If unspecified, at most 1000 user links will be returned. - * The maximum value is 5000; values above 5000 will be coerced to 5000. + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `AuditUserLinks` call. + * A page token, received from a previous `ListGoogleAdsLinks` call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `AuditUserLinks` must + * + * When paginating, all other parameters provided to `ListGoogleAdsLinks` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * {@link google.analytics.admin.v1alpha.AuditUserLink | AuditUserLink}. The API will be called under the hood as needed, once per the page, + * {@link google.analytics.admin.v1alpha.GoogleAdsLink | GoogleAdsLink}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.audit_user_links.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_AuditUserLinks_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListGoogleAdsLinks_async */ - auditUserLinksAsync( - request?: protos.google.analytics.admin.v1alpha.IAuditUserLinksRequest, + listGoogleAdsLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -11039,101 +12174,101 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['auditUserLinks']; + const defaultCallSettings = this._defaults['listGoogleAdsLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.auditUserLinks.asyncIterate( - this.innerApiCalls['auditUserLinks'] as GaxCall, + return this.descriptors.page.listGoogleAdsLinks.asyncIterate( + this.innerApiCalls['listGoogleAdsLinks'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists FirebaseLinks on a property. - * Properties can have at most one FirebaseLink. + * Returns child MeasurementProtocolSecrets under the specified parent + * Property. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Format: properties/{property_id} - * Example: properties/1234 + * Required. The resource name of the parent stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of resources to return. + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. * @param {string} request.pageToken - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListFirebaseLinks` must - * match the call that provided the page token. + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link google.analytics.admin.v1alpha.FirebaseLink | FirebaseLink}. + * The first element of the array is Array of {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret | MeasurementProtocolSecret}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listFirebaseLinksAsync()` + * We recommend using `listMeasurementProtocolSecretsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listFirebaseLinks( - request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + listMeasurementProtocolSecrets( + request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IFirebaseLink[], - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[], + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest | null, + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse ] >; - listFirebaseLinks( - request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + listMeasurementProtocolSecrets( + request: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IFirebaseLink + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret > ): void; - listFirebaseLinks( - request: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + listMeasurementProtocolSecrets( + request: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IFirebaseLink + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret > ): void; - listFirebaseLinks( - request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + listMeasurementProtocolSecrets( + request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IFirebaseLink + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, - | protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IFirebaseLink + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret > ): Promise< [ - protos.google.analytics.admin.v1alpha.IFirebaseLink[], - protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListFirebaseLinksResponse + protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[], + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest | null, + protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse ] > | void { request = request || {}; @@ -11152,7 +12287,11 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listFirebaseLinks(request, options, callback); + return this.innerApiCalls.listMeasurementProtocolSecrets( + request, + options, + callback + ); } /** @@ -11160,32 +12299,32 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Format: properties/{property_id} - * Example: properties/1234 + * Required. The resource name of the parent stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of resources to return. + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. * @param {string} request.pageToken - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListFirebaseLinks` must - * match the call that provided the page token. + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.FirebaseLink | FirebaseLink} on 'data' event. + * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret | MeasurementProtocolSecret} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listFirebaseLinksAsync()` + * We recommend using `listMeasurementProtocolSecretsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listFirebaseLinksStream( - request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + listMeasurementProtocolSecretsStream( + request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -11196,52 +12335,53 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listFirebaseLinks']; + const defaultCallSettings = + this._defaults['listMeasurementProtocolSecrets']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listFirebaseLinks.createStream( - this.innerApiCalls.listFirebaseLinks as GaxCall, + return this.descriptors.page.listMeasurementProtocolSecrets.createStream( + this.innerApiCalls.listMeasurementProtocolSecrets as GaxCall, request, callSettings ); } /** - * Equivalent to `listFirebaseLinks`, but returns an iterable object. + * Equivalent to `listMeasurementProtocolSecrets`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Format: properties/{property_id} - * Example: properties/1234 + * Required. The resource name of the parent stream. + * Format: + * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum number of resources to return. + * If unspecified, at most 10 resources will be returned. + * The maximum value is 10. Higher values will be coerced to the maximum. * @param {string} request.pageToken - * A page token, received from a previous `ListFirebaseLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListFirebaseLinks` must - * match the call that provided the page token. + * A page token, received from a previous `ListMeasurementProtocolSecrets` + * call. Provide this to retrieve the subsequent page. When paginating, all + * other parameters provided to `ListMeasurementProtocolSecrets` must match + * the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * {@link google.analytics.admin.v1alpha.FirebaseLink | FirebaseLink}. The API will be called under the hood as needed, once per the page, + * {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret | MeasurementProtocolSecret}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_firebase_links.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListFirebaseLinks_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_async */ - listFirebaseLinksAsync( - request?: protos.google.analytics.admin.v1alpha.IListFirebaseLinksRequest, + listMeasurementProtocolSecretsAsync( + request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -11250,99 +12390,119 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listFirebaseLinks']; + const defaultCallSettings = + this._defaults['listMeasurementProtocolSecrets']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listFirebaseLinks.asyncIterate( - this.innerApiCalls['listFirebaseLinks'] as GaxCall, + return this.descriptors.page.listMeasurementProtocolSecrets.asyncIterate( + this.innerApiCalls['listMeasurementProtocolSecrets'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists GoogleAdsLinks on a property. + * Searches through all changes to an account or its children given the + * specified set of filters. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: properties/1234 - * @param {number} request.pageSize - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. + * @param {string} request.account + * Required. The account resource for which to return change history + * resources. + * @param {string} [request.property] + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * @param {number[]} [request.resourceType] + * Optional. If set, only return changes if they are for a resource that + * matches at least one of these types. + * @param {number[]} [request.action] + * Optional. If set, only return changes that match one or more of these types + * of actions. + * @param {string[]} [request.actorEmail] + * Optional. If set, only return changes if they are made by a user in this + * list. + * @param {google.protobuf.Timestamp} [request.earliestChangeTime] + * Optional. If set, only return changes made after this time (inclusive). + * @param {google.protobuf.Timestamp} [request.latestChangeTime] + * Optional. If set, only return changes made before this time (inclusive). + * @param {number} [request.pageSize] + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). - * @param {string} request.pageToken - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous + * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `SearchChangeHistoryEvents` must match the call that provided the page + * token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link google.analytics.admin.v1alpha.GoogleAdsLink | GoogleAdsLink}. + * The first element of the array is Array of {@link google.analytics.admin.v1alpha.ChangeHistoryEvent | ChangeHistoryEvent}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listGoogleAdsLinksAsync()` + * We recommend using `searchChangeHistoryEventsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listGoogleAdsLinks( - request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + searchChangeHistoryEvents( + request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IGoogleAdsLink[], - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[], + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest | null, + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse ] >; - listGoogleAdsLinks( - request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + searchChangeHistoryEvents( + request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, - | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IGoogleAdsLink + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent > ): void; - listGoogleAdsLinks( - request: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + searchChangeHistoryEvents( + request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, - | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IGoogleAdsLink + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent > ): void; - listGoogleAdsLinks( - request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + searchChangeHistoryEvents( + request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, - | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IGoogleAdsLink + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, - | protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IGoogleAdsLink + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent > ): Promise< [ - protos.google.analytics.admin.v1alpha.IGoogleAdsLink[], - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksResponse + protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[], + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest | null, + protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse ] > | void { request = request || {}; @@ -11358,42 +12518,64 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + account: request.account ?? '', }); this.initialize(); - return this.innerApiCalls.listGoogleAdsLinks(request, options, callback); + return this.innerApiCalls.searchChangeHistoryEvents( + request, + options, + callback + ); } /** * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: properties/1234 - * @param {number} request.pageSize - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. + * @param {string} request.account + * Required. The account resource for which to return change history + * resources. + * @param {string} [request.property] + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * @param {number[]} [request.resourceType] + * Optional. If set, only return changes if they are for a resource that + * matches at least one of these types. + * @param {number[]} [request.action] + * Optional. If set, only return changes that match one or more of these types + * of actions. + * @param {string[]} [request.actorEmail] + * Optional. If set, only return changes if they are made by a user in this + * list. + * @param {google.protobuf.Timestamp} [request.earliestChangeTime] + * Optional. If set, only return changes made after this time (inclusive). + * @param {google.protobuf.Timestamp} [request.latestChangeTime] + * Optional. If set, only return changes made before this time (inclusive). + * @param {number} [request.pageSize] + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). - * @param {string} request.pageToken - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous + * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `SearchChangeHistoryEvents` must match the call that provided the page + * token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.GoogleAdsLink | GoogleAdsLink} on 'data' event. + * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.ChangeHistoryEvent | ChangeHistoryEvent} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listGoogleAdsLinksAsync()` + * We recommend using `searchChangeHistoryEventsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listGoogleAdsLinksStream( - request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + searchChangeHistoryEventsStream( + request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -11402,156 +12584,174 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + account: request.account ?? '', }); - const defaultCallSettings = this._defaults['listGoogleAdsLinks']; + const defaultCallSettings = this._defaults['searchChangeHistoryEvents']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listGoogleAdsLinks.createStream( - this.innerApiCalls.listGoogleAdsLinks as GaxCall, + return this.descriptors.page.searchChangeHistoryEvents.createStream( + this.innerApiCalls.searchChangeHistoryEvents as GaxCall, request, callSettings ); } /** - * Equivalent to `listGoogleAdsLinks`, but returns an iterable object. + * Equivalent to `searchChangeHistoryEvents`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. Example format: properties/1234 - * @param {number} request.pageSize - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. + * @param {string} request.account + * Required. The account resource for which to return change history + * resources. + * @param {string} [request.property] + * Optional. Resource name for a child property. If set, only return changes + * made to this property or its child resources. + * @param {number[]} [request.resourceType] + * Optional. If set, only return changes if they are for a resource that + * matches at least one of these types. + * @param {number[]} [request.action] + * Optional. If set, only return changes that match one or more of these types + * of actions. + * @param {string[]} [request.actorEmail] + * Optional. If set, only return changes if they are made by a user in this + * list. + * @param {google.protobuf.Timestamp} [request.earliestChangeTime] + * Optional. If set, only return changes made after this time (inclusive). + * @param {google.protobuf.Timestamp} [request.latestChangeTime] + * Optional. If set, only return changes made before this time (inclusive). + * @param {number} [request.pageSize] + * Optional. The maximum number of ChangeHistoryEvent items to return. + * The service may return fewer than this value, even if there are additional + * pages. If unspecified, at most 50 items will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). - * @param {string} request.pageToken - * A page token, received from a previous `ListGoogleAdsLinks` call. - * Provide this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to `ListGoogleAdsLinks` must - * match the call that provided the page token. + * @param {string} [request.pageToken] + * Optional. A page token, received from a previous + * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent + * page. When paginating, all other parameters provided to + * `SearchChangeHistoryEvents` must match the call that provided the page + * token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * {@link google.analytics.admin.v1alpha.GoogleAdsLink | GoogleAdsLink}. The API will be called under the hood as needed, once per the page, + * {@link google.analytics.admin.v1alpha.ChangeHistoryEvent | ChangeHistoryEvent}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_google_ads_links.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListGoogleAdsLinks_async + * @example include:samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_SearchChangeHistoryEvents_async */ - listGoogleAdsLinksAsync( - request?: protos.google.analytics.admin.v1alpha.IListGoogleAdsLinksRequest, + searchChangeHistoryEventsAsync( + request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + account: request.account ?? '', }); - const defaultCallSettings = this._defaults['listGoogleAdsLinks']; + const defaultCallSettings = this._defaults['searchChangeHistoryEvents']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listGoogleAdsLinks.asyncIterate( - this.innerApiCalls['listGoogleAdsLinks'] as GaxCall, + return this.descriptors.page.searchChangeHistoryEvents.asyncIterate( + this.innerApiCalls['searchChangeHistoryEvents'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Returns child MeasurementProtocolSecrets under the specified parent - * Property. + * Returns a list of conversion events in the specified parent property. + * + * Returns an empty list if no conversion events are found. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + * Required. The resource name of the parent property. + * Example: 'properties/123' * @param {number} request.pageSize * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. + * A page token, received from a previous `ListConversionEvents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret | MeasurementProtocolSecret}. + * The first element of the array is Array of {@link google.analytics.admin.v1alpha.ConversionEvent | ConversionEvent}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listMeasurementProtocolSecretsAsync()` + * We recommend using `listConversionEventsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listMeasurementProtocolSecrets( - request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + listConversionEvents( + request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[], - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest | null, - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse + protos.google.analytics.admin.v1alpha.IConversionEvent[], + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest | null, + protos.google.analytics.admin.v1alpha.IListConversionEventsResponse ] >; - listMeasurementProtocolSecrets( - request: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + listConversionEvents( + request: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, - | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret + protos.google.analytics.admin.v1alpha.IConversionEvent > ): void; - listMeasurementProtocolSecrets( - request: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + listConversionEvents( + request: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, - | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret + protos.google.analytics.admin.v1alpha.IConversionEvent > ): void; - listMeasurementProtocolSecrets( - request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + listConversionEvents( + request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, - | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret + protos.google.analytics.admin.v1alpha.IConversionEvent >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, - | protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret + protos.google.analytics.admin.v1alpha.IConversionEvent > ): Promise< [ - protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[], - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest | null, - protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsResponse + protos.google.analytics.admin.v1alpha.IConversionEvent[], + protos.google.analytics.admin.v1alpha.IListConversionEventsRequest | null, + protos.google.analytics.admin.v1alpha.IListConversionEventsResponse ] > | void { request = request || {}; @@ -11570,11 +12770,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listMeasurementProtocolSecrets( - request, - options, - callback - ); + return this.innerApiCalls.listConversionEvents(request, options, callback); } /** @@ -11582,32 +12778,31 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + * Required. The resource name of the parent property. + * Example: 'properties/123' * @param {number} request.pageSize * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. + * A page token, received from a previous `ListConversionEvents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret | MeasurementProtocolSecret} on 'data' event. + * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.ConversionEvent | ConversionEvent} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listMeasurementProtocolSecretsAsync()` + * We recommend using `listConversionEventsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listMeasurementProtocolSecretsStream( - request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + listConversionEventsStream( + request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -11618,53 +12813,51 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = - this._defaults['listMeasurementProtocolSecrets']; + const defaultCallSettings = this._defaults['listConversionEvents']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listMeasurementProtocolSecrets.createStream( - this.innerApiCalls.listMeasurementProtocolSecrets as GaxCall, + return this.descriptors.page.listConversionEvents.createStream( + this.innerApiCalls.listConversionEvents as GaxCall, request, callSettings ); } /** - * Equivalent to `listMeasurementProtocolSecrets`, but returns an iterable object. + * Equivalent to `listConversionEvents`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the parent stream. - * Format: - * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets + * Required. The resource name of the parent property. + * Example: 'properties/123' * @param {number} request.pageSize * The maximum number of resources to return. - * If unspecified, at most 10 resources will be returned. - * The maximum value is 10. Higher values will be coerced to the maximum. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListMeasurementProtocolSecrets` - * call. Provide this to retrieve the subsequent page. When paginating, all - * other parameters provided to `ListMeasurementProtocolSecrets` must match - * the call that provided the page token. + * A page token, received from a previous `ListConversionEvents` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListConversionEvents` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * {@link google.analytics.admin.v1alpha.MeasurementProtocolSecret | MeasurementProtocolSecret}. The API will be called under the hood as needed, once per the page, + * {@link google.analytics.admin.v1alpha.ConversionEvent | ConversionEvent}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_measurement_protocol_secrets.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConversionEvents_async */ - listMeasurementProtocolSecretsAsync( - request?: protos.google.analytics.admin.v1alpha.IListMeasurementProtocolSecretsRequest, + listConversionEventsAsync( + request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -11673,119 +12866,100 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = - this._defaults['listMeasurementProtocolSecrets']; - const callSettings = defaultCallSettings.merge(options); - this.initialize(); - return this.descriptors.page.listMeasurementProtocolSecrets.asyncIterate( - this.innerApiCalls['listMeasurementProtocolSecrets'] as GaxCall, - request as {}, - callSettings - ) as AsyncIterable; - } - /** - * Searches through all changes to an account or its children given the - * specified set of filters. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.account - * Required. The account resource for which to return change history - * resources. - * @param {string} [request.property] - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * @param {number[]} [request.resourceType] - * Optional. If set, only return changes if they are for a resource that - * matches at least one of these types. - * @param {number[]} [request.action] - * Optional. If set, only return changes that match one or more of these types - * of actions. - * @param {string[]} [request.actorEmail] - * Optional. If set, only return changes if they are made by a user in this - * list. - * @param {google.protobuf.Timestamp} [request.earliestChangeTime] - * Optional. If set, only return changes made after this time (inclusive). - * @param {google.protobuf.Timestamp} [request.latestChangeTime] - * Optional. If set, only return changes made before this time (inclusive). - * @param {number} [request.pageSize] - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. + const defaultCallSettings = this._defaults['listConversionEvents']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listConversionEvents.asyncIterate( + this.innerApiCalls['listConversionEvents'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists all DisplayVideo360AdvertiserLinks on a property. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). - * @param {string} [request.pageToken] - * Optional. A page token, received from a previous - * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * `SearchChangeHistoryEvents` must match the call that provided the page - * token. + * @param {string} request.pageToken + * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the + * page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link google.analytics.admin.v1alpha.ChangeHistoryEvent | ChangeHistoryEvent}. + * The first element of the array is Array of {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink | DisplayVideo360AdvertiserLink}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `searchChangeHistoryEventsAsync()` + * We recommend using `listDisplayVideo360AdvertiserLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - searchChangeHistoryEvents( - request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + listDisplayVideo360AdvertiserLinks( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[], - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest | null, - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[], + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse ] >; - searchChangeHistoryEvents( - request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + listDisplayVideo360AdvertiserLinks( + request: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, - | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink > ): void; - searchChangeHistoryEvents( - request: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + listDisplayVideo360AdvertiserLinks( + request: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, - | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink > ): void; - searchChangeHistoryEvents( - request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + listDisplayVideo360AdvertiserLinks( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, - | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, - | protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink > ): Promise< [ - protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[], - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest | null, - protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsResponse + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[], + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse ] > | void { request = request || {}; @@ -11801,10 +12975,10 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - account: request.account ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.searchChangeHistoryEvents( + return this.innerApiCalls.listDisplayVideo360AdvertiserLinks( request, options, callback @@ -11815,50 +12989,33 @@ export class AnalyticsAdminServiceClient { * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. - * @param {string} request.account - * Required. The account resource for which to return change history - * resources. - * @param {string} [request.property] - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * @param {number[]} [request.resourceType] - * Optional. If set, only return changes if they are for a resource that - * matches at least one of these types. - * @param {number[]} [request.action] - * Optional. If set, only return changes that match one or more of these types - * of actions. - * @param {string[]} [request.actorEmail] - * Optional. If set, only return changes if they are made by a user in this - * list. - * @param {google.protobuf.Timestamp} [request.earliestChangeTime] - * Optional. If set, only return changes made after this time (inclusive). - * @param {google.protobuf.Timestamp} [request.latestChangeTime] - * Optional. If set, only return changes made before this time (inclusive). - * @param {number} [request.pageSize] - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). - * @param {string} [request.pageToken] - * Optional. A page token, received from a previous - * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * `SearchChangeHistoryEvents` must match the call that provided the page - * token. + * @param {string} request.pageToken + * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the + * page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.ChangeHistoryEvent | ChangeHistoryEvent} on 'data' event. + * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink | DisplayVideo360AdvertiserLink} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `searchChangeHistoryEventsAsync()` + * We recommend using `listDisplayVideo360AdvertiserLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - searchChangeHistoryEventsStream( - request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + listDisplayVideo360AdvertiserLinksStream( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, options?: CallOptions ): Transform { request = request || {}; @@ -11867,174 +13024,159 @@ export class AnalyticsAdminServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - account: request.account ?? '', + parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['searchChangeHistoryEvents']; + const defaultCallSettings = + this._defaults['listDisplayVideo360AdvertiserLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.searchChangeHistoryEvents.createStream( - this.innerApiCalls.searchChangeHistoryEvents as GaxCall, + return this.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream( + this.innerApiCalls.listDisplayVideo360AdvertiserLinks as GaxCall, request, callSettings ); } /** - * Equivalent to `searchChangeHistoryEvents`, but returns an iterable object. + * Equivalent to `listDisplayVideo360AdvertiserLinks`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. - * @param {string} request.account - * Required. The account resource for which to return change history - * resources. - * @param {string} [request.property] - * Optional. Resource name for a child property. If set, only return changes - * made to this property or its child resources. - * @param {number[]} [request.resourceType] - * Optional. If set, only return changes if they are for a resource that - * matches at least one of these types. - * @param {number[]} [request.action] - * Optional. If set, only return changes that match one or more of these types - * of actions. - * @param {string[]} [request.actorEmail] - * Optional. If set, only return changes if they are made by a user in this - * list. - * @param {google.protobuf.Timestamp} [request.earliestChangeTime] - * Optional. If set, only return changes made after this time (inclusive). - * @param {google.protobuf.Timestamp} [request.latestChangeTime] - * Optional. If set, only return changes made before this time (inclusive). - * @param {number} [request.pageSize] - * Optional. The maximum number of ChangeHistoryEvent items to return. - * The service may return fewer than this value, even if there are additional - * pages. If unspecified, at most 50 items will be returned. + * @param {string} request.parent + * Required. Example format: properties/1234 + * @param {number} request.pageSize + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). - * @param {string} [request.pageToken] - * Optional. A page token, received from a previous - * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent - * page. When paginating, all other parameters provided to - * `SearchChangeHistoryEvents` must match the call that provided the page - * token. + * @param {string} request.pageToken + * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` + * call. Provide this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the + * page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * {@link google.analytics.admin.v1alpha.ChangeHistoryEvent | ChangeHistoryEvent}. The API will be called under the hood as needed, once per the page, + * {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink | DisplayVideo360AdvertiserLink}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.search_change_history_events.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_SearchChangeHistoryEvents_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinks_async */ - searchChangeHistoryEventsAsync( - request?: protos.google.analytics.admin.v1alpha.ISearchChangeHistoryEventsRequest, + listDisplayVideo360AdvertiserLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - account: request.account ?? '', + parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['searchChangeHistoryEvents']; + const defaultCallSettings = + this._defaults['listDisplayVideo360AdvertiserLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.searchChangeHistoryEvents.asyncIterate( - this.innerApiCalls['searchChangeHistoryEvents'] as GaxCall, + return this.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate( + this.innerApiCalls['listDisplayVideo360AdvertiserLinks'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Returns a list of conversion events in the specified parent property. - * - * Returns an empty list if no conversion events are found. + * Lists DisplayVideo360AdvertiserLinkProposals on a property. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the parent property. - * Example: 'properties/123' + * Required. Example format: properties/1234 * @param {number} request.pageSize * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. + * A page token, received from a previous + * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve + * the subsequent page. + * + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that + * provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link google.analytics.admin.v1alpha.ConversionEvent | ConversionEvent}. + * The first element of the array is Array of {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal | DisplayVideo360AdvertiserLinkProposal}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listConversionEventsAsync()` + * We recommend using `listDisplayVideo360AdvertiserLinkProposalsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listConversionEvents( - request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + listDisplayVideo360AdvertiserLinkProposals( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IConversionEvent[], - protos.google.analytics.admin.v1alpha.IListConversionEventsRequest | null, - protos.google.analytics.admin.v1alpha.IListConversionEventsResponse + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[], + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest | null, + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse ] >; - listConversionEvents( - request: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + listDisplayVideo360AdvertiserLinkProposals( + request: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, - | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IConversionEvent + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal > ): void; - listConversionEvents( - request: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + listDisplayVideo360AdvertiserLinkProposals( + request: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, - | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IConversionEvent + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal > ): void; - listConversionEvents( - request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + listDisplayVideo360AdvertiserLinkProposals( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, - | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IConversionEvent + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, - | protos.google.analytics.admin.v1alpha.IListConversionEventsResponse + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IConversionEvent + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal > ): Promise< [ - protos.google.analytics.admin.v1alpha.IConversionEvent[], - protos.google.analytics.admin.v1alpha.IListConversionEventsRequest | null, - protos.google.analytics.admin.v1alpha.IListConversionEventsResponse + protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[], + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest | null, + protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse ] > | void { request = request || {}; @@ -12053,7 +13195,11 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listConversionEvents(request, options, callback); + return this.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals( + request, + options, + callback + ); } /** @@ -12061,31 +13207,33 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the parent property. - * Example: 'properties/123' + * Required. Example format: properties/1234 * @param {number} request.pageSize * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. + * A page token, received from a previous + * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve + * the subsequent page. + * + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that + * provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.ConversionEvent | ConversionEvent} on 'data' event. + * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal | DisplayVideo360AdvertiserLinkProposal} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listConversionEventsAsync()` + * We recommend using `listDisplayVideo360AdvertiserLinkProposalsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listConversionEventsStream( - request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + listDisplayVideo360AdvertiserLinkProposalsStream( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -12096,51 +13244,54 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listConversionEvents']; + const defaultCallSettings = + this._defaults['listDisplayVideo360AdvertiserLinkProposals']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listConversionEvents.createStream( - this.innerApiCalls.listConversionEvents as GaxCall, + return this.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream( + this.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals as GaxCall, request, callSettings ); } /** - * Equivalent to `listConversionEvents`, but returns an iterable object. + * Equivalent to `listDisplayVideo360AdvertiserLinkProposals`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the parent property. - * Example: 'properties/123' + * Required. Example format: properties/1234 * @param {number} request.pageSize * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListConversionEvents` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListConversionEvents` - * must match the call that provided the page token. + * A page token, received from a previous + * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve + * the subsequent page. + * + * When paginating, all other parameters provided to + * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that + * provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * {@link google.analytics.admin.v1alpha.ConversionEvent | ConversionEvent}. The API will be called under the hood as needed, once per the page, + * {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal | DisplayVideo360AdvertiserLinkProposal}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_conversion_events.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConversionEvents_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinkProposals_async */ - listConversionEventsAsync( - request?: protos.google.analytics.admin.v1alpha.IListConversionEventsRequest, + listDisplayVideo360AdvertiserLinkProposalsAsync( + request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -12149,17 +13300,20 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listConversionEvents']; + const defaultCallSettings = + this._defaults['listDisplayVideo360AdvertiserLinkProposals']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listConversionEvents.asyncIterate( - this.innerApiCalls['listConversionEvents'] as GaxCall, + return this.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate( + this.innerApiCalls[ + 'listDisplayVideo360AdvertiserLinkProposals' + ] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists all DisplayVideo360AdvertiserLinks on a property. + * Lists CustomDimensions on a property. * * @param {Object} request * The request object that will be sent. @@ -12170,79 +13324,78 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` - * call. Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListCustomDimensions` call. + * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the - * page token. + * When paginating, all other parameters provided to `ListCustomDimensions` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink | DisplayVideo360AdvertiserLink}. + * The first element of the array is Array of {@link google.analytics.admin.v1alpha.CustomDimension | CustomDimension}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listDisplayVideo360AdvertiserLinksAsync()` + * We recommend using `listCustomDimensionsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listDisplayVideo360AdvertiserLinks( - request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + listCustomDimensions( + request?: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[], - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse + protos.google.analytics.admin.v1alpha.ICustomDimension[], + protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest | null, + protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse ] >; - listDisplayVideo360AdvertiserLinks( - request: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + listCustomDimensions( + request: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse + protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink + protos.google.analytics.admin.v1alpha.ICustomDimension > ): void; - listDisplayVideo360AdvertiserLinks( - request: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + listCustomDimensions( + request: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse + protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink + protos.google.analytics.admin.v1alpha.ICustomDimension > ): void; - listDisplayVideo360AdvertiserLinks( - request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + listCustomDimensions( + request?: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse + protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink + protos.google.analytics.admin.v1alpha.ICustomDimension >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, - | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse + protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink + protos.google.analytics.admin.v1alpha.ICustomDimension > ): Promise< [ - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[], - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksResponse + protos.google.analytics.admin.v1alpha.ICustomDimension[], + protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest | null, + protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse ] > | void { request = request || {}; @@ -12261,11 +13414,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listDisplayVideo360AdvertiserLinks( - request, - options, - callback - ); + return this.innerApiCalls.listCustomDimensions(request, options, callback); } /** @@ -12279,26 +13428,25 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` - * call. Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListCustomDimensions` call. + * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the - * page token. + * When paginating, all other parameters provided to `ListCustomDimensions` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink | DisplayVideo360AdvertiserLink} on 'data' event. + * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.CustomDimension | CustomDimension} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listDisplayVideo360AdvertiserLinksAsync()` + * We recommend using `listCustomDimensionsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listDisplayVideo360AdvertiserLinksStream( - request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + listCustomDimensionsStream( + request?: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -12309,19 +13457,18 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = - this._defaults['listDisplayVideo360AdvertiserLinks']; + const defaultCallSettings = this._defaults['listCustomDimensions']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream( - this.innerApiCalls.listDisplayVideo360AdvertiserLinks as GaxCall, + return this.descriptors.page.listCustomDimensions.createStream( + this.innerApiCalls.listCustomDimensions as GaxCall, request, callSettings ); } /** - * Equivalent to `listDisplayVideo360AdvertiserLinks`, but returns an iterable object. + * Equivalent to `listCustomDimensions`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -12333,29 +13480,28 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` - * call. Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListCustomDimensions` call. + * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the - * page token. + * When paginating, all other parameters provided to `ListCustomDimensions` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink | DisplayVideo360AdvertiserLink}. The API will be called under the hood as needed, once per the page, + * {@link google.analytics.admin.v1alpha.CustomDimension | CustomDimension}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_links.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinks_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomDimensions_async */ - listDisplayVideo360AdvertiserLinksAsync( - request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinksRequest, + listCustomDimensionsAsync( + request?: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -12364,18 +13510,17 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = - this._defaults['listDisplayVideo360AdvertiserLinks']; + const defaultCallSettings = this._defaults['listCustomDimensions']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate( - this.innerApiCalls['listDisplayVideo360AdvertiserLinks'] as GaxCall, + return this.descriptors.page.listCustomDimensions.asyncIterate( + this.innerApiCalls['listCustomDimensions'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists DisplayVideo360AdvertiserLinkProposals on a property. + * Lists CustomMetrics on a property. * * @param {Object} request * The request object that will be sent. @@ -12386,80 +13531,78 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous - * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve - * the subsequent page. + * A page token, received from a previous `ListCustomMetrics` call. + * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that - * provided the page token. + * When paginating, all other parameters provided to `ListCustomMetrics` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal | DisplayVideo360AdvertiserLinkProposal}. + * The first element of the array is Array of {@link google.analytics.admin.v1alpha.CustomMetric | CustomMetric}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listDisplayVideo360AdvertiserLinkProposalsAsync()` + * We recommend using `listCustomMetricsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listDisplayVideo360AdvertiserLinkProposals( - request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + listCustomMetrics( + request?: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[], - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest | null, - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse + protos.google.analytics.admin.v1alpha.ICustomMetric[], + protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest | null, + protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse ] >; - listDisplayVideo360AdvertiserLinkProposals( - request: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + listCustomMetrics( + request: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, - | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse + protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal + protos.google.analytics.admin.v1alpha.ICustomMetric > ): void; - listDisplayVideo360AdvertiserLinkProposals( - request: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + listCustomMetrics( + request: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, - | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse + protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal + protos.google.analytics.admin.v1alpha.ICustomMetric > ): void; - listDisplayVideo360AdvertiserLinkProposals( - request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + listCustomMetrics( + request?: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, - | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse + protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal + protos.google.analytics.admin.v1alpha.ICustomMetric >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, - | protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse + protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + | protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal + protos.google.analytics.admin.v1alpha.ICustomMetric > ): Promise< [ - protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[], - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest | null, - protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsResponse + protos.google.analytics.admin.v1alpha.ICustomMetric[], + protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest | null, + protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse ] > | void { request = request || {}; @@ -12478,11 +13621,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals( - request, - options, - callback - ); + return this.innerApiCalls.listCustomMetrics(request, options, callback); } /** @@ -12496,27 +13635,25 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous - * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve - * the subsequent page. + * A page token, received from a previous `ListCustomMetrics` call. + * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that - * provided the page token. + * When paginating, all other parameters provided to `ListCustomMetrics` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal | DisplayVideo360AdvertiserLinkProposal} on 'data' event. + * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.CustomMetric | CustomMetric} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listDisplayVideo360AdvertiserLinkProposalsAsync()` + * We recommend using `listCustomMetricsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listDisplayVideo360AdvertiserLinkProposalsStream( - request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + listCustomMetricsStream( + request?: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -12527,19 +13664,18 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = - this._defaults['listDisplayVideo360AdvertiserLinkProposals']; + const defaultCallSettings = this._defaults['listCustomMetrics']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream( - this.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals as GaxCall, + return this.descriptors.page.listCustomMetrics.createStream( + this.innerApiCalls.listCustomMetrics as GaxCall, request, callSettings ); } /** - * Equivalent to `listDisplayVideo360AdvertiserLinkProposals`, but returns an iterable object. + * Equivalent to `listCustomMetrics`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -12551,30 +13687,28 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous - * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve - * the subsequent page. + * A page token, received from a previous `ListCustomMetrics` call. + * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to - * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that - * provided the page token. + * When paginating, all other parameters provided to `ListCustomMetrics` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * {@link google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal | DisplayVideo360AdvertiserLinkProposal}. The API will be called under the hood as needed, once per the page, + * {@link google.analytics.admin.v1alpha.CustomMetric | CustomMetric}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_display_video360_advertiser_link_proposals.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinkProposals_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomMetrics_async */ - listDisplayVideo360AdvertiserLinkProposalsAsync( - request?: protos.google.analytics.admin.v1alpha.IListDisplayVideo360AdvertiserLinkProposalsRequest, + listCustomMetricsAsync( + request?: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -12583,20 +13717,17 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = - this._defaults['listDisplayVideo360AdvertiserLinkProposals']; + const defaultCallSettings = this._defaults['listCustomMetrics']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate( - this.innerApiCalls[ - 'listDisplayVideo360AdvertiserLinkProposals' - ] as GaxCall, + return this.descriptors.page.listCustomMetrics.asyncIterate( + this.innerApiCalls['listCustomMetrics'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists CustomDimensions on a property. + * Lists DataStreams on a property. * * @param {Object} request * The request object that will be sent. @@ -12607,78 +13738,78 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListCustomDimensions` call. + * A page token, received from a previous `ListDataStreams` call. * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListCustomDimensions` - * must match the call that provided the page token. + * When paginating, all other parameters provided to `ListDataStreams` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link google.analytics.admin.v1alpha.CustomDimension | CustomDimension}. + * The first element of the array is Array of {@link google.analytics.admin.v1alpha.DataStream | DataStream}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listCustomDimensionsAsync()` + * We recommend using `listDataStreamsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listCustomDimensions( - request?: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + listDataStreams( + request?: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomDimension[], - protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest | null, - protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse + protos.google.analytics.admin.v1alpha.IDataStream[], + protos.google.analytics.admin.v1alpha.IListDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListDataStreamsResponse ] >; - listCustomDimensions( - request: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + listDataStreams( + request: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, - | protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse + protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListDataStreamsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.ICustomDimension + protos.google.analytics.admin.v1alpha.IDataStream > ): void; - listCustomDimensions( - request: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + listDataStreams( + request: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, - | protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse + protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListDataStreamsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.ICustomDimension + protos.google.analytics.admin.v1alpha.IDataStream > ): void; - listCustomDimensions( - request?: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + listDataStreams( + request?: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, - | protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse + protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListDataStreamsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.ICustomDimension + protos.google.analytics.admin.v1alpha.IDataStream >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, - | protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse + protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + | protos.google.analytics.admin.v1alpha.IListDataStreamsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.ICustomDimension + protos.google.analytics.admin.v1alpha.IDataStream > ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomDimension[], - protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest | null, - protos.google.analytics.admin.v1alpha.IListCustomDimensionsResponse + protos.google.analytics.admin.v1alpha.IDataStream[], + protos.google.analytics.admin.v1alpha.IListDataStreamsRequest | null, + protos.google.analytics.admin.v1alpha.IListDataStreamsResponse ] > | void { request = request || {}; @@ -12697,7 +13828,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listCustomDimensions(request, options, callback); + return this.innerApiCalls.listDataStreams(request, options, callback); } /** @@ -12711,25 +13842,25 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListCustomDimensions` call. + * A page token, received from a previous `ListDataStreams` call. * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListCustomDimensions` - * must match the call that provided the page token. + * When paginating, all other parameters provided to `ListDataStreams` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.CustomDimension | CustomDimension} on 'data' event. + * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.DataStream | DataStream} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listCustomDimensionsAsync()` + * We recommend using `listDataStreamsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listCustomDimensionsStream( - request?: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + listDataStreamsStream( + request?: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -12740,18 +13871,18 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listCustomDimensions']; + const defaultCallSettings = this._defaults['listDataStreams']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listCustomDimensions.createStream( - this.innerApiCalls.listCustomDimensions as GaxCall, + return this.descriptors.page.listDataStreams.createStream( + this.innerApiCalls.listDataStreams as GaxCall, request, callSettings ); } /** - * Equivalent to `listCustomDimensions`, but returns an iterable object. + * Equivalent to `listDataStreams`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -12763,28 +13894,28 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListCustomDimensions` call. + * A page token, received from a previous `ListDataStreams` call. * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListCustomDimensions` - * must match the call that provided the page token. + * When paginating, all other parameters provided to `ListDataStreams` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * {@link google.analytics.admin.v1alpha.CustomDimension | CustomDimension}. The API will be called under the hood as needed, once per the page, + * {@link google.analytics.admin.v1alpha.DataStream | DataStream}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_custom_dimensions.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomDimensions_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_data_streams.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDataStreams_async */ - listCustomDimensionsAsync( - request?: protos.google.analytics.admin.v1alpha.IListCustomDimensionsRequest, + listDataStreamsAsync( + request?: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -12793,17 +13924,19 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listCustomDimensions']; + const defaultCallSettings = this._defaults['listDataStreams']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listCustomDimensions.asyncIterate( - this.innerApiCalls['listCustomDimensions'] as GaxCall, + return this.descriptors.page.listDataStreams.asyncIterate( + this.innerApiCalls['listDataStreams'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists CustomMetrics on a property. + * Lists Audiences on a property. + * Audiences created before 2020 may not be supported. + * Default audiences will not show filter definitions. * * @param {Object} request * The request object that will be sent. @@ -12814,78 +13947,78 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListCustomMetrics` call. - * Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListAudiences` call. Provide this + * to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListCustomMetrics` must + * When paginating, all other parameters provided to `ListAudiences` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link google.analytics.admin.v1alpha.CustomMetric | CustomMetric}. + * The first element of the array is Array of {@link google.analytics.admin.v1alpha.Audience | Audience}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listCustomMetricsAsync()` + * We recommend using `listAudiencesAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listCustomMetrics( - request?: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + listAudiences( + request?: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomMetric[], - protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest | null, - protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse + protos.google.analytics.admin.v1alpha.IAudience[], + protos.google.analytics.admin.v1alpha.IListAudiencesRequest | null, + protos.google.analytics.admin.v1alpha.IListAudiencesResponse ] >; - listCustomMetrics( - request: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + listAudiences( + request: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, - | protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse + protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + | protos.google.analytics.admin.v1alpha.IListAudiencesResponse | null | undefined, - protos.google.analytics.admin.v1alpha.ICustomMetric + protos.google.analytics.admin.v1alpha.IAudience > ): void; - listCustomMetrics( - request: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + listAudiences( + request: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, - | protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse + protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + | protos.google.analytics.admin.v1alpha.IListAudiencesResponse | null | undefined, - protos.google.analytics.admin.v1alpha.ICustomMetric + protos.google.analytics.admin.v1alpha.IAudience > ): void; - listCustomMetrics( - request?: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + listAudiences( + request?: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, - | protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse + protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + | protos.google.analytics.admin.v1alpha.IListAudiencesResponse | null | undefined, - protos.google.analytics.admin.v1alpha.ICustomMetric + protos.google.analytics.admin.v1alpha.IAudience >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, - | protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse + protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + | protos.google.analytics.admin.v1alpha.IListAudiencesResponse | null | undefined, - protos.google.analytics.admin.v1alpha.ICustomMetric + protos.google.analytics.admin.v1alpha.IAudience > ): Promise< [ - protos.google.analytics.admin.v1alpha.ICustomMetric[], - protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest | null, - protos.google.analytics.admin.v1alpha.IListCustomMetricsResponse + protos.google.analytics.admin.v1alpha.IAudience[], + protos.google.analytics.admin.v1alpha.IListAudiencesRequest | null, + protos.google.analytics.admin.v1alpha.IListAudiencesResponse ] > | void { request = request || {}; @@ -12904,7 +14037,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listCustomMetrics(request, options, callback); + return this.innerApiCalls.listAudiences(request, options, callback); } /** @@ -12918,25 +14051,25 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListCustomMetrics` call. - * Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListAudiences` call. Provide this + * to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListCustomMetrics` must + * When paginating, all other parameters provided to `ListAudiences` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.CustomMetric | CustomMetric} on 'data' event. + * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.Audience | Audience} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listCustomMetricsAsync()` + * We recommend using `listAudiencesAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listCustomMetricsStream( - request?: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + listAudiencesStream( + request?: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, options?: CallOptions ): Transform { request = request || {}; @@ -12947,18 +14080,18 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listCustomMetrics']; + const defaultCallSettings = this._defaults['listAudiences']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listCustomMetrics.createStream( - this.innerApiCalls.listCustomMetrics as GaxCall, + return this.descriptors.page.listAudiences.createStream( + this.innerApiCalls.listAudiences as GaxCall, request, callSettings ); } /** - * Equivalent to `listCustomMetrics`, but returns an iterable object. + * Equivalent to `listAudiences`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -12970,28 +14103,28 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListCustomMetrics` call. - * Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListAudiences` call. Provide this + * to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListCustomMetrics` must + * When paginating, all other parameters provided to `ListAudiences` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * {@link google.analytics.admin.v1alpha.CustomMetric | CustomMetric}. The API will be called under the hood as needed, once per the page, + * {@link google.analytics.admin.v1alpha.Audience | Audience}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_custom_metrics.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomMetrics_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_audiences.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAudiences_async */ - listCustomMetricsAsync( - request?: protos.google.analytics.admin.v1alpha.IListCustomMetricsRequest, + listAudiencesAsync( + request?: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -13000,17 +14133,17 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listCustomMetrics']; + const defaultCallSettings = this._defaults['listAudiences']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listCustomMetrics.asyncIterate( - this.innerApiCalls['listCustomMetrics'] as GaxCall, + return this.descriptors.page.listAudiences.asyncIterate( + this.innerApiCalls['listAudiences'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists DataStreams on a property. + * Lists all SearchAds360Links on a property. * * @param {Object} request * The request object that will be sent. @@ -13021,78 +14154,79 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListDataStreams` call. - * Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListSearchAds360Links` + * call. Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListDataStreams` must - * match the call that provided the page token. + * When paginating, all other parameters provided to + * `ListSearchAds360Links` must match the call that provided the + * page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link google.analytics.admin.v1alpha.DataStream | DataStream}. + * The first element of the array is Array of {@link google.analytics.admin.v1alpha.SearchAds360Link | SearchAds360Link}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listDataStreamsAsync()` + * We recommend using `listSearchAds360LinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listDataStreams( - request?: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + listSearchAds360Links( + request?: protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IDataStream[], - protos.google.analytics.admin.v1alpha.IListDataStreamsRequest | null, - protos.google.analytics.admin.v1alpha.IListDataStreamsResponse + protos.google.analytics.admin.v1alpha.ISearchAds360Link[], + protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest | null, + protos.google.analytics.admin.v1alpha.IListSearchAds360LinksResponse ] >; - listDataStreams( - request: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + listSearchAds360Links( + request: protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, + | protos.google.analytics.admin.v1alpha.IListSearchAds360LinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDataStream + protos.google.analytics.admin.v1alpha.ISearchAds360Link > ): void; - listDataStreams( - request: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + listSearchAds360Links( + request: protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, + | protos.google.analytics.admin.v1alpha.IListSearchAds360LinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDataStream + protos.google.analytics.admin.v1alpha.ISearchAds360Link > ): void; - listDataStreams( - request?: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + listSearchAds360Links( + request?: protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, + | protos.google.analytics.admin.v1alpha.IListSearchAds360LinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDataStream + protos.google.analytics.admin.v1alpha.ISearchAds360Link >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, - | protos.google.analytics.admin.v1alpha.IListDataStreamsResponse + protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, + | protos.google.analytics.admin.v1alpha.IListSearchAds360LinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IDataStream + protos.google.analytics.admin.v1alpha.ISearchAds360Link > ): Promise< [ - protos.google.analytics.admin.v1alpha.IDataStream[], - protos.google.analytics.admin.v1alpha.IListDataStreamsRequest | null, - protos.google.analytics.admin.v1alpha.IListDataStreamsResponse + protos.google.analytics.admin.v1alpha.ISearchAds360Link[], + protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest | null, + protos.google.analytics.admin.v1alpha.IListSearchAds360LinksResponse ] > | void { request = request || {}; @@ -13111,7 +14245,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listDataStreams(request, options, callback); + return this.innerApiCalls.listSearchAds360Links(request, options, callback); } /** @@ -13125,25 +14259,26 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListDataStreams` call. - * Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListSearchAds360Links` + * call. Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListDataStreams` must - * match the call that provided the page token. + * When paginating, all other parameters provided to + * `ListSearchAds360Links` must match the call that provided the + * page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.DataStream | DataStream} on 'data' event. + * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.SearchAds360Link | SearchAds360Link} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listDataStreamsAsync()` + * We recommend using `listSearchAds360LinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listDataStreamsStream( - request?: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + listSearchAds360LinksStream( + request?: protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, options?: CallOptions ): Transform { request = request || {}; @@ -13154,18 +14289,18 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listDataStreams']; + const defaultCallSettings = this._defaults['listSearchAds360Links']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listDataStreams.createStream( - this.innerApiCalls.listDataStreams as GaxCall, + return this.descriptors.page.listSearchAds360Links.createStream( + this.innerApiCalls.listSearchAds360Links as GaxCall, request, callSettings ); } /** - * Equivalent to `listDataStreams`, but returns an iterable object. + * Equivalent to `listSearchAds360Links`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -13177,28 +14312,29 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListDataStreams` call. - * Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListSearchAds360Links` + * call. Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListDataStreams` must - * match the call that provided the page token. + * When paginating, all other parameters provided to + * `ListSearchAds360Links` must match the call that provided the + * page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * {@link google.analytics.admin.v1alpha.DataStream | DataStream}. The API will be called under the hood as needed, once per the page, + * {@link google.analytics.admin.v1alpha.SearchAds360Link | SearchAds360Link}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_data_streams.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDataStreams_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_search_ads360_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSearchAds360Links_async */ - listDataStreamsAsync( - request?: protos.google.analytics.admin.v1alpha.IListDataStreamsRequest, + listSearchAds360LinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -13207,101 +14343,101 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listDataStreams']; + const defaultCallSettings = this._defaults['listSearchAds360Links']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listDataStreams.asyncIterate( - this.innerApiCalls['listDataStreams'] as GaxCall, + return this.descriptors.page.listSearchAds360Links.asyncIterate( + this.innerApiCalls['listSearchAds360Links'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists Audiences on a property. - * Audiences created before 2020 may not be supported. - * Default audiences will not show filter definitions. + * Lists all access bindings on an account or property. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: properties/1234 + * Required. Formats: + * - accounts/{account} + * - properties/{property} * @param {number} request.pageSize - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). + * The maximum number of access bindings to return. + * The service may return fewer than this value. + * If unspecified, at most 200 access bindings will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. * @param {string} request.pageToken - * A page token, received from a previous `ListAudiences` call. Provide this - * to retrieve the subsequent page. - * - * When paginating, all other parameters provided to `ListAudiences` must + * A page token, received from a previous `ListAccessBindings` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccessBindings` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link google.analytics.admin.v1alpha.Audience | Audience}. + * The first element of the array is Array of {@link google.analytics.admin.v1alpha.AccessBinding | AccessBinding}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listAudiencesAsync()` + * We recommend using `listAccessBindingsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listAudiences( - request?: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + listAccessBindings( + request?: protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IAudience[], - protos.google.analytics.admin.v1alpha.IListAudiencesRequest | null, - protos.google.analytics.admin.v1alpha.IListAudiencesResponse + protos.google.analytics.admin.v1alpha.IAccessBinding[], + protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest | null, + protos.google.analytics.admin.v1alpha.IListAccessBindingsResponse ] >; - listAudiences( - request: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + listAccessBindings( + request: protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAudiencesRequest, - | protos.google.analytics.admin.v1alpha.IListAudiencesResponse + protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest, + | protos.google.analytics.admin.v1alpha.IListAccessBindingsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAudience + protos.google.analytics.admin.v1alpha.IAccessBinding > ): void; - listAudiences( - request: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + listAccessBindings( + request: protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAudiencesRequest, - | protos.google.analytics.admin.v1alpha.IListAudiencesResponse + protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest, + | protos.google.analytics.admin.v1alpha.IListAccessBindingsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAudience + protos.google.analytics.admin.v1alpha.IAccessBinding > ): void; - listAudiences( - request?: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + listAccessBindings( + request?: protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAudiencesRequest, - | protos.google.analytics.admin.v1alpha.IListAudiencesResponse + protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest, + | protos.google.analytics.admin.v1alpha.IListAccessBindingsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAudience + protos.google.analytics.admin.v1alpha.IAccessBinding >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAudiencesRequest, - | protos.google.analytics.admin.v1alpha.IListAudiencesResponse + protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest, + | protos.google.analytics.admin.v1alpha.IListAccessBindingsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAudience + protos.google.analytics.admin.v1alpha.IAccessBinding > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAudience[], - protos.google.analytics.admin.v1alpha.IListAudiencesRequest | null, - protos.google.analytics.admin.v1alpha.IListAudiencesResponse + protos.google.analytics.admin.v1alpha.IAccessBinding[], + protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest | null, + protos.google.analytics.admin.v1alpha.IListAccessBindingsResponse ] > | void { request = request || {}; @@ -13320,7 +14456,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listAudiences(request, options, callback); + return this.innerApiCalls.listAccessBindings(request, options, callback); } /** @@ -13328,31 +14464,33 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: properties/1234 + * Required. Formats: + * - accounts/{account} + * - properties/{property} * @param {number} request.pageSize - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). + * The maximum number of access bindings to return. + * The service may return fewer than this value. + * If unspecified, at most 200 access bindings will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. * @param {string} request.pageToken - * A page token, received from a previous `ListAudiences` call. Provide this - * to retrieve the subsequent page. - * - * When paginating, all other parameters provided to `ListAudiences` must + * A page token, received from a previous `ListAccessBindings` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccessBindings` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.Audience | Audience} on 'data' event. + * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.AccessBinding | AccessBinding} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listAudiencesAsync()` + * We recommend using `listAccessBindingsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listAudiencesStream( - request?: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + listAccessBindingsStream( + request?: protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -13363,51 +14501,53 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listAudiences']; + const defaultCallSettings = this._defaults['listAccessBindings']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listAudiences.createStream( - this.innerApiCalls.listAudiences as GaxCall, + return this.descriptors.page.listAccessBindings.createStream( + this.innerApiCalls.listAccessBindings as GaxCall, request, callSettings ); } /** - * Equivalent to `listAudiences`, but returns an iterable object. + * Equivalent to `listAccessBindings`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: properties/1234 + * Required. Formats: + * - accounts/{account} + * - properties/{property} * @param {number} request.pageSize - * The maximum number of resources to return. - * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). + * The maximum number of access bindings to return. + * The service may return fewer than this value. + * If unspecified, at most 200 access bindings will be returned. + * The maximum value is 500; values above 500 will be coerced to 500. * @param {string} request.pageToken - * A page token, received from a previous `ListAudiences` call. Provide this - * to retrieve the subsequent page. - * - * When paginating, all other parameters provided to `ListAudiences` must + * A page token, received from a previous `ListAccessBindings` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListAccessBindings` must * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * {@link google.analytics.admin.v1alpha.Audience | Audience}. The API will be called under the hood as needed, once per the page, + * {@link google.analytics.admin.v1alpha.AccessBinding | AccessBinding}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_audiences.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAudiences_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_access_bindings.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_async */ - listAudiencesAsync( - request?: protos.google.analytics.admin.v1alpha.IListAudiencesRequest, + listAccessBindingsAsync( + request?: protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -13416,17 +14556,17 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listAudiences']; + const defaultCallSettings = this._defaults['listAccessBindings']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listAudiences.asyncIterate( - this.innerApiCalls['listAudiences'] as GaxCall, + return this.descriptors.page.listAccessBindings.asyncIterate( + this.innerApiCalls['listAccessBindings'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists all SearchAds360Links on a property. + * Lists ExpandedDataSets on a property. * * @param {Object} request * The request object that will be sent. @@ -13437,79 +14577,78 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListSearchAds360Links` - * call. Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListExpandedDataSets` call. Provide + * this to retrieve the subsequent page. * - * When paginating, all other parameters provided to - * `ListSearchAds360Links` must match the call that provided the - * page token. + * When paginating, all other parameters provided to `ListExpandedDataSet` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link google.analytics.admin.v1alpha.SearchAds360Link | SearchAds360Link}. + * The first element of the array is Array of {@link google.analytics.admin.v1alpha.ExpandedDataSet | ExpandedDataSet}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listSearchAds360LinksAsync()` + * We recommend using `listExpandedDataSetsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listSearchAds360Links( - request?: protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, + listExpandedDataSets( + request?: protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.ISearchAds360Link[], - protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest | null, - protos.google.analytics.admin.v1alpha.IListSearchAds360LinksResponse + protos.google.analytics.admin.v1alpha.IExpandedDataSet[], + protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest | null, + protos.google.analytics.admin.v1alpha.IListExpandedDataSetsResponse ] >; - listSearchAds360Links( - request: protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, + listExpandedDataSets( + request: protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, - | protos.google.analytics.admin.v1alpha.IListSearchAds360LinksResponse + protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest, + | protos.google.analytics.admin.v1alpha.IListExpandedDataSetsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.ISearchAds360Link + protos.google.analytics.admin.v1alpha.IExpandedDataSet > ): void; - listSearchAds360Links( - request: protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, + listExpandedDataSets( + request: protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, - | protos.google.analytics.admin.v1alpha.IListSearchAds360LinksResponse + protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest, + | protos.google.analytics.admin.v1alpha.IListExpandedDataSetsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.ISearchAds360Link + protos.google.analytics.admin.v1alpha.IExpandedDataSet > ): void; - listSearchAds360Links( - request?: protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, + listExpandedDataSets( + request?: protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, - | protos.google.analytics.admin.v1alpha.IListSearchAds360LinksResponse + protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest, + | protos.google.analytics.admin.v1alpha.IListExpandedDataSetsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.ISearchAds360Link + protos.google.analytics.admin.v1alpha.IExpandedDataSet >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, - | protos.google.analytics.admin.v1alpha.IListSearchAds360LinksResponse + protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest, + | protos.google.analytics.admin.v1alpha.IListExpandedDataSetsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.ISearchAds360Link + protos.google.analytics.admin.v1alpha.IExpandedDataSet > ): Promise< [ - protos.google.analytics.admin.v1alpha.ISearchAds360Link[], - protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest | null, - protos.google.analytics.admin.v1alpha.IListSearchAds360LinksResponse + protos.google.analytics.admin.v1alpha.IExpandedDataSet[], + protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest | null, + protos.google.analytics.admin.v1alpha.IListExpandedDataSetsResponse ] > | void { request = request || {}; @@ -13528,7 +14667,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listSearchAds360Links(request, options, callback); + return this.innerApiCalls.listExpandedDataSets(request, options, callback); } /** @@ -13542,26 +14681,25 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListSearchAds360Links` - * call. Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListExpandedDataSets` call. Provide + * this to retrieve the subsequent page. * - * When paginating, all other parameters provided to - * `ListSearchAds360Links` must match the call that provided the - * page token. + * When paginating, all other parameters provided to `ListExpandedDataSet` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.SearchAds360Link | SearchAds360Link} on 'data' event. + * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.ExpandedDataSet | ExpandedDataSet} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listSearchAds360LinksAsync()` + * We recommend using `listExpandedDataSetsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listSearchAds360LinksStream( - request?: protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, + listExpandedDataSetsStream( + request?: protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -13572,18 +14710,18 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listSearchAds360Links']; + const defaultCallSettings = this._defaults['listExpandedDataSets']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listSearchAds360Links.createStream( - this.innerApiCalls.listSearchAds360Links as GaxCall, + return this.descriptors.page.listExpandedDataSets.createStream( + this.innerApiCalls.listExpandedDataSets as GaxCall, request, callSettings ); } /** - * Equivalent to `listSearchAds360Links`, but returns an iterable object. + * Equivalent to `listExpandedDataSets`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request @@ -13595,29 +14733,28 @@ export class AnalyticsAdminServiceClient { * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListSearchAds360Links` - * call. Provide this to retrieve the subsequent page. + * A page token, received from a previous `ListExpandedDataSets` call. Provide + * this to retrieve the subsequent page. * - * When paginating, all other parameters provided to - * `ListSearchAds360Links` must match the call that provided the - * page token. + * When paginating, all other parameters provided to `ListExpandedDataSet` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * {@link google.analytics.admin.v1alpha.SearchAds360Link | SearchAds360Link}. The API will be called under the hood as needed, once per the page, + * {@link google.analytics.admin.v1alpha.ExpandedDataSet | ExpandedDataSet}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_search_ads360_links.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSearchAds360Links_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_expanded_data_sets.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListExpandedDataSets_async */ - listSearchAds360LinksAsync( - request?: protos.google.analytics.admin.v1alpha.IListSearchAds360LinksRequest, + listExpandedDataSetsAsync( + request?: protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -13626,101 +14763,100 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listSearchAds360Links']; + const defaultCallSettings = this._defaults['listExpandedDataSets']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listSearchAds360Links.asyncIterate( - this.innerApiCalls['listSearchAds360Links'] as GaxCall, + return this.descriptors.page.listExpandedDataSets.asyncIterate( + this.innerApiCalls['listExpandedDataSets'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists all access bindings on an account or property. + * Lists ChannelGroups on a property. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Formats: - * - accounts/{account} - * - properties/{property} + * Required. The property for which to list ChannelGroups. + * Example format: properties/1234 * @param {number} request.pageSize - * The maximum number of access bindings to return. - * The service may return fewer than this value. - * If unspecified, at most 200 access bindings will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListAccessBindings` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccessBindings` must - * match the call that provided the page token. + * A page token, received from a previous `ListChannelGroups` call. Provide + * this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListChannelGroups` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link google.analytics.admin.v1alpha.AccessBinding | AccessBinding}. + * The first element of the array is Array of {@link google.analytics.admin.v1alpha.ChannelGroup | ChannelGroup}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listAccessBindingsAsync()` + * We recommend using `listChannelGroupsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listAccessBindings( - request?: protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest, + listChannelGroups( + request?: protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IAccessBinding[], - protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest | null, - protos.google.analytics.admin.v1alpha.IListAccessBindingsResponse + protos.google.analytics.admin.v1alpha.IChannelGroup[], + protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest | null, + protos.google.analytics.admin.v1alpha.IListChannelGroupsResponse ] >; - listAccessBindings( - request: protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest, + listChannelGroups( + request: protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest, - | protos.google.analytics.admin.v1alpha.IListAccessBindingsResponse + protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest, + | protos.google.analytics.admin.v1alpha.IListChannelGroupsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAccessBinding + protos.google.analytics.admin.v1alpha.IChannelGroup > ): void; - listAccessBindings( - request: protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest, + listChannelGroups( + request: protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest, - | protos.google.analytics.admin.v1alpha.IListAccessBindingsResponse + protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest, + | protos.google.analytics.admin.v1alpha.IListChannelGroupsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAccessBinding + protos.google.analytics.admin.v1alpha.IChannelGroup > ): void; - listAccessBindings( - request?: protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest, + listChannelGroups( + request?: protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest, - | protos.google.analytics.admin.v1alpha.IListAccessBindingsResponse + protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest, + | protos.google.analytics.admin.v1alpha.IListChannelGroupsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAccessBinding + protos.google.analytics.admin.v1alpha.IChannelGroup >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest, - | protos.google.analytics.admin.v1alpha.IListAccessBindingsResponse + protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest, + | protos.google.analytics.admin.v1alpha.IListChannelGroupsResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IAccessBinding + protos.google.analytics.admin.v1alpha.IChannelGroup > ): Promise< [ - protos.google.analytics.admin.v1alpha.IAccessBinding[], - protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest | null, - protos.google.analytics.admin.v1alpha.IListAccessBindingsResponse + protos.google.analytics.admin.v1alpha.IChannelGroup[], + protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest | null, + protos.google.analytics.admin.v1alpha.IListChannelGroupsResponse ] > | void { request = request || {}; @@ -13739,7 +14875,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listAccessBindings(request, options, callback); + return this.innerApiCalls.listChannelGroups(request, options, callback); } /** @@ -13747,33 +14883,32 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Formats: - * - accounts/{account} - * - properties/{property} + * Required. The property for which to list ChannelGroups. + * Example format: properties/1234 * @param {number} request.pageSize - * The maximum number of access bindings to return. - * The service may return fewer than this value. - * If unspecified, at most 200 access bindings will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListAccessBindings` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccessBindings` must - * match the call that provided the page token. + * A page token, received from a previous `ListChannelGroups` call. Provide + * this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListChannelGroups` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.AccessBinding | AccessBinding} on 'data' event. + * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.ChannelGroup | ChannelGroup} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listAccessBindingsAsync()` + * We recommend using `listChannelGroupsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listAccessBindingsStream( - request?: protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest, + listChannelGroupsStream( + request?: protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -13784,53 +14919,52 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listAccessBindings']; + const defaultCallSettings = this._defaults['listChannelGroups']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listAccessBindings.createStream( - this.innerApiCalls.listAccessBindings as GaxCall, + return this.descriptors.page.listChannelGroups.createStream( + this.innerApiCalls.listChannelGroups as GaxCall, request, callSettings ); } /** - * Equivalent to `listAccessBindings`, but returns an iterable object. + * Equivalent to `listChannelGroups`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Formats: - * - accounts/{account} - * - properties/{property} + * Required. The property for which to list ChannelGroups. + * Example format: properties/1234 * @param {number} request.pageSize - * The maximum number of access bindings to return. - * The service may return fewer than this value. - * If unspecified, at most 200 access bindings will be returned. - * The maximum value is 500; values above 500 will be coerced to 500. + * The maximum number of resources to return. + * If unspecified, at most 50 resources will be returned. + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListAccessBindings` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListAccessBindings` must - * match the call that provided the page token. + * A page token, received from a previous `ListChannelGroups` call. Provide + * this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListChannelGroups` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * {@link google.analytics.admin.v1alpha.AccessBinding | AccessBinding}. The API will be called under the hood as needed, once per the page, + * {@link google.analytics.admin.v1alpha.ChannelGroup | ChannelGroup}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_access_bindings.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_channel_groups.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListChannelGroups_async */ - listAccessBindingsAsync( - request?: protos.google.analytics.admin.v1alpha.IListAccessBindingsRequest, + listChannelGroupsAsync( + request?: protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -13839,99 +14973,101 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listAccessBindings']; + const defaultCallSettings = this._defaults['listChannelGroups']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listAccessBindings.asyncIterate( - this.innerApiCalls['listAccessBindings'] as GaxCall, + return this.descriptors.page.listChannelGroups.asyncIterate( + this.innerApiCalls['listChannelGroups'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists ExpandedDataSets on a property. + * Lists BigQuery Links on a property. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: properties/1234 + * Required. The name of the property to list BigQuery links under. + * Format: properties/{property_id} + * Example: properties/1234 * @param {number} request.pageSize - * The maximum number of resources to return. + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListExpandedDataSets` call. Provide - * this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to `ListExpandedDataSet` - * must match the call that provided the page token. + * A page token, received from a previous `ListBigQueryLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListBigQueryLinks` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link google.analytics.admin.v1alpha.ExpandedDataSet | ExpandedDataSet}. + * The first element of the array is Array of {@link google.analytics.admin.v1alpha.BigQueryLink | BigQueryLink}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listExpandedDataSetsAsync()` + * We recommend using `listBigQueryLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listExpandedDataSets( - request?: protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest, + listBigQueryLinks( + request?: protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IExpandedDataSet[], - protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest | null, - protos.google.analytics.admin.v1alpha.IListExpandedDataSetsResponse + protos.google.analytics.admin.v1alpha.IBigQueryLink[], + protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListBigQueryLinksResponse ] >; - listExpandedDataSets( - request: protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest, + listBigQueryLinks( + request: protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest, - | protos.google.analytics.admin.v1alpha.IListExpandedDataSetsResponse + protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, + | protos.google.analytics.admin.v1alpha.IListBigQueryLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IExpandedDataSet + protos.google.analytics.admin.v1alpha.IBigQueryLink > ): void; - listExpandedDataSets( - request: protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest, + listBigQueryLinks( + request: protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest, - | protos.google.analytics.admin.v1alpha.IListExpandedDataSetsResponse + protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, + | protos.google.analytics.admin.v1alpha.IListBigQueryLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IExpandedDataSet + protos.google.analytics.admin.v1alpha.IBigQueryLink > ): void; - listExpandedDataSets( - request?: protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest, + listBigQueryLinks( + request?: protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest, - | protos.google.analytics.admin.v1alpha.IListExpandedDataSetsResponse + protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, + | protos.google.analytics.admin.v1alpha.IListBigQueryLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IExpandedDataSet + protos.google.analytics.admin.v1alpha.IBigQueryLink >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest, - | protos.google.analytics.admin.v1alpha.IListExpandedDataSetsResponse + protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, + | protos.google.analytics.admin.v1alpha.IListBigQueryLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IExpandedDataSet + protos.google.analytics.admin.v1alpha.IBigQueryLink > ): Promise< [ - protos.google.analytics.admin.v1alpha.IExpandedDataSet[], - protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest | null, - protos.google.analytics.admin.v1alpha.IListExpandedDataSetsResponse + protos.google.analytics.admin.v1alpha.IBigQueryLink[], + protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListBigQueryLinksResponse ] > | void { request = request || {}; @@ -13950,7 +15086,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listExpandedDataSets(request, options, callback); + return this.innerApiCalls.listBigQueryLinks(request, options, callback); } /** @@ -13958,31 +15094,33 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: properties/1234 + * Required. The name of the property to list BigQuery links under. + * Format: properties/{property_id} + * Example: properties/1234 * @param {number} request.pageSize - * The maximum number of resources to return. + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListExpandedDataSets` call. Provide - * this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to `ListExpandedDataSet` - * must match the call that provided the page token. + * A page token, received from a previous `ListBigQueryLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListBigQueryLinks` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.ExpandedDataSet | ExpandedDataSet} on 'data' event. + * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.BigQueryLink | BigQueryLink} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listExpandedDataSetsAsync()` + * We recommend using `listBigQueryLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listExpandedDataSetsStream( - request?: protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest, + listBigQueryLinksStream( + request?: protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, options?: CallOptions ): Transform { request = request || {}; @@ -13993,51 +15131,53 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listExpandedDataSets']; + const defaultCallSettings = this._defaults['listBigQueryLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listExpandedDataSets.createStream( - this.innerApiCalls.listExpandedDataSets as GaxCall, + return this.descriptors.page.listBigQueryLinks.createStream( + this.innerApiCalls.listBigQueryLinks as GaxCall, request, callSettings ); } /** - * Equivalent to `listExpandedDataSets`, but returns an iterable object. + * Equivalent to `listBigQueryLinks`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. Example format: properties/1234 + * Required. The name of the property to list BigQuery links under. + * Format: properties/{property_id} + * Example: properties/1234 * @param {number} request.pageSize - * The maximum number of resources to return. + * The maximum number of resources to return. The service may return + * fewer than this value, even if there are additional pages. * If unspecified, at most 50 resources will be returned. - * The maximum value is 200 (higher values will be coerced to the maximum). + * The maximum value is 200; (higher values will be coerced to the maximum) * @param {string} request.pageToken - * A page token, received from a previous `ListExpandedDataSets` call. Provide - * this to retrieve the subsequent page. - * - * When paginating, all other parameters provided to `ListExpandedDataSet` - * must match the call that provided the page token. + * A page token, received from a previous `ListBigQueryLinks` call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListBigQueryLinks` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * {@link google.analytics.admin.v1alpha.ExpandedDataSet | ExpandedDataSet}. The API will be called under the hood as needed, once per the page, + * {@link google.analytics.admin.v1alpha.BigQueryLink | BigQueryLink}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_expanded_data_sets.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListExpandedDataSets_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_big_query_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListBigQueryLinks_async */ - listExpandedDataSetsAsync( - request?: protos.google.analytics.admin.v1alpha.IListExpandedDataSetsRequest, + listBigQueryLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -14046,100 +15186,101 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listExpandedDataSets']; + const defaultCallSettings = this._defaults['listBigQueryLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listExpandedDataSets.asyncIterate( - this.innerApiCalls['listExpandedDataSets'] as GaxCall, + return this.descriptors.page.listBigQueryLinks.asyncIterate( + this.innerApiCalls['listBigQueryLinks'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists ChannelGroups on a property. + * Lists AdSenseLinks on a property. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The property for which to list ChannelGroups. - * Example format: properties/1234 + * Required. Resource name of the parent property. + * Format: properties/{propertyId} + * Example: properties/1234 * @param {number} request.pageSize * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListChannelGroups` call. Provide - * this to retrieve the subsequent page. + * A page token received from a previous `ListAdSenseLinks` call. + * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListChannelGroups` - * must match the call that provided the page token. + * When paginating, all other parameters provided to `ListAdSenseLinks` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link google.analytics.admin.v1alpha.ChannelGroup | ChannelGroup}. + * The first element of the array is Array of {@link google.analytics.admin.v1alpha.AdSenseLink | AdSenseLink}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listChannelGroupsAsync()` + * We recommend using `listAdSenseLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listChannelGroups( - request?: protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest, + listAdSenseLinks( + request?: protos.google.analytics.admin.v1alpha.IListAdSenseLinksRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IChannelGroup[], - protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest | null, - protos.google.analytics.admin.v1alpha.IListChannelGroupsResponse + protos.google.analytics.admin.v1alpha.IAdSenseLink[], + protos.google.analytics.admin.v1alpha.IListAdSenseLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListAdSenseLinksResponse ] >; - listChannelGroups( - request: protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest, + listAdSenseLinks( + request: protos.google.analytics.admin.v1alpha.IListAdSenseLinksRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest, - | protos.google.analytics.admin.v1alpha.IListChannelGroupsResponse + protos.google.analytics.admin.v1alpha.IListAdSenseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListAdSenseLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IChannelGroup + protos.google.analytics.admin.v1alpha.IAdSenseLink > ): void; - listChannelGroups( - request: protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest, + listAdSenseLinks( + request: protos.google.analytics.admin.v1alpha.IListAdSenseLinksRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest, - | protos.google.analytics.admin.v1alpha.IListChannelGroupsResponse + protos.google.analytics.admin.v1alpha.IListAdSenseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListAdSenseLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IChannelGroup + protos.google.analytics.admin.v1alpha.IAdSenseLink > ): void; - listChannelGroups( - request?: protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest, + listAdSenseLinks( + request?: protos.google.analytics.admin.v1alpha.IListAdSenseLinksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest, - | protos.google.analytics.admin.v1alpha.IListChannelGroupsResponse + protos.google.analytics.admin.v1alpha.IListAdSenseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListAdSenseLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IChannelGroup + protos.google.analytics.admin.v1alpha.IAdSenseLink >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest, - | protos.google.analytics.admin.v1alpha.IListChannelGroupsResponse + protos.google.analytics.admin.v1alpha.IListAdSenseLinksRequest, + | protos.google.analytics.admin.v1alpha.IListAdSenseLinksResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IChannelGroup + protos.google.analytics.admin.v1alpha.IAdSenseLink > ): Promise< [ - protos.google.analytics.admin.v1alpha.IChannelGroup[], - protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest | null, - protos.google.analytics.admin.v1alpha.IListChannelGroupsResponse + protos.google.analytics.admin.v1alpha.IAdSenseLink[], + protos.google.analytics.admin.v1alpha.IListAdSenseLinksRequest | null, + protos.google.analytics.admin.v1alpha.IListAdSenseLinksResponse ] > | void { request = request || {}; @@ -14158,7 +15299,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listChannelGroups(request, options, callback); + return this.innerApiCalls.listAdSenseLinks(request, options, callback); } /** @@ -14166,32 +15307,33 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The property for which to list ChannelGroups. - * Example format: properties/1234 + * Required. Resource name of the parent property. + * Format: properties/{propertyId} + * Example: properties/1234 * @param {number} request.pageSize * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListChannelGroups` call. Provide - * this to retrieve the subsequent page. + * A page token received from a previous `ListAdSenseLinks` call. + * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListChannelGroups` - * must match the call that provided the page token. + * When paginating, all other parameters provided to `ListAdSenseLinks` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.ChannelGroup | ChannelGroup} on 'data' event. + * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.AdSenseLink | AdSenseLink} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listChannelGroupsAsync()` + * We recommend using `listAdSenseLinksAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listChannelGroupsStream( - request?: protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest, + listAdSenseLinksStream( + request?: protos.google.analytics.admin.v1alpha.IListAdSenseLinksRequest, options?: CallOptions ): Transform { request = request || {}; @@ -14202,52 +15344,53 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listChannelGroups']; + const defaultCallSettings = this._defaults['listAdSenseLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listChannelGroups.createStream( - this.innerApiCalls.listChannelGroups as GaxCall, + return this.descriptors.page.listAdSenseLinks.createStream( + this.innerApiCalls.listAdSenseLinks as GaxCall, request, callSettings ); } /** - * Equivalent to `listChannelGroups`, but returns an iterable object. + * Equivalent to `listAdSenseLinks`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The property for which to list ChannelGroups. - * Example format: properties/1234 + * Required. Resource name of the parent property. + * Format: properties/{propertyId} + * Example: properties/1234 * @param {number} request.pageSize * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListChannelGroups` call. Provide - * this to retrieve the subsequent page. + * A page token received from a previous `ListAdSenseLinks` call. + * Provide this to retrieve the subsequent page. * - * When paginating, all other parameters provided to `ListChannelGroups` - * must match the call that provided the page token. + * When paginating, all other parameters provided to `ListAdSenseLinks` must + * match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * {@link google.analytics.admin.v1alpha.ChannelGroup | ChannelGroup}. The API will be called under the hood as needed, once per the page, + * {@link google.analytics.admin.v1alpha.AdSenseLink | AdSenseLink}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_channel_groups.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListChannelGroups_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_ad_sense_links.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAdSenseLinks_async */ - listChannelGroupsAsync( - request?: protos.google.analytics.admin.v1alpha.IListChannelGroupsRequest, + listAdSenseLinksAsync( + request?: protos.google.analytics.admin.v1alpha.IListAdSenseLinksRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -14256,101 +15399,99 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listChannelGroups']; + const defaultCallSettings = this._defaults['listAdSenseLinks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listChannelGroups.asyncIterate( - this.innerApiCalls['listChannelGroups'] as GaxCall, + return this.descriptors.page.listAdSenseLinks.asyncIterate( + this.innerApiCalls['listAdSenseLinks'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists BigQuery Links on a property. + * Lists EventCreateRules on a web data stream. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the property to list BigQuery links under. - * Format: properties/{property_id} - * Example: properties/1234 + * Required. Example format: properties/123/dataStreams/456 * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. + * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListBigQueryLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListBigQueryLinks` must - * match the call that provided the page token. + * A page token, received from a previous `ListEventCreateRules` call. Provide + * this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListEventCreateRules` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of {@link google.analytics.admin.v1alpha.BigQueryLink | BigQueryLink}. + * The first element of the array is Array of {@link google.analytics.admin.v1alpha.EventCreateRule | EventCreateRule}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listBigQueryLinksAsync()` + * We recommend using `listEventCreateRulesAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listBigQueryLinks( - request?: protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, + listEventCreateRules( + request?: protos.google.analytics.admin.v1alpha.IListEventCreateRulesRequest, options?: CallOptions ): Promise< [ - protos.google.analytics.admin.v1alpha.IBigQueryLink[], - protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListBigQueryLinksResponse + protos.google.analytics.admin.v1alpha.IEventCreateRule[], + protos.google.analytics.admin.v1alpha.IListEventCreateRulesRequest | null, + protos.google.analytics.admin.v1alpha.IListEventCreateRulesResponse ] >; - listBigQueryLinks( - request: protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, + listEventCreateRules( + request: protos.google.analytics.admin.v1alpha.IListEventCreateRulesRequest, options: CallOptions, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, - | protos.google.analytics.admin.v1alpha.IListBigQueryLinksResponse + protos.google.analytics.admin.v1alpha.IListEventCreateRulesRequest, + | protos.google.analytics.admin.v1alpha.IListEventCreateRulesResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IBigQueryLink + protos.google.analytics.admin.v1alpha.IEventCreateRule > ): void; - listBigQueryLinks( - request: protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, + listEventCreateRules( + request: protos.google.analytics.admin.v1alpha.IListEventCreateRulesRequest, callback: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, - | protos.google.analytics.admin.v1alpha.IListBigQueryLinksResponse + protos.google.analytics.admin.v1alpha.IListEventCreateRulesRequest, + | protos.google.analytics.admin.v1alpha.IListEventCreateRulesResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IBigQueryLink + protos.google.analytics.admin.v1alpha.IEventCreateRule > ): void; - listBigQueryLinks( - request?: protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, + listEventCreateRules( + request?: protos.google.analytics.admin.v1alpha.IListEventCreateRulesRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, - | protos.google.analytics.admin.v1alpha.IListBigQueryLinksResponse + protos.google.analytics.admin.v1alpha.IListEventCreateRulesRequest, + | protos.google.analytics.admin.v1alpha.IListEventCreateRulesResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IBigQueryLink + protos.google.analytics.admin.v1alpha.IEventCreateRule >, callback?: PaginationCallback< - protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, - | protos.google.analytics.admin.v1alpha.IListBigQueryLinksResponse + protos.google.analytics.admin.v1alpha.IListEventCreateRulesRequest, + | protos.google.analytics.admin.v1alpha.IListEventCreateRulesResponse | null | undefined, - protos.google.analytics.admin.v1alpha.IBigQueryLink + protos.google.analytics.admin.v1alpha.IEventCreateRule > ): Promise< [ - protos.google.analytics.admin.v1alpha.IBigQueryLink[], - protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest | null, - protos.google.analytics.admin.v1alpha.IListBigQueryLinksResponse + protos.google.analytics.admin.v1alpha.IEventCreateRule[], + protos.google.analytics.admin.v1alpha.IListEventCreateRulesRequest | null, + protos.google.analytics.admin.v1alpha.IListEventCreateRulesResponse ] > | void { request = request || {}; @@ -14369,7 +15510,7 @@ export class AnalyticsAdminServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listBigQueryLinks(request, options, callback); + return this.innerApiCalls.listEventCreateRules(request, options, callback); } /** @@ -14377,33 +15518,31 @@ export class AnalyticsAdminServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the property to list BigQuery links under. - * Format: properties/{property_id} - * Example: properties/1234 + * Required. Example format: properties/123/dataStreams/456 * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. + * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListBigQueryLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListBigQueryLinks` must - * match the call that provided the page token. + * A page token, received from a previous `ListEventCreateRules` call. Provide + * this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListEventCreateRules` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.BigQueryLink | BigQueryLink} on 'data' event. + * An object stream which emits an object representing {@link google.analytics.admin.v1alpha.EventCreateRule | EventCreateRule} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listBigQueryLinksAsync()` + * We recommend using `listEventCreateRulesAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listBigQueryLinksStream( - request?: protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, + listEventCreateRulesStream( + request?: protos.google.analytics.admin.v1alpha.IListEventCreateRulesRequest, options?: CallOptions ): Transform { request = request || {}; @@ -14414,53 +15553,51 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listBigQueryLinks']; + const defaultCallSettings = this._defaults['listEventCreateRules']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listBigQueryLinks.createStream( - this.innerApiCalls.listBigQueryLinks as GaxCall, + return this.descriptors.page.listEventCreateRules.createStream( + this.innerApiCalls.listEventCreateRules as GaxCall, request, callSettings ); } /** - * Equivalent to `listBigQueryLinks`, but returns an iterable object. + * Equivalent to `listEventCreateRules`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The name of the property to list BigQuery links under. - * Format: properties/{property_id} - * Example: properties/1234 + * Required. Example format: properties/123/dataStreams/456 * @param {number} request.pageSize - * The maximum number of resources to return. The service may return - * fewer than this value, even if there are additional pages. + * The maximum number of resources to return. * If unspecified, at most 50 resources will be returned. - * The maximum value is 200; (higher values will be coerced to the maximum) + * The maximum value is 200 (higher values will be coerced to the maximum). * @param {string} request.pageToken - * A page token, received from a previous `ListBigQueryLinks` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListBigQueryLinks` must - * match the call that provided the page token. + * A page token, received from a previous `ListEventCreateRules` call. Provide + * this to retrieve the subsequent page. + * + * When paginating, all other parameters provided to `ListEventCreateRules` + * must match the call that provided the page token. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * {@link google.analytics.admin.v1alpha.BigQueryLink | BigQueryLink}. The API will be called under the hood as needed, once per the page, + * {@link google.analytics.admin.v1alpha.EventCreateRule | EventCreateRule}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1alpha/analytics_admin_service.list_big_query_links.js - * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListBigQueryLinks_async + * @example include:samples/generated/v1alpha/analytics_admin_service.list_event_create_rules.js + * region_tag:analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListEventCreateRules_async */ - listBigQueryLinksAsync( - request?: protos.google.analytics.admin.v1alpha.IListBigQueryLinksRequest, + listEventCreateRulesAsync( + request?: protos.google.analytics.admin.v1alpha.IListEventCreateRulesRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -14469,14 +15606,14 @@ export class AnalyticsAdminServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listBigQueryLinks']; + const defaultCallSettings = this._defaults['listEventCreateRules']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listBigQueryLinks.asyncIterate( - this.innerApiCalls['listBigQueryLinks'] as GaxCall, + return this.descriptors.page.listEventCreateRules.asyncIterate( + this.innerApiCalls['listEventCreateRules'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } // -------------------- // -- Path templates -- @@ -14612,6 +15749,44 @@ export class AnalyticsAdminServiceClient { ).user_link; } + /** + * Return a fully-qualified adSenseLink resource name string. + * + * @param {string} property + * @param {string} adsense_link + * @returns {string} Resource name string. + */ + adSenseLinkPath(property: string, adsenseLink: string) { + return this.pathTemplates.adSenseLinkPathTemplate.render({ + property: property, + adsense_link: adsenseLink, + }); + } + + /** + * Parse the property from AdSenseLink resource. + * + * @param {string} adSenseLinkName + * A fully-qualified path representing AdSenseLink resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromAdSenseLinkName(adSenseLinkName: string) { + return this.pathTemplates.adSenseLinkPathTemplate.match(adSenseLinkName) + .property; + } + + /** + * Parse the adsense_link from AdSenseLink resource. + * + * @param {string} adSenseLinkName + * A fully-qualified path representing AdSenseLink resource. + * @returns {string} A string representing the adsense_link. + */ + matchAdsenseLinkFromAdSenseLinkName(adSenseLinkName: string) { + return this.pathTemplates.adSenseLinkPathTemplate.match(adSenseLinkName) + .adsense_link; + } + /** * Return a fully-qualified attributionSettings resource name string. * @@ -15057,6 +16232,65 @@ export class AnalyticsAdminServiceClient { ).data_stream; } + /** + * Return a fully-qualified eventCreateRule resource name string. + * + * @param {string} property + * @param {string} data_stream + * @param {string} event_create_rule + * @returns {string} Resource name string. + */ + eventCreateRulePath( + property: string, + dataStream: string, + eventCreateRule: string + ) { + return this.pathTemplates.eventCreateRulePathTemplate.render({ + property: property, + data_stream: dataStream, + event_create_rule: eventCreateRule, + }); + } + + /** + * Parse the property from EventCreateRule resource. + * + * @param {string} eventCreateRuleName + * A fully-qualified path representing EventCreateRule resource. + * @returns {string} A string representing the property. + */ + matchPropertyFromEventCreateRuleName(eventCreateRuleName: string) { + return this.pathTemplates.eventCreateRulePathTemplate.match( + eventCreateRuleName + ).property; + } + + /** + * Parse the data_stream from EventCreateRule resource. + * + * @param {string} eventCreateRuleName + * A fully-qualified path representing EventCreateRule resource. + * @returns {string} A string representing the data_stream. + */ + matchDataStreamFromEventCreateRuleName(eventCreateRuleName: string) { + return this.pathTemplates.eventCreateRulePathTemplate.match( + eventCreateRuleName + ).data_stream; + } + + /** + * Parse the event_create_rule from EventCreateRule resource. + * + * @param {string} eventCreateRuleName + * A fully-qualified path representing EventCreateRule resource. + * @returns {string} A string representing the event_create_rule. + */ + matchEventCreateRuleFromEventCreateRuleName(eventCreateRuleName: string) { + return this.pathTemplates.eventCreateRulePathTemplate.match( + eventCreateRuleName + ).event_create_rule; + } + /** * Return a fully-qualified expandedDataSet resource name string. * diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json index 669b1106aff..b819fccd08a 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_client_config.json @@ -597,6 +597,51 @@ "timeout_millis": 60000, "retry_codes_name": "unknown_unavailable", "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "GetAdSenseLink": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "CreateAdSenseLink": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "DeleteAdSenseLink": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "ListAdSenseLinks": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "GetEventCreateRule": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "ListEventCreateRules": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "CreateEventCreateRule": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "UpdateEventCreateRule": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" + }, + "DeleteEventCreateRule": { + "timeout_millis": 60000, + "retry_codes_name": "unknown_unavailable", + "retry_params_name": "01d6d956b4dadd7e38ee9dec12ed8720e6e6f90c" } } } diff --git a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_proto_list.json b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_proto_list.json index 814cbb157b3..4b61e1071de 100644 --- a/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_proto_list.json +++ b/packages/google-analytics-admin/src/v1alpha/analytics_admin_service_proto_list.json @@ -3,6 +3,7 @@ "../../protos/google/analytics/admin/v1alpha/analytics_admin.proto", "../../protos/google/analytics/admin/v1alpha/audience.proto", "../../protos/google/analytics/admin/v1alpha/channel_group.proto", + "../../protos/google/analytics/admin/v1alpha/event_create_and_edit.proto", "../../protos/google/analytics/admin/v1alpha/expanded_data_set.proto", "../../protos/google/analytics/admin/v1alpha/resources.proto" ] diff --git a/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json b/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json index 9e1a3f72d8b..c91f5c3bac6 100644 --- a/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json +++ b/packages/google-analytics-admin/src/v1alpha/gapic_metadata.json @@ -470,6 +470,41 @@ "fetchConnectedGa4Property" ] }, + "GetAdSenseLink": { + "methods": [ + "getAdSenseLink" + ] + }, + "CreateAdSenseLink": { + "methods": [ + "createAdSenseLink" + ] + }, + "DeleteAdSenseLink": { + "methods": [ + "deleteAdSenseLink" + ] + }, + "GetEventCreateRule": { + "methods": [ + "getEventCreateRule" + ] + }, + "CreateEventCreateRule": { + "methods": [ + "createEventCreateRule" + ] + }, + "UpdateEventCreateRule": { + "methods": [ + "updateEventCreateRule" + ] + }, + "DeleteEventCreateRule": { + "methods": [ + "deleteEventCreateRule" + ] + }, "ListAccounts": { "methods": [ "listAccounts", @@ -616,6 +651,20 @@ "listBigQueryLinksStream", "listBigQueryLinksAsync" ] + }, + "ListAdSenseLinks": { + "methods": [ + "listAdSenseLinks", + "listAdSenseLinksStream", + "listAdSenseLinksAsync" + ] + }, + "ListEventCreateRules": { + "methods": [ + "listEventCreateRules", + "listEventCreateRulesStream", + "listEventCreateRulesAsync" + ] } } }, @@ -1082,6 +1131,41 @@ "fetchConnectedGa4Property" ] }, + "GetAdSenseLink": { + "methods": [ + "getAdSenseLink" + ] + }, + "CreateAdSenseLink": { + "methods": [ + "createAdSenseLink" + ] + }, + "DeleteAdSenseLink": { + "methods": [ + "deleteAdSenseLink" + ] + }, + "GetEventCreateRule": { + "methods": [ + "getEventCreateRule" + ] + }, + "CreateEventCreateRule": { + "methods": [ + "createEventCreateRule" + ] + }, + "UpdateEventCreateRule": { + "methods": [ + "updateEventCreateRule" + ] + }, + "DeleteEventCreateRule": { + "methods": [ + "deleteEventCreateRule" + ] + }, "ListAccounts": { "methods": [ "listAccounts", @@ -1228,6 +1312,20 @@ "listBigQueryLinksStream", "listBigQueryLinksAsync" ] + }, + "ListAdSenseLinks": { + "methods": [ + "listAdSenseLinks", + "listAdSenseLinksStream", + "listAdSenseLinksAsync" + ] + }, + "ListEventCreateRules": { + "methods": [ + "listEventCreateRules", + "listEventCreateRulesStream", + "listEventCreateRulesAsync" + ] } } } diff --git a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts index c0b6767fb9e..92f255d2825 100644 --- a/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts +++ b/packages/google-analytics-admin/test/gapic_analytics_admin_service_v1alpha.ts @@ -12633,6 +12633,970 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); + describe('getAdSenseLink', () => { + it('invokes getAdSenseLink without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetAdSenseLinkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetAdSenseLinkRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AdSenseLink() + ); + client.innerApiCalls.getAdSenseLink = stubSimpleCall(expectedResponse); + const [response] = await client.getAdSenseLink(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getAdSenseLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getAdSenseLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getAdSenseLink without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetAdSenseLinkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetAdSenseLinkRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AdSenseLink() + ); + client.innerApiCalls.getAdSenseLink = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getAdSenseLink( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IAdSenseLink | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getAdSenseLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getAdSenseLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getAdSenseLink with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetAdSenseLinkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetAdSenseLinkRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getAdSenseLink = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getAdSenseLink(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getAdSenseLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getAdSenseLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getAdSenseLink with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetAdSenseLinkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetAdSenseLinkRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getAdSenseLink(request), expectedError); + }); + }); + + describe('createAdSenseLink', () => { + it('invokes createAdSenseLink without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AdSenseLink() + ); + client.innerApiCalls.createAdSenseLink = stubSimpleCall(expectedResponse); + const [response] = await client.createAdSenseLink(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createAdSenseLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createAdSenseLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createAdSenseLink without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AdSenseLink() + ); + client.innerApiCalls.createAdSenseLink = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createAdSenseLink( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IAdSenseLink | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createAdSenseLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createAdSenseLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createAdSenseLink with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createAdSenseLink = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.createAdSenseLink(request), expectedError); + const actualRequest = ( + client.innerApiCalls.createAdSenseLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createAdSenseLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createAdSenseLink with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.createAdSenseLink(request), expectedError); + }); + }); + + describe('deleteAdSenseLink', () => { + it('invokes deleteAdSenseLink without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteAdSenseLink = stubSimpleCall(expectedResponse); + const [response] = await client.deleteAdSenseLink(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteAdSenseLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteAdSenseLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteAdSenseLink without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteAdSenseLink = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteAdSenseLink( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteAdSenseLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteAdSenseLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteAdSenseLink with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteAdSenseLink = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteAdSenseLink(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteAdSenseLink as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteAdSenseLink as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteAdSenseLink with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.deleteAdSenseLink(request), expectedError); + }); + }); + + describe('getEventCreateRule', () => { + it('invokes getEventCreateRule without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetEventCreateRuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetEventCreateRuleRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.EventCreateRule() + ); + client.innerApiCalls.getEventCreateRule = + stubSimpleCall(expectedResponse); + const [response] = await client.getEventCreateRule(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getEventCreateRule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getEventCreateRule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getEventCreateRule without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetEventCreateRuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetEventCreateRuleRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.EventCreateRule() + ); + client.innerApiCalls.getEventCreateRule = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getEventCreateRule( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IEventCreateRule | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getEventCreateRule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getEventCreateRule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getEventCreateRule with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetEventCreateRuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetEventCreateRuleRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.getEventCreateRule = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getEventCreateRule(request), expectedError); + const actualRequest = ( + client.innerApiCalls.getEventCreateRule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getEventCreateRule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getEventCreateRule with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.GetEventCreateRuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.GetEventCreateRuleRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getEventCreateRule(request), expectedError); + }); + }); + + describe('createEventCreateRule', () => { + it('invokes createEventCreateRule without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.EventCreateRule() + ); + client.innerApiCalls.createEventCreateRule = + stubSimpleCall(expectedResponse); + const [response] = await client.createEventCreateRule(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createEventCreateRule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createEventCreateRule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createEventCreateRule without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.EventCreateRule() + ); + client.innerApiCalls.createEventCreateRule = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.createEventCreateRule( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IEventCreateRule | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.createEventCreateRule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createEventCreateRule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createEventCreateRule with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.createEventCreateRule = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.createEventCreateRule(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.createEventCreateRule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createEventCreateRule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes createEventCreateRule with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.createEventCreateRule(request), + expectedError + ); + }); + }); + + describe('updateEventCreateRule', () => { + it('invokes updateEventCreateRule without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest() + ); + request.eventCreateRule ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest', + ['eventCreateRule', 'name'] + ); + request.eventCreateRule.name = defaultValue1; + const expectedHeaderRequestParams = `event_create_rule.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.EventCreateRule() + ); + client.innerApiCalls.updateEventCreateRule = + stubSimpleCall(expectedResponse); + const [response] = await client.updateEventCreateRule(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateEventCreateRule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateEventCreateRule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateEventCreateRule without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest() + ); + request.eventCreateRule ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest', + ['eventCreateRule', 'name'] + ); + request.eventCreateRule.name = defaultValue1; + const expectedHeaderRequestParams = `event_create_rule.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.EventCreateRule() + ); + client.innerApiCalls.updateEventCreateRule = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateEventCreateRule( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IEventCreateRule | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateEventCreateRule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateEventCreateRule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateEventCreateRule with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest() + ); + request.eventCreateRule ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest', + ['eventCreateRule', 'name'] + ); + request.eventCreateRule.name = defaultValue1; + const expectedHeaderRequestParams = `event_create_rule.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateEventCreateRule = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.updateEventCreateRule(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.updateEventCreateRule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateEventCreateRule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateEventCreateRule with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest() + ); + request.eventCreateRule ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest', + ['eventCreateRule', 'name'] + ); + request.eventCreateRule.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.updateEventCreateRule(request), + expectedError + ); + }); + }); + + describe('deleteEventCreateRule', () => { + it('invokes deleteEventCreateRule without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteEventCreateRule = + stubSimpleCall(expectedResponse); + const [response] = await client.deleteEventCreateRule(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteEventCreateRule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteEventCreateRule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteEventCreateRule without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.deleteEventCreateRule = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteEventCreateRule( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteEventCreateRule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteEventCreateRule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteEventCreateRule with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteEventCreateRule = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.deleteEventCreateRule(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.deleteEventCreateRule as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteEventCreateRule as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteEventCreateRule with closed client', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.deleteEventCreateRule(request), + expectedError + ); + }); + }); + describe('listAccounts', () => { it('invokes listAccounts without error', async () => { const client = @@ -12642,25 +13606,510 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.innerApiCalls.listAccounts = stubSimpleCall(expectedResponse); + const [response] = await client.listAccounts(request); + assert.deepStrictEqual(response, expectedResponse); + }); + + it('invokes listAccounts without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.innerApiCalls.listAccounts = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listAccounts( + request, + ( + err?: Error | null, + result?: protos.google.analytics.admin.v1alpha.IAccount[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + }); + + it('invokes listAccounts with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedError = new Error('expected'); + client.innerApiCalls.listAccounts = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listAccounts(request), expectedError); + }); + + it('invokes listAccountsStream without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.descriptors.page.listAccounts.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listAccountsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.Account[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.Account) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listAccounts.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccounts, request) + ); + }); + + it('invokes listAccountsStream with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccounts.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listAccountsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.Account[] = []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.Account) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listAccounts.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccounts, request) + ); + }); + + it('uses async iteration with listAccounts without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Account() + ), + ]; + client.descriptors.page.listAccounts.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; + const iterable = client.listAccountsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccounts.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + + it('uses async iteration with listAccounts with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccounts.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAccountsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccounts.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); + + describe('listAccountSummaries', () => { + it('invokes listAccountSummaries without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.innerApiCalls.listAccountSummaries = + stubSimpleCall(expectedResponse); + const [response] = await client.listAccountSummaries(request); + assert.deepStrictEqual(response, expectedResponse); + }); + + it('invokes listAccountSummaries without error using callback', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.innerApiCalls.listAccountSummaries = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listAccountSummaries( + request, + ( + err?: Error | null, + result?: + | protos.google.analytics.admin.v1alpha.IAccountSummary[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + }); + + it('invokes listAccountSummaries with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedError = new Error('expected'); + client.innerApiCalls.listAccountSummaries = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listAccountSummaries(request), expectedError); + }); + + it('invokes listAccountSummariesStream without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() ); const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.AccountSummary() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.AccountSummary() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.AccountSummary() ), ]; - client.innerApiCalls.listAccounts = stubSimpleCall(expectedResponse); - const [response] = await client.listAccounts(request); + client.descriptors.page.listAccountSummaries.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listAccountSummariesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccountSummaries, request) + ); + }); + + it('invokes listAccountSummariesStream with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccountSummaries.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listAccountSummariesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = + []; + stream.on( + 'data', + (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAccountSummaries, request) + ); + }); + + it('uses async iteration with listAccountSummaries without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.AccountSummary() + ), + ]; + client.descriptors.page.listAccountSummaries.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = + []; + const iterable = client.listAccountSummariesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + + it('uses async iteration with listAccountSummaries with error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + ); + const expectedError = new Error('expected'); + client.descriptors.page.listAccountSummaries.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAccountSummariesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); + + describe('listProperties', () => { + it('invokes listProperties without error', async () => { + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + generateSampleMessage( + new protos.google.analytics.admin.v1alpha.Property() + ), + ]; + client.innerApiCalls.listProperties = stubSimpleCall(expectedResponse); + const [response] = await client.listProperties(request); assert.deepStrictEqual(response, expectedResponse); }); - it('invokes listAccounts without error using callback', async () => { + it('invokes listProperties without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12668,27 +14117,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.Property() ), ]; - client.innerApiCalls.listAccounts = + client.innerApiCalls.listProperties = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listAccounts( + client.listProperties( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IAccount[] | null + result?: protos.google.analytics.admin.v1alpha.IProperty[] | null ) => { if (err) { reject(err); @@ -12702,7 +14151,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { assert.deepStrictEqual(response, expectedResponse); }); - it('invokes listAccounts with error', async () => { + it('invokes listProperties with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12710,17 +14159,17 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedError = new Error('expected'); - client.innerApiCalls.listAccounts = stubSimpleCall( + client.innerApiCalls.listProperties = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listAccounts(request), expectedError); + await assert.rejects(client.listProperties(request), expectedError); }); - it('invokes listAccountsStream without error', async () => { + it('invokes listPropertiesStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12728,27 +14177,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.Property() ), ]; - client.descriptors.page.listAccounts.createStream = + client.descriptors.page.listProperties.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listAccountsStream(request); + const stream = client.listPropertiesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Account[] = []; + const responses: protos.google.analytics.admin.v1alpha.Property[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.Account) => { + (response: protos.google.analytics.admin.v1alpha.Property) => { responses.push(response); } ); @@ -12762,13 +14211,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listAccounts.createStream as SinonStub) + (client.descriptors.page.listProperties.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccounts, request) + .calledWith(client.innerApiCalls.listProperties, request) ); }); - it('invokes listAccountsStream with error', async () => { + it('invokes listPropertiesStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12776,19 +14225,17 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedError = new Error('expected'); - client.descriptors.page.listAccounts.createStream = stubPageStreamingCall( - undefined, - expectedError - ); - const stream = client.listAccountsStream(request); + client.descriptors.page.listProperties.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listPropertiesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Account[] = []; + const responses: protos.google.analytics.admin.v1alpha.Property[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.Account) => { + (response: protos.google.analytics.admin.v1alpha.Property) => { responses.push(response); } ); @@ -12801,13 +14248,13 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listAccounts.createStream as SinonStub) + (client.descriptors.page.listProperties.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccounts, request) + .calledWith(client.innerApiCalls.listProperties, request) ); }); - it('uses async iteration with listAccounts without error', async () => { + it('uses async iteration with listProperties without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12815,36 +14262,36 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.Property() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Account() + new protos.google.analytics.admin.v1alpha.Property() ), ]; - client.descriptors.page.listAccounts.asyncIterate = + client.descriptors.page.listProperties.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; - const iterable = client.listAccountsAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; + const iterable = client.listPropertiesAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listAccounts.asyncIterate as SinonStub + client.descriptors.page.listProperties.asyncIterate as SinonStub ).getCall(0).args[1], request ); }); - it('uses async iteration with listAccounts with error', async () => { + it('uses async iteration with listProperties with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12852,29 +14299,29 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountsRequest() + new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() ); const expectedError = new Error('expected'); - client.descriptors.page.listAccounts.asyncIterate = + client.descriptors.page.listProperties.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAccountsAsync(request); + const iterable = client.listPropertiesAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAccount[] = []; + const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listAccounts.asyncIterate as SinonStub + client.descriptors.page.listProperties.asyncIterate as SinonStub ).getCall(0).args[1], request ); }); }); - describe('listAccountSummaries', () => { - it('invokes listAccountSummaries without error', async () => { + describe('listUserLinks', () => { + it('invokes listUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12882,26 +14329,39 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListUserLinksRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.innerApiCalls.listAccountSummaries = - stubSimpleCall(expectedResponse); - const [response] = await client.listAccountSummaries(request); + client.innerApiCalls.listUserLinks = stubSimpleCall(expectedResponse); + const [response] = await client.listUserLinks(request); assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listAccountSummaries without error using callback', async () => { + it('invokes listUserLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12909,29 +14369,33 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.innerApiCalls.listAccountSummaries = + client.innerApiCalls.listUserLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listAccountSummaries( + client.listUserLinks( request, ( err?: Error | null, - result?: - | protos.google.analytics.admin.v1alpha.IAccountSummary[] - | null + result?: protos.google.analytics.admin.v1alpha.IUserLink[] | null ) => { if (err) { reject(err); @@ -12943,9 +14407,17 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listAccountSummaries with error', async () => { + it('invokes listUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12953,17 +14425,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listAccountSummaries = stubSimpleCall( + client.innerApiCalls.listUserLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listAccountSummaries(request), expectedError); + await assert.rejects(client.listUserLinks(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listAccountSummariesStream without error', async () => { + it('invokes listUserLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -12971,28 +14457,33 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.descriptors.page.listAccountSummaries.createStream = + client.descriptors.page.listUserLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listAccountSummariesStream(request); + const stream = client.listUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = - []; + const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + (response: protos.google.analytics.admin.v1alpha.UserLink) => { responses.push(response); } ); @@ -13006,13 +14497,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + (client.descriptors.page.listUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccountSummaries, request) + .calledWith(client.innerApiCalls.listUserLinks, request) + ); + assert( + (client.descriptors.page.listUserLinks.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); - it('invokes listAccountSummariesStream with error', async () => { + it('invokes listUserLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13020,18 +14518,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listAccountSummaries.createStream = + client.descriptors.page.listUserLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listAccountSummariesStream(request); + const stream = client.listUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AccountSummary[] = - []; + const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AccountSummary) => { + (response: protos.google.analytics.admin.v1alpha.UserLink) => { responses.push(response); } ); @@ -13044,13 +14547,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listAccountSummaries.createStream as SinonStub) + (client.descriptors.page.listUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccountSummaries, request) + .calledWith(client.innerApiCalls.listUserLinks, request) + ); + assert( + (client.descriptors.page.listUserLinks.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); - it('uses async iteration with listAccountSummaries without error', async () => { + it('uses async iteration with listUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13058,37 +14568,49 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccountSummary() + new protos.google.analytics.admin.v1alpha.UserLink() ), ]; - client.descriptors.page.listAccountSummaries.asyncIterate = + client.descriptors.page.listUserLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = - []; - const iterable = client.listAccountSummariesAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; + const iterable = client.listUserLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + client.descriptors.page.listUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); + assert( + (client.descriptors.page.listUserLinks.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); }); - it('uses async iteration with listAccountSummaries with error', async () => { + it('uses async iteration with listUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13096,30 +14618,42 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccountSummariesRequest() + new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.ListUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listAccountSummaries.asyncIterate = + client.descriptors.page.listUserLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAccountSummariesAsync(request); + const iterable = client.listUserLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAccountSummary[] = - []; + const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listAccountSummaries.asyncIterate as SinonStub + client.descriptors.page.listUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); + assert( + (client.descriptors.page.listUserLinks.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); }); }); - describe('listProperties', () => { - it('invokes listProperties without error', async () => { + describe('auditUserLinks', () => { + it('invokes auditUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13127,25 +14661,39 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.innerApiCalls.listProperties = stubSimpleCall(expectedResponse); - const [response] = await client.listProperties(request); + client.innerApiCalls.auditUserLinks = stubSimpleCall(expectedResponse); + const [response] = await client.auditUserLinks(request); assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.auditUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.auditUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listProperties without error using callback', async () => { + it('invokes auditUserLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13153,27 +14701,35 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.innerApiCalls.listProperties = + client.innerApiCalls.auditUserLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listProperties( + client.auditUserLinks( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IProperty[] | null + result?: + | protos.google.analytics.admin.v1alpha.IAuditUserLink[] + | null ) => { if (err) { reject(err); @@ -13185,9 +14741,17 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.auditUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.auditUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listProperties with error', async () => { + it('invokes auditUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13195,17 +14759,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listProperties = stubSimpleCall( + client.innerApiCalls.auditUserLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listProperties(request), expectedError); + await assert.rejects(client.auditUserLinks(request), expectedError); + const actualRequest = ( + client.innerApiCalls.auditUserLinks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.auditUserLinks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listPropertiesStream without error', async () => { + it('invokes auditUserLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13213,27 +14791,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.descriptors.page.listProperties.createStream = + client.descriptors.page.auditUserLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listPropertiesStream(request); + const stream = client.auditUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Property[] = []; + const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.Property) => { + (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { responses.push(response); } ); @@ -13247,13 +14832,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listProperties.createStream as SinonStub) + (client.descriptors.page.auditUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listProperties, request) + .calledWith(client.innerApiCalls.auditUserLinks, request) + ); + assert( + (client.descriptors.page.auditUserLinks.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); - it('invokes listPropertiesStream with error', async () => { + it('invokes auditUserLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13261,17 +14853,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listProperties.createStream = + client.descriptors.page.auditUserLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listPropertiesStream(request); + const stream = client.auditUserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Property[] = []; + const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.Property) => { + (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { responses.push(response); } ); @@ -13284,13 +14883,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listProperties.createStream as SinonStub) + (client.descriptors.page.auditUserLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listProperties, request) + .calledWith(client.innerApiCalls.auditUserLinks, request) + ); + assert( + (client.descriptors.page.auditUserLinks.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); - it('uses async iteration with listProperties without error', async () => { + it('uses async iteration with auditUserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13298,36 +14904,50 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Property() + new protos.google.analytics.admin.v1alpha.AuditUserLink() ), ]; - client.descriptors.page.listProperties.asyncIterate = + client.descriptors.page.auditUserLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; - const iterable = client.listPropertiesAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + []; + const iterable = client.auditUserLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listProperties.asyncIterate as SinonStub + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); + assert( + (client.descriptors.page.auditUserLinks.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); }); - it('uses async iteration with listProperties with error', async () => { + it('uses async iteration with auditUserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13335,29 +14955,43 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListPropertiesRequest() + new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + ['parent'] ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listProperties.asyncIterate = + client.descriptors.page.auditUserLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listPropertiesAsync(request); + const iterable = client.auditUserLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IProperty[] = []; + const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listProperties.asyncIterate as SinonStub + client.descriptors.page.auditUserLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); + assert( + (client.descriptors.page.auditUserLinks.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); }); }); - describe('listUserLinks', () => { - it('invokes listUserLinks without error', async () => { + describe('listFirebaseLinks', () => { + it('invokes listFirebaseLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13365,39 +14999,39 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListUserLinksRequest', + '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.innerApiCalls.listUserLinks = stubSimpleCall(expectedResponse); - const [response] = await client.listUserLinks(request); + client.innerApiCalls.listFirebaseLinks = stubSimpleCall(expectedResponse); + const [response] = await client.listFirebaseLinks(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listUserLinks as SinonStub + client.innerApiCalls.listFirebaseLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listUserLinks as SinonStub + client.innerApiCalls.listFirebaseLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listUserLinks without error using callback', async () => { + it('invokes listFirebaseLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13405,33 +15039,35 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListUserLinksRequest', + '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.innerApiCalls.listUserLinks = + client.innerApiCalls.listFirebaseLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listUserLinks( + client.listFirebaseLinks( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IUserLink[] | null + result?: + | protos.google.analytics.admin.v1alpha.IFirebaseLink[] + | null ) => { if (err) { reject(err); @@ -13444,16 +15080,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listUserLinks as SinonStub + client.innerApiCalls.listFirebaseLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listUserLinks as SinonStub + client.innerApiCalls.listFirebaseLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listUserLinks with error', async () => { + it('invokes listFirebaseLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13461,31 +15097,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListUserLinksRequest', + '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listUserLinks = stubSimpleCall( + client.innerApiCalls.listFirebaseLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listUserLinks(request), expectedError); + await assert.rejects(client.listFirebaseLinks(request), expectedError); const actualRequest = ( - client.innerApiCalls.listUserLinks as SinonStub + client.innerApiCalls.listFirebaseLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listUserLinks as SinonStub + client.innerApiCalls.listFirebaseLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listUserLinksStream without error', async () => { + it('invokes listFirebaseLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13493,33 +15129,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListUserLinksRequest', + '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.descriptors.page.listUserLinks.createStream = + client.descriptors.page.listFirebaseLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listUserLinksStream(request); + const stream = client.listFirebaseLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.UserLink) => { + (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { responses.push(response); } ); @@ -13533,12 +15170,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listUserLinks.createStream as SinonStub) + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listUserLinks, request) + .calledWith(client.innerApiCalls.listFirebaseLinks, request) ); assert( - (client.descriptors.page.listUserLinks.createStream as SinonStub) + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -13546,7 +15183,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listUserLinksStream with error', async () => { + it('invokes listFirebaseLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13554,23 +15191,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListUserLinksRequest', + '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listUserLinks.createStream = + client.descriptors.page.listFirebaseLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listUserLinksStream(request); + const stream = client.listFirebaseLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.UserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.UserLink) => { + (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { responses.push(response); } ); @@ -13583,12 +15221,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listUserLinks.createStream as SinonStub) + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listUserLinks, request) + .calledWith(client.innerApiCalls.listFirebaseLinks, request) ); assert( - (client.descriptors.page.listUserLinks.createStream as SinonStub) + (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -13596,7 +15234,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listUserLinks without error', async () => { + it('uses async iteration with listFirebaseLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13604,41 +15242,42 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListUserLinksRequest', + '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.UserLink() + new protos.google.analytics.admin.v1alpha.FirebaseLink() ), ]; - client.descriptors.page.listUserLinks.asyncIterate = + client.descriptors.page.listFirebaseLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; - const iterable = client.listUserLinksAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = + []; + const iterable = client.listFirebaseLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listUserLinks.asyncIterate as SinonStub) + (client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -13646,7 +15285,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listUserLinks with error', async () => { + it('uses async iteration with listFirebaseLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13654,32 +15293,33 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListUserLinksRequest', + '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listUserLinks.asyncIterate = + client.descriptors.page.listFirebaseLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listUserLinksAsync(request); + const iterable = client.listFirebaseLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IUserLink[] = []; + const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listUserLinks.asyncIterate as SinonStub + client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listUserLinks.asyncIterate as SinonStub) + (client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -13688,8 +15328,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('auditUserLinks', () => { - it('invokes auditUserLinks without error', async () => { + describe('listGoogleAdsLinks', () => { + it('invokes listGoogleAdsLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13697,39 +15337,40 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.innerApiCalls.auditUserLinks = stubSimpleCall(expectedResponse); - const [response] = await client.auditUserLinks(request); + client.innerApiCalls.listGoogleAdsLinks = + stubSimpleCall(expectedResponse); + const [response] = await client.listGoogleAdsLinks(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.auditUserLinks as SinonStub + client.innerApiCalls.listGoogleAdsLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.auditUserLinks as SinonStub + client.innerApiCalls.listGoogleAdsLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes auditUserLinks without error using callback', async () => { + it('invokes listGoogleAdsLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13737,34 +15378,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.innerApiCalls.auditUserLinks = + client.innerApiCalls.listGoogleAdsLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.auditUserLinks( + client.listGoogleAdsLinks( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IAuditUserLink[] + | protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] | null ) => { if (err) { @@ -13778,16 +15419,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.auditUserLinks as SinonStub + client.innerApiCalls.listGoogleAdsLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.auditUserLinks as SinonStub + client.innerApiCalls.listGoogleAdsLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes auditUserLinks with error', async () => { + it('invokes listGoogleAdsLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13795,31 +15436,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.auditUserLinks = stubSimpleCall( + client.innerApiCalls.listGoogleAdsLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.auditUserLinks(request), expectedError); + await assert.rejects(client.listGoogleAdsLinks(request), expectedError); const actualRequest = ( - client.innerApiCalls.auditUserLinks as SinonStub + client.innerApiCalls.listGoogleAdsLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.auditUserLinks as SinonStub + client.innerApiCalls.listGoogleAdsLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes auditUserLinksStream without error', async () => { + it('invokes listGoogleAdsLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13827,34 +15468,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.descriptors.page.auditUserLinks.createStream = + client.descriptors.page.listGoogleAdsLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.auditUserLinksStream(request); + const stream = client.listGoogleAdsLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { + (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { responses.push(response); } ); @@ -13868,12 +15509,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.auditUserLinks.createStream as SinonStub) + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.auditUserLinks, request) + .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) ); assert( - (client.descriptors.page.auditUserLinks.createStream as SinonStub) + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -13881,7 +15522,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes auditUserLinksStream with error', async () => { + it('invokes listGoogleAdsLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13889,24 +15530,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.auditUserLinks.createStream = + client.descriptors.page.listGoogleAdsLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.auditUserLinksStream(request); + const stream = client.listGoogleAdsLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AuditUserLink) => { + (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { responses.push(response); } ); @@ -13919,12 +15560,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.auditUserLinks.createStream as SinonStub) + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.auditUserLinks, request) + .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) ); assert( - (client.descriptors.page.auditUserLinks.createStream as SinonStub) + (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -13932,7 +15573,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with auditUserLinks without error', async () => { + it('uses async iteration with listGoogleAdsLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13940,42 +15581,42 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLink() + new protos.google.analytics.admin.v1alpha.GoogleAdsLink() ), ]; - client.descriptors.page.auditUserLinks.asyncIterate = + client.descriptors.page.listGoogleAdsLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = []; - const iterable = client.auditUserLinksAsync(request); + const iterable = client.listGoogleAdsLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.auditUserLinks.asyncIterate as SinonStub) + (client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -13983,7 +15624,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with auditUserLinks with error', async () => { + it('uses async iteration with listGoogleAdsLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -13991,20 +15632,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AuditUserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.AuditUserLinksRequest', + '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.auditUserLinks.asyncIterate = + client.descriptors.page.listGoogleAdsLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.auditUserLinksAsync(request); + const iterable = client.listGoogleAdsLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAuditUserLink[] = + const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -14012,12 +15653,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.auditUserLinks.asyncIterate as SinonStub + client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.auditUserLinks.asyncIterate as SinonStub) + (client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -14026,8 +15667,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listFirebaseLinks', () => { - it('invokes listFirebaseLinks without error', async () => { + describe('listMeasurementProtocolSecrets', () => { + it('invokes listMeasurementProtocolSecrets without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -14035,39 +15676,40 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', + '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.innerApiCalls.listFirebaseLinks = stubSimpleCall(expectedResponse); - const [response] = await client.listFirebaseLinks(request); + client.innerApiCalls.listMeasurementProtocolSecrets = + stubSimpleCall(expectedResponse); + const [response] = await client.listMeasurementProtocolSecrets(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listFirebaseLinks as SinonStub + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listFirebaseLinks as SinonStub + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listFirebaseLinks without error using callback', async () => { + it('invokes listMeasurementProtocolSecrets without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -14075,34 +15717,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', + '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.innerApiCalls.listFirebaseLinks = + client.innerApiCalls.listMeasurementProtocolSecrets = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listFirebaseLinks( + client.listMeasurementProtocolSecrets( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IFirebaseLink[] + | protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] | null ) => { if (err) { @@ -14116,16 +15758,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listFirebaseLinks as SinonStub + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listFirebaseLinks as SinonStub + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listFirebaseLinks with error', async () => { + it('invokes listMeasurementProtocolSecrets with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -14133,31 +15775,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', + '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listFirebaseLinks = stubSimpleCall( + client.innerApiCalls.listMeasurementProtocolSecrets = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listFirebaseLinks(request), expectedError); + await assert.rejects( + client.listMeasurementProtocolSecrets(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.listFirebaseLinks as SinonStub + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listFirebaseLinks as SinonStub + client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listFirebaseLinksStream without error', async () => { + it('invokes listMeasurementProtocolSecretsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -14165,34 +15810,36 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', + '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.descriptors.page.listFirebaseLinks.createStream = + client.descriptors.page.listMeasurementProtocolSecrets.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listFirebaseLinksStream(request); + const stream = client.listMeasurementProtocolSecretsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { + ( + response: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret + ) => { responses.push(response); } ); @@ -14206,12 +15853,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + ( + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listFirebaseLinks, request) + .calledWith( + client.innerApiCalls.listMeasurementProtocolSecrets, + request + ) ); assert( - (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + ( + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -14219,7 +15875,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listFirebaseLinksStream with error', async () => { + it('invokes listMeasurementProtocolSecretsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -14227,24 +15883,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', + '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listFirebaseLinks.createStream = + client.descriptors.page.listMeasurementProtocolSecrets.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listFirebaseLinksStream(request); + const stream = client.listMeasurementProtocolSecretsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.FirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.FirebaseLink) => { + ( + response: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret + ) => { responses.push(response); } ); @@ -14257,12 +15915,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + ( + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listFirebaseLinks, request) + .calledWith( + client.innerApiCalls.listMeasurementProtocolSecrets, + request + ) ); assert( - (client.descriptors.page.listFirebaseLinks.createStream as SinonStub) + ( + client.descriptors.page.listMeasurementProtocolSecrets + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -14270,7 +15937,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listFirebaseLinks without error', async () => { + it('uses async iteration with listMeasurementProtocolSecrets without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -14278,42 +15945,46 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', + '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.FirebaseLink() + new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() ), ]; - client.descriptors.page.listFirebaseLinks.asyncIterate = + client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] = []; - const iterable = client.listFirebaseLinksAsync(request); + const iterable = client.listMeasurementProtocolSecretsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub) + ( + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -14321,7 +15992,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listFirebaseLinks with error', async () => { + it('uses async iteration with listMeasurementProtocolSecrets with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -14329,20 +16000,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListFirebaseLinksRequest() + new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListFirebaseLinksRequest', + '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listFirebaseLinks.asyncIterate = + client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listFirebaseLinksAsync(request); + const iterable = client.listMeasurementProtocolSecretsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IFirebaseLink[] = + const responses: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -14350,12 +16021,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listFirebaseLinks.asyncIterate as SinonStub) + ( + client.descriptors.page.listMeasurementProtocolSecrets + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -14364,8 +16039,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listGoogleAdsLinks', () => { - it('invokes listGoogleAdsLinks without error', async () => { + describe('searchChangeHistoryEvents', () => { + it('invokes searchChangeHistoryEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -14373,40 +16048,40 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', - ['parent'] + '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', + ['account'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.innerApiCalls.listGoogleAdsLinks = + client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall(expectedResponse); - const [response] = await client.listGoogleAdsLinks(request); + const [response] = await client.searchChangeHistoryEvents(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listGoogleAdsLinks as SinonStub + client.innerApiCalls.searchChangeHistoryEvents as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listGoogleAdsLinks as SinonStub + client.innerApiCalls.searchChangeHistoryEvents as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listGoogleAdsLinks without error using callback', async () => { + it('invokes searchChangeHistoryEvents without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -14414,34 +16089,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', - ['parent'] + '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', + ['account'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.innerApiCalls.listGoogleAdsLinks = + client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listGoogleAdsLinks( + client.searchChangeHistoryEvents( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] + | protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] | null ) => { if (err) { @@ -14455,16 +16130,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listGoogleAdsLinks as SinonStub + client.innerApiCalls.searchChangeHistoryEvents as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listGoogleAdsLinks as SinonStub + client.innerApiCalls.searchChangeHistoryEvents as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listGoogleAdsLinks with error', async () => { + it('invokes searchChangeHistoryEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -14472,31 +16147,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', - ['parent'] + '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', + ['account'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listGoogleAdsLinks = stubSimpleCall( + client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listGoogleAdsLinks(request), expectedError); + await assert.rejects( + client.searchChangeHistoryEvents(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.listGoogleAdsLinks as SinonStub + client.innerApiCalls.searchChangeHistoryEvents as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listGoogleAdsLinks as SinonStub + client.innerApiCalls.searchChangeHistoryEvents as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listGoogleAdsLinksStream without error', async () => { + it('invokes searchChangeHistoryEventsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -14504,34 +16182,36 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', - ['parent'] + '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', + ['account'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.descriptors.page.listGoogleAdsLinks.createStream = + client.descriptors.page.searchChangeHistoryEvents.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listGoogleAdsLinksStream(request); + const stream = client.searchChangeHistoryEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { + ( + response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent + ) => { responses.push(response); } ); @@ -14545,12 +16225,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + ( + client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) + .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) ); assert( - (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + ( + client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -14558,7 +16244,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listGoogleAdsLinksStream with error', async () => { + it('invokes searchChangeHistoryEventsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -14566,24 +16252,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', - ['parent'] + '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', + ['account'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listGoogleAdsLinks.createStream = + client.descriptors.page.searchChangeHistoryEvents.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listGoogleAdsLinksStream(request); + const stream = client.searchChangeHistoryEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.GoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.GoogleAdsLink) => { + ( + response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent + ) => { responses.push(response); } ); @@ -14596,12 +16284,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + ( + client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listGoogleAdsLinks, request) + .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) ); assert( - (client.descriptors.page.listGoogleAdsLinks.createStream as SinonStub) + ( + client.descriptors.page.searchChangeHistoryEvents + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -14609,7 +16303,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listGoogleAdsLinks without error', async () => { + it('uses async iteration with searchChangeHistoryEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -14617,42 +16311,46 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', - ['parent'] + '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', + ['account'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.GoogleAdsLink() + new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() ), ]; - client.descriptors.page.listGoogleAdsLinks.asyncIterate = + client.descriptors.page.searchChangeHistoryEvents.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = []; - const iterable = client.listGoogleAdsLinksAsync(request); + const iterable = client.searchChangeHistoryEventsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub) + ( + client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -14660,7 +16358,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listGoogleAdsLinks with error', async () => { + it('uses async iteration with searchChangeHistoryEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -14668,20 +16366,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest() + new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest', - ['parent'] + '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', + ['account'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.account = defaultValue1; + const expectedHeaderRequestParams = `account=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listGoogleAdsLinks.asyncIterate = + client.descriptors.page.searchChangeHistoryEvents.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listGoogleAdsLinksAsync(request); + const iterable = client.searchChangeHistoryEventsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IGoogleAdsLink[] = + const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -14689,12 +16387,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub + client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listGoogleAdsLinks.asyncIterate as SinonStub) + ( + client.descriptors.page.searchChangeHistoryEvents + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -14703,8 +16405,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listMeasurementProtocolSecrets', () => { - it('invokes listMeasurementProtocolSecrets without error', async () => { + describe('listConversionEvents', () => { + it('invokes listConversionEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -14712,40 +16414,40 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1alpha.ListConversionEventsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.innerApiCalls.listMeasurementProtocolSecrets = + client.innerApiCalls.listConversionEvents = stubSimpleCall(expectedResponse); - const [response] = await client.listMeasurementProtocolSecrets(request); + const [response] = await client.listConversionEvents(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + client.innerApiCalls.listConversionEvents as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + client.innerApiCalls.listConversionEvents as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listMeasurementProtocolSecrets without error using callback', async () => { + it('invokes listConversionEvents without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -14753,34 +16455,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1alpha.ListConversionEventsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.innerApiCalls.listMeasurementProtocolSecrets = + client.innerApiCalls.listConversionEvents = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listMeasurementProtocolSecrets( + client.listConversionEvents( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] + | protos.google.analytics.admin.v1alpha.IConversionEvent[] | null ) => { if (err) { @@ -14794,16 +16496,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + client.innerApiCalls.listConversionEvents as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + client.innerApiCalls.listConversionEvents as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listMeasurementProtocolSecrets with error', async () => { + it('invokes listConversionEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -14811,34 +16513,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1alpha.ListConversionEventsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listMeasurementProtocolSecrets = stubSimpleCall( + client.innerApiCalls.listConversionEvents = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.listMeasurementProtocolSecrets(request), - expectedError - ); + await assert.rejects(client.listConversionEvents(request), expectedError); const actualRequest = ( - client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + client.innerApiCalls.listConversionEvents as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listMeasurementProtocolSecrets as SinonStub + client.innerApiCalls.listConversionEvents as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listMeasurementProtocolSecretsStream without error', async () => { + it('invokes listConversionEventsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -14846,36 +16545,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1alpha.ListConversionEventsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.descriptors.page.listMeasurementProtocolSecrets.createStream = + client.descriptors.page.listConversionEvents.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listMeasurementProtocolSecretsStream(request); + const stream = client.listConversionEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret[] = + const responses: protos.google.analytics.admin.v1alpha.ConversionEvent[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret - ) => { + (response: protos.google.analytics.admin.v1alpha.ConversionEvent) => { responses.push(response); } ); @@ -14889,21 +16586,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.listMeasurementProtocolSecrets - .createStream as SinonStub - ) + (client.descriptors.page.listConversionEvents.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listMeasurementProtocolSecrets, - request - ) + .calledWith(client.innerApiCalls.listConversionEvents, request) ); assert( - ( - client.descriptors.page.listMeasurementProtocolSecrets - .createStream as SinonStub - ) + (client.descriptors.page.listConversionEvents.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -14911,7 +16599,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listMeasurementProtocolSecretsStream with error', async () => { + it('invokes listConversionEventsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -14919,26 +16607,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1alpha.ListConversionEventsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listMeasurementProtocolSecrets.createStream = + client.descriptors.page.listConversionEvents.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listMeasurementProtocolSecretsStream(request); + const stream = client.listConversionEventsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret[] = + const responses: protos.google.analytics.admin.v1alpha.ConversionEvent[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret - ) => { + (response: protos.google.analytics.admin.v1alpha.ConversionEvent) => { responses.push(response); } ); @@ -14951,21 +16637,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.listMeasurementProtocolSecrets - .createStream as SinonStub - ) + (client.descriptors.page.listConversionEvents.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listMeasurementProtocolSecrets, - request - ) + .calledWith(client.innerApiCalls.listConversionEvents, request) ); assert( - ( - client.descriptors.page.listMeasurementProtocolSecrets - .createStream as SinonStub - ) + (client.descriptors.page.listConversionEvents.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -14973,7 +16650,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listMeasurementProtocolSecrets without error', async () => { + it('uses async iteration with listConversionEvents without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -14981,46 +16658,42 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1alpha.ListConversionEventsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.MeasurementProtocolSecret() + new protos.google.analytics.admin.v1alpha.ConversionEvent() ), ]; - client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = + client.descriptors.page.listConversionEvents.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] = + const responses: protos.google.analytics.admin.v1alpha.IConversionEvent[] = []; - const iterable = client.listMeasurementProtocolSecretsAsync(request); + const iterable = client.listConversionEventsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listMeasurementProtocolSecrets - .asyncIterate as SinonStub + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.listMeasurementProtocolSecrets - .asyncIterate as SinonStub - ) + (client.descriptors.page.listConversionEvents.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -15028,7 +16701,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listMeasurementProtocolSecrets with error', async () => { + it('uses async iteration with listConversionEvents with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -15036,20 +16709,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest() + new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest', + '.google.analytics.admin.v1alpha.ListConversionEventsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listMeasurementProtocolSecrets.asyncIterate = + client.descriptors.page.listConversionEvents.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listMeasurementProtocolSecretsAsync(request); + const iterable = client.listConversionEventsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IMeasurementProtocolSecret[] = + const responses: protos.google.analytics.admin.v1alpha.IConversionEvent[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -15057,16 +16730,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listMeasurementProtocolSecrets - .asyncIterate as SinonStub + client.descriptors.page.listConversionEvents.asyncIterate as SinonStub ).getCall(0).args[1], request ); - assert( - ( - client.descriptors.page.listMeasurementProtocolSecrets - .asyncIterate as SinonStub - ) + assert( + (client.descriptors.page.listConversionEvents.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -15075,8 +16744,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('searchChangeHistoryEvents', () => { - it('invokes searchChangeHistoryEvents without error', async () => { + describe('listDisplayVideo360AdvertiserLinks', () => { + it('invokes listDisplayVideo360AdvertiserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -15084,40 +16753,42 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', - ['account'] + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + ['parent'] ); - request.account = defaultValue1; - const expectedHeaderRequestParams = `account=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), ]; - client.innerApiCalls.searchChangeHistoryEvents = + client.innerApiCalls.listDisplayVideo360AdvertiserLinks = stubSimpleCall(expectedResponse); - const [response] = await client.searchChangeHistoryEvents(request); + const [response] = await client.listDisplayVideo360AdvertiserLinks( + request + ); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.searchChangeHistoryEvents as SinonStub + client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.searchChangeHistoryEvents as SinonStub + client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes searchChangeHistoryEvents without error using callback', async () => { + it('invokes listDisplayVideo360AdvertiserLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -15125,34 +16796,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', - ['account'] + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + ['parent'] ); - request.account = defaultValue1; - const expectedHeaderRequestParams = `account=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), ]; - client.innerApiCalls.searchChangeHistoryEvents = + client.innerApiCalls.listDisplayVideo360AdvertiserLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.searchChangeHistoryEvents( + client.listDisplayVideo360AdvertiserLinks( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] + | protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] | null ) => { if (err) { @@ -15166,16 +16837,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.searchChangeHistoryEvents as SinonStub + client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.searchChangeHistoryEvents as SinonStub + client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes searchChangeHistoryEvents with error', async () => { + it('invokes listDisplayVideo360AdvertiserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -15183,34 +16854,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', - ['account'] + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + ['parent'] ); - request.account = defaultValue1; - const expectedHeaderRequestParams = `account=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.searchChangeHistoryEvents = stubSimpleCall( + client.innerApiCalls.listDisplayVideo360AdvertiserLinks = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.searchChangeHistoryEvents(request), + client.listDisplayVideo360AdvertiserLinks(request), expectedError ); const actualRequest = ( - client.innerApiCalls.searchChangeHistoryEvents as SinonStub + client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.searchChangeHistoryEvents as SinonStub + client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes searchChangeHistoryEventsStream without error', async () => { + it('invokes listDisplayVideo360AdvertiserLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -15218,35 +16889,35 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', - ['account'] + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + ['parent'] ); - request.account = defaultValue1; - const expectedHeaderRequestParams = `account=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), ]; - client.descriptors.page.searchChangeHistoryEvents.createStream = + client.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.searchChangeHistoryEventsStream(request); + const stream = client.listDisplayVideo360AdvertiserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink[] = []; stream.on( 'data', ( - response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent + response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink ) => { responses.push(response); } @@ -15262,15 +16933,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { assert.deepStrictEqual(responses, expectedResponse); assert( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .createStream as SinonStub ) .getCall(0) - .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) + .calledWith( + client.innerApiCalls.listDisplayVideo360AdvertiserLinks, + request + ) ); assert( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .createStream as SinonStub ) .getCall(0) @@ -15280,7 +16954,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes searchChangeHistoryEventsStream with error', async () => { + it('invokes listDisplayVideo360AdvertiserLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -15288,25 +16962,25 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', - ['account'] + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + ['parent'] ); - request.account = defaultValue1; - const expectedHeaderRequestParams = `account=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.searchChangeHistoryEvents.createStream = + client.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.searchChangeHistoryEventsStream(request); + const stream = client.listDisplayVideo360AdvertiserLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink[] = []; stream.on( 'data', ( - response: protos.google.analytics.admin.v1alpha.ChangeHistoryEvent + response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink ) => { responses.push(response); } @@ -15321,15 +16995,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { await assert.rejects(promise, expectedError); assert( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .createStream as SinonStub ) .getCall(0) - .calledWith(client.innerApiCalls.searchChangeHistoryEvents, request) + .calledWith( + client.innerApiCalls.listDisplayVideo360AdvertiserLinks, + request + ) ); assert( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .createStream as SinonStub ) .getCall(0) @@ -15339,7 +17016,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with searchChangeHistoryEvents without error', async () => { + it('uses async iteration with listDisplayVideo360AdvertiserLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -15347,44 +17024,44 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', - ['account'] + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + ['parent'] ); - request.account = defaultValue1; - const expectedHeaderRequestParams = `account=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChangeHistoryEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() ), ]; - client.descriptors.page.searchChangeHistoryEvents.asyncIterate = + client.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] = []; - const iterable = client.searchChangeHistoryEventsAsync(request); + const iterable = client.listDisplayVideo360AdvertiserLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .asyncIterate as SinonStub ) .getCall(0) @@ -15394,7 +17071,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with searchChangeHistoryEvents with error', async () => { + it('uses async iteration with listDisplayVideo360AdvertiserLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -15402,20 +17079,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest', - ['account'] + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + ['parent'] ); - request.account = defaultValue1; - const expectedHeaderRequestParams = `account=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.searchChangeHistoryEvents.asyncIterate = + client.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.searchChangeHistoryEventsAsync(request); + const iterable = client.listDisplayVideo360AdvertiserLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IChangeHistoryEvent[] = + const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -15423,14 +17100,14 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( ( - client.descriptors.page.searchChangeHistoryEvents + client.descriptors.page.listDisplayVideo360AdvertiserLinks .asyncIterate as SinonStub ) .getCall(0) @@ -15441,8 +17118,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listConversionEvents', () => { - it('invokes listConversionEvents without error', async () => { + describe('listDisplayVideo360AdvertiserLinkProposals', () => { + it('invokes listDisplayVideo360AdvertiserLinkProposals without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -15450,40 +17127,43 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListConversionEventsRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), ]; - client.innerApiCalls.listConversionEvents = + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = stubSimpleCall(expectedResponse); - const [response] = await client.listConversionEvents(request); + const [response] = + await client.listDisplayVideo360AdvertiserLinkProposals(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listConversionEvents as SinonStub + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listConversionEvents as SinonStub + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listConversionEvents without error using callback', async () => { + it('invokes listDisplayVideo360AdvertiserLinkProposals without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -15491,34 +17171,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListConversionEventsRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), ]; - client.innerApiCalls.listConversionEvents = + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listConversionEvents( + client.listDisplayVideo360AdvertiserLinkProposals( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IConversionEvent[] + | protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] | null ) => { if (err) { @@ -15532,16 +17212,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listConversionEvents as SinonStub + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listConversionEvents as SinonStub + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listConversionEvents with error', async () => { + it('invokes listDisplayVideo360AdvertiserLinkProposals with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -15549,31 +17231,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListConversionEventsRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listConversionEvents = stubSimpleCall( - undefined, + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = + stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.listDisplayVideo360AdvertiserLinkProposals(request), expectedError ); - await assert.rejects(client.listConversionEvents(request), expectedError); const actualRequest = ( - client.innerApiCalls.listConversionEvents as SinonStub + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listConversionEvents as SinonStub + client.innerApiCalls + .listDisplayVideo360AdvertiserLinkProposals as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listConversionEventsStream without error', async () => { + it('invokes listDisplayVideo360AdvertiserLinkProposalsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -15581,34 +17266,37 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListConversionEventsRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), ]; - client.descriptors.page.listConversionEvents.createStream = + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listConversionEventsStream(request); + const stream = + client.listDisplayVideo360AdvertiserLinkProposalsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ConversionEvent[] = + const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.ConversionEvent) => { + ( + response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + ) => { responses.push(response); } ); @@ -15622,12 +17310,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listConversionEvents.createStream as SinonStub) + ( + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listConversionEvents, request) + .calledWith( + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals, + request + ) ); assert( - (client.descriptors.page.listConversionEvents.createStream as SinonStub) + ( + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -15635,7 +17332,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listConversionEventsStream with error', async () => { + it('invokes listDisplayVideo360AdvertiserLinkProposalsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -15643,24 +17340,27 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListConversionEventsRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listConversionEvents.createStream = + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listConversionEventsStream(request); + const stream = + client.listDisplayVideo360AdvertiserLinkProposalsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ConversionEvent[] = + const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.ConversionEvent) => { + ( + response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + ) => { responses.push(response); } ); @@ -15673,12 +17373,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listConversionEvents.createStream as SinonStub) + ( + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listConversionEvents, request) + .calledWith( + client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals, + request + ) ); assert( - (client.descriptors.page.listConversionEvents.createStream as SinonStub) + ( + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -15686,7 +17395,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listConversionEvents without error', async () => { + it('uses async iteration with listDisplayVideo360AdvertiserLinkProposals without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -15694,42 +17403,47 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListConversionEventsRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ConversionEvent() + new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() ), ]; - client.descriptors.page.listConversionEvents.asyncIterate = + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IConversionEvent[] = + const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] = []; - const iterable = client.listConversionEventsAsync(request); + const iterable = + client.listDisplayVideo360AdvertiserLinkProposalsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listConversionEvents.asyncIterate as SinonStub + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listConversionEvents.asyncIterate as SinonStub) + ( + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -15737,7 +17451,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listConversionEvents with error', async () => { + it('uses async iteration with listDisplayVideo360AdvertiserLinkProposals with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -15745,20 +17459,21 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListConversionEventsRequest() + new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListConversionEventsRequest', + '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listConversionEvents.asyncIterate = + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listConversionEventsAsync(request); + const iterable = + client.listDisplayVideo360AdvertiserLinkProposalsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IConversionEvent[] = + const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -15766,12 +17481,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listConversionEvents.asyncIterate as SinonStub + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listConversionEvents.asyncIterate as SinonStub) + ( + client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -15780,8 +17499,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listDisplayVideo360AdvertiserLinks', () => { - it('invokes listDisplayVideo360AdvertiserLinks without error', async () => { + describe('listCustomDimensions', () => { + it('invokes listCustomDimensions without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -15789,42 +17508,40 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), ]; - client.innerApiCalls.listDisplayVideo360AdvertiserLinks = + client.innerApiCalls.listCustomDimensions = stubSimpleCall(expectedResponse); - const [response] = await client.listDisplayVideo360AdvertiserLinks( - request - ); + const [response] = await client.listCustomDimensions(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub + client.innerApiCalls.listCustomDimensions as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub + client.innerApiCalls.listCustomDimensions as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDisplayVideo360AdvertiserLinks without error using callback', async () => { + it('invokes listCustomDimensions without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -15832,34 +17549,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), ]; - client.innerApiCalls.listDisplayVideo360AdvertiserLinks = + client.innerApiCalls.listCustomDimensions = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listDisplayVideo360AdvertiserLinks( + client.listCustomDimensions( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] + | protos.google.analytics.admin.v1alpha.ICustomDimension[] | null ) => { if (err) { @@ -15873,16 +17590,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub + client.innerApiCalls.listCustomDimensions as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub + client.innerApiCalls.listCustomDimensions as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDisplayVideo360AdvertiserLinks with error', async () => { + it('invokes listCustomDimensions with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -15890,34 +17607,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listDisplayVideo360AdvertiserLinks = stubSimpleCall( + client.innerApiCalls.listCustomDimensions = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.listDisplayVideo360AdvertiserLinks(request), - expectedError - ); + await assert.rejects(client.listCustomDimensions(request), expectedError); const actualRequest = ( - client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub + client.innerApiCalls.listCustomDimensions as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDisplayVideo360AdvertiserLinks as SinonStub + client.innerApiCalls.listCustomDimensions as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDisplayVideo360AdvertiserLinksStream without error', async () => { + it('invokes listCustomDimensionsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -15925,36 +17639,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), ]; - client.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream = + client.descriptors.page.listCustomDimensions.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listDisplayVideo360AdvertiserLinksStream(request); + const stream = client.listCustomDimensionsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink[] = + const responses: protos.google.analytics.admin.v1alpha.CustomDimension[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink - ) => { + (response: protos.google.analytics.admin.v1alpha.CustomDimension) => { responses.push(response); } ); @@ -15968,21 +17680,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks - .createStream as SinonStub - ) + (client.descriptors.page.listCustomDimensions.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listDisplayVideo360AdvertiserLinks, - request - ) + .calledWith(client.innerApiCalls.listCustomDimensions, request) ); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks - .createStream as SinonStub - ) + (client.descriptors.page.listCustomDimensions.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -15990,7 +17693,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listDisplayVideo360AdvertiserLinksStream with error', async () => { + it('invokes listCustomDimensionsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -15998,26 +17701,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listDisplayVideo360AdvertiserLinks.createStream = + client.descriptors.page.listCustomDimensions.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listDisplayVideo360AdvertiserLinksStream(request); + const stream = client.listCustomDimensionsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink[] = + const responses: protos.google.analytics.admin.v1alpha.CustomDimension[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink - ) => { + (response: protos.google.analytics.admin.v1alpha.CustomDimension) => { responses.push(response); } ); @@ -16030,21 +17731,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks - .createStream as SinonStub - ) + (client.descriptors.page.listCustomDimensions.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listDisplayVideo360AdvertiserLinks, - request - ) - ); - assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks - .createStream as SinonStub - ) + .calledWith(client.innerApiCalls.listCustomDimensions, request) + ); + assert( + (client.descriptors.page.listCustomDimensions.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -16052,7 +17744,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listDisplayVideo360AdvertiserLinks without error', async () => { + it('uses async iteration with listCustomDimensions without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -16060,46 +17752,42 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink() + new protos.google.analytics.admin.v1alpha.CustomDimension() ), ]; - client.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate = + client.descriptors.page.listCustomDimensions.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] = + const responses: protos.google.analytics.admin.v1alpha.ICustomDimension[] = []; - const iterable = client.listDisplayVideo360AdvertiserLinksAsync(request); + const iterable = client.listCustomDimensionsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks - .asyncIterate as SinonStub + client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks - .asyncIterate as SinonStub - ) + (client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -16107,7 +17795,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listDisplayVideo360AdvertiserLinks with error', async () => { + it('uses async iteration with listCustomDimensions with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -16115,20 +17803,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest() + new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest', + '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listDisplayVideo360AdvertiserLinks.asyncIterate = + client.descriptors.page.listCustomDimensions.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listDisplayVideo360AdvertiserLinksAsync(request); + const iterable = client.listCustomDimensionsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLink[] = + const responses: protos.google.analytics.admin.v1alpha.ICustomDimension[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -16136,16 +17824,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks - .asyncIterate as SinonStub + client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinks - .asyncIterate as SinonStub - ) + (client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -16154,8 +17838,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listDisplayVideo360AdvertiserLinkProposals', () => { - it('invokes listDisplayVideo360AdvertiserLinkProposals without error', async () => { + describe('listCustomMetrics', () => { + it('invokes listCustomMetrics without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -16163,43 +17847,39 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', + '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), ]; - client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = - stubSimpleCall(expectedResponse); - const [response] = - await client.listDisplayVideo360AdvertiserLinkProposals(request); + client.innerApiCalls.listCustomMetrics = stubSimpleCall(expectedResponse); + const [response] = await client.listCustomMetrics(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls - .listDisplayVideo360AdvertiserLinkProposals as SinonStub + client.innerApiCalls.listCustomMetrics as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls - .listDisplayVideo360AdvertiserLinkProposals as SinonStub + client.innerApiCalls.listCustomMetrics as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDisplayVideo360AdvertiserLinkProposals without error using callback', async () => { + it('invokes listCustomMetrics without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -16207,34 +17887,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', + '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), ]; - client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = + client.innerApiCalls.listCustomMetrics = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listDisplayVideo360AdvertiserLinkProposals( + client.listCustomMetrics( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] + | protos.google.analytics.admin.v1alpha.ICustomMetric[] | null ) => { if (err) { @@ -16248,18 +17928,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls - .listDisplayVideo360AdvertiserLinkProposals as SinonStub + client.innerApiCalls.listCustomMetrics as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls - .listDisplayVideo360AdvertiserLinkProposals as SinonStub + client.innerApiCalls.listCustomMetrics as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDisplayVideo360AdvertiserLinkProposals with error', async () => { + it('invokes listCustomMetrics with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -16267,34 +17945,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', + '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals = - stubSimpleCall(undefined, expectedError); - await assert.rejects( - client.listDisplayVideo360AdvertiserLinkProposals(request), + client.innerApiCalls.listCustomMetrics = stubSimpleCall( + undefined, expectedError ); + await assert.rejects(client.listCustomMetrics(request), expectedError); const actualRequest = ( - client.innerApiCalls - .listDisplayVideo360AdvertiserLinkProposals as SinonStub + client.innerApiCalls.listCustomMetrics as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls - .listDisplayVideo360AdvertiserLinkProposals as SinonStub + client.innerApiCalls.listCustomMetrics as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDisplayVideo360AdvertiserLinkProposalsStream without error', async () => { + it('invokes listCustomMetricsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -16302,37 +17977,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', + '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), ]; - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream = + client.descriptors.page.listCustomMetrics.createStream = stubPageStreamingCall(expectedResponse); - const stream = - client.listDisplayVideo360AdvertiserLinkProposalsStream(request); + const stream = client.listCustomMetricsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal[] = + const responses: protos.google.analytics.admin.v1alpha.CustomMetric[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal - ) => { + (response: protos.google.analytics.admin.v1alpha.CustomMetric) => { responses.push(response); } ); @@ -16346,21 +18018,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .createStream as SinonStub - ) + (client.descriptors.page.listCustomMetrics.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals, - request - ) + .calledWith(client.innerApiCalls.listCustomMetrics, request) ); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .createStream as SinonStub - ) + (client.descriptors.page.listCustomMetrics.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -16368,7 +18031,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listDisplayVideo360AdvertiserLinkProposalsStream with error', async () => { + it('invokes listCustomMetricsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -16376,27 +18039,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', + '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.createStream = + client.descriptors.page.listCustomMetrics.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = - client.listDisplayVideo360AdvertiserLinkProposalsStream(request); + const stream = client.listCustomMetricsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal[] = + const responses: protos.google.analytics.admin.v1alpha.CustomMetric[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal - ) => { + (response: protos.google.analytics.admin.v1alpha.CustomMetric) => { responses.push(response); } ); @@ -16409,21 +18069,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .createStream as SinonStub - ) + (client.descriptors.page.listCustomMetrics.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listDisplayVideo360AdvertiserLinkProposals, - request - ) + .calledWith(client.innerApiCalls.listCustomMetrics, request) ); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .createStream as SinonStub - ) + (client.descriptors.page.listCustomMetrics.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -16431,7 +18082,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listDisplayVideo360AdvertiserLinkProposals without error', async () => { + it('uses async iteration with listCustomMetrics without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -16439,47 +18090,42 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', + '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal() + new protos.google.analytics.admin.v1alpha.CustomMetric() ), ]; - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate = + client.descriptors.page.listCustomMetrics.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] = + const responses: protos.google.analytics.admin.v1alpha.ICustomMetric[] = []; - const iterable = - client.listDisplayVideo360AdvertiserLinkProposalsAsync(request); + const iterable = client.listCustomMetricsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .asyncIterate as SinonStub + client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .asyncIterate as SinonStub - ) + (client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -16487,7 +18133,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listDisplayVideo360AdvertiserLinkProposals with error', async () => { + it('uses async iteration with listCustomMetrics with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -16495,21 +18141,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest() + new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest', + '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals.asyncIterate = + client.descriptors.page.listCustomMetrics.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = - client.listDisplayVideo360AdvertiserLinkProposalsAsync(request); + const iterable = client.listCustomMetricsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IDisplayVideo360AdvertiserLinkProposal[] = + const responses: protos.google.analytics.admin.v1alpha.ICustomMetric[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -16517,16 +18162,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .asyncIterate as SinonStub + client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.listDisplayVideo360AdvertiserLinkProposals - .asyncIterate as SinonStub - ) + (client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -16535,8 +18176,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listCustomDimensions', () => { - it('invokes listCustomDimensions without error', async () => { + describe('listDataStreams', () => { + it('invokes listDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -16544,40 +18185,39 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', + '.google.analytics.admin.v1alpha.ListDataStreamsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), ]; - client.innerApiCalls.listCustomDimensions = - stubSimpleCall(expectedResponse); - const [response] = await client.listCustomDimensions(request); + client.innerApiCalls.listDataStreams = stubSimpleCall(expectedResponse); + const [response] = await client.listDataStreams(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listCustomDimensions as SinonStub + client.innerApiCalls.listDataStreams as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomDimensions as SinonStub + client.innerApiCalls.listDataStreams as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomDimensions without error using callback', async () => { + it('invokes listDataStreams without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -16585,35 +18225,33 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', + '.google.analytics.admin.v1alpha.ListDataStreamsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), ]; - client.innerApiCalls.listCustomDimensions = + client.innerApiCalls.listDataStreams = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listCustomDimensions( + client.listDataStreams( request, ( err?: Error | null, - result?: - | protos.google.analytics.admin.v1alpha.ICustomDimension[] - | null + result?: protos.google.analytics.admin.v1alpha.IDataStream[] | null ) => { if (err) { reject(err); @@ -16626,16 +18264,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listCustomDimensions as SinonStub + client.innerApiCalls.listDataStreams as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomDimensions as SinonStub + client.innerApiCalls.listDataStreams as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomDimensions with error', async () => { + it('invokes listDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -16643,31 +18281,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', + '.google.analytics.admin.v1alpha.ListDataStreamsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listCustomDimensions = stubSimpleCall( + client.innerApiCalls.listDataStreams = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listCustomDimensions(request), expectedError); + await assert.rejects(client.listDataStreams(request), expectedError); const actualRequest = ( - client.innerApiCalls.listCustomDimensions as SinonStub + client.innerApiCalls.listDataStreams as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomDimensions as SinonStub + client.innerApiCalls.listDataStreams as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomDimensionsStream without error', async () => { + it('invokes listDataStreamsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -16675,34 +18313,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', + '.google.analytics.admin.v1alpha.ListDataStreamsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), ]; - client.descriptors.page.listCustomDimensions.createStream = + client.descriptors.page.listDataStreams.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listCustomDimensionsStream(request); + const stream = client.listDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.CustomDimension[] = + const responses: protos.google.analytics.admin.v1alpha.DataStream[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.CustomDimension) => { + (response: protos.google.analytics.admin.v1alpha.DataStream) => { responses.push(response); } ); @@ -16716,12 +18354,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listCustomDimensions.createStream as SinonStub) + (client.descriptors.page.listDataStreams.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listCustomDimensions, request) + .calledWith(client.innerApiCalls.listDataStreams, request) ); assert( - (client.descriptors.page.listCustomDimensions.createStream as SinonStub) + (client.descriptors.page.listDataStreams.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -16729,7 +18367,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listCustomDimensionsStream with error', async () => { + it('invokes listDataStreamsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -16737,24 +18375,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', + '.google.analytics.admin.v1alpha.ListDataStreamsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listCustomDimensions.createStream = + client.descriptors.page.listDataStreams.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listCustomDimensionsStream(request); + const stream = client.listDataStreamsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.CustomDimension[] = + const responses: protos.google.analytics.admin.v1alpha.DataStream[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.CustomDimension) => { + (response: protos.google.analytics.admin.v1alpha.DataStream) => { responses.push(response); } ); @@ -16767,12 +18405,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listCustomDimensions.createStream as SinonStub) + (client.descriptors.page.listDataStreams.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listCustomDimensions, request) + .calledWith(client.innerApiCalls.listDataStreams, request) ); assert( - (client.descriptors.page.listCustomDimensions.createStream as SinonStub) + (client.descriptors.page.listDataStreams.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -16780,7 +18418,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listCustomDimensions without error', async () => { + it('uses async iteration with listDataStreams without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -16788,42 +18426,41 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', + '.google.analytics.admin.v1alpha.ListDataStreamsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomDimension() + new protos.google.analytics.admin.v1alpha.DataStream() ), ]; - client.descriptors.page.listCustomDimensions.asyncIterate = + client.descriptors.page.listDataStreams.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.ICustomDimension[] = - []; - const iterable = client.listCustomDimensionsAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IDataStream[] = []; + const iterable = client.listDataStreamsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub + client.descriptors.page.listDataStreams.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub) + (client.descriptors.page.listDataStreams.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -16831,7 +18468,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listCustomDimensions with error', async () => { + it('uses async iteration with listDataStreams with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -16839,20 +18476,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomDimensionsRequest() + new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomDimensionsRequest', + '.google.analytics.admin.v1alpha.ListDataStreamsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listCustomDimensions.asyncIterate = + client.descriptors.page.listDataStreams.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listCustomDimensionsAsync(request); + const iterable = client.listDataStreamsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.ICustomDimension[] = + const responses: protos.google.analytics.admin.v1alpha.IDataStream[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -16860,12 +18497,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub + client.descriptors.page.listDataStreams.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listCustomDimensions.asyncIterate as SinonStub) + (client.descriptors.page.listDataStreams.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -16874,8 +18511,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listCustomMetrics', () => { - it('invokes listCustomMetrics without error', async () => { + describe('listAudiences', () => { + it('invokes listAudiences without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -16883,39 +18520,39 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', + '.google.analytics.admin.v1alpha.ListAudiencesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), ]; - client.innerApiCalls.listCustomMetrics = stubSimpleCall(expectedResponse); - const [response] = await client.listCustomMetrics(request); + client.innerApiCalls.listAudiences = stubSimpleCall(expectedResponse); + const [response] = await client.listAudiences(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listCustomMetrics as SinonStub + client.innerApiCalls.listAudiences as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomMetrics as SinonStub + client.innerApiCalls.listAudiences as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomMetrics without error using callback', async () => { + it('invokes listAudiences without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -16923,35 +18560,33 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', + '.google.analytics.admin.v1alpha.ListAudiencesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), ]; - client.innerApiCalls.listCustomMetrics = + client.innerApiCalls.listAudiences = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listCustomMetrics( + client.listAudiences( request, ( err?: Error | null, - result?: - | protos.google.analytics.admin.v1alpha.ICustomMetric[] - | null + result?: protos.google.analytics.admin.v1alpha.IAudience[] | null ) => { if (err) { reject(err); @@ -16964,16 +18599,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listCustomMetrics as SinonStub + client.innerApiCalls.listAudiences as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomMetrics as SinonStub + client.innerApiCalls.listAudiences as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomMetrics with error', async () => { + it('invokes listAudiences with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -16981,31 +18616,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', + '.google.analytics.admin.v1alpha.ListAudiencesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listCustomMetrics = stubSimpleCall( + client.innerApiCalls.listAudiences = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listCustomMetrics(request), expectedError); + await assert.rejects(client.listAudiences(request), expectedError); const actualRequest = ( - client.innerApiCalls.listCustomMetrics as SinonStub + client.innerApiCalls.listAudiences as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomMetrics as SinonStub + client.innerApiCalls.listAudiences as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomMetricsStream without error', async () => { + it('invokes listAudiencesStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -17013,34 +18648,33 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', + '.google.analytics.admin.v1alpha.ListAudiencesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), ]; - client.descriptors.page.listCustomMetrics.createStream = + client.descriptors.page.listAudiences.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listCustomMetricsStream(request); + const stream = client.listAudiencesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.CustomMetric[] = - []; + const responses: protos.google.analytics.admin.v1alpha.Audience[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.CustomMetric) => { + (response: protos.google.analytics.admin.v1alpha.Audience) => { responses.push(response); } ); @@ -17054,12 +18688,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listCustomMetrics.createStream as SinonStub) + (client.descriptors.page.listAudiences.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listCustomMetrics, request) + .calledWith(client.innerApiCalls.listAudiences, request) ); assert( - (client.descriptors.page.listCustomMetrics.createStream as SinonStub) + (client.descriptors.page.listAudiences.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -17067,7 +18701,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listCustomMetricsStream with error', async () => { + it('invokes listAudiencesStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -17075,24 +18709,23 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', + '.google.analytics.admin.v1alpha.ListAudiencesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listCustomMetrics.createStream = + client.descriptors.page.listAudiences.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listCustomMetricsStream(request); + const stream = client.listAudiencesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.CustomMetric[] = - []; + const responses: protos.google.analytics.admin.v1alpha.Audience[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.CustomMetric) => { + (response: protos.google.analytics.admin.v1alpha.Audience) => { responses.push(response); } ); @@ -17105,12 +18738,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listCustomMetrics.createStream as SinonStub) + (client.descriptors.page.listAudiences.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listCustomMetrics, request) + .calledWith(client.innerApiCalls.listAudiences, request) ); assert( - (client.descriptors.page.listCustomMetrics.createStream as SinonStub) + (client.descriptors.page.listAudiences.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -17118,7 +18751,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listCustomMetrics without error', async () => { + it('uses async iteration with listAudiences without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -17126,42 +18759,41 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', + '.google.analytics.admin.v1alpha.ListAudiencesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.CustomMetric() + new protos.google.analytics.admin.v1alpha.Audience() ), ]; - client.descriptors.page.listCustomMetrics.asyncIterate = + client.descriptors.page.listAudiences.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.ICustomMetric[] = - []; - const iterable = client.listCustomMetricsAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IAudience[] = []; + const iterable = client.listAudiencesAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub + client.descriptors.page.listAudiences.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub) + (client.descriptors.page.listAudiences.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -17169,7 +18801,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listCustomMetrics with error', async () => { + it('uses async iteration with listAudiences with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -17177,33 +18809,32 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListCustomMetricsRequest() + new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListCustomMetricsRequest', + '.google.analytics.admin.v1alpha.ListAudiencesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listCustomMetrics.asyncIterate = + client.descriptors.page.listAudiences.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listCustomMetricsAsync(request); + const iterable = client.listAudiencesAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.ICustomMetric[] = - []; + const responses: protos.google.analytics.admin.v1alpha.IAudience[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub + client.descriptors.page.listAudiences.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listCustomMetrics.asyncIterate as SinonStub) + (client.descriptors.page.listAudiences.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -17212,8 +18843,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listDataStreams', () => { - it('invokes listDataStreams without error', async () => { + describe('listSearchAds360Links', () => { + it('invokes listSearchAds360Links without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -17221,39 +18852,40 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDataStreamsRequest', + '.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), ]; - client.innerApiCalls.listDataStreams = stubSimpleCall(expectedResponse); - const [response] = await client.listDataStreams(request); + client.innerApiCalls.listSearchAds360Links = + stubSimpleCall(expectedResponse); + const [response] = await client.listSearchAds360Links(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listDataStreams as SinonStub + client.innerApiCalls.listSearchAds360Links as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDataStreams as SinonStub + client.innerApiCalls.listSearchAds360Links as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDataStreams without error using callback', async () => { + it('invokes listSearchAds360Links without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -17261,33 +18893,35 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDataStreamsRequest', + '.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), ]; - client.innerApiCalls.listDataStreams = + client.innerApiCalls.listSearchAds360Links = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listDataStreams( + client.listSearchAds360Links( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IDataStream[] | null + result?: + | protos.google.analytics.admin.v1alpha.ISearchAds360Link[] + | null ) => { if (err) { reject(err); @@ -17300,16 +18934,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listDataStreams as SinonStub + client.innerApiCalls.listSearchAds360Links as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDataStreams as SinonStub + client.innerApiCalls.listSearchAds360Links as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDataStreams with error', async () => { + it('invokes listSearchAds360Links with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -17317,31 +18951,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDataStreamsRequest', + '.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listDataStreams = stubSimpleCall( + client.innerApiCalls.listSearchAds360Links = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listDataStreams(request), expectedError); + await assert.rejects( + client.listSearchAds360Links(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.listDataStreams as SinonStub + client.innerApiCalls.listSearchAds360Links as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDataStreams as SinonStub + client.innerApiCalls.listSearchAds360Links as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDataStreamsStream without error', async () => { + it('invokes listSearchAds360LinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -17349,34 +18986,36 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDataStreamsRequest', + '.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), ]; - client.descriptors.page.listDataStreams.createStream = + client.descriptors.page.listSearchAds360Links.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listDataStreamsStream(request); + const stream = client.listSearchAds360LinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.DataStream[] = + const responses: protos.google.analytics.admin.v1alpha.SearchAds360Link[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.DataStream) => { + ( + response: protos.google.analytics.admin.v1alpha.SearchAds360Link + ) => { responses.push(response); } ); @@ -17390,12 +19029,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listDataStreams.createStream as SinonStub) + ( + client.descriptors.page.listSearchAds360Links + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listDataStreams, request) + .calledWith(client.innerApiCalls.listSearchAds360Links, request) ); assert( - (client.descriptors.page.listDataStreams.createStream as SinonStub) + ( + client.descriptors.page.listSearchAds360Links + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -17403,7 +19048,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listDataStreamsStream with error', async () => { + it('invokes listSearchAds360LinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -17411,24 +19056,26 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDataStreamsRequest', + '.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listDataStreams.createStream = + client.descriptors.page.listSearchAds360Links.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listDataStreamsStream(request); + const stream = client.listSearchAds360LinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.DataStream[] = + const responses: protos.google.analytics.admin.v1alpha.SearchAds360Link[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.DataStream) => { + ( + response: protos.google.analytics.admin.v1alpha.SearchAds360Link + ) => { responses.push(response); } ); @@ -17441,12 +19088,18 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listDataStreams.createStream as SinonStub) + ( + client.descriptors.page.listSearchAds360Links + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listDataStreams, request) + .calledWith(client.innerApiCalls.listSearchAds360Links, request) ); assert( - (client.descriptors.page.listDataStreams.createStream as SinonStub) + ( + client.descriptors.page.listSearchAds360Links + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -17454,7 +19107,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listDataStreams without error', async () => { + it('uses async iteration with listSearchAds360Links without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -17462,41 +19115,46 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDataStreamsRequest', + '.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.DataStream() + new protos.google.analytics.admin.v1alpha.SearchAds360Link() ), ]; - client.descriptors.page.listDataStreams.asyncIterate = + client.descriptors.page.listSearchAds360Links.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IDataStream[] = []; - const iterable = client.listDataStreamsAsync(request); + const responses: protos.google.analytics.admin.v1alpha.ISearchAds360Link[] = + []; + const iterable = client.listSearchAds360LinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listDataStreams.asyncIterate as SinonStub + client.descriptors.page.listSearchAds360Links + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listDataStreams.asyncIterate as SinonStub) + ( + client.descriptors.page.listSearchAds360Links + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -17504,7 +19162,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listDataStreams with error', async () => { + it('uses async iteration with listSearchAds360Links with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -17512,20 +19170,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListDataStreamsRequest() + new protos.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListDataStreamsRequest', + '.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listDataStreams.asyncIterate = + client.descriptors.page.listSearchAds360Links.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listDataStreamsAsync(request); + const iterable = client.listSearchAds360LinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IDataStream[] = + const responses: protos.google.analytics.admin.v1alpha.ISearchAds360Link[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -17533,12 +19191,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listDataStreams.asyncIterate as SinonStub + client.descriptors.page.listSearchAds360Links + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listDataStreams.asyncIterate as SinonStub) + ( + client.descriptors.page.listSearchAds360Links + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -17547,8 +19209,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listAudiences', () => { - it('invokes listAudiences without error', async () => { + describe('listAccessBindings', () => { + it('invokes listAccessBindings without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -17556,39 +19218,40 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() + new protos.google.analytics.admin.v1alpha.ListAccessBindingsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListAudiencesRequest', + '.google.analytics.admin.v1alpha.ListAccessBindingsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.AccessBinding() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.AccessBinding() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.AccessBinding() ), ]; - client.innerApiCalls.listAudiences = stubSimpleCall(expectedResponse); - const [response] = await client.listAudiences(request); + client.innerApiCalls.listAccessBindings = + stubSimpleCall(expectedResponse); + const [response] = await client.listAccessBindings(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listAudiences as SinonStub + client.innerApiCalls.listAccessBindings as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listAudiences as SinonStub + client.innerApiCalls.listAccessBindings as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listAudiences without error using callback', async () => { + it('invokes listAccessBindings without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -17596,33 +19259,35 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() + new protos.google.analytics.admin.v1alpha.ListAccessBindingsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListAudiencesRequest', + '.google.analytics.admin.v1alpha.ListAccessBindingsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.AccessBinding() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.AccessBinding() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.AccessBinding() ), ]; - client.innerApiCalls.listAudiences = + client.innerApiCalls.listAccessBindings = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listAudiences( + client.listAccessBindings( request, ( err?: Error | null, - result?: protos.google.analytics.admin.v1alpha.IAudience[] | null + result?: + | protos.google.analytics.admin.v1alpha.IAccessBinding[] + | null ) => { if (err) { reject(err); @@ -17635,16 +19300,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listAudiences as SinonStub + client.innerApiCalls.listAccessBindings as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listAudiences as SinonStub + client.innerApiCalls.listAccessBindings as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listAudiences with error', async () => { + it('invokes listAccessBindings with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -17652,31 +19317,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() + new protos.google.analytics.admin.v1alpha.ListAccessBindingsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListAudiencesRequest', + '.google.analytics.admin.v1alpha.ListAccessBindingsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listAudiences = stubSimpleCall( + client.innerApiCalls.listAccessBindings = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listAudiences(request), expectedError); + await assert.rejects(client.listAccessBindings(request), expectedError); const actualRequest = ( - client.innerApiCalls.listAudiences as SinonStub + client.innerApiCalls.listAccessBindings as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listAudiences as SinonStub + client.innerApiCalls.listAccessBindings as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listAudiencesStream without error', async () => { + it('invokes listAccessBindingsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -17684,33 +19349,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() + new protos.google.analytics.admin.v1alpha.ListAccessBindingsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListAudiencesRequest', + '.google.analytics.admin.v1alpha.ListAccessBindingsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.AccessBinding() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.AccessBinding() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.AccessBinding() ), ]; - client.descriptors.page.listAudiences.createStream = + client.descriptors.page.listAccessBindings.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listAudiencesStream(request); + const stream = client.listAccessBindingsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Audience[] = []; + const responses: protos.google.analytics.admin.v1alpha.AccessBinding[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.Audience) => { + (response: protos.google.analytics.admin.v1alpha.AccessBinding) => { responses.push(response); } ); @@ -17724,12 +19390,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listAudiences.createStream as SinonStub) + (client.descriptors.page.listAccessBindings.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAudiences, request) + .calledWith(client.innerApiCalls.listAccessBindings, request) ); assert( - (client.descriptors.page.listAudiences.createStream as SinonStub) + (client.descriptors.page.listAccessBindings.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -17737,7 +19403,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listAudiencesStream with error', async () => { + it('invokes listAccessBindingsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -17745,23 +19411,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() + new protos.google.analytics.admin.v1alpha.ListAccessBindingsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListAudiencesRequest', + '.google.analytics.admin.v1alpha.ListAccessBindingsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listAudiences.createStream = + client.descriptors.page.listAccessBindings.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listAudiencesStream(request); + const stream = client.listAccessBindingsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.Audience[] = []; + const responses: protos.google.analytics.admin.v1alpha.AccessBinding[] = + []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.Audience) => { + (response: protos.google.analytics.admin.v1alpha.AccessBinding) => { responses.push(response); } ); @@ -17774,12 +19441,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listAudiences.createStream as SinonStub) + (client.descriptors.page.listAccessBindings.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAudiences, request) + .calledWith(client.innerApiCalls.listAccessBindings, request) ); assert( - (client.descriptors.page.listAudiences.createStream as SinonStub) + (client.descriptors.page.listAccessBindings.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -17787,7 +19454,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listAudiences without error', async () => { + it('uses async iteration with listAccessBindings without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -17795,41 +19462,42 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() + new protos.google.analytics.admin.v1alpha.ListAccessBindingsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListAudiencesRequest', + '.google.analytics.admin.v1alpha.ListAccessBindingsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.AccessBinding() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.AccessBinding() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.Audience() + new protos.google.analytics.admin.v1alpha.AccessBinding() ), ]; - client.descriptors.page.listAudiences.asyncIterate = + client.descriptors.page.listAccessBindings.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAudience[] = []; - const iterable = client.listAudiencesAsync(request); + const responses: protos.google.analytics.admin.v1alpha.IAccessBinding[] = + []; + const iterable = client.listAccessBindingsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listAudiences.asyncIterate as SinonStub + client.descriptors.page.listAccessBindings.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listAudiences.asyncIterate as SinonStub) + (client.descriptors.page.listAccessBindings.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -17837,7 +19505,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listAudiences with error', async () => { + it('uses async iteration with listAccessBindings with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -17845,32 +19513,33 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAudiencesRequest() + new protos.google.analytics.admin.v1alpha.ListAccessBindingsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListAudiencesRequest', + '.google.analytics.admin.v1alpha.ListAccessBindingsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listAudiences.asyncIterate = + client.descriptors.page.listAccessBindings.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAudiencesAsync(request); + const iterable = client.listAccessBindingsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAudience[] = []; + const responses: protos.google.analytics.admin.v1alpha.IAccessBinding[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listAudiences.asyncIterate as SinonStub + client.descriptors.page.listAccessBindings.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listAudiences.asyncIterate as SinonStub) + (client.descriptors.page.listAccessBindings.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -17879,8 +19548,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listSearchAds360Links', () => { - it('invokes listSearchAds360Links without error', async () => { + describe('listExpandedDataSets', () => { + it('invokes listExpandedDataSets without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -17888,40 +19557,40 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest() + new protos.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest', + '.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchAds360Link() + new protos.google.analytics.admin.v1alpha.ExpandedDataSet() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchAds360Link() + new protos.google.analytics.admin.v1alpha.ExpandedDataSet() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchAds360Link() + new protos.google.analytics.admin.v1alpha.ExpandedDataSet() ), ]; - client.innerApiCalls.listSearchAds360Links = + client.innerApiCalls.listExpandedDataSets = stubSimpleCall(expectedResponse); - const [response] = await client.listSearchAds360Links(request); + const [response] = await client.listExpandedDataSets(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listSearchAds360Links as SinonStub + client.innerApiCalls.listExpandedDataSets as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listSearchAds360Links as SinonStub + client.innerApiCalls.listExpandedDataSets as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listSearchAds360Links without error using callback', async () => { + it('invokes listExpandedDataSets without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -17929,34 +19598,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest() + new protos.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest', + '.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchAds360Link() + new protos.google.analytics.admin.v1alpha.ExpandedDataSet() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchAds360Link() + new protos.google.analytics.admin.v1alpha.ExpandedDataSet() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchAds360Link() + new protos.google.analytics.admin.v1alpha.ExpandedDataSet() ), ]; - client.innerApiCalls.listSearchAds360Links = + client.innerApiCalls.listExpandedDataSets = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listSearchAds360Links( + client.listExpandedDataSets( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.ISearchAds360Link[] + | protos.google.analytics.admin.v1alpha.IExpandedDataSet[] | null ) => { if (err) { @@ -17970,16 +19639,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listSearchAds360Links as SinonStub + client.innerApiCalls.listExpandedDataSets as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listSearchAds360Links as SinonStub + client.innerApiCalls.listExpandedDataSets as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listSearchAds360Links with error', async () => { + it('invokes listExpandedDataSets with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -17987,34 +19656,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest() + new protos.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest', + '.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listSearchAds360Links = stubSimpleCall( + client.innerApiCalls.listExpandedDataSets = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.listSearchAds360Links(request), - expectedError - ); + await assert.rejects(client.listExpandedDataSets(request), expectedError); const actualRequest = ( - client.innerApiCalls.listSearchAds360Links as SinonStub + client.innerApiCalls.listExpandedDataSets as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listSearchAds360Links as SinonStub + client.innerApiCalls.listExpandedDataSets as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listSearchAds360LinksStream without error', async () => { + it('invokes listExpandedDataSetsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -18022,36 +19688,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest() + new protos.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest', + '.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchAds360Link() + new protos.google.analytics.admin.v1alpha.ExpandedDataSet() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchAds360Link() + new protos.google.analytics.admin.v1alpha.ExpandedDataSet() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchAds360Link() + new protos.google.analytics.admin.v1alpha.ExpandedDataSet() ), ]; - client.descriptors.page.listSearchAds360Links.createStream = + client.descriptors.page.listExpandedDataSets.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listSearchAds360LinksStream(request); + const stream = client.listExpandedDataSetsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.SearchAds360Link[] = + const responses: protos.google.analytics.admin.v1alpha.ExpandedDataSet[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.SearchAds360Link - ) => { + (response: protos.google.analytics.admin.v1alpha.ExpandedDataSet) => { responses.push(response); } ); @@ -18065,18 +19729,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.listSearchAds360Links - .createStream as SinonStub - ) + (client.descriptors.page.listExpandedDataSets.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listSearchAds360Links, request) + .calledWith(client.innerApiCalls.listExpandedDataSets, request) ); assert( - ( - client.descriptors.page.listSearchAds360Links - .createStream as SinonStub - ) + (client.descriptors.page.listExpandedDataSets.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -18084,7 +19742,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listSearchAds360LinksStream with error', async () => { + it('invokes listExpandedDataSetsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -18092,26 +19750,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest() + new protos.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest', + '.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listSearchAds360Links.createStream = + client.descriptors.page.listExpandedDataSets.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listSearchAds360LinksStream(request); + const stream = client.listExpandedDataSetsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.SearchAds360Link[] = + const responses: protos.google.analytics.admin.v1alpha.ExpandedDataSet[] = []; stream.on( 'data', - ( - response: protos.google.analytics.admin.v1alpha.SearchAds360Link - ) => { + (response: protos.google.analytics.admin.v1alpha.ExpandedDataSet) => { responses.push(response); } ); @@ -18124,18 +19780,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.listSearchAds360Links - .createStream as SinonStub - ) + (client.descriptors.page.listExpandedDataSets.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listSearchAds360Links, request) + .calledWith(client.innerApiCalls.listExpandedDataSets, request) ); assert( - ( - client.descriptors.page.listSearchAds360Links - .createStream as SinonStub - ) + (client.descriptors.page.listExpandedDataSets.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -18143,7 +19793,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listSearchAds360Links without error', async () => { + it('uses async iteration with listExpandedDataSets without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -18151,46 +19801,42 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest() + new protos.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest', + '.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchAds360Link() + new protos.google.analytics.admin.v1alpha.ExpandedDataSet() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchAds360Link() + new protos.google.analytics.admin.v1alpha.ExpandedDataSet() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.SearchAds360Link() + new protos.google.analytics.admin.v1alpha.ExpandedDataSet() ), ]; - client.descriptors.page.listSearchAds360Links.asyncIterate = + client.descriptors.page.listExpandedDataSets.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.ISearchAds360Link[] = + const responses: protos.google.analytics.admin.v1alpha.IExpandedDataSet[] = []; - const iterable = client.listSearchAds360LinksAsync(request); + const iterable = client.listExpandedDataSetsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listSearchAds360Links - .asyncIterate as SinonStub + client.descriptors.page.listExpandedDataSets.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.listSearchAds360Links - .asyncIterate as SinonStub - ) + (client.descriptors.page.listExpandedDataSets.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -18198,7 +19844,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listSearchAds360Links with error', async () => { + it('uses async iteration with listExpandedDataSets with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -18206,20 +19852,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest() + new protos.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest', + '.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listSearchAds360Links.asyncIterate = + client.descriptors.page.listExpandedDataSets.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listSearchAds360LinksAsync(request); + const iterable = client.listExpandedDataSetsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.ISearchAds360Link[] = + const responses: protos.google.analytics.admin.v1alpha.IExpandedDataSet[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -18227,16 +19873,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listSearchAds360Links - .asyncIterate as SinonStub + client.descriptors.page.listExpandedDataSets.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.listSearchAds360Links - .asyncIterate as SinonStub - ) + (client.descriptors.page.listExpandedDataSets.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -18245,8 +19887,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listAccessBindings', () => { - it('invokes listAccessBindings without error', async () => { + describe('listChannelGroups', () => { + it('invokes listChannelGroups without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -18254,40 +19896,39 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccessBindingsRequest() + new protos.google.analytics.admin.v1alpha.ListChannelGroupsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListAccessBindingsRequest', + '.google.analytics.admin.v1alpha.ListChannelGroupsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccessBinding() + new protos.google.analytics.admin.v1alpha.ChannelGroup() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccessBinding() + new protos.google.analytics.admin.v1alpha.ChannelGroup() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccessBinding() + new protos.google.analytics.admin.v1alpha.ChannelGroup() ), ]; - client.innerApiCalls.listAccessBindings = - stubSimpleCall(expectedResponse); - const [response] = await client.listAccessBindings(request); + client.innerApiCalls.listChannelGroups = stubSimpleCall(expectedResponse); + const [response] = await client.listChannelGroups(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listAccessBindings as SinonStub + client.innerApiCalls.listChannelGroups as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listAccessBindings as SinonStub + client.innerApiCalls.listChannelGroups as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listAccessBindings without error using callback', async () => { + it('invokes listChannelGroups without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -18295,34 +19936,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccessBindingsRequest() + new protos.google.analytics.admin.v1alpha.ListChannelGroupsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListAccessBindingsRequest', + '.google.analytics.admin.v1alpha.ListChannelGroupsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccessBinding() + new protos.google.analytics.admin.v1alpha.ChannelGroup() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccessBinding() + new protos.google.analytics.admin.v1alpha.ChannelGroup() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccessBinding() + new protos.google.analytics.admin.v1alpha.ChannelGroup() ), ]; - client.innerApiCalls.listAccessBindings = + client.innerApiCalls.listChannelGroups = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listAccessBindings( + client.listChannelGroups( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IAccessBinding[] + | protos.google.analytics.admin.v1alpha.IChannelGroup[] | null ) => { if (err) { @@ -18336,16 +19977,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listAccessBindings as SinonStub + client.innerApiCalls.listChannelGroups as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listAccessBindings as SinonStub + client.innerApiCalls.listChannelGroups as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listAccessBindings with error', async () => { + it('invokes listChannelGroups with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -18353,31 +19994,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccessBindingsRequest() + new protos.google.analytics.admin.v1alpha.ListChannelGroupsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListAccessBindingsRequest', + '.google.analytics.admin.v1alpha.ListChannelGroupsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listAccessBindings = stubSimpleCall( + client.innerApiCalls.listChannelGroups = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listAccessBindings(request), expectedError); + await assert.rejects(client.listChannelGroups(request), expectedError); const actualRequest = ( - client.innerApiCalls.listAccessBindings as SinonStub + client.innerApiCalls.listChannelGroups as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listAccessBindings as SinonStub + client.innerApiCalls.listChannelGroups as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listAccessBindingsStream without error', async () => { + it('invokes listChannelGroupsStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -18385,34 +20026,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccessBindingsRequest() + new protos.google.analytics.admin.v1alpha.ListChannelGroupsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListAccessBindingsRequest', + '.google.analytics.admin.v1alpha.ListChannelGroupsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccessBinding() + new protos.google.analytics.admin.v1alpha.ChannelGroup() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccessBinding() + new protos.google.analytics.admin.v1alpha.ChannelGroup() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccessBinding() + new protos.google.analytics.admin.v1alpha.ChannelGroup() ), ]; - client.descriptors.page.listAccessBindings.createStream = + client.descriptors.page.listChannelGroups.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listAccessBindingsStream(request); + const stream = client.listChannelGroupsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AccessBinding[] = + const responses: protos.google.analytics.admin.v1alpha.ChannelGroup[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AccessBinding) => { + (response: protos.google.analytics.admin.v1alpha.ChannelGroup) => { responses.push(response); } ); @@ -18426,12 +20067,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listAccessBindings.createStream as SinonStub) + (client.descriptors.page.listChannelGroups.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccessBindings, request) + .calledWith(client.innerApiCalls.listChannelGroups, request) ); assert( - (client.descriptors.page.listAccessBindings.createStream as SinonStub) + (client.descriptors.page.listChannelGroups.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -18439,7 +20080,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listAccessBindingsStream with error', async () => { + it('invokes listChannelGroupsStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -18447,24 +20088,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccessBindingsRequest() + new protos.google.analytics.admin.v1alpha.ListChannelGroupsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListAccessBindingsRequest', + '.google.analytics.admin.v1alpha.ListChannelGroupsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listAccessBindings.createStream = + client.descriptors.page.listChannelGroups.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listAccessBindingsStream(request); + const stream = client.listChannelGroupsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.AccessBinding[] = + const responses: protos.google.analytics.admin.v1alpha.ChannelGroup[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.AccessBinding) => { + (response: protos.google.analytics.admin.v1alpha.ChannelGroup) => { responses.push(response); } ); @@ -18477,12 +20118,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listAccessBindings.createStream as SinonStub) + (client.descriptors.page.listChannelGroups.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAccessBindings, request) + .calledWith(client.innerApiCalls.listChannelGroups, request) ); assert( - (client.descriptors.page.listAccessBindings.createStream as SinonStub) + (client.descriptors.page.listChannelGroups.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -18490,7 +20131,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listAccessBindings without error', async () => { + it('uses async iteration with listChannelGroups without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -18498,42 +20139,42 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccessBindingsRequest() + new protos.google.analytics.admin.v1alpha.ListChannelGroupsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListAccessBindingsRequest', + '.google.analytics.admin.v1alpha.ListChannelGroupsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccessBinding() + new protos.google.analytics.admin.v1alpha.ChannelGroup() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccessBinding() + new protos.google.analytics.admin.v1alpha.ChannelGroup() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.AccessBinding() + new protos.google.analytics.admin.v1alpha.ChannelGroup() ), ]; - client.descriptors.page.listAccessBindings.asyncIterate = + client.descriptors.page.listChannelGroups.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IAccessBinding[] = + const responses: protos.google.analytics.admin.v1alpha.IChannelGroup[] = []; - const iterable = client.listAccessBindingsAsync(request); + const iterable = client.listChannelGroupsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listAccessBindings.asyncIterate as SinonStub + client.descriptors.page.listChannelGroups.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listAccessBindings.asyncIterate as SinonStub) + (client.descriptors.page.listChannelGroups.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -18541,7 +20182,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listAccessBindings with error', async () => { + it('uses async iteration with listChannelGroups with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -18549,20 +20190,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListAccessBindingsRequest() + new protos.google.analytics.admin.v1alpha.ListChannelGroupsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListAccessBindingsRequest', + '.google.analytics.admin.v1alpha.ListChannelGroupsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listAccessBindings.asyncIterate = + client.descriptors.page.listChannelGroups.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAccessBindingsAsync(request); + const iterable = client.listChannelGroupsAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IAccessBinding[] = + const responses: protos.google.analytics.admin.v1alpha.IChannelGroup[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -18570,12 +20211,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listAccessBindings.asyncIterate as SinonStub + client.descriptors.page.listChannelGroups.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listAccessBindings.asyncIterate as SinonStub) + (client.descriptors.page.listChannelGroups.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -18584,8 +20225,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listExpandedDataSets', () => { - it('invokes listExpandedDataSets without error', async () => { + describe('listBigQueryLinks', () => { + it('invokes listBigQueryLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -18593,40 +20234,39 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest() + new protos.google.analytics.admin.v1alpha.ListBigQueryLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest', + '.google.analytics.admin.v1alpha.ListBigQueryLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ExpandedDataSet() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ExpandedDataSet() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ExpandedDataSet() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), ]; - client.innerApiCalls.listExpandedDataSets = - stubSimpleCall(expectedResponse); - const [response] = await client.listExpandedDataSets(request); + client.innerApiCalls.listBigQueryLinks = stubSimpleCall(expectedResponse); + const [response] = await client.listBigQueryLinks(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listExpandedDataSets as SinonStub + client.innerApiCalls.listBigQueryLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listExpandedDataSets as SinonStub + client.innerApiCalls.listBigQueryLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listExpandedDataSets without error using callback', async () => { + it('invokes listBigQueryLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -18634,34 +20274,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest() + new protos.google.analytics.admin.v1alpha.ListBigQueryLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest', + '.google.analytics.admin.v1alpha.ListBigQueryLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ExpandedDataSet() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ExpandedDataSet() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ExpandedDataSet() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), ]; - client.innerApiCalls.listExpandedDataSets = + client.innerApiCalls.listBigQueryLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listExpandedDataSets( + client.listBigQueryLinks( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IExpandedDataSet[] + | protos.google.analytics.admin.v1alpha.IBigQueryLink[] | null ) => { if (err) { @@ -18675,16 +20315,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listExpandedDataSets as SinonStub + client.innerApiCalls.listBigQueryLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listExpandedDataSets as SinonStub + client.innerApiCalls.listBigQueryLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listExpandedDataSets with error', async () => { + it('invokes listBigQueryLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -18692,31 +20332,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest() + new protos.google.analytics.admin.v1alpha.ListBigQueryLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest', + '.google.analytics.admin.v1alpha.ListBigQueryLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listExpandedDataSets = stubSimpleCall( + client.innerApiCalls.listBigQueryLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listExpandedDataSets(request), expectedError); + await assert.rejects(client.listBigQueryLinks(request), expectedError); const actualRequest = ( - client.innerApiCalls.listExpandedDataSets as SinonStub + client.innerApiCalls.listBigQueryLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listExpandedDataSets as SinonStub + client.innerApiCalls.listBigQueryLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listExpandedDataSetsStream without error', async () => { + it('invokes listBigQueryLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -18724,34 +20364,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest() + new protos.google.analytics.admin.v1alpha.ListBigQueryLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest', + '.google.analytics.admin.v1alpha.ListBigQueryLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ExpandedDataSet() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ExpandedDataSet() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ExpandedDataSet() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), ]; - client.descriptors.page.listExpandedDataSets.createStream = + client.descriptors.page.listBigQueryLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listExpandedDataSetsStream(request); + const stream = client.listBigQueryLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ExpandedDataSet[] = + const responses: protos.google.analytics.admin.v1alpha.BigQueryLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.ExpandedDataSet) => { + (response: protos.google.analytics.admin.v1alpha.BigQueryLink) => { responses.push(response); } ); @@ -18765,12 +20405,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listExpandedDataSets.createStream as SinonStub) + (client.descriptors.page.listBigQueryLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listExpandedDataSets, request) + .calledWith(client.innerApiCalls.listBigQueryLinks, request) ); assert( - (client.descriptors.page.listExpandedDataSets.createStream as SinonStub) + (client.descriptors.page.listBigQueryLinks.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -18778,7 +20418,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listExpandedDataSetsStream with error', async () => { + it('invokes listBigQueryLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -18786,24 +20426,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest() + new protos.google.analytics.admin.v1alpha.ListBigQueryLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest', + '.google.analytics.admin.v1alpha.ListBigQueryLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listExpandedDataSets.createStream = + client.descriptors.page.listBigQueryLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listExpandedDataSetsStream(request); + const stream = client.listBigQueryLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ExpandedDataSet[] = + const responses: protos.google.analytics.admin.v1alpha.BigQueryLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.ExpandedDataSet) => { + (response: protos.google.analytics.admin.v1alpha.BigQueryLink) => { responses.push(response); } ); @@ -18816,12 +20456,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listExpandedDataSets.createStream as SinonStub) + (client.descriptors.page.listBigQueryLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listExpandedDataSets, request) + .calledWith(client.innerApiCalls.listBigQueryLinks, request) ); assert( - (client.descriptors.page.listExpandedDataSets.createStream as SinonStub) + (client.descriptors.page.listBigQueryLinks.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -18829,7 +20469,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listExpandedDataSets without error', async () => { + it('uses async iteration with listBigQueryLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -18837,42 +20477,42 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest() + new protos.google.analytics.admin.v1alpha.ListBigQueryLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest', + '.google.analytics.admin.v1alpha.ListBigQueryLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ExpandedDataSet() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ExpandedDataSet() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ExpandedDataSet() + new protos.google.analytics.admin.v1alpha.BigQueryLink() ), ]; - client.descriptors.page.listExpandedDataSets.asyncIterate = + client.descriptors.page.listBigQueryLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IExpandedDataSet[] = + const responses: protos.google.analytics.admin.v1alpha.IBigQueryLink[] = []; - const iterable = client.listExpandedDataSetsAsync(request); + const iterable = client.listBigQueryLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listExpandedDataSets.asyncIterate as SinonStub + client.descriptors.page.listBigQueryLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listExpandedDataSets.asyncIterate as SinonStub) + (client.descriptors.page.listBigQueryLinks.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -18880,7 +20520,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listExpandedDataSets with error', async () => { + it('uses async iteration with listBigQueryLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -18888,20 +20528,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest() + new protos.google.analytics.admin.v1alpha.ListBigQueryLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest', + '.google.analytics.admin.v1alpha.ListBigQueryLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listExpandedDataSets.asyncIterate = + client.descriptors.page.listBigQueryLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listExpandedDataSetsAsync(request); + const iterable = client.listBigQueryLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IExpandedDataSet[] = + const responses: protos.google.analytics.admin.v1alpha.IBigQueryLink[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -18909,12 +20549,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listExpandedDataSets.asyncIterate as SinonStub + client.descriptors.page.listBigQueryLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listExpandedDataSets.asyncIterate as SinonStub) + (client.descriptors.page.listBigQueryLinks.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -18923,8 +20563,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listChannelGroups', () => { - it('invokes listChannelGroups without error', async () => { + describe('listAdSenseLinks', () => { + it('invokes listAdSenseLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -18932,39 +20572,39 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListChannelGroupsRequest() + new protos.google.analytics.admin.v1alpha.ListAdSenseLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListChannelGroupsRequest', + '.google.analytics.admin.v1alpha.ListAdSenseLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChannelGroup() + new protos.google.analytics.admin.v1alpha.AdSenseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChannelGroup() + new protos.google.analytics.admin.v1alpha.AdSenseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChannelGroup() + new protos.google.analytics.admin.v1alpha.AdSenseLink() ), ]; - client.innerApiCalls.listChannelGroups = stubSimpleCall(expectedResponse); - const [response] = await client.listChannelGroups(request); + client.innerApiCalls.listAdSenseLinks = stubSimpleCall(expectedResponse); + const [response] = await client.listAdSenseLinks(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listChannelGroups as SinonStub + client.innerApiCalls.listAdSenseLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listChannelGroups as SinonStub + client.innerApiCalls.listAdSenseLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listChannelGroups without error using callback', async () => { + it('invokes listAdSenseLinks without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -18972,35 +20612,33 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListChannelGroupsRequest() + new protos.google.analytics.admin.v1alpha.ListAdSenseLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListChannelGroupsRequest', + '.google.analytics.admin.v1alpha.ListAdSenseLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChannelGroup() + new protos.google.analytics.admin.v1alpha.AdSenseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChannelGroup() + new protos.google.analytics.admin.v1alpha.AdSenseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChannelGroup() + new protos.google.analytics.admin.v1alpha.AdSenseLink() ), ]; - client.innerApiCalls.listChannelGroups = + client.innerApiCalls.listAdSenseLinks = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listChannelGroups( + client.listAdSenseLinks( request, ( err?: Error | null, - result?: - | protos.google.analytics.admin.v1alpha.IChannelGroup[] - | null + result?: protos.google.analytics.admin.v1alpha.IAdSenseLink[] | null ) => { if (err) { reject(err); @@ -19013,16 +20651,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listChannelGroups as SinonStub + client.innerApiCalls.listAdSenseLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listChannelGroups as SinonStub + client.innerApiCalls.listAdSenseLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listChannelGroups with error', async () => { + it('invokes listAdSenseLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -19030,31 +20668,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListChannelGroupsRequest() + new protos.google.analytics.admin.v1alpha.ListAdSenseLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListChannelGroupsRequest', + '.google.analytics.admin.v1alpha.ListAdSenseLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listChannelGroups = stubSimpleCall( + client.innerApiCalls.listAdSenseLinks = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listChannelGroups(request), expectedError); + await assert.rejects(client.listAdSenseLinks(request), expectedError); const actualRequest = ( - client.innerApiCalls.listChannelGroups as SinonStub + client.innerApiCalls.listAdSenseLinks as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listChannelGroups as SinonStub + client.innerApiCalls.listAdSenseLinks as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listChannelGroupsStream without error', async () => { + it('invokes listAdSenseLinksStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -19062,34 +20700,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListChannelGroupsRequest() + new protos.google.analytics.admin.v1alpha.ListAdSenseLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListChannelGroupsRequest', + '.google.analytics.admin.v1alpha.ListAdSenseLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChannelGroup() + new protos.google.analytics.admin.v1alpha.AdSenseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChannelGroup() + new protos.google.analytics.admin.v1alpha.AdSenseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChannelGroup() + new protos.google.analytics.admin.v1alpha.AdSenseLink() ), ]; - client.descriptors.page.listChannelGroups.createStream = + client.descriptors.page.listAdSenseLinks.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listChannelGroupsStream(request); + const stream = client.listAdSenseLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ChannelGroup[] = + const responses: protos.google.analytics.admin.v1alpha.AdSenseLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.ChannelGroup) => { + (response: protos.google.analytics.admin.v1alpha.AdSenseLink) => { responses.push(response); } ); @@ -19103,12 +20741,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listChannelGroups.createStream as SinonStub) + (client.descriptors.page.listAdSenseLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listChannelGroups, request) + .calledWith(client.innerApiCalls.listAdSenseLinks, request) ); assert( - (client.descriptors.page.listChannelGroups.createStream as SinonStub) + (client.descriptors.page.listAdSenseLinks.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -19116,7 +20754,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listChannelGroupsStream with error', async () => { + it('invokes listAdSenseLinksStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -19124,24 +20762,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListChannelGroupsRequest() + new protos.google.analytics.admin.v1alpha.ListAdSenseLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListChannelGroupsRequest', + '.google.analytics.admin.v1alpha.ListAdSenseLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listChannelGroups.createStream = + client.descriptors.page.listAdSenseLinks.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listChannelGroupsStream(request); + const stream = client.listAdSenseLinksStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.ChannelGroup[] = + const responses: protos.google.analytics.admin.v1alpha.AdSenseLink[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.ChannelGroup) => { + (response: protos.google.analytics.admin.v1alpha.AdSenseLink) => { responses.push(response); } ); @@ -19154,12 +20792,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listChannelGroups.createStream as SinonStub) + (client.descriptors.page.listAdSenseLinks.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listChannelGroups, request) + .calledWith(client.innerApiCalls.listAdSenseLinks, request) ); assert( - (client.descriptors.page.listChannelGroups.createStream as SinonStub) + (client.descriptors.page.listAdSenseLinks.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -19167,7 +20805,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listChannelGroups without error', async () => { + it('uses async iteration with listAdSenseLinks without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -19175,42 +20813,42 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListChannelGroupsRequest() + new protos.google.analytics.admin.v1alpha.ListAdSenseLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListChannelGroupsRequest', + '.google.analytics.admin.v1alpha.ListAdSenseLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChannelGroup() + new protos.google.analytics.admin.v1alpha.AdSenseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChannelGroup() + new protos.google.analytics.admin.v1alpha.AdSenseLink() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ChannelGroup() + new protos.google.analytics.admin.v1alpha.AdSenseLink() ), ]; - client.descriptors.page.listChannelGroups.asyncIterate = + client.descriptors.page.listAdSenseLinks.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IChannelGroup[] = + const responses: protos.google.analytics.admin.v1alpha.IAdSenseLink[] = []; - const iterable = client.listChannelGroupsAsync(request); + const iterable = client.listAdSenseLinksAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listChannelGroups.asyncIterate as SinonStub + client.descriptors.page.listAdSenseLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listChannelGroups.asyncIterate as SinonStub) + (client.descriptors.page.listAdSenseLinks.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -19218,7 +20856,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listChannelGroups with error', async () => { + it('uses async iteration with listAdSenseLinks with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -19226,20 +20864,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListChannelGroupsRequest() + new protos.google.analytics.admin.v1alpha.ListAdSenseLinksRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListChannelGroupsRequest', + '.google.analytics.admin.v1alpha.ListAdSenseLinksRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listChannelGroups.asyncIterate = + client.descriptors.page.listAdSenseLinks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listChannelGroupsAsync(request); + const iterable = client.listAdSenseLinksAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IChannelGroup[] = + const responses: protos.google.analytics.admin.v1alpha.IAdSenseLink[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -19247,12 +20885,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listChannelGroups.asyncIterate as SinonStub + client.descriptors.page.listAdSenseLinks.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listChannelGroups.asyncIterate as SinonStub) + (client.descriptors.page.listAdSenseLinks.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -19261,8 +20899,8 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); - describe('listBigQueryLinks', () => { - it('invokes listBigQueryLinks without error', async () => { + describe('listEventCreateRules', () => { + it('invokes listEventCreateRules without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -19270,39 +20908,40 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListBigQueryLinksRequest() + new protos.google.analytics.admin.v1alpha.ListEventCreateRulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListBigQueryLinksRequest', + '.google.analytics.admin.v1alpha.ListEventCreateRulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.BigQueryLink() + new protos.google.analytics.admin.v1alpha.EventCreateRule() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.BigQueryLink() + new protos.google.analytics.admin.v1alpha.EventCreateRule() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.BigQueryLink() + new protos.google.analytics.admin.v1alpha.EventCreateRule() ), ]; - client.innerApiCalls.listBigQueryLinks = stubSimpleCall(expectedResponse); - const [response] = await client.listBigQueryLinks(request); + client.innerApiCalls.listEventCreateRules = + stubSimpleCall(expectedResponse); + const [response] = await client.listEventCreateRules(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listBigQueryLinks as SinonStub + client.innerApiCalls.listEventCreateRules as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listBigQueryLinks as SinonStub + client.innerApiCalls.listEventCreateRules as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listBigQueryLinks without error using callback', async () => { + it('invokes listEventCreateRules without error using callback', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -19310,34 +20949,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListBigQueryLinksRequest() + new protos.google.analytics.admin.v1alpha.ListEventCreateRulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListBigQueryLinksRequest', + '.google.analytics.admin.v1alpha.ListEventCreateRulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.BigQueryLink() + new protos.google.analytics.admin.v1alpha.EventCreateRule() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.BigQueryLink() + new protos.google.analytics.admin.v1alpha.EventCreateRule() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.BigQueryLink() + new protos.google.analytics.admin.v1alpha.EventCreateRule() ), ]; - client.innerApiCalls.listBigQueryLinks = + client.innerApiCalls.listEventCreateRules = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listBigQueryLinks( + client.listEventCreateRules( request, ( err?: Error | null, result?: - | protos.google.analytics.admin.v1alpha.IBigQueryLink[] + | protos.google.analytics.admin.v1alpha.IEventCreateRule[] | null ) => { if (err) { @@ -19351,16 +20990,16 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listBigQueryLinks as SinonStub + client.innerApiCalls.listEventCreateRules as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listBigQueryLinks as SinonStub + client.innerApiCalls.listEventCreateRules as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listBigQueryLinks with error', async () => { + it('invokes listEventCreateRules with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -19368,31 +21007,31 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListBigQueryLinksRequest() + new protos.google.analytics.admin.v1alpha.ListEventCreateRulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListBigQueryLinksRequest', + '.google.analytics.admin.v1alpha.ListEventCreateRulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listBigQueryLinks = stubSimpleCall( + client.innerApiCalls.listEventCreateRules = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listBigQueryLinks(request), expectedError); + await assert.rejects(client.listEventCreateRules(request), expectedError); const actualRequest = ( - client.innerApiCalls.listBigQueryLinks as SinonStub + client.innerApiCalls.listEventCreateRules as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listBigQueryLinks as SinonStub + client.innerApiCalls.listEventCreateRules as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listBigQueryLinksStream without error', async () => { + it('invokes listEventCreateRulesStream without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -19400,34 +21039,34 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListBigQueryLinksRequest() + new protos.google.analytics.admin.v1alpha.ListEventCreateRulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListBigQueryLinksRequest', + '.google.analytics.admin.v1alpha.ListEventCreateRulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.BigQueryLink() + new protos.google.analytics.admin.v1alpha.EventCreateRule() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.BigQueryLink() + new protos.google.analytics.admin.v1alpha.EventCreateRule() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.BigQueryLink() + new protos.google.analytics.admin.v1alpha.EventCreateRule() ), ]; - client.descriptors.page.listBigQueryLinks.createStream = + client.descriptors.page.listEventCreateRules.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listBigQueryLinksStream(request); + const stream = client.listEventCreateRulesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.BigQueryLink[] = + const responses: protos.google.analytics.admin.v1alpha.EventCreateRule[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.BigQueryLink) => { + (response: protos.google.analytics.admin.v1alpha.EventCreateRule) => { responses.push(response); } ); @@ -19441,12 +21080,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listBigQueryLinks.createStream as SinonStub) + (client.descriptors.page.listEventCreateRules.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listBigQueryLinks, request) + .calledWith(client.innerApiCalls.listEventCreateRules, request) ); assert( - (client.descriptors.page.listBigQueryLinks.createStream as SinonStub) + (client.descriptors.page.listEventCreateRules.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -19454,7 +21093,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('invokes listBigQueryLinksStream with error', async () => { + it('invokes listEventCreateRulesStream with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -19462,24 +21101,24 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListBigQueryLinksRequest() + new protos.google.analytics.admin.v1alpha.ListEventCreateRulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListBigQueryLinksRequest', + '.google.analytics.admin.v1alpha.ListEventCreateRulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listBigQueryLinks.createStream = + client.descriptors.page.listEventCreateRules.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listBigQueryLinksStream(request); + const stream = client.listEventCreateRulesStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.analytics.admin.v1alpha.BigQueryLink[] = + const responses: protos.google.analytics.admin.v1alpha.EventCreateRule[] = []; stream.on( 'data', - (response: protos.google.analytics.admin.v1alpha.BigQueryLink) => { + (response: protos.google.analytics.admin.v1alpha.EventCreateRule) => { responses.push(response); } ); @@ -19492,12 +21131,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listBigQueryLinks.createStream as SinonStub) + (client.descriptors.page.listEventCreateRules.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listBigQueryLinks, request) + .calledWith(client.innerApiCalls.listEventCreateRules, request) ); assert( - (client.descriptors.page.listBigQueryLinks.createStream as SinonStub) + (client.descriptors.page.listEventCreateRules.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -19505,7 +21144,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listBigQueryLinks without error', async () => { + it('uses async iteration with listEventCreateRules without error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -19513,42 +21152,42 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListBigQueryLinksRequest() + new protos.google.analytics.admin.v1alpha.ListEventCreateRulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListBigQueryLinksRequest', + '.google.analytics.admin.v1alpha.ListEventCreateRulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.analytics.admin.v1alpha.BigQueryLink() + new protos.google.analytics.admin.v1alpha.EventCreateRule() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.BigQueryLink() + new protos.google.analytics.admin.v1alpha.EventCreateRule() ), generateSampleMessage( - new protos.google.analytics.admin.v1alpha.BigQueryLink() + new protos.google.analytics.admin.v1alpha.EventCreateRule() ), ]; - client.descriptors.page.listBigQueryLinks.asyncIterate = + client.descriptors.page.listEventCreateRules.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.analytics.admin.v1alpha.IBigQueryLink[] = + const responses: protos.google.analytics.admin.v1alpha.IEventCreateRule[] = []; - const iterable = client.listBigQueryLinksAsync(request); + const iterable = client.listEventCreateRulesAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listBigQueryLinks.asyncIterate as SinonStub + client.descriptors.page.listEventCreateRules.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listBigQueryLinks.asyncIterate as SinonStub) + (client.descriptors.page.listEventCreateRules.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -19556,7 +21195,7 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { ); }); - it('uses async iteration with listBigQueryLinks with error', async () => { + it('uses async iteration with listEventCreateRules with error', async () => { const client = new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -19564,20 +21203,20 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.analytics.admin.v1alpha.ListBigQueryLinksRequest() + new protos.google.analytics.admin.v1alpha.ListEventCreateRulesRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.analytics.admin.v1alpha.ListBigQueryLinksRequest', + '.google.analytics.admin.v1alpha.ListEventCreateRulesRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listBigQueryLinks.asyncIterate = + client.descriptors.page.listEventCreateRules.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listBigQueryLinksAsync(request); + const iterable = client.listEventCreateRulesAsync(request); await assert.rejects(async () => { - const responses: protos.google.analytics.admin.v1alpha.IBigQueryLink[] = + const responses: protos.google.analytics.admin.v1alpha.IEventCreateRule[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -19585,12 +21224,12 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listBigQueryLinks.asyncIterate as SinonStub + client.descriptors.page.listEventCreateRules.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listBigQueryLinks.asyncIterate as SinonStub) + (client.descriptors.page.listEventCreateRules.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -19796,6 +21435,59 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); + describe('adSenseLink', () => { + const fakePath = '/rendered/path/adSenseLink'; + const expectedParameters = { + property: 'propertyValue', + adsense_link: 'adsenseLinkValue', + }; + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.adSenseLinkPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.adSenseLinkPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('adSenseLinkPath', () => { + const result = client.adSenseLinkPath( + 'propertyValue', + 'adsenseLinkValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.adSenseLinkPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromAdSenseLinkName', () => { + const result = client.matchPropertyFromAdSenseLinkName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.adSenseLinkPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAdsenseLinkFromAdSenseLinkName', () => { + const result = client.matchAdsenseLinkFromAdSenseLinkName(fakePath); + assert.strictEqual(result, 'adsenseLinkValue'); + assert( + (client.pathTemplates.adSenseLinkPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('attributionSettings', () => { const fakePath = '/rendered/path/attributionSettings'; const expectedParameters = { @@ -20460,6 +22152,72 @@ describe('v1alpha.AnalyticsAdminServiceClient', () => { }); }); + describe('eventCreateRule', () => { + const fakePath = '/rendered/path/eventCreateRule'; + const expectedParameters = { + property: 'propertyValue', + data_stream: 'dataStreamValue', + event_create_rule: 'eventCreateRuleValue', + }; + const client = + new analyticsadminserviceModule.v1alpha.AnalyticsAdminServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.eventCreateRulePathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.eventCreateRulePathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('eventCreateRulePath', () => { + const result = client.eventCreateRulePath( + 'propertyValue', + 'dataStreamValue', + 'eventCreateRuleValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.eventCreateRulePathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchPropertyFromEventCreateRuleName', () => { + const result = client.matchPropertyFromEventCreateRuleName(fakePath); + assert.strictEqual(result, 'propertyValue'); + assert( + (client.pathTemplates.eventCreateRulePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataStreamFromEventCreateRuleName', () => { + const result = client.matchDataStreamFromEventCreateRuleName(fakePath); + assert.strictEqual(result, 'dataStreamValue'); + assert( + (client.pathTemplates.eventCreateRulePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchEventCreateRuleFromEventCreateRuleName', () => { + const result = + client.matchEventCreateRuleFromEventCreateRuleName(fakePath); + assert.strictEqual(result, 'eventCreateRuleValue'); + assert( + (client.pathTemplates.eventCreateRulePathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('expandedDataSet', () => { const fakePath = '/rendered/path/expandedDataSet'; const expectedParameters = {