From 757a4b3b698fd8a3f4f1f98818724e8d754cee82 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 11 Feb 2022 14:37:08 -0700 Subject: [PATCH] chore: use gapic-generator-python 0.63.2 (#151) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: use gapic-generator-python 0.63.2 docs: add generated snippets PiperOrigin-RevId: 427792504 Source-Link: https://github.com/googleapis/googleapis/commit/55b9e1e0b3106c850d13958352bc0751147b6b15 Source-Link: https://github.com/googleapis/googleapis-gen/commit/bf4e86b753f42cb0edb1fd51fbe840d7da0a1cde Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmY0ZTg2Yjc1M2Y0MmNiMGVkYjFmZDUxZmJlODQwZDdkYTBhMWNkZSJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- ...atalog_service_get_default_branch_async.py | 44 + ...catalog_service_get_default_branch_sync.py | 44 + ..._v2_catalog_service_list_catalogs_async.py | 46 + ...l_v2_catalog_service_list_catalogs_sync.py | 46 + ...atalog_service_set_default_branch_async.py | 42 + ...catalog_service_set_default_branch_sync.py | 42 + ...v2_catalog_service_update_catalog_async.py | 49 + ..._v2_catalog_service_update_catalog_sync.py | 49 + ...completion_service_complete_query_async.py | 46 + ..._completion_service_complete_query_sync.py | 46 + ...on_service_import_completion_data_async.py | 54 + ...ion_service_import_completion_data_sync.py | 54 + ...ail_v2_prediction_service_predict_async.py | 50 + ...tail_v2_prediction_service_predict_sync.py | 50 + ...ct_service_add_fulfillment_places_async.py | 51 + ...uct_service_add_fulfillment_places_sync.py | 51 + ...v2_product_service_create_product_async.py | 50 + ..._v2_product_service_create_product_sync.py | 50 + ...v2_product_service_delete_product_async.py | 43 + ..._v2_product_service_delete_product_sync.py | 43 + ...il_v2_product_service_get_product_async.py | 45 + ...ail_v2_product_service_get_product_sync.py | 45 + ...2_product_service_import_products_async.py | 53 + ...v2_product_service_import_products_sync.py | 53 + ..._v2_product_service_list_products_async.py | 46 + ...l_v2_product_service_list_products_sync.py | 46 + ...service_remove_fulfillment_places_async.py | 51 + ..._service_remove_fulfillment_places_sync.py | 51 + ..._v2_product_service_set_inventory_async.py | 52 + ...l_v2_product_service_set_inventory_sync.py | 52 + ...v2_product_service_update_product_async.py | 48 + ..._v2_product_service_update_product_sync.py | 48 + ...d_retail_v2_search_service_search_async.py | 47 + ...ed_retail_v2_search_service_search_sync.py | 47 + ..._event_service_collect_user_event_async.py | 46 + ...r_event_service_collect_user_event_sync.py | 46 + ..._event_service_import_user_events_async.py | 54 + ...r_event_service_import_user_events_sync.py | 54 + ...r_event_service_purge_user_events_async.py | 50 + ...er_event_service_purge_user_events_sync.py | 50 + ..._event_service_rejoin_user_events_async.py | 49 + ...r_event_service_rejoin_user_events_sync.py | 49 + ...er_event_service_write_user_event_async.py | 50 + ...ser_event_service_write_user_event_sync.py | 50 + .../snippet_metadata_retail_v2.json | 1954 +++++++++++++++++ 45 files changed, 4086 insertions(+) create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_get_default_branch_async.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_get_default_branch_sync.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_list_catalogs_async.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_list_catalogs_sync.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_set_default_branch_async.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_set_default_branch_sync.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_update_catalog_async.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_update_catalog_sync.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_completion_service_complete_query_async.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_completion_service_complete_query_sync.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_completion_service_import_completion_data_async.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_completion_service_import_completion_data_sync.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_prediction_service_predict_async.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_prediction_service_predict_sync.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_product_service_add_fulfillment_places_async.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_product_service_add_fulfillment_places_sync.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_product_service_create_product_async.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_product_service_create_product_sync.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_product_service_delete_product_async.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_product_service_delete_product_sync.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_product_service_get_product_async.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_product_service_get_product_sync.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_product_service_import_products_async.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_product_service_import_products_sync.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_product_service_list_products_async.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_product_service_list_products_sync.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_product_service_remove_fulfillment_places_async.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_product_service_remove_fulfillment_places_sync.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_product_service_set_inventory_async.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_product_service_set_inventory_sync.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_product_service_update_product_async.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_product_service_update_product_sync.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_search_service_search_async.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_search_service_search_sync.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_collect_user_event_async.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_collect_user_event_sync.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_import_user_events_async.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_import_user_events_sync.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_purge_user_events_async.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_purge_user_events_sync.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_rejoin_user_events_async.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_rejoin_user_events_sync.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_write_user_event_async.py create mode 100644 generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_write_user_event_sync.py create mode 100644 generated_samples/generated_samples/snippet_metadata_retail_v2.json diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_get_default_branch_async.py b/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_get_default_branch_async.py new file mode 100644 index 000000000000..cacf3b42c307 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_get_default_branch_async.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetDefaultBranch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_CatalogService_GetDefaultBranch_async] +from google.cloud import retail_v2 + + +async def sample_get_default_branch(): + # Create a client + client = retail_v2.CatalogServiceAsyncClient() + + # Initialize request argument(s) + request = retail_v2.GetDefaultBranchRequest( + ) + + # Make the request + response = await client.get_default_branch(request=request) + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_CatalogService_GetDefaultBranch_async] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_get_default_branch_sync.py b/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_get_default_branch_sync.py new file mode 100644 index 000000000000..07f733fa9323 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_get_default_branch_sync.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetDefaultBranch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_CatalogService_GetDefaultBranch_sync] +from google.cloud import retail_v2 + + +def sample_get_default_branch(): + # Create a client + client = retail_v2.CatalogServiceClient() + + # Initialize request argument(s) + request = retail_v2.GetDefaultBranchRequest( + ) + + # Make the request + response = client.get_default_branch(request=request) + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_CatalogService_GetDefaultBranch_sync] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_list_catalogs_async.py b/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_list_catalogs_async.py new file mode 100644 index 000000000000..bd645f3b3af5 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_list_catalogs_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListCatalogs +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_CatalogService_ListCatalogs_async] +from google.cloud import retail_v2 + + +async def sample_list_catalogs(): + # Create a client + client = retail_v2.CatalogServiceAsyncClient() + + # Initialize request argument(s) + request = retail_v2.ListCatalogsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_catalogs(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END retail_generated_retail_v2_CatalogService_ListCatalogs_async] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_list_catalogs_sync.py b/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_list_catalogs_sync.py new file mode 100644 index 000000000000..753322f24a2c --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_list_catalogs_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListCatalogs +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_CatalogService_ListCatalogs_sync] +from google.cloud import retail_v2 + + +def sample_list_catalogs(): + # Create a client + client = retail_v2.CatalogServiceClient() + + # Initialize request argument(s) + request = retail_v2.ListCatalogsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_catalogs(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END retail_generated_retail_v2_CatalogService_ListCatalogs_sync] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_set_default_branch_async.py b/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_set_default_branch_async.py new file mode 100644 index 000000000000..ea9f61db7c54 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_set_default_branch_async.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetDefaultBranch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_CatalogService_SetDefaultBranch_async] +from google.cloud import retail_v2 + + +async def sample_set_default_branch(): + # Create a client + client = retail_v2.CatalogServiceAsyncClient() + + # Initialize request argument(s) + request = retail_v2.SetDefaultBranchRequest( + ) + + # Make the request + await client.set_default_branch(request=request) + + +# [END retail_generated_retail_v2_CatalogService_SetDefaultBranch_async] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_set_default_branch_sync.py b/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_set_default_branch_sync.py new file mode 100644 index 000000000000..0ac7ee304364 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_set_default_branch_sync.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetDefaultBranch +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_CatalogService_SetDefaultBranch_sync] +from google.cloud import retail_v2 + + +def sample_set_default_branch(): + # Create a client + client = retail_v2.CatalogServiceClient() + + # Initialize request argument(s) + request = retail_v2.SetDefaultBranchRequest( + ) + + # Make the request + client.set_default_branch(request=request) + + +# [END retail_generated_retail_v2_CatalogService_SetDefaultBranch_sync] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_update_catalog_async.py b/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_update_catalog_async.py new file mode 100644 index 000000000000..3d9fc073f653 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_update_catalog_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateCatalog +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_CatalogService_UpdateCatalog_async] +from google.cloud import retail_v2 + + +async def sample_update_catalog(): + # Create a client + client = retail_v2.CatalogServiceAsyncClient() + + # Initialize request argument(s) + catalog = retail_v2.Catalog() + catalog.name = "name_value" + catalog.display_name = "display_name_value" + + request = retail_v2.UpdateCatalogRequest( + catalog=catalog, + ) + + # Make the request + response = await client.update_catalog(request=request) + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_CatalogService_UpdateCatalog_async] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_update_catalog_sync.py b/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_update_catalog_sync.py new file mode 100644 index 000000000000..586b2a56213a --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_catalog_service_update_catalog_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateCatalog +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_CatalogService_UpdateCatalog_sync] +from google.cloud import retail_v2 + + +def sample_update_catalog(): + # Create a client + client = retail_v2.CatalogServiceClient() + + # Initialize request argument(s) + catalog = retail_v2.Catalog() + catalog.name = "name_value" + catalog.display_name = "display_name_value" + + request = retail_v2.UpdateCatalogRequest( + catalog=catalog, + ) + + # Make the request + response = client.update_catalog(request=request) + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_CatalogService_UpdateCatalog_sync] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_completion_service_complete_query_async.py b/generated_samples/generated_samples/retail_generated_retail_v2_completion_service_complete_query_async.py new file mode 100644 index 000000000000..1b7ed81b468a --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_completion_service_complete_query_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CompleteQuery +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_CompletionService_CompleteQuery_async] +from google.cloud import retail_v2 + + +async def sample_complete_query(): + # Create a client + client = retail_v2.CompletionServiceAsyncClient() + + # Initialize request argument(s) + request = retail_v2.CompleteQueryRequest( + catalog="catalog_value", + query="query_value", + ) + + # Make the request + response = await client.complete_query(request=request) + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_CompletionService_CompleteQuery_async] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_completion_service_complete_query_sync.py b/generated_samples/generated_samples/retail_generated_retail_v2_completion_service_complete_query_sync.py new file mode 100644 index 000000000000..a0b06bf0f172 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_completion_service_complete_query_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CompleteQuery +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_CompletionService_CompleteQuery_sync] +from google.cloud import retail_v2 + + +def sample_complete_query(): + # Create a client + client = retail_v2.CompletionServiceClient() + + # Initialize request argument(s) + request = retail_v2.CompleteQueryRequest( + catalog="catalog_value", + query="query_value", + ) + + # Make the request + response = client.complete_query(request=request) + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_CompletionService_CompleteQuery_sync] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_completion_service_import_completion_data_async.py b/generated_samples/generated_samples/retail_generated_retail_v2_completion_service_import_completion_data_async.py new file mode 100644 index 000000000000..fccbc535f8ad --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_completion_service_import_completion_data_async.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ImportCompletionData +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_CompletionService_ImportCompletionData_async] +from google.cloud import retail_v2 + + +async def sample_import_completion_data(): + # Create a client + client = retail_v2.CompletionServiceAsyncClient() + + # Initialize request argument(s) + input_config = retail_v2.CompletionDataInputConfig() + input_config.big_query_source.dataset_id = "dataset_id_value" + input_config.big_query_source.table_id = "table_id_value" + + request = retail_v2.ImportCompletionDataRequest( + parent="parent_value", + input_config=input_config, + ) + + # Make the request + operation = client.import_completion_data(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_CompletionService_ImportCompletionData_async] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_completion_service_import_completion_data_sync.py b/generated_samples/generated_samples/retail_generated_retail_v2_completion_service_import_completion_data_sync.py new file mode 100644 index 000000000000..9ac5253093ab --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_completion_service_import_completion_data_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ImportCompletionData +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_CompletionService_ImportCompletionData_sync] +from google.cloud import retail_v2 + + +def sample_import_completion_data(): + # Create a client + client = retail_v2.CompletionServiceClient() + + # Initialize request argument(s) + input_config = retail_v2.CompletionDataInputConfig() + input_config.big_query_source.dataset_id = "dataset_id_value" + input_config.big_query_source.table_id = "table_id_value" + + request = retail_v2.ImportCompletionDataRequest( + parent="parent_value", + input_config=input_config, + ) + + # Make the request + operation = client.import_completion_data(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_CompletionService_ImportCompletionData_sync] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_prediction_service_predict_async.py b/generated_samples/generated_samples/retail_generated_retail_v2_prediction_service_predict_async.py new file mode 100644 index 000000000000..6e623a6ca05c --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_prediction_service_predict_async.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Predict +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_PredictionService_Predict_async] +from google.cloud import retail_v2 + + +async def sample_predict(): + # Create a client + client = retail_v2.PredictionServiceAsyncClient() + + # Initialize request argument(s) + user_event = retail_v2.UserEvent() + user_event.event_type = "event_type_value" + user_event.visitor_id = "visitor_id_value" + + request = retail_v2.PredictRequest( + placement="placement_value", + user_event=user_event, + ) + + # Make the request + response = await client.predict(request=request) + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_PredictionService_Predict_async] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_prediction_service_predict_sync.py b/generated_samples/generated_samples/retail_generated_retail_v2_prediction_service_predict_sync.py new file mode 100644 index 000000000000..1ff04a9df80f --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_prediction_service_predict_sync.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Predict +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_PredictionService_Predict_sync] +from google.cloud import retail_v2 + + +def sample_predict(): + # Create a client + client = retail_v2.PredictionServiceClient() + + # Initialize request argument(s) + user_event = retail_v2.UserEvent() + user_event.event_type = "event_type_value" + user_event.visitor_id = "visitor_id_value" + + request = retail_v2.PredictRequest( + placement="placement_value", + user_event=user_event, + ) + + # Make the request + response = client.predict(request=request) + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_PredictionService_Predict_sync] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_product_service_add_fulfillment_places_async.py b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_add_fulfillment_places_async.py new file mode 100644 index 000000000000..a42a95e79c64 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_add_fulfillment_places_async.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AddFulfillmentPlaces +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_ProductService_AddFulfillmentPlaces_async] +from google.cloud import retail_v2 + + +async def sample_add_fulfillment_places(): + # Create a client + client = retail_v2.ProductServiceAsyncClient() + + # Initialize request argument(s) + request = retail_v2.AddFulfillmentPlacesRequest( + product="product_value", + type_="type__value", + place_ids=['place_ids_value_1', 'place_ids_value_2'], + ) + + # Make the request + operation = client.add_fulfillment_places(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_ProductService_AddFulfillmentPlaces_async] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_product_service_add_fulfillment_places_sync.py b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_add_fulfillment_places_sync.py new file mode 100644 index 000000000000..3d1cce9acac1 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_add_fulfillment_places_sync.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for AddFulfillmentPlaces +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_ProductService_AddFulfillmentPlaces_sync] +from google.cloud import retail_v2 + + +def sample_add_fulfillment_places(): + # Create a client + client = retail_v2.ProductServiceClient() + + # Initialize request argument(s) + request = retail_v2.AddFulfillmentPlacesRequest( + product="product_value", + type_="type__value", + place_ids=['place_ids_value_1', 'place_ids_value_2'], + ) + + # Make the request + operation = client.add_fulfillment_places(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_ProductService_AddFulfillmentPlaces_sync] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_product_service_create_product_async.py b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_create_product_async.py new file mode 100644 index 000000000000..df7d6a798440 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_create_product_async.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateProduct +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_ProductService_CreateProduct_async] +from google.cloud import retail_v2 + + +async def sample_create_product(): + # Create a client + client = retail_v2.ProductServiceAsyncClient() + + # Initialize request argument(s) + product = retail_v2.Product() + product.title = "title_value" + + request = retail_v2.CreateProductRequest( + parent="parent_value", + product=product, + product_id="product_id_value", + ) + + # Make the request + response = await client.create_product(request=request) + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_ProductService_CreateProduct_async] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_product_service_create_product_sync.py b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_create_product_sync.py new file mode 100644 index 000000000000..ecd17c1d8ace --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_create_product_sync.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CreateProduct +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_ProductService_CreateProduct_sync] +from google.cloud import retail_v2 + + +def sample_create_product(): + # Create a client + client = retail_v2.ProductServiceClient() + + # Initialize request argument(s) + product = retail_v2.Product() + product.title = "title_value" + + request = retail_v2.CreateProductRequest( + parent="parent_value", + product=product, + product_id="product_id_value", + ) + + # Make the request + response = client.create_product(request=request) + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_ProductService_CreateProduct_sync] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_product_service_delete_product_async.py b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_delete_product_async.py new file mode 100644 index 000000000000..07fed762d4f0 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_delete_product_async.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteProduct +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_ProductService_DeleteProduct_async] +from google.cloud import retail_v2 + + +async def sample_delete_product(): + # Create a client + client = retail_v2.ProductServiceAsyncClient() + + # Initialize request argument(s) + request = retail_v2.DeleteProductRequest( + name="name_value", + ) + + # Make the request + await client.delete_product(request=request) + + +# [END retail_generated_retail_v2_ProductService_DeleteProduct_async] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_product_service_delete_product_sync.py b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_delete_product_sync.py new file mode 100644 index 000000000000..788fdbc2b42a --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_delete_product_sync.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteProduct +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_ProductService_DeleteProduct_sync] +from google.cloud import retail_v2 + + +def sample_delete_product(): + # Create a client + client = retail_v2.ProductServiceClient() + + # Initialize request argument(s) + request = retail_v2.DeleteProductRequest( + name="name_value", + ) + + # Make the request + client.delete_product(request=request) + + +# [END retail_generated_retail_v2_ProductService_DeleteProduct_sync] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_product_service_get_product_async.py b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_get_product_async.py new file mode 100644 index 000000000000..d2c7639d1b97 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_get_product_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetProduct +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_ProductService_GetProduct_async] +from google.cloud import retail_v2 + + +async def sample_get_product(): + # Create a client + client = retail_v2.ProductServiceAsyncClient() + + # Initialize request argument(s) + request = retail_v2.GetProductRequest( + name="name_value", + ) + + # Make the request + response = await client.get_product(request=request) + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_ProductService_GetProduct_async] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_product_service_get_product_sync.py b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_get_product_sync.py new file mode 100644 index 000000000000..08ceba4fec84 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_get_product_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetProduct +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_ProductService_GetProduct_sync] +from google.cloud import retail_v2 + + +def sample_get_product(): + # Create a client + client = retail_v2.ProductServiceClient() + + # Initialize request argument(s) + request = retail_v2.GetProductRequest( + name="name_value", + ) + + # Make the request + response = client.get_product(request=request) + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_ProductService_GetProduct_sync] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_product_service_import_products_async.py b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_import_products_async.py new file mode 100644 index 000000000000..548814eb9120 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_import_products_async.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ImportProducts +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_ProductService_ImportProducts_async] +from google.cloud import retail_v2 + + +async def sample_import_products(): + # Create a client + client = retail_v2.ProductServiceAsyncClient() + + # Initialize request argument(s) + input_config = retail_v2.ProductInputConfig() + input_config.product_inline_source.products.title = "title_value" + + request = retail_v2.ImportProductsRequest( + parent="parent_value", + input_config=input_config, + ) + + # Make the request + operation = client.import_products(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_ProductService_ImportProducts_async] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_product_service_import_products_sync.py b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_import_products_sync.py new file mode 100644 index 000000000000..d5d801c72341 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_import_products_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ImportProducts +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_ProductService_ImportProducts_sync] +from google.cloud import retail_v2 + + +def sample_import_products(): + # Create a client + client = retail_v2.ProductServiceClient() + + # Initialize request argument(s) + input_config = retail_v2.ProductInputConfig() + input_config.product_inline_source.products.title = "title_value" + + request = retail_v2.ImportProductsRequest( + parent="parent_value", + input_config=input_config, + ) + + # Make the request + operation = client.import_products(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_ProductService_ImportProducts_sync] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_product_service_list_products_async.py b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_list_products_async.py new file mode 100644 index 000000000000..1ca9e1cd4cf0 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_list_products_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListProducts +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_ProductService_ListProducts_async] +from google.cloud import retail_v2 + + +async def sample_list_products(): + # Create a client + client = retail_v2.ProductServiceAsyncClient() + + # Initialize request argument(s) + request = retail_v2.ListProductsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_products(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END retail_generated_retail_v2_ProductService_ListProducts_async] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_product_service_list_products_sync.py b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_list_products_sync.py new file mode 100644 index 000000000000..0cc0db53507f --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_list_products_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListProducts +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_ProductService_ListProducts_sync] +from google.cloud import retail_v2 + + +def sample_list_products(): + # Create a client + client = retail_v2.ProductServiceClient() + + # Initialize request argument(s) + request = retail_v2.ListProductsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_products(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END retail_generated_retail_v2_ProductService_ListProducts_sync] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_product_service_remove_fulfillment_places_async.py b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_remove_fulfillment_places_async.py new file mode 100644 index 000000000000..d5e0107ca4c7 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_remove_fulfillment_places_async.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RemoveFulfillmentPlaces +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_ProductService_RemoveFulfillmentPlaces_async] +from google.cloud import retail_v2 + + +async def sample_remove_fulfillment_places(): + # Create a client + client = retail_v2.ProductServiceAsyncClient() + + # Initialize request argument(s) + request = retail_v2.RemoveFulfillmentPlacesRequest( + product="product_value", + type_="type__value", + place_ids=['place_ids_value_1', 'place_ids_value_2'], + ) + + # Make the request + operation = client.remove_fulfillment_places(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_ProductService_RemoveFulfillmentPlaces_async] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_product_service_remove_fulfillment_places_sync.py b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_remove_fulfillment_places_sync.py new file mode 100644 index 000000000000..6e795dbf35a1 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_remove_fulfillment_places_sync.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RemoveFulfillmentPlaces +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_ProductService_RemoveFulfillmentPlaces_sync] +from google.cloud import retail_v2 + + +def sample_remove_fulfillment_places(): + # Create a client + client = retail_v2.ProductServiceClient() + + # Initialize request argument(s) + request = retail_v2.RemoveFulfillmentPlacesRequest( + product="product_value", + type_="type__value", + place_ids=['place_ids_value_1', 'place_ids_value_2'], + ) + + # Make the request + operation = client.remove_fulfillment_places(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_ProductService_RemoveFulfillmentPlaces_sync] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_product_service_set_inventory_async.py b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_set_inventory_async.py new file mode 100644 index 000000000000..3e3a146a993c --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_set_inventory_async.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetInventory +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_ProductService_SetInventory_async] +from google.cloud import retail_v2 + + +async def sample_set_inventory(): + # Create a client + client = retail_v2.ProductServiceAsyncClient() + + # Initialize request argument(s) + inventory = retail_v2.Product() + inventory.title = "title_value" + + request = retail_v2.SetInventoryRequest( + inventory=inventory, + ) + + # Make the request + operation = client.set_inventory(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_ProductService_SetInventory_async] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_product_service_set_inventory_sync.py b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_set_inventory_sync.py new file mode 100644 index 000000000000..37b3a2bc2e72 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_set_inventory_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SetInventory +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_ProductService_SetInventory_sync] +from google.cloud import retail_v2 + + +def sample_set_inventory(): + # Create a client + client = retail_v2.ProductServiceClient() + + # Initialize request argument(s) + inventory = retail_v2.Product() + inventory.title = "title_value" + + request = retail_v2.SetInventoryRequest( + inventory=inventory, + ) + + # Make the request + operation = client.set_inventory(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_ProductService_SetInventory_sync] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_product_service_update_product_async.py b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_update_product_async.py new file mode 100644 index 000000000000..75a39b1df059 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_update_product_async.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateProduct +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_ProductService_UpdateProduct_async] +from google.cloud import retail_v2 + + +async def sample_update_product(): + # Create a client + client = retail_v2.ProductServiceAsyncClient() + + # Initialize request argument(s) + product = retail_v2.Product() + product.title = "title_value" + + request = retail_v2.UpdateProductRequest( + product=product, + ) + + # Make the request + response = await client.update_product(request=request) + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_ProductService_UpdateProduct_async] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_product_service_update_product_sync.py b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_update_product_sync.py new file mode 100644 index 000000000000..818337b3d808 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_product_service_update_product_sync.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateProduct +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_ProductService_UpdateProduct_sync] +from google.cloud import retail_v2 + + +def sample_update_product(): + # Create a client + client = retail_v2.ProductServiceClient() + + # Initialize request argument(s) + product = retail_v2.Product() + product.title = "title_value" + + request = retail_v2.UpdateProductRequest( + product=product, + ) + + # Make the request + response = client.update_product(request=request) + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_ProductService_UpdateProduct_sync] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_search_service_search_async.py b/generated_samples/generated_samples/retail_generated_retail_v2_search_service_search_async.py new file mode 100644 index 000000000000..7b67629c8713 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_search_service_search_async.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Search +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_SearchService_Search_async] +from google.cloud import retail_v2 + + +async def sample_search(): + # Create a client + client = retail_v2.SearchServiceAsyncClient() + + # Initialize request argument(s) + request = retail_v2.SearchRequest( + placement="placement_value", + visitor_id="visitor_id_value", + ) + + # Make the request + page_result = client.search(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END retail_generated_retail_v2_SearchService_Search_async] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_search_service_search_sync.py b/generated_samples/generated_samples/retail_generated_retail_v2_search_service_search_sync.py new file mode 100644 index 000000000000..31283271a748 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_search_service_search_sync.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for Search +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_SearchService_Search_sync] +from google.cloud import retail_v2 + + +def sample_search(): + # Create a client + client = retail_v2.SearchServiceClient() + + # Initialize request argument(s) + request = retail_v2.SearchRequest( + placement="placement_value", + visitor_id="visitor_id_value", + ) + + # Make the request + page_result = client.search(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END retail_generated_retail_v2_SearchService_Search_sync] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_collect_user_event_async.py b/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_collect_user_event_async.py new file mode 100644 index 000000000000..d65247cf23d5 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_collect_user_event_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CollectUserEvent +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_UserEventService_CollectUserEvent_async] +from google.cloud import retail_v2 + + +async def sample_collect_user_event(): + # Create a client + client = retail_v2.UserEventServiceAsyncClient() + + # Initialize request argument(s) + request = retail_v2.CollectUserEventRequest( + parent="parent_value", + user_event="user_event_value", + ) + + # Make the request + response = await client.collect_user_event(request=request) + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_UserEventService_CollectUserEvent_async] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_collect_user_event_sync.py b/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_collect_user_event_sync.py new file mode 100644 index 000000000000..045de1c44570 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_collect_user_event_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for CollectUserEvent +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_UserEventService_CollectUserEvent_sync] +from google.cloud import retail_v2 + + +def sample_collect_user_event(): + # Create a client + client = retail_v2.UserEventServiceClient() + + # Initialize request argument(s) + request = retail_v2.CollectUserEventRequest( + parent="parent_value", + user_event="user_event_value", + ) + + # Make the request + response = client.collect_user_event(request=request) + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_UserEventService_CollectUserEvent_sync] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_import_user_events_async.py b/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_import_user_events_async.py new file mode 100644 index 000000000000..05a3dfea3ee4 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_import_user_events_async.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ImportUserEvents +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_UserEventService_ImportUserEvents_async] +from google.cloud import retail_v2 + + +async def sample_import_user_events(): + # Create a client + client = retail_v2.UserEventServiceAsyncClient() + + # Initialize request argument(s) + input_config = retail_v2.UserEventInputConfig() + input_config.user_event_inline_source.user_events.event_type = "event_type_value" + input_config.user_event_inline_source.user_events.visitor_id = "visitor_id_value" + + request = retail_v2.ImportUserEventsRequest( + parent="parent_value", + input_config=input_config, + ) + + # Make the request + operation = client.import_user_events(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_UserEventService_ImportUserEvents_async] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_import_user_events_sync.py b/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_import_user_events_sync.py new file mode 100644 index 000000000000..bca40f35f469 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_import_user_events_sync.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ImportUserEvents +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_UserEventService_ImportUserEvents_sync] +from google.cloud import retail_v2 + + +def sample_import_user_events(): + # Create a client + client = retail_v2.UserEventServiceClient() + + # Initialize request argument(s) + input_config = retail_v2.UserEventInputConfig() + input_config.user_event_inline_source.user_events.event_type = "event_type_value" + input_config.user_event_inline_source.user_events.visitor_id = "visitor_id_value" + + request = retail_v2.ImportUserEventsRequest( + parent="parent_value", + input_config=input_config, + ) + + # Make the request + operation = client.import_user_events(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_UserEventService_ImportUserEvents_sync] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_purge_user_events_async.py b/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_purge_user_events_async.py new file mode 100644 index 000000000000..c11e1a98dafe --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_purge_user_events_async.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for PurgeUserEvents +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_UserEventService_PurgeUserEvents_async] +from google.cloud import retail_v2 + + +async def sample_purge_user_events(): + # Create a client + client = retail_v2.UserEventServiceAsyncClient() + + # Initialize request argument(s) + request = retail_v2.PurgeUserEventsRequest( + parent="parent_value", + filter="filter_value", + ) + + # Make the request + operation = client.purge_user_events(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_UserEventService_PurgeUserEvents_async] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_purge_user_events_sync.py b/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_purge_user_events_sync.py new file mode 100644 index 000000000000..b7785344ec32 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_purge_user_events_sync.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for PurgeUserEvents +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_UserEventService_PurgeUserEvents_sync] +from google.cloud import retail_v2 + + +def sample_purge_user_events(): + # Create a client + client = retail_v2.UserEventServiceClient() + + # Initialize request argument(s) + request = retail_v2.PurgeUserEventsRequest( + parent="parent_value", + filter="filter_value", + ) + + # Make the request + operation = client.purge_user_events(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_UserEventService_PurgeUserEvents_sync] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_rejoin_user_events_async.py b/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_rejoin_user_events_async.py new file mode 100644 index 000000000000..3a89d58c19e6 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_rejoin_user_events_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RejoinUserEvents +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_UserEventService_RejoinUserEvents_async] +from google.cloud import retail_v2 + + +async def sample_rejoin_user_events(): + # Create a client + client = retail_v2.UserEventServiceAsyncClient() + + # Initialize request argument(s) + request = retail_v2.RejoinUserEventsRequest( + parent="parent_value", + ) + + # Make the request + operation = client.rejoin_user_events(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_UserEventService_RejoinUserEvents_async] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_rejoin_user_events_sync.py b/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_rejoin_user_events_sync.py new file mode 100644 index 000000000000..e91d51b9798c --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_rejoin_user_events_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RejoinUserEvents +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_UserEventService_RejoinUserEvents_sync] +from google.cloud import retail_v2 + + +def sample_rejoin_user_events(): + # Create a client + client = retail_v2.UserEventServiceClient() + + # Initialize request argument(s) + request = retail_v2.RejoinUserEventsRequest( + parent="parent_value", + ) + + # Make the request + operation = client.rejoin_user_events(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_UserEventService_RejoinUserEvents_sync] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_write_user_event_async.py b/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_write_user_event_async.py new file mode 100644 index 000000000000..270a4e86b860 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_write_user_event_async.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for WriteUserEvent +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_UserEventService_WriteUserEvent_async] +from google.cloud import retail_v2 + + +async def sample_write_user_event(): + # Create a client + client = retail_v2.UserEventServiceAsyncClient() + + # Initialize request argument(s) + user_event = retail_v2.UserEvent() + user_event.event_type = "event_type_value" + user_event.visitor_id = "visitor_id_value" + + request = retail_v2.WriteUserEventRequest( + parent="parent_value", + user_event=user_event, + ) + + # Make the request + response = await client.write_user_event(request=request) + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_UserEventService_WriteUserEvent_async] diff --git a/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_write_user_event_sync.py b/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_write_user_event_sync.py new file mode 100644 index 000000000000..93609073aba7 --- /dev/null +++ b/generated_samples/generated_samples/retail_generated_retail_v2_user_event_service_write_user_event_sync.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# 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. +# +# Generated code. DO NOT EDIT! +# +# Snippet for WriteUserEvent +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-retail + + +# [START retail_generated_retail_v2_UserEventService_WriteUserEvent_sync] +from google.cloud import retail_v2 + + +def sample_write_user_event(): + # Create a client + client = retail_v2.UserEventServiceClient() + + # Initialize request argument(s) + user_event = retail_v2.UserEvent() + user_event.event_type = "event_type_value" + user_event.visitor_id = "visitor_id_value" + + request = retail_v2.WriteUserEventRequest( + parent="parent_value", + user_event=user_event, + ) + + # Make the request + response = client.write_user_event(request=request) + + # Handle the response + print(response) + +# [END retail_generated_retail_v2_UserEventService_WriteUserEvent_sync] diff --git a/generated_samples/generated_samples/snippet_metadata_retail_v2.json b/generated_samples/generated_samples/snippet_metadata_retail_v2.json new file mode 100644 index 000000000000..28fa09ceac1d --- /dev/null +++ b/generated_samples/generated_samples/snippet_metadata_retail_v2.json @@ -0,0 +1,1954 @@ +{ + "snippets": [ + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "CatalogService" + }, + "shortName": "GetDefaultBranch" + } + }, + "file": "retail_generated_retail_v2_catalog_service_get_default_branch_async.py", + "regionTag": "retail_generated_retail_v2_CatalogService_GetDefaultBranch_async", + "segments": [ + { + "end": 43, + "start": 27, + "type": "FULL" + }, + { + "end": 43, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 40, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 44, + "start": 41, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "CatalogService" + }, + "shortName": "GetDefaultBranch" + } + }, + "file": "retail_generated_retail_v2_catalog_service_get_default_branch_sync.py", + "regionTag": "retail_generated_retail_v2_CatalogService_GetDefaultBranch_sync", + "segments": [ + { + "end": 43, + "start": 27, + "type": "FULL" + }, + { + "end": 43, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 40, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 44, + "start": 41, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "CatalogService" + }, + "shortName": "ListCatalogs" + } + }, + "file": "retail_generated_retail_v2_catalog_service_list_catalogs_async.py", + "regionTag": "retail_generated_retail_v2_CatalogService_ListCatalogs_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "CatalogService" + }, + "shortName": "ListCatalogs" + } + }, + "file": "retail_generated_retail_v2_catalog_service_list_catalogs_sync.py", + "regionTag": "retail_generated_retail_v2_CatalogService_ListCatalogs_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "CatalogService" + }, + "shortName": "SetDefaultBranch" + } + }, + "file": "retail_generated_retail_v2_catalog_service_set_default_branch_async.py", + "regionTag": "retail_generated_retail_v2_CatalogService_SetDefaultBranch_async", + "segments": [ + { + "end": 41, + "start": 27, + "type": "FULL" + }, + { + "end": 41, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "CatalogService" + }, + "shortName": "SetDefaultBranch" + } + }, + "file": "retail_generated_retail_v2_catalog_service_set_default_branch_sync.py", + "regionTag": "retail_generated_retail_v2_CatalogService_SetDefaultBranch_sync", + "segments": [ + { + "end": 41, + "start": 27, + "type": "FULL" + }, + { + "end": 41, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "CatalogService" + }, + "shortName": "UpdateCatalog" + } + }, + "file": "retail_generated_retail_v2_catalog_service_update_catalog_async.py", + "regionTag": "retail_generated_retail_v2_CatalogService_UpdateCatalog_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 42, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 43, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "CatalogService" + }, + "shortName": "UpdateCatalog" + } + }, + "file": "retail_generated_retail_v2_catalog_service_update_catalog_sync.py", + "regionTag": "retail_generated_retail_v2_CatalogService_UpdateCatalog_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 42, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 43, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "CompletionService" + }, + "shortName": "CompleteQuery" + } + }, + "file": "retail_generated_retail_v2_completion_service_complete_query_async.py", + "regionTag": "retail_generated_retail_v2_CompletionService_CompleteQuery_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 42, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "CompletionService" + }, + "shortName": "CompleteQuery" + } + }, + "file": "retail_generated_retail_v2_completion_service_complete_query_sync.py", + "regionTag": "retail_generated_retail_v2_CompletionService_CompleteQuery_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 42, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "CompletionService" + }, + "shortName": "ImportCompletionData" + } + }, + "file": "retail_generated_retail_v2_completion_service_import_completion_data_async.py", + "regionTag": "retail_generated_retail_v2_CompletionService_ImportCompletionData_async", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 43, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 50, + "start": 44, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "CompletionService" + }, + "shortName": "ImportCompletionData" + } + }, + "file": "retail_generated_retail_v2_completion_service_import_completion_data_sync.py", + "regionTag": "retail_generated_retail_v2_CompletionService_ImportCompletionData_sync", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 43, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 50, + "start": 44, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "PredictionService" + }, + "shortName": "Predict" + } + }, + "file": "retail_generated_retail_v2_prediction_service_predict_async.py", + "regionTag": "retail_generated_retail_v2_PredictionService_Predict_async", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 43, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 44, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "PredictionService" + }, + "shortName": "Predict" + } + }, + "file": "retail_generated_retail_v2_prediction_service_predict_sync.py", + "regionTag": "retail_generated_retail_v2_PredictionService_Predict_sync", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 43, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 44, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ProductService" + }, + "shortName": "AddFulfillmentPlaces" + } + }, + "file": "retail_generated_retail_v2_product_service_add_fulfillment_places_async.py", + "regionTag": "retail_generated_retail_v2_ProductService_AddFulfillmentPlaces_async", + "segments": [ + { + "end": 50, + "start": 27, + "type": "FULL" + }, + { + "end": 50, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 47, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 51, + "start": 48, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ProductService" + }, + "shortName": "AddFulfillmentPlaces" + } + }, + "file": "retail_generated_retail_v2_product_service_add_fulfillment_places_sync.py", + "regionTag": "retail_generated_retail_v2_ProductService_AddFulfillmentPlaces_sync", + "segments": [ + { + "end": 50, + "start": 27, + "type": "FULL" + }, + { + "end": 50, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 47, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 51, + "start": 48, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ProductService" + }, + "shortName": "CreateProduct" + } + }, + "file": "retail_generated_retail_v2_product_service_create_product_async.py", + "regionTag": "retail_generated_retail_v2_ProductService_CreateProduct_async", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 43, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 44, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ProductService" + }, + "shortName": "CreateProduct" + } + }, + "file": "retail_generated_retail_v2_product_service_create_product_sync.py", + "regionTag": "retail_generated_retail_v2_ProductService_CreateProduct_sync", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 43, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 44, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ProductService" + }, + "shortName": "DeleteProduct" + } + }, + "file": "retail_generated_retail_v2_product_service_delete_product_async.py", + "regionTag": "retail_generated_retail_v2_ProductService_DeleteProduct_async", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ProductService" + }, + "shortName": "DeleteProduct" + } + }, + "file": "retail_generated_retail_v2_product_service_delete_product_sync.py", + "regionTag": "retail_generated_retail_v2_ProductService_DeleteProduct_sync", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ProductService" + }, + "shortName": "GetProduct" + } + }, + "file": "retail_generated_retail_v2_product_service_get_product_async.py", + "regionTag": "retail_generated_retail_v2_ProductService_GetProduct_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ProductService" + }, + "shortName": "GetProduct" + } + }, + "file": "retail_generated_retail_v2_product_service_get_product_sync.py", + "regionTag": "retail_generated_retail_v2_ProductService_GetProduct_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ProductService" + }, + "shortName": "ImportProducts" + } + }, + "file": "retail_generated_retail_v2_product_service_import_products_async.py", + "regionTag": "retail_generated_retail_v2_ProductService_ImportProducts_async", + "segments": [ + { + "end": 52, + "start": 27, + "type": "FULL" + }, + { + "end": 52, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 42, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 49, + "start": 43, + "type": "REQUEST_EXECUTION" + }, + { + "end": 53, + "start": 50, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ProductService" + }, + "shortName": "ImportProducts" + } + }, + "file": "retail_generated_retail_v2_product_service_import_products_sync.py", + "regionTag": "retail_generated_retail_v2_ProductService_ImportProducts_sync", + "segments": [ + { + "end": 52, + "start": 27, + "type": "FULL" + }, + { + "end": 52, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 42, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 49, + "start": 43, + "type": "REQUEST_EXECUTION" + }, + { + "end": 53, + "start": 50, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ProductService" + }, + "shortName": "ListProducts" + } + }, + "file": "retail_generated_retail_v2_product_service_list_products_async.py", + "regionTag": "retail_generated_retail_v2_ProductService_ListProducts_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ProductService" + }, + "shortName": "ListProducts" + } + }, + "file": "retail_generated_retail_v2_product_service_list_products_sync.py", + "regionTag": "retail_generated_retail_v2_ProductService_ListProducts_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ProductService" + }, + "shortName": "RemoveFulfillmentPlaces" + } + }, + "file": "retail_generated_retail_v2_product_service_remove_fulfillment_places_async.py", + "regionTag": "retail_generated_retail_v2_ProductService_RemoveFulfillmentPlaces_async", + "segments": [ + { + "end": 50, + "start": 27, + "type": "FULL" + }, + { + "end": 50, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 47, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 51, + "start": 48, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ProductService" + }, + "shortName": "RemoveFulfillmentPlaces" + } + }, + "file": "retail_generated_retail_v2_product_service_remove_fulfillment_places_sync.py", + "regionTag": "retail_generated_retail_v2_ProductService_RemoveFulfillmentPlaces_sync", + "segments": [ + { + "end": 50, + "start": 27, + "type": "FULL" + }, + { + "end": 50, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 40, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 47, + "start": 41, + "type": "REQUEST_EXECUTION" + }, + { + "end": 51, + "start": 48, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ProductService" + }, + "shortName": "SetInventory" + } + }, + "file": "retail_generated_retail_v2_product_service_set_inventory_async.py", + "regionTag": "retail_generated_retail_v2_ProductService_SetInventory_async", + "segments": [ + { + "end": 51, + "start": 27, + "type": "FULL" + }, + { + "end": 51, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 48, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 52, + "start": 49, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ProductService" + }, + "shortName": "SetInventory" + } + }, + "file": "retail_generated_retail_v2_product_service_set_inventory_sync.py", + "regionTag": "retail_generated_retail_v2_ProductService_SetInventory_sync", + "segments": [ + { + "end": 51, + "start": 27, + "type": "FULL" + }, + { + "end": 51, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 48, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 52, + "start": 49, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "ProductService" + }, + "shortName": "UpdateProduct" + } + }, + "file": "retail_generated_retail_v2_product_service_update_product_async.py", + "regionTag": "retail_generated_retail_v2_ProductService_UpdateProduct_async", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "ProductService" + }, + "shortName": "UpdateProduct" + } + }, + "file": "retail_generated_retail_v2_product_service_update_product_sync.py", + "regionTag": "retail_generated_retail_v2_ProductService_UpdateProduct_sync", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 41, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 42, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "SearchService" + }, + "shortName": "Search" + } + }, + "file": "retail_generated_retail_v2_search_service_search_async.py", + "regionTag": "retail_generated_retail_v2_SearchService_Search_async", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 42, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "SearchService" + }, + "shortName": "Search" + } + }, + "file": "retail_generated_retail_v2_search_service_search_sync.py", + "regionTag": "retail_generated_retail_v2_SearchService_Search_sync", + "segments": [ + { + "end": 46, + "start": 27, + "type": "FULL" + }, + { + "end": 46, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 42, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 47, + "start": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "UserEventService" + }, + "shortName": "CollectUserEvent" + } + }, + "file": "retail_generated_retail_v2_user_event_service_collect_user_event_async.py", + "regionTag": "retail_generated_retail_v2_UserEventService_CollectUserEvent_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 42, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "UserEventService" + }, + "shortName": "CollectUserEvent" + } + }, + "file": "retail_generated_retail_v2_user_event_service_collect_user_event_sync.py", + "regionTag": "retail_generated_retail_v2_UserEventService_CollectUserEvent_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 42, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "UserEventService" + }, + "shortName": "ImportUserEvents" + } + }, + "file": "retail_generated_retail_v2_user_event_service_import_user_events_async.py", + "regionTag": "retail_generated_retail_v2_UserEventService_ImportUserEvents_async", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 43, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 50, + "start": 44, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "UserEventService" + }, + "shortName": "ImportUserEvents" + } + }, + "file": "retail_generated_retail_v2_user_event_service_import_user_events_sync.py", + "regionTag": "retail_generated_retail_v2_UserEventService_ImportUserEvents_sync", + "segments": [ + { + "end": 53, + "start": 27, + "type": "FULL" + }, + { + "end": 53, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 43, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 50, + "start": 44, + "type": "REQUEST_EXECUTION" + }, + { + "end": 54, + "start": 51, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "UserEventService" + }, + "shortName": "PurgeUserEvents" + } + }, + "file": "retail_generated_retail_v2_user_event_service_purge_user_events_async.py", + "regionTag": "retail_generated_retail_v2_UserEventService_PurgeUserEvents_async", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "UserEventService" + }, + "shortName": "PurgeUserEvents" + } + }, + "file": "retail_generated_retail_v2_user_event_service_purge_user_events_sync.py", + "regionTag": "retail_generated_retail_v2_UserEventService_PurgeUserEvents_sync", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "UserEventService" + }, + "shortName": "RejoinUserEvents" + } + }, + "file": "retail_generated_retail_v2_user_event_service_rejoin_user_events_async.py", + "regionTag": "retail_generated_retail_v2_UserEventService_RejoinUserEvents_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "UserEventService" + }, + "shortName": "RejoinUserEvents" + } + }, + "file": "retail_generated_retail_v2_user_event_service_rejoin_user_events_sync.py", + "regionTag": "retail_generated_retail_v2_UserEventService_RejoinUserEvents_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "UserEventService" + }, + "shortName": "WriteUserEvent" + } + }, + "file": "retail_generated_retail_v2_user_event_service_write_user_event_async.py", + "regionTag": "retail_generated_retail_v2_UserEventService_WriteUserEvent_async", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 43, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 44, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "UserEventService" + }, + "shortName": "WriteUserEvent" + } + }, + "file": "retail_generated_retail_v2_user_event_service_write_user_event_sync.py", + "regionTag": "retail_generated_retail_v2_UserEventService_WriteUserEvent_sync", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 43, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 44, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + } + ] +}