From 4866c1b92089bd36b043d1286fc94cb0ab36a231 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 19 Sep 2023 11:46:19 -0400 Subject: [PATCH] docs: Minor formatting (#433) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: Minor formatting chore: Update gapic-generator-python to v1.11.5 build: Update rules_python to 0.24.0 PiperOrigin-RevId: 563436317 Source-Link: https://github.com/googleapis/googleapis/commit/42fd37b18d706f6f51f52f209973b3b2c28f509a Source-Link: https://github.com/googleapis/googleapis-gen/commit/280264ca02fb9316b4237a96d0af1a2343a81a56 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjgwMjY0Y2EwMmZiOTMxNmI0MjM3YTk2ZDBhZjFhMjM0M2E4MWE1NiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- .../retail_v2/services/catalog_service/async_client.py | 2 +- google/cloud/retail_v2/services/catalog_service/client.py | 2 +- .../retail_v2/services/catalog_service/transports/base.py | 2 +- .../retail_v2/services/catalog_service/transports/grpc.py | 2 +- .../services/catalog_service/transports/grpc_asyncio.py | 2 +- .../retail_v2/services/catalog_service/transports/rest.py | 2 +- .../retail_v2/services/completion_service/async_client.py | 6 +++++- .../cloud/retail_v2/services/completion_service/client.py | 6 +++++- .../services/completion_service/transports/grpc.py | 4 ++++ .../services/completion_service/transports/grpc_asyncio.py | 4 ++++ .../services/completion_service/transports/rest.py | 2 +- .../retail_v2/services/control_service/async_client.py | 3 ++- google/cloud/retail_v2/services/control_service/client.py | 3 ++- .../retail_v2/services/control_service/transports/base.py | 2 +- .../retail_v2/services/control_service/transports/grpc.py | 2 +- .../services/control_service/transports/grpc_asyncio.py | 2 +- .../retail_v2/services/control_service/transports/rest.py | 2 +- .../cloud/retail_v2/services/model_service/async_client.py | 3 ++- google/cloud/retail_v2/services/model_service/client.py | 3 ++- .../retail_v2/services/model_service/transports/rest.py | 1 - .../retail_v2/services/prediction_service/async_client.py | 2 +- .../cloud/retail_v2/services/prediction_service/client.py | 2 +- .../services/prediction_service/transports/base.py | 2 +- .../services/prediction_service/transports/grpc.py | 2 +- .../services/prediction_service/transports/grpc_asyncio.py | 2 +- .../services/prediction_service/transports/rest.py | 3 ++- .../retail_v2/services/product_service/async_client.py | 2 +- google/cloud/retail_v2/services/product_service/client.py | 2 +- .../retail_v2/services/product_service/transports/rest.py | 1 - .../cloud/retail_v2/services/search_service/async_client.py | 4 +++- google/cloud/retail_v2/services/search_service/client.py | 4 +++- .../retail_v2/services/search_service/transports/base.py | 2 +- .../retail_v2/services/search_service/transports/grpc.py | 4 +++- .../services/search_service/transports/grpc_asyncio.py | 4 +++- .../retail_v2/services/search_service/transports/rest.py | 4 +++- .../services/serving_config_service/async_client.py | 4 +++- .../retail_v2/services/serving_config_service/client.py | 4 +++- .../services/serving_config_service/transports/base.py | 2 +- .../services/serving_config_service/transports/grpc.py | 4 +++- .../serving_config_service/transports/grpc_asyncio.py | 4 +++- .../services/serving_config_service/transports/rest.py | 2 +- .../retail_v2/services/user_event_service/async_client.py | 3 ++- .../cloud/retail_v2/services/user_event_service/client.py | 3 ++- .../services/user_event_service/transports/grpc.py | 1 + .../services/user_event_service/transports/grpc_asyncio.py | 1 + .../services/user_event_service/transports/rest.py | 1 - google/cloud/retail_v2/types/import_config.py | 1 + google/cloud/retail_v2/types/model.py | 1 + google/cloud/retail_v2/types/search_service.py | 1 + google/cloud/retail_v2/types/user_event.py | 1 + .../retail_v2alpha/services/catalog_service/async_client.py | 2 +- .../cloud/retail_v2alpha/services/catalog_service/client.py | 2 +- .../services/catalog_service/transports/base.py | 2 +- .../services/catalog_service/transports/grpc.py | 2 +- .../services/catalog_service/transports/grpc_asyncio.py | 2 +- .../services/catalog_service/transports/rest.py | 2 +- .../services/completion_service/async_client.py | 6 +++++- .../retail_v2alpha/services/completion_service/client.py | 6 +++++- .../services/completion_service/transports/grpc.py | 4 ++++ .../services/completion_service/transports/grpc_asyncio.py | 4 ++++ .../services/completion_service/transports/rest.py | 2 +- .../retail_v2alpha/services/control_service/async_client.py | 3 ++- .../cloud/retail_v2alpha/services/control_service/client.py | 3 ++- .../services/control_service/transports/base.py | 2 +- .../services/control_service/transports/grpc.py | 2 +- .../services/control_service/transports/grpc_asyncio.py | 2 +- .../services/control_service/transports/rest.py | 2 +- .../merchant_center_account_link_service/async_client.py | 2 +- .../services/merchant_center_account_link_service/client.py | 2 +- .../merchant_center_account_link_service/transports/rest.py | 1 - .../retail_v2alpha/services/model_service/async_client.py | 3 ++- .../cloud/retail_v2alpha/services/model_service/client.py | 3 ++- .../services/model_service/transports/rest.py | 1 - .../services/prediction_service/async_client.py | 2 +- .../retail_v2alpha/services/prediction_service/client.py | 2 +- .../services/prediction_service/transports/base.py | 2 +- .../services/prediction_service/transports/grpc.py | 2 +- .../services/prediction_service/transports/grpc_asyncio.py | 2 +- .../services/prediction_service/transports/rest.py | 3 ++- .../retail_v2alpha/services/product_service/async_client.py | 2 +- .../cloud/retail_v2alpha/services/product_service/client.py | 2 +- .../services/product_service/transports/rest.py | 1 - .../retail_v2alpha/services/search_service/async_client.py | 4 +++- .../cloud/retail_v2alpha/services/search_service/client.py | 4 +++- .../services/search_service/transports/base.py | 2 +- .../services/search_service/transports/grpc.py | 4 +++- .../services/search_service/transports/grpc_asyncio.py | 4 +++- .../services/search_service/transports/rest.py | 4 +++- .../services/serving_config_service/async_client.py | 4 +++- .../services/serving_config_service/client.py | 4 +++- .../services/serving_config_service/transports/base.py | 2 +- .../services/serving_config_service/transports/grpc.py | 4 +++- .../serving_config_service/transports/grpc_asyncio.py | 4 +++- .../services/serving_config_service/transports/rest.py | 2 +- .../services/user_event_service/async_client.py | 3 ++- .../retail_v2alpha/services/user_event_service/client.py | 3 ++- .../services/user_event_service/transports/grpc.py | 1 + .../services/user_event_service/transports/grpc_asyncio.py | 1 + .../services/user_event_service/transports/rest.py | 1 - google/cloud/retail_v2alpha/types/completion_service.py | 1 + google/cloud/retail_v2alpha/types/import_config.py | 1 + google/cloud/retail_v2alpha/types/model.py | 2 ++ google/cloud/retail_v2alpha/types/search_service.py | 1 + google/cloud/retail_v2alpha/types/user_event.py | 1 + .../retail_v2beta/services/catalog_service/async_client.py | 2 +- .../cloud/retail_v2beta/services/catalog_service/client.py | 2 +- .../services/catalog_service/transports/base.py | 2 +- .../services/catalog_service/transports/grpc.py | 2 +- .../services/catalog_service/transports/grpc_asyncio.py | 2 +- .../services/catalog_service/transports/rest.py | 2 +- .../services/completion_service/async_client.py | 6 +++++- .../retail_v2beta/services/completion_service/client.py | 6 +++++- .../services/completion_service/transports/grpc.py | 4 ++++ .../services/completion_service/transports/grpc_asyncio.py | 4 ++++ .../services/completion_service/transports/rest.py | 2 +- .../retail_v2beta/services/control_service/async_client.py | 3 ++- .../cloud/retail_v2beta/services/control_service/client.py | 3 ++- .../services/control_service/transports/base.py | 2 +- .../services/control_service/transports/grpc.py | 2 +- .../services/control_service/transports/grpc_asyncio.py | 2 +- .../services/control_service/transports/rest.py | 2 +- .../retail_v2beta/services/model_service/async_client.py | 3 ++- google/cloud/retail_v2beta/services/model_service/client.py | 3 ++- .../retail_v2beta/services/model_service/transports/rest.py | 1 - .../services/prediction_service/async_client.py | 2 +- .../retail_v2beta/services/prediction_service/client.py | 2 +- .../services/prediction_service/transports/base.py | 2 +- .../services/prediction_service/transports/grpc.py | 2 +- .../services/prediction_service/transports/grpc_asyncio.py | 2 +- .../services/prediction_service/transports/rest.py | 3 ++- .../retail_v2beta/services/product_service/async_client.py | 2 +- .../cloud/retail_v2beta/services/product_service/client.py | 2 +- .../services/product_service/transports/rest.py | 1 - .../retail_v2beta/services/search_service/async_client.py | 4 +++- .../cloud/retail_v2beta/services/search_service/client.py | 4 +++- .../services/search_service/transports/base.py | 2 +- .../services/search_service/transports/grpc.py | 4 +++- .../services/search_service/transports/grpc_asyncio.py | 4 +++- .../services/search_service/transports/rest.py | 4 +++- .../services/serving_config_service/async_client.py | 4 +++- .../retail_v2beta/services/serving_config_service/client.py | 4 +++- .../services/serving_config_service/transports/base.py | 2 +- .../services/serving_config_service/transports/grpc.py | 4 +++- .../serving_config_service/transports/grpc_asyncio.py | 4 +++- .../services/serving_config_service/transports/rest.py | 2 +- .../services/user_event_service/async_client.py | 3 ++- .../retail_v2beta/services/user_event_service/client.py | 3 ++- .../services/user_event_service/transports/grpc.py | 1 + .../services/user_event_service/transports/grpc_asyncio.py | 1 + .../services/user_event_service/transports/rest.py | 1 - google/cloud/retail_v2beta/types/import_config.py | 1 + google/cloud/retail_v2beta/types/model.py | 1 + google/cloud/retail_v2beta/types/search_service.py | 1 + google/cloud/retail_v2beta/types/user_event.py | 1 + tests/unit/gapic/retail_v2/test_catalog_service.py | 2 +- tests/unit/gapic/retail_v2/test_completion_service.py | 2 +- tests/unit/gapic/retail_v2/test_control_service.py | 2 +- tests/unit/gapic/retail_v2/test_model_service.py | 2 +- tests/unit/gapic/retail_v2/test_prediction_service.py | 2 +- tests/unit/gapic/retail_v2/test_product_service.py | 2 +- tests/unit/gapic/retail_v2/test_search_service.py | 2 +- tests/unit/gapic/retail_v2/test_serving_config_service.py | 2 +- tests/unit/gapic/retail_v2/test_user_event_service.py | 2 +- tests/unit/gapic/retail_v2alpha/test_catalog_service.py | 2 +- tests/unit/gapic/retail_v2alpha/test_completion_service.py | 2 +- tests/unit/gapic/retail_v2alpha/test_control_service.py | 2 +- .../test_merchant_center_account_link_service.py | 2 +- tests/unit/gapic/retail_v2alpha/test_model_service.py | 2 +- tests/unit/gapic/retail_v2alpha/test_prediction_service.py | 2 +- tests/unit/gapic/retail_v2alpha/test_product_service.py | 2 +- tests/unit/gapic/retail_v2alpha/test_search_service.py | 2 +- .../gapic/retail_v2alpha/test_serving_config_service.py | 2 +- tests/unit/gapic/retail_v2alpha/test_user_event_service.py | 2 +- tests/unit/gapic/retail_v2beta/test_catalog_service.py | 2 +- tests/unit/gapic/retail_v2beta/test_completion_service.py | 2 +- tests/unit/gapic/retail_v2beta/test_control_service.py | 2 +- tests/unit/gapic/retail_v2beta/test_model_service.py | 2 +- tests/unit/gapic/retail_v2beta/test_prediction_service.py | 2 +- tests/unit/gapic/retail_v2beta/test_product_service.py | 2 +- tests/unit/gapic/retail_v2beta/test_search_service.py | 2 +- .../unit/gapic/retail_v2beta/test_serving_config_service.py | 2 +- tests/unit/gapic/retail_v2beta/test_user_event_service.py | 2 +- 182 files changed, 290 insertions(+), 157 deletions(-) diff --git a/google/cloud/retail_v2/services/catalog_service/async_client.py b/google/cloud/retail_v2/services/catalog_service/async_client.py index 3cbd2831..9d544896 100644 --- a/google/cloud/retail_v2/services/catalog_service/async_client.py +++ b/google/cloud/retail_v2/services/catalog_service/async_client.py @@ -43,7 +43,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/google/cloud/retail_v2/services/catalog_service/client.py b/google/cloud/retail_v2/services/catalog_service/client.py index cbf1ce80..4d6d7157 100644 --- a/google/cloud/retail_v2/services/catalog_service/client.py +++ b/google/cloud/retail_v2/services/catalog_service/client.py @@ -47,7 +47,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/google/cloud/retail_v2/services/catalog_service/transports/base.py b/google/cloud/retail_v2/services/catalog_service/transports/base.py index 7e95caac..5cb72ea8 100644 --- a/google/cloud/retail_v2/services/catalog_service/transports/base.py +++ b/google/cloud/retail_v2/services/catalog_service/transports/base.py @@ -23,7 +23,7 @@ import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account # type: ignore from google.protobuf import empty_pb2 # type: ignore diff --git a/google/cloud/retail_v2/services/catalog_service/transports/grpc.py b/google/cloud/retail_v2/services/catalog_service/transports/grpc.py index cc8fd5dd..cadce9b1 100644 --- a/google/cloud/retail_v2/services/catalog_service/transports/grpc.py +++ b/google/cloud/retail_v2/services/catalog_service/transports/grpc.py @@ -21,7 +21,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore import grpc # type: ignore diff --git a/google/cloud/retail_v2/services/catalog_service/transports/grpc_asyncio.py b/google/cloud/retail_v2/services/catalog_service/transports/grpc_asyncio.py index ed05b1d5..1a7f6963 100644 --- a/google/cloud/retail_v2/services/catalog_service/transports/grpc_asyncio.py +++ b/google/cloud/retail_v2/services/catalog_service/transports/grpc_asyncio.py @@ -20,7 +20,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore import grpc # type: ignore from grpc.experimental import aio # type: ignore diff --git a/google/cloud/retail_v2/services/catalog_service/transports/rest.py b/google/cloud/retail_v2/services/catalog_service/transports/rest.py index a75093c5..a9cf533e 100644 --- a/google/cloud/retail_v2/services/catalog_service/transports/rest.py +++ b/google/cloud/retail_v2/services/catalog_service/transports/rest.py @@ -27,7 +27,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version @@ -38,6 +37,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.cloud.retail_v2.types import catalog diff --git a/google/cloud/retail_v2/services/completion_service/async_client.py b/google/cloud/retail_v2/services/completion_service/async_client.py index 6e91c7e7..e86b5bdb 100644 --- a/google/cloud/retail_v2/services/completion_service/async_client.py +++ b/google/cloud/retail_v2/services/completion_service/async_client.py @@ -45,7 +45,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.retail_v2.types import completion_service, import_config @@ -56,6 +56,7 @@ class CompletionServiceAsyncClient: """Autocomplete service for retail. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -315,11 +316,14 @@ async def import_completion_data( metadata: Sequence[Tuple[str, str]] = (), ) -> operation_async.AsyncOperation: r"""Bulk import of processed completion dataset. + Request processing is asynchronous. Partial updating is not supported. + The operation is successfully finished only after the imported suggestions are indexed successfully and ready for serving. The process takes hours. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2/services/completion_service/client.py b/google/cloud/retail_v2/services/completion_service/client.py index 8f2f8348..b18fe3ac 100644 --- a/google/cloud/retail_v2/services/completion_service/client.py +++ b/google/cloud/retail_v2/services/completion_service/client.py @@ -49,7 +49,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.retail_v2.types import completion_service, import_config @@ -98,6 +98,7 @@ def get_transport_class( class CompletionServiceClient(metaclass=CompletionServiceClientMeta): """Autocomplete service for retail. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -545,11 +546,14 @@ def import_completion_data( metadata: Sequence[Tuple[str, str]] = (), ) -> operation.Operation: r"""Bulk import of processed completion dataset. + Request processing is asynchronous. Partial updating is not supported. + The operation is successfully finished only after the imported suggestions are indexed successfully and ready for serving. The process takes hours. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2/services/completion_service/transports/grpc.py b/google/cloud/retail_v2/services/completion_service/transports/grpc.py index 3e714575..02f29ea3 100644 --- a/google/cloud/retail_v2/services/completion_service/transports/grpc.py +++ b/google/cloud/retail_v2/services/completion_service/transports/grpc.py @@ -33,6 +33,7 @@ class CompletionServiceGrpcTransport(CompletionServiceTransport): """gRPC backend transport for CompletionService. Autocomplete service for retail. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -290,11 +291,14 @@ def import_completion_data( r"""Return a callable for the import completion data method over gRPC. Bulk import of processed completion dataset. + Request processing is asynchronous. Partial updating is not supported. + The operation is successfully finished only after the imported suggestions are indexed successfully and ready for serving. The process takes hours. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2/services/completion_service/transports/grpc_asyncio.py b/google/cloud/retail_v2/services/completion_service/transports/grpc_asyncio.py index 04123ebe..11a084d8 100644 --- a/google/cloud/retail_v2/services/completion_service/transports/grpc_asyncio.py +++ b/google/cloud/retail_v2/services/completion_service/transports/grpc_asyncio.py @@ -34,6 +34,7 @@ class CompletionServiceGrpcAsyncIOTransport(CompletionServiceTransport): """gRPC AsyncIO backend transport for CompletionService. Autocomplete service for retail. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -295,11 +296,14 @@ def import_completion_data( r"""Return a callable for the import completion data method over gRPC. Bulk import of processed completion dataset. + Request processing is asynchronous. Partial updating is not supported. + The operation is successfully finished only after the imported suggestions are indexed successfully and ready for serving. The process takes hours. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2/services/completion_service/transports/rest.py b/google/cloud/retail_v2/services/completion_service/transports/rest.py index 54354f96..dfcd2887 100644 --- a/google/cloud/retail_v2/services/completion_service/transports/rest.py +++ b/google/cloud/retail_v2/services/completion_service/transports/rest.py @@ -33,7 +33,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version @@ -199,6 +198,7 @@ class CompletionServiceRestTransport(CompletionServiceTransport): """REST backend transport for CompletionService. Autocomplete service for retail. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2/services/control_service/async_client.py b/google/cloud/retail_v2/services/control_service/async_client.py index d78cfde0..8aca9adb 100644 --- a/google/cloud/retail_v2/services/control_service/async_client.py +++ b/google/cloud/retail_v2/services/control_service/async_client.py @@ -43,7 +43,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.cloud.retail_v2.services.control_service import pagers @@ -739,6 +739,7 @@ async def sample_list_controls(): Returns: google.cloud.retail_v2.services.control_service.pagers.ListControlsAsyncPager: Response for ListControls method. + Iterating over this object will yield results and resolve additional pages automatically. diff --git a/google/cloud/retail_v2/services/control_service/client.py b/google/cloud/retail_v2/services/control_service/client.py index 48fe4a81..8be4a451 100644 --- a/google/cloud/retail_v2/services/control_service/client.py +++ b/google/cloud/retail_v2/services/control_service/client.py @@ -47,7 +47,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.cloud.retail_v2.services.control_service import pagers @@ -990,6 +990,7 @@ def sample_list_controls(): Returns: google.cloud.retail_v2.services.control_service.pagers.ListControlsPager: Response for ListControls method. + Iterating over this object will yield results and resolve additional pages automatically. diff --git a/google/cloud/retail_v2/services/control_service/transports/base.py b/google/cloud/retail_v2/services/control_service/transports/base.py index 3ea998a4..1d719b3e 100644 --- a/google/cloud/retail_v2/services/control_service/transports/base.py +++ b/google/cloud/retail_v2/services/control_service/transports/base.py @@ -23,7 +23,7 @@ import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account # type: ignore from google.protobuf import empty_pb2 # type: ignore diff --git a/google/cloud/retail_v2/services/control_service/transports/grpc.py b/google/cloud/retail_v2/services/control_service/transports/grpc.py index 6593fea1..ec79e9cd 100644 --- a/google/cloud/retail_v2/services/control_service/transports/grpc.py +++ b/google/cloud/retail_v2/services/control_service/transports/grpc.py @@ -21,7 +21,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore import grpc # type: ignore diff --git a/google/cloud/retail_v2/services/control_service/transports/grpc_asyncio.py b/google/cloud/retail_v2/services/control_service/transports/grpc_asyncio.py index 8f909259..29812331 100644 --- a/google/cloud/retail_v2/services/control_service/transports/grpc_asyncio.py +++ b/google/cloud/retail_v2/services/control_service/transports/grpc_asyncio.py @@ -20,7 +20,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore import grpc # type: ignore from grpc.experimental import aio # type: ignore diff --git a/google/cloud/retail_v2/services/control_service/transports/rest.py b/google/cloud/retail_v2/services/control_service/transports/rest.py index 9c1680f2..4704e17e 100644 --- a/google/cloud/retail_v2/services/control_service/transports/rest.py +++ b/google/cloud/retail_v2/services/control_service/transports/rest.py @@ -27,7 +27,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version @@ -38,6 +37,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.cloud.retail_v2.types import control diff --git a/google/cloud/retail_v2/services/model_service/async_client.py b/google/cloud/retail_v2/services/model_service/async_client.py index 590c739d..dd2ffb08 100644 --- a/google/cloud/retail_v2/services/model_service/async_client.py +++ b/google/cloud/retail_v2/services/model_service/async_client.py @@ -45,7 +45,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -836,6 +836,7 @@ async def sample_list_models(): Returns: google.cloud.retail_v2.services.model_service.pagers.ListModelsAsyncPager: Response to a ListModelRequest. + Iterating over this object will yield results and resolve additional pages automatically. diff --git a/google/cloud/retail_v2/services/model_service/client.py b/google/cloud/retail_v2/services/model_service/client.py index 63c6c5c6..bcb7fda8 100644 --- a/google/cloud/retail_v2/services/model_service/client.py +++ b/google/cloud/retail_v2/services/model_service/client.py @@ -49,7 +49,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -1089,6 +1089,7 @@ def sample_list_models(): Returns: google.cloud.retail_v2.services.model_service.pagers.ListModelsPager: Response to a ListModelRequest. + Iterating over this object will yield results and resolve additional pages automatically. diff --git a/google/cloud/retail_v2/services/model_service/transports/rest.py b/google/cloud/retail_v2/services/model_service/transports/rest.py index cc7d8880..db5aedb0 100644 --- a/google/cloud/retail_v2/services/model_service/transports/rest.py +++ b/google/cloud/retail_v2/services/model_service/transports/rest.py @@ -33,7 +33,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version diff --git a/google/cloud/retail_v2/services/prediction_service/async_client.py b/google/cloud/retail_v2/services/prediction_service/async_client.py index 07e37fd5..1e7176e9 100644 --- a/google/cloud/retail_v2/services/prediction_service/async_client.py +++ b/google/cloud/retail_v2/services/prediction_service/async_client.py @@ -43,7 +43,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.retail_v2.types import prediction_service diff --git a/google/cloud/retail_v2/services/prediction_service/client.py b/google/cloud/retail_v2/services/prediction_service/client.py index cfbf824e..6eb7c5aa 100644 --- a/google/cloud/retail_v2/services/prediction_service/client.py +++ b/google/cloud/retail_v2/services/prediction_service/client.py @@ -47,7 +47,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.retail_v2.types import prediction_service diff --git a/google/cloud/retail_v2/services/prediction_service/transports/base.py b/google/cloud/retail_v2/services/prediction_service/transports/base.py index d7c30064..e28d1f0b 100644 --- a/google/cloud/retail_v2/services/prediction_service/transports/base.py +++ b/google/cloud/retail_v2/services/prediction_service/transports/base.py @@ -23,7 +23,7 @@ import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account # type: ignore from google.cloud.retail_v2 import gapic_version as package_version diff --git a/google/cloud/retail_v2/services/prediction_service/transports/grpc.py b/google/cloud/retail_v2/services/prediction_service/transports/grpc.py index 5c30ed74..1350e69e 100644 --- a/google/cloud/retail_v2/services/prediction_service/transports/grpc.py +++ b/google/cloud/retail_v2/services/prediction_service/transports/grpc.py @@ -21,7 +21,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore import grpc # type: ignore from google.cloud.retail_v2.types import prediction_service diff --git a/google/cloud/retail_v2/services/prediction_service/transports/grpc_asyncio.py b/google/cloud/retail_v2/services/prediction_service/transports/grpc_asyncio.py index 53be130c..bf52b58b 100644 --- a/google/cloud/retail_v2/services/prediction_service/transports/grpc_asyncio.py +++ b/google/cloud/retail_v2/services/prediction_service/transports/grpc_asyncio.py @@ -20,7 +20,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore import grpc # type: ignore from grpc.experimental import aio # type: ignore diff --git a/google/cloud/retail_v2/services/prediction_service/transports/rest.py b/google/cloud/retail_v2/services/prediction_service/transports/rest.py index 30b4c774..21aeb208 100644 --- a/google/cloud/retail_v2/services/prediction_service/transports/rest.py +++ b/google/cloud/retail_v2/services/prediction_service/transports/rest.py @@ -27,7 +27,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version @@ -38,6 +37,8 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore +from google.longrunning import operations_pb2 # type: ignore + from google.cloud.retail_v2.types import prediction_service from .base import DEFAULT_CLIENT_INFO as BASE_DEFAULT_CLIENT_INFO diff --git a/google/cloud/retail_v2/services/product_service/async_client.py b/google/cloud/retail_v2/services/product_service/async_client.py index 790cdc8c..15d32b69 100644 --- a/google/cloud/retail_v2/services/product_service/async_client.py +++ b/google/cloud/retail_v2/services/product_service/async_client.py @@ -45,7 +45,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import duration_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/google/cloud/retail_v2/services/product_service/client.py b/google/cloud/retail_v2/services/product_service/client.py index 018cd2ec..7f1c1d6a 100644 --- a/google/cloud/retail_v2/services/product_service/client.py +++ b/google/cloud/retail_v2/services/product_service/client.py @@ -49,7 +49,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import duration_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/google/cloud/retail_v2/services/product_service/transports/rest.py b/google/cloud/retail_v2/services/product_service/transports/rest.py index 2157a0b2..4707ff07 100644 --- a/google/cloud/retail_v2/services/product_service/transports/rest.py +++ b/google/cloud/retail_v2/services/product_service/transports/rest.py @@ -33,7 +33,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version diff --git a/google/cloud/retail_v2/services/search_service/async_client.py b/google/cloud/retail_v2/services/search_service/async_client.py index bc3ec399..b8dfa115 100644 --- a/google/cloud/retail_v2/services/search_service/async_client.py +++ b/google/cloud/retail_v2/services/search_service/async_client.py @@ -43,7 +43,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.retail_v2.services.search_service import pagers from google.cloud.retail_v2.types import search_service @@ -55,6 +55,7 @@ class SearchServiceAsyncClient: """Service for search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -238,6 +239,7 @@ async def search( metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.SearchAsyncPager: r"""Performs a search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2/services/search_service/client.py b/google/cloud/retail_v2/services/search_service/client.py index 3b3c029b..b88b9702 100644 --- a/google/cloud/retail_v2/services/search_service/client.py +++ b/google/cloud/retail_v2/services/search_service/client.py @@ -47,7 +47,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.retail_v2.services.search_service import pagers from google.cloud.retail_v2.types import search_service @@ -95,6 +95,7 @@ def get_transport_class( class SearchServiceClient(metaclass=SearchServiceClientMeta): """Service for search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -533,6 +534,7 @@ def search( metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.SearchPager: r"""Performs a search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2/services/search_service/transports/base.py b/google/cloud/retail_v2/services/search_service/transports/base.py index 2be472d4..5d9d59d0 100644 --- a/google/cloud/retail_v2/services/search_service/transports/base.py +++ b/google/cloud/retail_v2/services/search_service/transports/base.py @@ -23,7 +23,7 @@ import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account # type: ignore from google.cloud.retail_v2 import gapic_version as package_version diff --git a/google/cloud/retail_v2/services/search_service/transports/grpc.py b/google/cloud/retail_v2/services/search_service/transports/grpc.py index 8d860c9a..11738cb8 100644 --- a/google/cloud/retail_v2/services/search_service/transports/grpc.py +++ b/google/cloud/retail_v2/services/search_service/transports/grpc.py @@ -21,7 +21,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore import grpc # type: ignore from google.cloud.retail_v2.types import search_service @@ -33,6 +33,7 @@ class SearchServiceGrpcTransport(SearchServiceTransport): """gRPC backend transport for SearchService. Service for search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -240,6 +241,7 @@ def search( r"""Return a callable for the search method over gRPC. Performs a search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2/services/search_service/transports/grpc_asyncio.py b/google/cloud/retail_v2/services/search_service/transports/grpc_asyncio.py index a0948ba5..6465c295 100644 --- a/google/cloud/retail_v2/services/search_service/transports/grpc_asyncio.py +++ b/google/cloud/retail_v2/services/search_service/transports/grpc_asyncio.py @@ -20,7 +20,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore import grpc # type: ignore from grpc.experimental import aio # type: ignore @@ -34,6 +34,7 @@ class SearchServiceGrpcAsyncIOTransport(SearchServiceTransport): """gRPC AsyncIO backend transport for SearchService. Service for search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -245,6 +246,7 @@ def search( r"""Return a callable for the search method over gRPC. Performs a search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2/services/search_service/transports/rest.py b/google/cloud/retail_v2/services/search_service/transports/rest.py index 7cce2a85..9124cce1 100644 --- a/google/cloud/retail_v2/services/search_service/transports/rest.py +++ b/google/cloud/retail_v2/services/search_service/transports/rest.py @@ -27,7 +27,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version @@ -38,6 +37,8 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore +from google.longrunning import operations_pb2 # type: ignore + from google.cloud.retail_v2.types import search_service from .base import DEFAULT_CLIENT_INFO as BASE_DEFAULT_CLIENT_INFO @@ -158,6 +159,7 @@ class SearchServiceRestTransport(SearchServiceTransport): """REST backend transport for SearchService. Service for search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2/services/serving_config_service/async_client.py b/google/cloud/retail_v2/services/serving_config_service/async_client.py index 967b206f..9568ef69 100644 --- a/google/cloud/retail_v2/services/serving_config_service/async_client.py +++ b/google/cloud/retail_v2/services/serving_config_service/async_client.py @@ -43,7 +43,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.cloud.retail_v2.services.serving_config_service import pagers @@ -379,6 +379,7 @@ async def delete_serving_config( metadata: Sequence[Tuple[str, str]] = (), ) -> None: r"""Deletes a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. @@ -601,6 +602,7 @@ async def get_serving_config( metadata: Sequence[Tuple[str, str]] = (), ) -> serving_config.ServingConfig: r"""Gets a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. diff --git a/google/cloud/retail_v2/services/serving_config_service/client.py b/google/cloud/retail_v2/services/serving_config_service/client.py index 5c85085b..505ea224 100644 --- a/google/cloud/retail_v2/services/serving_config_service/client.py +++ b/google/cloud/retail_v2/services/serving_config_service/client.py @@ -47,7 +47,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.cloud.retail_v2.services.serving_config_service import pagers @@ -627,6 +627,7 @@ def delete_serving_config( metadata: Sequence[Tuple[str, str]] = (), ) -> None: r"""Deletes a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. @@ -849,6 +850,7 @@ def get_serving_config( metadata: Sequence[Tuple[str, str]] = (), ) -> serving_config.ServingConfig: r"""Gets a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. diff --git a/google/cloud/retail_v2/services/serving_config_service/transports/base.py b/google/cloud/retail_v2/services/serving_config_service/transports/base.py index ac649480..94871949 100644 --- a/google/cloud/retail_v2/services/serving_config_service/transports/base.py +++ b/google/cloud/retail_v2/services/serving_config_service/transports/base.py @@ -23,7 +23,7 @@ import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account # type: ignore from google.protobuf import empty_pb2 # type: ignore diff --git a/google/cloud/retail_v2/services/serving_config_service/transports/grpc.py b/google/cloud/retail_v2/services/serving_config_service/transports/grpc.py index cb90ce64..134bb3a8 100644 --- a/google/cloud/retail_v2/services/serving_config_service/transports/grpc.py +++ b/google/cloud/retail_v2/services/serving_config_service/transports/grpc.py @@ -21,7 +21,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore import grpc # type: ignore @@ -274,6 +274,7 @@ def delete_serving_config( r"""Return a callable for the delete serving config method over gRPC. Deletes a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. @@ -333,6 +334,7 @@ def get_serving_config( r"""Return a callable for the get serving config method over gRPC. Gets a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. diff --git a/google/cloud/retail_v2/services/serving_config_service/transports/grpc_asyncio.py b/google/cloud/retail_v2/services/serving_config_service/transports/grpc_asyncio.py index 71310e89..80dcaf88 100644 --- a/google/cloud/retail_v2/services/serving_config_service/transports/grpc_asyncio.py +++ b/google/cloud/retail_v2/services/serving_config_service/transports/grpc_asyncio.py @@ -20,7 +20,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore import grpc # type: ignore from grpc.experimental import aio # type: ignore @@ -279,6 +279,7 @@ def delete_serving_config( r"""Return a callable for the delete serving config method over gRPC. Deletes a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. @@ -339,6 +340,7 @@ def get_serving_config( r"""Return a callable for the get serving config method over gRPC. Gets a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. diff --git a/google/cloud/retail_v2/services/serving_config_service/transports/rest.py b/google/cloud/retail_v2/services/serving_config_service/transports/rest.py index fa57e150..092337c0 100644 --- a/google/cloud/retail_v2/services/serving_config_service/transports/rest.py +++ b/google/cloud/retail_v2/services/serving_config_service/transports/rest.py @@ -27,7 +27,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version @@ -38,6 +37,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.cloud.retail_v2.types import serving_config diff --git a/google/cloud/retail_v2/services/user_event_service/async_client.py b/google/cloud/retail_v2/services/user_event_service/async_client.py index c31429e9..61db821d 100644 --- a/google/cloud/retail_v2/services/user_event_service/async_client.py +++ b/google/cloud/retail_v2/services/user_event_service/async_client.py @@ -46,7 +46,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import any_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -331,6 +331,7 @@ async def collect_user_event( r"""Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. + This method is used only by the Retail API JavaScript pixel and Google Tag Manager. Users should not call this method directly. diff --git a/google/cloud/retail_v2/services/user_event_service/client.py b/google/cloud/retail_v2/services/user_event_service/client.py index fbe5118b..4defd381 100644 --- a/google/cloud/retail_v2/services/user_event_service/client.py +++ b/google/cloud/retail_v2/services/user_event_service/client.py @@ -50,7 +50,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import any_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -585,6 +585,7 @@ def collect_user_event( r"""Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. + This method is used only by the Retail API JavaScript pixel and Google Tag Manager. Users should not call this method directly. diff --git a/google/cloud/retail_v2/services/user_event_service/transports/grpc.py b/google/cloud/retail_v2/services/user_event_service/transports/grpc.py index 1d9f514d..b11b2d92 100644 --- a/google/cloud/retail_v2/services/user_event_service/transports/grpc.py +++ b/google/cloud/retail_v2/services/user_event_service/transports/grpc.py @@ -287,6 +287,7 @@ def collect_user_event( Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. + This method is used only by the Retail API JavaScript pixel and Google Tag Manager. Users should not call this method directly. diff --git a/google/cloud/retail_v2/services/user_event_service/transports/grpc_asyncio.py b/google/cloud/retail_v2/services/user_event_service/transports/grpc_asyncio.py index 3aefabc6..9e792a69 100644 --- a/google/cloud/retail_v2/services/user_event_service/transports/grpc_asyncio.py +++ b/google/cloud/retail_v2/services/user_event_service/transports/grpc_asyncio.py @@ -296,6 +296,7 @@ def collect_user_event( Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. + This method is used only by the Retail API JavaScript pixel and Google Tag Manager. Users should not call this method directly. diff --git a/google/cloud/retail_v2/services/user_event_service/transports/rest.py b/google/cloud/retail_v2/services/user_event_service/transports/rest.py index d40ce4ca..e768908c 100644 --- a/google/cloud/retail_v2/services/user_event_service/transports/rest.py +++ b/google/cloud/retail_v2/services/user_event_service/transports/rest.py @@ -33,7 +33,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version diff --git a/google/cloud/retail_v2/types/import_config.py b/google/cloud/retail_v2/types/import_config.py index 9fbfc3b6..6348cf6a 100644 --- a/google/cloud/retail_v2/types/import_config.py +++ b/google/cloud/retail_v2/types/import_config.py @@ -518,6 +518,7 @@ class CompletionDataInputConfig(proto.Message): Attributes: big_query_source (google.cloud.retail_v2.types.BigQuerySource): Required. BigQuery input source. + Add the IAM permission "BigQuery Data Viewer" for cloud-retail-customer-data-access@system.gserviceaccount.com diff --git a/google/cloud/retail_v2/types/model.py b/google/cloud/retail_v2/types/model.py index 51f0b0e1..753b05ad 100644 --- a/google/cloud/retail_v2/types/model.py +++ b/google/cloud/retail_v2/types/model.py @@ -47,6 +47,7 @@ class Model(proto.Message): char limit of 40. display_name (str): Required. The display name of the model. + Should be human readable, used to display Recommendation Models in the Retail Cloud Console Dashboard. UTF-8 encoded string with diff --git a/google/cloud/retail_v2/types/search_service.py b/google/cloud/retail_v2/types/search_service.py index 27dffa1e..f1a721ce 100644 --- a/google/cloud/retail_v2/types/search_service.py +++ b/google/cloud/retail_v2/types/search_service.py @@ -152,6 +152,7 @@ class SearchRequest(proto.Message): Deprecated. Refer to https://cloud.google.com/retail/docs/configs#dynamic to enable dynamic facets. Do not set this field. + The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. diff --git a/google/cloud/retail_v2/types/user_event.py b/google/cloud/retail_v2/types/user_event.py index 177cbd92..44acab40 100644 --- a/google/cloud/retail_v2/types/user_event.py +++ b/google/cloud/retail_v2/types/user_event.py @@ -274,6 +274,7 @@ class UserEvent(proto.Message): 5,000 characters. referrer_uri (str): The referrer URL of the current page. + When using the client side event reporting with JavaScript pixel and Google Tag Manager, this value is filled in automatically. diff --git a/google/cloud/retail_v2alpha/services/catalog_service/async_client.py b/google/cloud/retail_v2alpha/services/catalog_service/async_client.py index 2b36c043..65d4bc4a 100644 --- a/google/cloud/retail_v2alpha/services/catalog_service/async_client.py +++ b/google/cloud/retail_v2alpha/services/catalog_service/async_client.py @@ -43,7 +43,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/google/cloud/retail_v2alpha/services/catalog_service/client.py b/google/cloud/retail_v2alpha/services/catalog_service/client.py index 3d18b570..ba6ca773 100644 --- a/google/cloud/retail_v2alpha/services/catalog_service/client.py +++ b/google/cloud/retail_v2alpha/services/catalog_service/client.py @@ -47,7 +47,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/google/cloud/retail_v2alpha/services/catalog_service/transports/base.py b/google/cloud/retail_v2alpha/services/catalog_service/transports/base.py index 5ee9d615..a99475d3 100644 --- a/google/cloud/retail_v2alpha/services/catalog_service/transports/base.py +++ b/google/cloud/retail_v2alpha/services/catalog_service/transports/base.py @@ -23,7 +23,7 @@ import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account # type: ignore from google.protobuf import empty_pb2 # type: ignore diff --git a/google/cloud/retail_v2alpha/services/catalog_service/transports/grpc.py b/google/cloud/retail_v2alpha/services/catalog_service/transports/grpc.py index 8429455b..10d888dd 100644 --- a/google/cloud/retail_v2alpha/services/catalog_service/transports/grpc.py +++ b/google/cloud/retail_v2alpha/services/catalog_service/transports/grpc.py @@ -21,7 +21,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore import grpc # type: ignore diff --git a/google/cloud/retail_v2alpha/services/catalog_service/transports/grpc_asyncio.py b/google/cloud/retail_v2alpha/services/catalog_service/transports/grpc_asyncio.py index 68063602..fd963148 100644 --- a/google/cloud/retail_v2alpha/services/catalog_service/transports/grpc_asyncio.py +++ b/google/cloud/retail_v2alpha/services/catalog_service/transports/grpc_asyncio.py @@ -20,7 +20,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore import grpc # type: ignore from grpc.experimental import aio # type: ignore diff --git a/google/cloud/retail_v2alpha/services/catalog_service/transports/rest.py b/google/cloud/retail_v2alpha/services/catalog_service/transports/rest.py index 66c1f6d0..94a7e82b 100644 --- a/google/cloud/retail_v2alpha/services/catalog_service/transports/rest.py +++ b/google/cloud/retail_v2alpha/services/catalog_service/transports/rest.py @@ -27,7 +27,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version @@ -38,6 +37,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.cloud.retail_v2alpha.types import catalog diff --git a/google/cloud/retail_v2alpha/services/completion_service/async_client.py b/google/cloud/retail_v2alpha/services/completion_service/async_client.py index aed998c3..1bbdfe5d 100644 --- a/google/cloud/retail_v2alpha/services/completion_service/async_client.py +++ b/google/cloud/retail_v2alpha/services/completion_service/async_client.py @@ -45,7 +45,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.retail_v2alpha.types import completion_service, import_config @@ -56,6 +56,7 @@ class CompletionServiceAsyncClient: """Autocomplete service for retail. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -315,11 +316,14 @@ async def import_completion_data( metadata: Sequence[Tuple[str, str]] = (), ) -> operation_async.AsyncOperation: r"""Bulk import of processed completion dataset. + Request processing is asynchronous. Partial updating is not supported. + The operation is successfully finished only after the imported suggestions are indexed successfully and ready for serving. The process takes hours. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2alpha/services/completion_service/client.py b/google/cloud/retail_v2alpha/services/completion_service/client.py index 3d5632f8..8c06d077 100644 --- a/google/cloud/retail_v2alpha/services/completion_service/client.py +++ b/google/cloud/retail_v2alpha/services/completion_service/client.py @@ -49,7 +49,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.retail_v2alpha.types import completion_service, import_config @@ -98,6 +98,7 @@ def get_transport_class( class CompletionServiceClient(metaclass=CompletionServiceClientMeta): """Autocomplete service for retail. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -545,11 +546,14 @@ def import_completion_data( metadata: Sequence[Tuple[str, str]] = (), ) -> operation.Operation: r"""Bulk import of processed completion dataset. + Request processing is asynchronous. Partial updating is not supported. + The operation is successfully finished only after the imported suggestions are indexed successfully and ready for serving. The process takes hours. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2alpha/services/completion_service/transports/grpc.py b/google/cloud/retail_v2alpha/services/completion_service/transports/grpc.py index 224c0177..11858495 100644 --- a/google/cloud/retail_v2alpha/services/completion_service/transports/grpc.py +++ b/google/cloud/retail_v2alpha/services/completion_service/transports/grpc.py @@ -33,6 +33,7 @@ class CompletionServiceGrpcTransport(CompletionServiceTransport): """gRPC backend transport for CompletionService. Autocomplete service for retail. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -290,11 +291,14 @@ def import_completion_data( r"""Return a callable for the import completion data method over gRPC. Bulk import of processed completion dataset. + Request processing is asynchronous. Partial updating is not supported. + The operation is successfully finished only after the imported suggestions are indexed successfully and ready for serving. The process takes hours. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2alpha/services/completion_service/transports/grpc_asyncio.py b/google/cloud/retail_v2alpha/services/completion_service/transports/grpc_asyncio.py index 32c4f350..35fb88a3 100644 --- a/google/cloud/retail_v2alpha/services/completion_service/transports/grpc_asyncio.py +++ b/google/cloud/retail_v2alpha/services/completion_service/transports/grpc_asyncio.py @@ -34,6 +34,7 @@ class CompletionServiceGrpcAsyncIOTransport(CompletionServiceTransport): """gRPC AsyncIO backend transport for CompletionService. Autocomplete service for retail. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -295,11 +296,14 @@ def import_completion_data( r"""Return a callable for the import completion data method over gRPC. Bulk import of processed completion dataset. + Request processing is asynchronous. Partial updating is not supported. + The operation is successfully finished only after the imported suggestions are indexed successfully and ready for serving. The process takes hours. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2alpha/services/completion_service/transports/rest.py b/google/cloud/retail_v2alpha/services/completion_service/transports/rest.py index 9bbf2b74..9d39f670 100644 --- a/google/cloud/retail_v2alpha/services/completion_service/transports/rest.py +++ b/google/cloud/retail_v2alpha/services/completion_service/transports/rest.py @@ -33,7 +33,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version @@ -199,6 +198,7 @@ class CompletionServiceRestTransport(CompletionServiceTransport): """REST backend transport for CompletionService. Autocomplete service for retail. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2alpha/services/control_service/async_client.py b/google/cloud/retail_v2alpha/services/control_service/async_client.py index f02eeaf0..8461f0f1 100644 --- a/google/cloud/retail_v2alpha/services/control_service/async_client.py +++ b/google/cloud/retail_v2alpha/services/control_service/async_client.py @@ -43,7 +43,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.cloud.retail_v2alpha.services.control_service import pagers @@ -741,6 +741,7 @@ async def sample_list_controls(): Returns: google.cloud.retail_v2alpha.services.control_service.pagers.ListControlsAsyncPager: Response for ListControls method. + Iterating over this object will yield results and resolve additional pages automatically. diff --git a/google/cloud/retail_v2alpha/services/control_service/client.py b/google/cloud/retail_v2alpha/services/control_service/client.py index 8245ce64..7fb31f93 100644 --- a/google/cloud/retail_v2alpha/services/control_service/client.py +++ b/google/cloud/retail_v2alpha/services/control_service/client.py @@ -47,7 +47,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.cloud.retail_v2alpha.services.control_service import pagers @@ -992,6 +992,7 @@ def sample_list_controls(): Returns: google.cloud.retail_v2alpha.services.control_service.pagers.ListControlsPager: Response for ListControls method. + Iterating over this object will yield results and resolve additional pages automatically. diff --git a/google/cloud/retail_v2alpha/services/control_service/transports/base.py b/google/cloud/retail_v2alpha/services/control_service/transports/base.py index b442c323..0f32b6c6 100644 --- a/google/cloud/retail_v2alpha/services/control_service/transports/base.py +++ b/google/cloud/retail_v2alpha/services/control_service/transports/base.py @@ -23,7 +23,7 @@ import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account # type: ignore from google.protobuf import empty_pb2 # type: ignore diff --git a/google/cloud/retail_v2alpha/services/control_service/transports/grpc.py b/google/cloud/retail_v2alpha/services/control_service/transports/grpc.py index ec2723d4..d1f7ffd1 100644 --- a/google/cloud/retail_v2alpha/services/control_service/transports/grpc.py +++ b/google/cloud/retail_v2alpha/services/control_service/transports/grpc.py @@ -21,7 +21,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore import grpc # type: ignore diff --git a/google/cloud/retail_v2alpha/services/control_service/transports/grpc_asyncio.py b/google/cloud/retail_v2alpha/services/control_service/transports/grpc_asyncio.py index eb1eafb5..d26c5a26 100644 --- a/google/cloud/retail_v2alpha/services/control_service/transports/grpc_asyncio.py +++ b/google/cloud/retail_v2alpha/services/control_service/transports/grpc_asyncio.py @@ -20,7 +20,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore import grpc # type: ignore from grpc.experimental import aio # type: ignore diff --git a/google/cloud/retail_v2alpha/services/control_service/transports/rest.py b/google/cloud/retail_v2alpha/services/control_service/transports/rest.py index 23d7ee8f..08b677d8 100644 --- a/google/cloud/retail_v2alpha/services/control_service/transports/rest.py +++ b/google/cloud/retail_v2alpha/services/control_service/transports/rest.py @@ -27,7 +27,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version @@ -38,6 +37,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.cloud.retail_v2alpha.types import control diff --git a/google/cloud/retail_v2alpha/services/merchant_center_account_link_service/async_client.py b/google/cloud/retail_v2alpha/services/merchant_center_account_link_service/async_client.py index 685676e6..d4800071 100644 --- a/google/cloud/retail_v2alpha/services/merchant_center_account_link_service/async_client.py +++ b/google/cloud/retail_v2alpha/services/merchant_center_account_link_service/async_client.py @@ -45,7 +45,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.retail_v2alpha.types import ( merchant_center_account_link as gcr_merchant_center_account_link, diff --git a/google/cloud/retail_v2alpha/services/merchant_center_account_link_service/client.py b/google/cloud/retail_v2alpha/services/merchant_center_account_link_service/client.py index 0d996487..6c29e3d7 100644 --- a/google/cloud/retail_v2alpha/services/merchant_center_account_link_service/client.py +++ b/google/cloud/retail_v2alpha/services/merchant_center_account_link_service/client.py @@ -49,7 +49,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.retail_v2alpha.types import ( merchant_center_account_link as gcr_merchant_center_account_link, diff --git a/google/cloud/retail_v2alpha/services/merchant_center_account_link_service/transports/rest.py b/google/cloud/retail_v2alpha/services/merchant_center_account_link_service/transports/rest.py index 0dfe27b6..a5093f1d 100644 --- a/google/cloud/retail_v2alpha/services/merchant_center_account_link_service/transports/rest.py +++ b/google/cloud/retail_v2alpha/services/merchant_center_account_link_service/transports/rest.py @@ -33,7 +33,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version diff --git a/google/cloud/retail_v2alpha/services/model_service/async_client.py b/google/cloud/retail_v2alpha/services/model_service/async_client.py index bca4dfe7..433192e4 100644 --- a/google/cloud/retail_v2alpha/services/model_service/async_client.py +++ b/google/cloud/retail_v2alpha/services/model_service/async_client.py @@ -45,7 +45,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -841,6 +841,7 @@ async def sample_list_models(): Returns: google.cloud.retail_v2alpha.services.model_service.pagers.ListModelsAsyncPager: Response to a ListModelRequest. + Iterating over this object will yield results and resolve additional pages automatically. diff --git a/google/cloud/retail_v2alpha/services/model_service/client.py b/google/cloud/retail_v2alpha/services/model_service/client.py index f275364b..61d8664f 100644 --- a/google/cloud/retail_v2alpha/services/model_service/client.py +++ b/google/cloud/retail_v2alpha/services/model_service/client.py @@ -49,7 +49,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -1094,6 +1094,7 @@ def sample_list_models(): Returns: google.cloud.retail_v2alpha.services.model_service.pagers.ListModelsPager: Response to a ListModelRequest. + Iterating over this object will yield results and resolve additional pages automatically. diff --git a/google/cloud/retail_v2alpha/services/model_service/transports/rest.py b/google/cloud/retail_v2alpha/services/model_service/transports/rest.py index ae15fb42..78bb3fe6 100644 --- a/google/cloud/retail_v2alpha/services/model_service/transports/rest.py +++ b/google/cloud/retail_v2alpha/services/model_service/transports/rest.py @@ -33,7 +33,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version diff --git a/google/cloud/retail_v2alpha/services/prediction_service/async_client.py b/google/cloud/retail_v2alpha/services/prediction_service/async_client.py index 50363ddd..69a33c57 100644 --- a/google/cloud/retail_v2alpha/services/prediction_service/async_client.py +++ b/google/cloud/retail_v2alpha/services/prediction_service/async_client.py @@ -43,7 +43,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.retail_v2alpha.types import prediction_service diff --git a/google/cloud/retail_v2alpha/services/prediction_service/client.py b/google/cloud/retail_v2alpha/services/prediction_service/client.py index a5191b9c..af4d9b82 100644 --- a/google/cloud/retail_v2alpha/services/prediction_service/client.py +++ b/google/cloud/retail_v2alpha/services/prediction_service/client.py @@ -47,7 +47,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.retail_v2alpha.types import prediction_service diff --git a/google/cloud/retail_v2alpha/services/prediction_service/transports/base.py b/google/cloud/retail_v2alpha/services/prediction_service/transports/base.py index f5c7355b..fbf0cac1 100644 --- a/google/cloud/retail_v2alpha/services/prediction_service/transports/base.py +++ b/google/cloud/retail_v2alpha/services/prediction_service/transports/base.py @@ -23,7 +23,7 @@ import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account # type: ignore from google.cloud.retail_v2alpha import gapic_version as package_version diff --git a/google/cloud/retail_v2alpha/services/prediction_service/transports/grpc.py b/google/cloud/retail_v2alpha/services/prediction_service/transports/grpc.py index d6c991da..dff5b251 100644 --- a/google/cloud/retail_v2alpha/services/prediction_service/transports/grpc.py +++ b/google/cloud/retail_v2alpha/services/prediction_service/transports/grpc.py @@ -21,7 +21,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore import grpc # type: ignore from google.cloud.retail_v2alpha.types import prediction_service diff --git a/google/cloud/retail_v2alpha/services/prediction_service/transports/grpc_asyncio.py b/google/cloud/retail_v2alpha/services/prediction_service/transports/grpc_asyncio.py index 94bfd98f..0438b3cb 100644 --- a/google/cloud/retail_v2alpha/services/prediction_service/transports/grpc_asyncio.py +++ b/google/cloud/retail_v2alpha/services/prediction_service/transports/grpc_asyncio.py @@ -20,7 +20,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore import grpc # type: ignore from grpc.experimental import aio # type: ignore diff --git a/google/cloud/retail_v2alpha/services/prediction_service/transports/rest.py b/google/cloud/retail_v2alpha/services/prediction_service/transports/rest.py index eaa2d55e..be34dfb5 100644 --- a/google/cloud/retail_v2alpha/services/prediction_service/transports/rest.py +++ b/google/cloud/retail_v2alpha/services/prediction_service/transports/rest.py @@ -27,7 +27,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version @@ -38,6 +37,8 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore +from google.longrunning import operations_pb2 # type: ignore + from google.cloud.retail_v2alpha.types import prediction_service from .base import DEFAULT_CLIENT_INFO as BASE_DEFAULT_CLIENT_INFO diff --git a/google/cloud/retail_v2alpha/services/product_service/async_client.py b/google/cloud/retail_v2alpha/services/product_service/async_client.py index d0009b80..b17971fd 100644 --- a/google/cloud/retail_v2alpha/services/product_service/async_client.py +++ b/google/cloud/retail_v2alpha/services/product_service/async_client.py @@ -45,7 +45,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import duration_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/google/cloud/retail_v2alpha/services/product_service/client.py b/google/cloud/retail_v2alpha/services/product_service/client.py index 84a140e3..b100cb17 100644 --- a/google/cloud/retail_v2alpha/services/product_service/client.py +++ b/google/cloud/retail_v2alpha/services/product_service/client.py @@ -49,7 +49,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import duration_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/google/cloud/retail_v2alpha/services/product_service/transports/rest.py b/google/cloud/retail_v2alpha/services/product_service/transports/rest.py index ece6596e..257db4a5 100644 --- a/google/cloud/retail_v2alpha/services/product_service/transports/rest.py +++ b/google/cloud/retail_v2alpha/services/product_service/transports/rest.py @@ -33,7 +33,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version diff --git a/google/cloud/retail_v2alpha/services/search_service/async_client.py b/google/cloud/retail_v2alpha/services/search_service/async_client.py index 13f52ec6..91679a5a 100644 --- a/google/cloud/retail_v2alpha/services/search_service/async_client.py +++ b/google/cloud/retail_v2alpha/services/search_service/async_client.py @@ -43,7 +43,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.retail_v2alpha.services.search_service import pagers from google.cloud.retail_v2alpha.types import search_service @@ -55,6 +55,7 @@ class SearchServiceAsyncClient: """Service for search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -238,6 +239,7 @@ async def search( metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.SearchAsyncPager: r"""Performs a search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2alpha/services/search_service/client.py b/google/cloud/retail_v2alpha/services/search_service/client.py index e0a819f4..d5ccb823 100644 --- a/google/cloud/retail_v2alpha/services/search_service/client.py +++ b/google/cloud/retail_v2alpha/services/search_service/client.py @@ -47,7 +47,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.retail_v2alpha.services.search_service import pagers from google.cloud.retail_v2alpha.types import search_service @@ -95,6 +95,7 @@ def get_transport_class( class SearchServiceClient(metaclass=SearchServiceClientMeta): """Service for search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -533,6 +534,7 @@ def search( metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.SearchPager: r"""Performs a search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2alpha/services/search_service/transports/base.py b/google/cloud/retail_v2alpha/services/search_service/transports/base.py index 9edd86bd..215823fa 100644 --- a/google/cloud/retail_v2alpha/services/search_service/transports/base.py +++ b/google/cloud/retail_v2alpha/services/search_service/transports/base.py @@ -23,7 +23,7 @@ import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account # type: ignore from google.cloud.retail_v2alpha import gapic_version as package_version diff --git a/google/cloud/retail_v2alpha/services/search_service/transports/grpc.py b/google/cloud/retail_v2alpha/services/search_service/transports/grpc.py index 6b6fcb8b..5f028ba3 100644 --- a/google/cloud/retail_v2alpha/services/search_service/transports/grpc.py +++ b/google/cloud/retail_v2alpha/services/search_service/transports/grpc.py @@ -21,7 +21,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore import grpc # type: ignore from google.cloud.retail_v2alpha.types import search_service @@ -33,6 +33,7 @@ class SearchServiceGrpcTransport(SearchServiceTransport): """gRPC backend transport for SearchService. Service for search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -240,6 +241,7 @@ def search( r"""Return a callable for the search method over gRPC. Performs a search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2alpha/services/search_service/transports/grpc_asyncio.py b/google/cloud/retail_v2alpha/services/search_service/transports/grpc_asyncio.py index b03ceca9..6fc122cc 100644 --- a/google/cloud/retail_v2alpha/services/search_service/transports/grpc_asyncio.py +++ b/google/cloud/retail_v2alpha/services/search_service/transports/grpc_asyncio.py @@ -20,7 +20,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore import grpc # type: ignore from grpc.experimental import aio # type: ignore @@ -34,6 +34,7 @@ class SearchServiceGrpcAsyncIOTransport(SearchServiceTransport): """gRPC AsyncIO backend transport for SearchService. Service for search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -245,6 +246,7 @@ def search( r"""Return a callable for the search method over gRPC. Performs a search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2alpha/services/search_service/transports/rest.py b/google/cloud/retail_v2alpha/services/search_service/transports/rest.py index 6619aff8..a667552b 100644 --- a/google/cloud/retail_v2alpha/services/search_service/transports/rest.py +++ b/google/cloud/retail_v2alpha/services/search_service/transports/rest.py @@ -27,7 +27,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version @@ -38,6 +37,8 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore +from google.longrunning import operations_pb2 # type: ignore + from google.cloud.retail_v2alpha.types import search_service from .base import DEFAULT_CLIENT_INFO as BASE_DEFAULT_CLIENT_INFO @@ -158,6 +159,7 @@ class SearchServiceRestTransport(SearchServiceTransport): """REST backend transport for SearchService. Service for search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2alpha/services/serving_config_service/async_client.py b/google/cloud/retail_v2alpha/services/serving_config_service/async_client.py index 593f3c70..25b0b4f1 100644 --- a/google/cloud/retail_v2alpha/services/serving_config_service/async_client.py +++ b/google/cloud/retail_v2alpha/services/serving_config_service/async_client.py @@ -43,7 +43,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.cloud.retail_v2alpha.services.serving_config_service import pagers @@ -379,6 +379,7 @@ async def delete_serving_config( metadata: Sequence[Tuple[str, str]] = (), ) -> None: r"""Deletes a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. @@ -601,6 +602,7 @@ async def get_serving_config( metadata: Sequence[Tuple[str, str]] = (), ) -> serving_config.ServingConfig: r"""Gets a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. diff --git a/google/cloud/retail_v2alpha/services/serving_config_service/client.py b/google/cloud/retail_v2alpha/services/serving_config_service/client.py index 4d14ac7f..064a26c7 100644 --- a/google/cloud/retail_v2alpha/services/serving_config_service/client.py +++ b/google/cloud/retail_v2alpha/services/serving_config_service/client.py @@ -47,7 +47,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.cloud.retail_v2alpha.services.serving_config_service import pagers @@ -627,6 +627,7 @@ def delete_serving_config( metadata: Sequence[Tuple[str, str]] = (), ) -> None: r"""Deletes a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. @@ -849,6 +850,7 @@ def get_serving_config( metadata: Sequence[Tuple[str, str]] = (), ) -> serving_config.ServingConfig: r"""Gets a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. diff --git a/google/cloud/retail_v2alpha/services/serving_config_service/transports/base.py b/google/cloud/retail_v2alpha/services/serving_config_service/transports/base.py index 9962287b..657d961b 100644 --- a/google/cloud/retail_v2alpha/services/serving_config_service/transports/base.py +++ b/google/cloud/retail_v2alpha/services/serving_config_service/transports/base.py @@ -23,7 +23,7 @@ import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account # type: ignore from google.protobuf import empty_pb2 # type: ignore diff --git a/google/cloud/retail_v2alpha/services/serving_config_service/transports/grpc.py b/google/cloud/retail_v2alpha/services/serving_config_service/transports/grpc.py index 38019368..20268de0 100644 --- a/google/cloud/retail_v2alpha/services/serving_config_service/transports/grpc.py +++ b/google/cloud/retail_v2alpha/services/serving_config_service/transports/grpc.py @@ -21,7 +21,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore import grpc # type: ignore @@ -274,6 +274,7 @@ def delete_serving_config( r"""Return a callable for the delete serving config method over gRPC. Deletes a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. @@ -333,6 +334,7 @@ def get_serving_config( r"""Return a callable for the get serving config method over gRPC. Gets a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. diff --git a/google/cloud/retail_v2alpha/services/serving_config_service/transports/grpc_asyncio.py b/google/cloud/retail_v2alpha/services/serving_config_service/transports/grpc_asyncio.py index 5affcf44..ea4f98b5 100644 --- a/google/cloud/retail_v2alpha/services/serving_config_service/transports/grpc_asyncio.py +++ b/google/cloud/retail_v2alpha/services/serving_config_service/transports/grpc_asyncio.py @@ -20,7 +20,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore import grpc # type: ignore from grpc.experimental import aio # type: ignore @@ -279,6 +279,7 @@ def delete_serving_config( r"""Return a callable for the delete serving config method over gRPC. Deletes a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. @@ -339,6 +340,7 @@ def get_serving_config( r"""Return a callable for the get serving config method over gRPC. Gets a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. diff --git a/google/cloud/retail_v2alpha/services/serving_config_service/transports/rest.py b/google/cloud/retail_v2alpha/services/serving_config_service/transports/rest.py index 16c60b94..fef1ae17 100644 --- a/google/cloud/retail_v2alpha/services/serving_config_service/transports/rest.py +++ b/google/cloud/retail_v2alpha/services/serving_config_service/transports/rest.py @@ -27,7 +27,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version @@ -38,6 +37,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.cloud.retail_v2alpha.types import serving_config as gcr_serving_config diff --git a/google/cloud/retail_v2alpha/services/user_event_service/async_client.py b/google/cloud/retail_v2alpha/services/user_event_service/async_client.py index a4930282..b44a2b5a 100644 --- a/google/cloud/retail_v2alpha/services/user_event_service/async_client.py +++ b/google/cloud/retail_v2alpha/services/user_event_service/async_client.py @@ -46,7 +46,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import any_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -331,6 +331,7 @@ async def collect_user_event( r"""Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. + This method is used only by the Retail API JavaScript pixel and Google Tag Manager. Users should not call this method directly. diff --git a/google/cloud/retail_v2alpha/services/user_event_service/client.py b/google/cloud/retail_v2alpha/services/user_event_service/client.py index f53b14be..77565e40 100644 --- a/google/cloud/retail_v2alpha/services/user_event_service/client.py +++ b/google/cloud/retail_v2alpha/services/user_event_service/client.py @@ -50,7 +50,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import any_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -585,6 +585,7 @@ def collect_user_event( r"""Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. + This method is used only by the Retail API JavaScript pixel and Google Tag Manager. Users should not call this method directly. diff --git a/google/cloud/retail_v2alpha/services/user_event_service/transports/grpc.py b/google/cloud/retail_v2alpha/services/user_event_service/transports/grpc.py index 2093c61f..af6e1ef5 100644 --- a/google/cloud/retail_v2alpha/services/user_event_service/transports/grpc.py +++ b/google/cloud/retail_v2alpha/services/user_event_service/transports/grpc.py @@ -287,6 +287,7 @@ def collect_user_event( Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. + This method is used only by the Retail API JavaScript pixel and Google Tag Manager. Users should not call this method directly. diff --git a/google/cloud/retail_v2alpha/services/user_event_service/transports/grpc_asyncio.py b/google/cloud/retail_v2alpha/services/user_event_service/transports/grpc_asyncio.py index e06894c5..f8874d97 100644 --- a/google/cloud/retail_v2alpha/services/user_event_service/transports/grpc_asyncio.py +++ b/google/cloud/retail_v2alpha/services/user_event_service/transports/grpc_asyncio.py @@ -296,6 +296,7 @@ def collect_user_event( Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. + This method is used only by the Retail API JavaScript pixel and Google Tag Manager. Users should not call this method directly. diff --git a/google/cloud/retail_v2alpha/services/user_event_service/transports/rest.py b/google/cloud/retail_v2alpha/services/user_event_service/transports/rest.py index 5a25c5b3..018c0135 100644 --- a/google/cloud/retail_v2alpha/services/user_event_service/transports/rest.py +++ b/google/cloud/retail_v2alpha/services/user_event_service/transports/rest.py @@ -33,7 +33,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version diff --git a/google/cloud/retail_v2alpha/types/completion_service.py b/google/cloud/retail_v2alpha/types/completion_service.py index 6d9a0743..3127b9d7 100644 --- a/google/cloud/retail_v2alpha/types/completion_service.py +++ b/google/cloud/retail_v2alpha/types/completion_service.py @@ -227,6 +227,7 @@ class CompletionResult(proto.Message): Facet information for the suggestion term. Gives the number of items resulting from a search with this suggestion term for each facet. + This is an experimental feature for limited customers. Please reach out to the support team if you would like to receive this information. diff --git a/google/cloud/retail_v2alpha/types/import_config.py b/google/cloud/retail_v2alpha/types/import_config.py index faf67ab1..37af2c84 100644 --- a/google/cloud/retail_v2alpha/types/import_config.py +++ b/google/cloud/retail_v2alpha/types/import_config.py @@ -534,6 +534,7 @@ class CompletionDataInputConfig(proto.Message): Attributes: big_query_source (google.cloud.retail_v2alpha.types.BigQuerySource): Required. BigQuery input source. + Add the IAM permission "BigQuery Data Viewer" for cloud-retail-customer-data-access@system.gserviceaccount.com diff --git a/google/cloud/retail_v2alpha/types/model.py b/google/cloud/retail_v2alpha/types/model.py index 8bd39eea..b2e93a49 100644 --- a/google/cloud/retail_v2alpha/types/model.py +++ b/google/cloud/retail_v2alpha/types/model.py @@ -54,6 +54,7 @@ class Model(proto.Message): char limit of 40. display_name (str): Required. The display name of the model. + Should be human readable, used to display Recommendation Models in the Retail Cloud Console Dashboard. UTF-8 encoded string with @@ -275,6 +276,7 @@ class PageOptimizationConfig(proto.Message): [Model.types][google.cloud.retail.v2alpha.Model.type]. panels (MutableSequence[google.cloud.retail_v2alpha.types.Model.PageOptimizationConfig.Panel]): Required. A list of panel configurations. + Limit = 5. restriction (google.cloud.retail_v2alpha.types.Model.PageOptimizationConfig.Restriction): Optional. How to restrict results across panels e.g. can the diff --git a/google/cloud/retail_v2alpha/types/search_service.py b/google/cloud/retail_v2alpha/types/search_service.py index 08436178..fa449b5c 100644 --- a/google/cloud/retail_v2alpha/types/search_service.py +++ b/google/cloud/retail_v2alpha/types/search_service.py @@ -154,6 +154,7 @@ class SearchRequest(proto.Message): Deprecated. Refer to https://cloud.google.com/retail/docs/configs#dynamic to enable dynamic facets. Do not set this field. + The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. diff --git a/google/cloud/retail_v2alpha/types/user_event.py b/google/cloud/retail_v2alpha/types/user_event.py index 757fc616..d076f012 100644 --- a/google/cloud/retail_v2alpha/types/user_event.py +++ b/google/cloud/retail_v2alpha/types/user_event.py @@ -274,6 +274,7 @@ class UserEvent(proto.Message): 5,000 characters. referrer_uri (str): The referrer URL of the current page. + When using the client side event reporting with JavaScript pixel and Google Tag Manager, this value is filled in automatically. diff --git a/google/cloud/retail_v2beta/services/catalog_service/async_client.py b/google/cloud/retail_v2beta/services/catalog_service/async_client.py index d95318c4..23e6f52c 100644 --- a/google/cloud/retail_v2beta/services/catalog_service/async_client.py +++ b/google/cloud/retail_v2beta/services/catalog_service/async_client.py @@ -43,7 +43,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/google/cloud/retail_v2beta/services/catalog_service/client.py b/google/cloud/retail_v2beta/services/catalog_service/client.py index 0114dff6..558585e8 100644 --- a/google/cloud/retail_v2beta/services/catalog_service/client.py +++ b/google/cloud/retail_v2beta/services/catalog_service/client.py @@ -47,7 +47,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/google/cloud/retail_v2beta/services/catalog_service/transports/base.py b/google/cloud/retail_v2beta/services/catalog_service/transports/base.py index e95ee8a9..a2e71307 100644 --- a/google/cloud/retail_v2beta/services/catalog_service/transports/base.py +++ b/google/cloud/retail_v2beta/services/catalog_service/transports/base.py @@ -23,7 +23,7 @@ import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account # type: ignore from google.protobuf import empty_pb2 # type: ignore diff --git a/google/cloud/retail_v2beta/services/catalog_service/transports/grpc.py b/google/cloud/retail_v2beta/services/catalog_service/transports/grpc.py index 33fc797c..69ff1f25 100644 --- a/google/cloud/retail_v2beta/services/catalog_service/transports/grpc.py +++ b/google/cloud/retail_v2beta/services/catalog_service/transports/grpc.py @@ -21,7 +21,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore import grpc # type: ignore diff --git a/google/cloud/retail_v2beta/services/catalog_service/transports/grpc_asyncio.py b/google/cloud/retail_v2beta/services/catalog_service/transports/grpc_asyncio.py index cfb6d189..7a54ab6c 100644 --- a/google/cloud/retail_v2beta/services/catalog_service/transports/grpc_asyncio.py +++ b/google/cloud/retail_v2beta/services/catalog_service/transports/grpc_asyncio.py @@ -20,7 +20,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore import grpc # type: ignore from grpc.experimental import aio # type: ignore diff --git a/google/cloud/retail_v2beta/services/catalog_service/transports/rest.py b/google/cloud/retail_v2beta/services/catalog_service/transports/rest.py index e6bf3af0..d8e4da29 100644 --- a/google/cloud/retail_v2beta/services/catalog_service/transports/rest.py +++ b/google/cloud/retail_v2beta/services/catalog_service/transports/rest.py @@ -27,7 +27,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version @@ -38,6 +37,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.cloud.retail_v2beta.types import catalog diff --git a/google/cloud/retail_v2beta/services/completion_service/async_client.py b/google/cloud/retail_v2beta/services/completion_service/async_client.py index cfe8ec3a..97486ec3 100644 --- a/google/cloud/retail_v2beta/services/completion_service/async_client.py +++ b/google/cloud/retail_v2beta/services/completion_service/async_client.py @@ -45,7 +45,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.retail_v2beta.types import completion_service, import_config @@ -56,6 +56,7 @@ class CompletionServiceAsyncClient: """Autocomplete service for retail. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -315,11 +316,14 @@ async def import_completion_data( metadata: Sequence[Tuple[str, str]] = (), ) -> operation_async.AsyncOperation: r"""Bulk import of processed completion dataset. + Request processing is asynchronous. Partial updating is not supported. + The operation is successfully finished only after the imported suggestions are indexed successfully and ready for serving. The process takes hours. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2beta/services/completion_service/client.py b/google/cloud/retail_v2beta/services/completion_service/client.py index 0f2a75dc..97663cd4 100644 --- a/google/cloud/retail_v2beta/services/completion_service/client.py +++ b/google/cloud/retail_v2beta/services/completion_service/client.py @@ -49,7 +49,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.retail_v2beta.types import completion_service, import_config @@ -98,6 +98,7 @@ def get_transport_class( class CompletionServiceClient(metaclass=CompletionServiceClientMeta): """Autocomplete service for retail. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -545,11 +546,14 @@ def import_completion_data( metadata: Sequence[Tuple[str, str]] = (), ) -> operation.Operation: r"""Bulk import of processed completion dataset. + Request processing is asynchronous. Partial updating is not supported. + The operation is successfully finished only after the imported suggestions are indexed successfully and ready for serving. The process takes hours. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2beta/services/completion_service/transports/grpc.py b/google/cloud/retail_v2beta/services/completion_service/transports/grpc.py index 62acb1af..7b0714cd 100644 --- a/google/cloud/retail_v2beta/services/completion_service/transports/grpc.py +++ b/google/cloud/retail_v2beta/services/completion_service/transports/grpc.py @@ -33,6 +33,7 @@ class CompletionServiceGrpcTransport(CompletionServiceTransport): """gRPC backend transport for CompletionService. Autocomplete service for retail. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -290,11 +291,14 @@ def import_completion_data( r"""Return a callable for the import completion data method over gRPC. Bulk import of processed completion dataset. + Request processing is asynchronous. Partial updating is not supported. + The operation is successfully finished only after the imported suggestions are indexed successfully and ready for serving. The process takes hours. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2beta/services/completion_service/transports/grpc_asyncio.py b/google/cloud/retail_v2beta/services/completion_service/transports/grpc_asyncio.py index 01726a62..6be6f8c3 100644 --- a/google/cloud/retail_v2beta/services/completion_service/transports/grpc_asyncio.py +++ b/google/cloud/retail_v2beta/services/completion_service/transports/grpc_asyncio.py @@ -34,6 +34,7 @@ class CompletionServiceGrpcAsyncIOTransport(CompletionServiceTransport): """gRPC AsyncIO backend transport for CompletionService. Autocomplete service for retail. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -295,11 +296,14 @@ def import_completion_data( r"""Return a callable for the import completion data method over gRPC. Bulk import of processed completion dataset. + Request processing is asynchronous. Partial updating is not supported. + The operation is successfully finished only after the imported suggestions are indexed successfully and ready for serving. The process takes hours. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2beta/services/completion_service/transports/rest.py b/google/cloud/retail_v2beta/services/completion_service/transports/rest.py index 1da4b5de..65f6d774 100644 --- a/google/cloud/retail_v2beta/services/completion_service/transports/rest.py +++ b/google/cloud/retail_v2beta/services/completion_service/transports/rest.py @@ -33,7 +33,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version @@ -199,6 +198,7 @@ class CompletionServiceRestTransport(CompletionServiceTransport): """REST backend transport for CompletionService. Autocomplete service for retail. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2beta/services/control_service/async_client.py b/google/cloud/retail_v2beta/services/control_service/async_client.py index 4b1f2806..0140faf3 100644 --- a/google/cloud/retail_v2beta/services/control_service/async_client.py +++ b/google/cloud/retail_v2beta/services/control_service/async_client.py @@ -43,7 +43,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.cloud.retail_v2beta.services.control_service import pagers @@ -741,6 +741,7 @@ async def sample_list_controls(): Returns: google.cloud.retail_v2beta.services.control_service.pagers.ListControlsAsyncPager: Response for ListControls method. + Iterating over this object will yield results and resolve additional pages automatically. diff --git a/google/cloud/retail_v2beta/services/control_service/client.py b/google/cloud/retail_v2beta/services/control_service/client.py index d3c561ae..ba8ed6ce 100644 --- a/google/cloud/retail_v2beta/services/control_service/client.py +++ b/google/cloud/retail_v2beta/services/control_service/client.py @@ -47,7 +47,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.cloud.retail_v2beta.services.control_service import pagers @@ -992,6 +992,7 @@ def sample_list_controls(): Returns: google.cloud.retail_v2beta.services.control_service.pagers.ListControlsPager: Response for ListControls method. + Iterating over this object will yield results and resolve additional pages automatically. diff --git a/google/cloud/retail_v2beta/services/control_service/transports/base.py b/google/cloud/retail_v2beta/services/control_service/transports/base.py index 9d4837aa..c6224b51 100644 --- a/google/cloud/retail_v2beta/services/control_service/transports/base.py +++ b/google/cloud/retail_v2beta/services/control_service/transports/base.py @@ -23,7 +23,7 @@ import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account # type: ignore from google.protobuf import empty_pb2 # type: ignore diff --git a/google/cloud/retail_v2beta/services/control_service/transports/grpc.py b/google/cloud/retail_v2beta/services/control_service/transports/grpc.py index 6ce54876..17ca0459 100644 --- a/google/cloud/retail_v2beta/services/control_service/transports/grpc.py +++ b/google/cloud/retail_v2beta/services/control_service/transports/grpc.py @@ -21,7 +21,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore import grpc # type: ignore diff --git a/google/cloud/retail_v2beta/services/control_service/transports/grpc_asyncio.py b/google/cloud/retail_v2beta/services/control_service/transports/grpc_asyncio.py index d311b091..c70ec3d5 100644 --- a/google/cloud/retail_v2beta/services/control_service/transports/grpc_asyncio.py +++ b/google/cloud/retail_v2beta/services/control_service/transports/grpc_asyncio.py @@ -20,7 +20,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore import grpc # type: ignore from grpc.experimental import aio # type: ignore diff --git a/google/cloud/retail_v2beta/services/control_service/transports/rest.py b/google/cloud/retail_v2beta/services/control_service/transports/rest.py index 6510a573..89afd2a1 100644 --- a/google/cloud/retail_v2beta/services/control_service/transports/rest.py +++ b/google/cloud/retail_v2beta/services/control_service/transports/rest.py @@ -27,7 +27,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version @@ -38,6 +37,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.cloud.retail_v2beta.types import control diff --git a/google/cloud/retail_v2beta/services/model_service/async_client.py b/google/cloud/retail_v2beta/services/model_service/async_client.py index 2c937399..b6daf47f 100644 --- a/google/cloud/retail_v2beta/services/model_service/async_client.py +++ b/google/cloud/retail_v2beta/services/model_service/async_client.py @@ -45,7 +45,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -838,6 +838,7 @@ async def sample_list_models(): Returns: google.cloud.retail_v2beta.services.model_service.pagers.ListModelsAsyncPager: Response to a ListModelRequest. + Iterating over this object will yield results and resolve additional pages automatically. diff --git a/google/cloud/retail_v2beta/services/model_service/client.py b/google/cloud/retail_v2beta/services/model_service/client.py index 02e059ad..65c55c81 100644 --- a/google/cloud/retail_v2beta/services/model_service/client.py +++ b/google/cloud/retail_v2beta/services/model_service/client.py @@ -49,7 +49,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -1091,6 +1091,7 @@ def sample_list_models(): Returns: google.cloud.retail_v2beta.services.model_service.pagers.ListModelsPager: Response to a ListModelRequest. + Iterating over this object will yield results and resolve additional pages automatically. diff --git a/google/cloud/retail_v2beta/services/model_service/transports/rest.py b/google/cloud/retail_v2beta/services/model_service/transports/rest.py index bda6c20c..7db37b03 100644 --- a/google/cloud/retail_v2beta/services/model_service/transports/rest.py +++ b/google/cloud/retail_v2beta/services/model_service/transports/rest.py @@ -33,7 +33,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version diff --git a/google/cloud/retail_v2beta/services/prediction_service/async_client.py b/google/cloud/retail_v2beta/services/prediction_service/async_client.py index 6258a7e5..22f2ea22 100644 --- a/google/cloud/retail_v2beta/services/prediction_service/async_client.py +++ b/google/cloud/retail_v2beta/services/prediction_service/async_client.py @@ -43,7 +43,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.retail_v2beta.types import prediction_service diff --git a/google/cloud/retail_v2beta/services/prediction_service/client.py b/google/cloud/retail_v2beta/services/prediction_service/client.py index 2fa2933a..3f45dacc 100644 --- a/google/cloud/retail_v2beta/services/prediction_service/client.py +++ b/google/cloud/retail_v2beta/services/prediction_service/client.py @@ -47,7 +47,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.retail_v2beta.types import prediction_service diff --git a/google/cloud/retail_v2beta/services/prediction_service/transports/base.py b/google/cloud/retail_v2beta/services/prediction_service/transports/base.py index a3e4d0bd..d9bea2aa 100644 --- a/google/cloud/retail_v2beta/services/prediction_service/transports/base.py +++ b/google/cloud/retail_v2beta/services/prediction_service/transports/base.py @@ -23,7 +23,7 @@ import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account # type: ignore from google.cloud.retail_v2beta import gapic_version as package_version diff --git a/google/cloud/retail_v2beta/services/prediction_service/transports/grpc.py b/google/cloud/retail_v2beta/services/prediction_service/transports/grpc.py index 601cd66f..ce0594e9 100644 --- a/google/cloud/retail_v2beta/services/prediction_service/transports/grpc.py +++ b/google/cloud/retail_v2beta/services/prediction_service/transports/grpc.py @@ -21,7 +21,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore import grpc # type: ignore from google.cloud.retail_v2beta.types import prediction_service diff --git a/google/cloud/retail_v2beta/services/prediction_service/transports/grpc_asyncio.py b/google/cloud/retail_v2beta/services/prediction_service/transports/grpc_asyncio.py index 813cda8d..1284aeb7 100644 --- a/google/cloud/retail_v2beta/services/prediction_service/transports/grpc_asyncio.py +++ b/google/cloud/retail_v2beta/services/prediction_service/transports/grpc_asyncio.py @@ -20,7 +20,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore import grpc # type: ignore from grpc.experimental import aio # type: ignore diff --git a/google/cloud/retail_v2beta/services/prediction_service/transports/rest.py b/google/cloud/retail_v2beta/services/prediction_service/transports/rest.py index 904b6da9..35a5213d 100644 --- a/google/cloud/retail_v2beta/services/prediction_service/transports/rest.py +++ b/google/cloud/retail_v2beta/services/prediction_service/transports/rest.py @@ -27,7 +27,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version @@ -38,6 +37,8 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore +from google.longrunning import operations_pb2 # type: ignore + from google.cloud.retail_v2beta.types import prediction_service from .base import DEFAULT_CLIENT_INFO as BASE_DEFAULT_CLIENT_INFO diff --git a/google/cloud/retail_v2beta/services/product_service/async_client.py b/google/cloud/retail_v2beta/services/product_service/async_client.py index 08b73013..9ff392df 100644 --- a/google/cloud/retail_v2beta/services/product_service/async_client.py +++ b/google/cloud/retail_v2beta/services/product_service/async_client.py @@ -45,7 +45,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import duration_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/google/cloud/retail_v2beta/services/product_service/client.py b/google/cloud/retail_v2beta/services/product_service/client.py index f24b16d7..38c29565 100644 --- a/google/cloud/retail_v2beta/services/product_service/client.py +++ b/google/cloud/retail_v2beta/services/product_service/client.py @@ -49,7 +49,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import duration_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore diff --git a/google/cloud/retail_v2beta/services/product_service/transports/rest.py b/google/cloud/retail_v2beta/services/product_service/transports/rest.py index e1e5a426..28d3825c 100644 --- a/google/cloud/retail_v2beta/services/product_service/transports/rest.py +++ b/google/cloud/retail_v2beta/services/product_service/transports/rest.py @@ -33,7 +33,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version diff --git a/google/cloud/retail_v2beta/services/search_service/async_client.py b/google/cloud/retail_v2beta/services/search_service/async_client.py index acc2c077..3c3ec24b 100644 --- a/google/cloud/retail_v2beta/services/search_service/async_client.py +++ b/google/cloud/retail_v2beta/services/search_service/async_client.py @@ -43,7 +43,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.retail_v2beta.services.search_service import pagers from google.cloud.retail_v2beta.types import search_service @@ -55,6 +55,7 @@ class SearchServiceAsyncClient: """Service for search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -238,6 +239,7 @@ async def search( metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.SearchAsyncPager: r"""Performs a search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2beta/services/search_service/client.py b/google/cloud/retail_v2beta/services/search_service/client.py index 4b386fda..e37a9c03 100644 --- a/google/cloud/retail_v2beta/services/search_service/client.py +++ b/google/cloud/retail_v2beta/services/search_service/client.py @@ -47,7 +47,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.cloud.retail_v2beta.services.search_service import pagers from google.cloud.retail_v2beta.types import search_service @@ -95,6 +95,7 @@ def get_transport_class( class SearchServiceClient(metaclass=SearchServiceClientMeta): """Service for search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -533,6 +534,7 @@ def search( metadata: Sequence[Tuple[str, str]] = (), ) -> pagers.SearchPager: r"""Performs a search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2beta/services/search_service/transports/base.py b/google/cloud/retail_v2beta/services/search_service/transports/base.py index f537f753..cac2a4da 100644 --- a/google/cloud/retail_v2beta/services/search_service/transports/base.py +++ b/google/cloud/retail_v2beta/services/search_service/transports/base.py @@ -23,7 +23,7 @@ import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account # type: ignore from google.cloud.retail_v2beta import gapic_version as package_version diff --git a/google/cloud/retail_v2beta/services/search_service/transports/grpc.py b/google/cloud/retail_v2beta/services/search_service/transports/grpc.py index f9c13e77..2763998e 100644 --- a/google/cloud/retail_v2beta/services/search_service/transports/grpc.py +++ b/google/cloud/retail_v2beta/services/search_service/transports/grpc.py @@ -21,7 +21,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore import grpc # type: ignore from google.cloud.retail_v2beta.types import search_service @@ -33,6 +33,7 @@ class SearchServiceGrpcTransport(SearchServiceTransport): """gRPC backend transport for SearchService. Service for search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -240,6 +241,7 @@ def search( r"""Return a callable for the search method over gRPC. Performs a search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2beta/services/search_service/transports/grpc_asyncio.py b/google/cloud/retail_v2beta/services/search_service/transports/grpc_asyncio.py index 3702118e..9e8915e7 100644 --- a/google/cloud/retail_v2beta/services/search_service/transports/grpc_asyncio.py +++ b/google/cloud/retail_v2beta/services/search_service/transports/grpc_asyncio.py @@ -20,7 +20,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore import grpc # type: ignore from grpc.experimental import aio # type: ignore @@ -34,6 +34,7 @@ class SearchServiceGrpcAsyncIOTransport(SearchServiceTransport): """gRPC AsyncIO backend transport for SearchService. Service for search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. @@ -245,6 +246,7 @@ def search( r"""Return a callable for the search method over gRPC. Performs a search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2beta/services/search_service/transports/rest.py b/google/cloud/retail_v2beta/services/search_service/transports/rest.py index ca7ed29f..aa8aa4e6 100644 --- a/google/cloud/retail_v2beta/services/search_service/transports/rest.py +++ b/google/cloud/retail_v2beta/services/search_service/transports/rest.py @@ -27,7 +27,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version @@ -38,6 +37,8 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore +from google.longrunning import operations_pb2 # type: ignore + from google.cloud.retail_v2beta.types import search_service from .base import DEFAULT_CLIENT_INFO as BASE_DEFAULT_CLIENT_INFO @@ -158,6 +159,7 @@ class SearchServiceRestTransport(SearchServiceTransport): """REST backend transport for SearchService. Service for search. + This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature. diff --git a/google/cloud/retail_v2beta/services/serving_config_service/async_client.py b/google/cloud/retail_v2beta/services/serving_config_service/async_client.py index 8c704f9a..6bbf7c89 100644 --- a/google/cloud/retail_v2beta/services/serving_config_service/async_client.py +++ b/google/cloud/retail_v2beta/services/serving_config_service/async_client.py @@ -43,7 +43,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.cloud.retail_v2beta.services.serving_config_service import pagers @@ -379,6 +379,7 @@ async def delete_serving_config( metadata: Sequence[Tuple[str, str]] = (), ) -> None: r"""Deletes a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. @@ -601,6 +602,7 @@ async def get_serving_config( metadata: Sequence[Tuple[str, str]] = (), ) -> serving_config.ServingConfig: r"""Gets a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. diff --git a/google/cloud/retail_v2beta/services/serving_config_service/client.py b/google/cloud/retail_v2beta/services/serving_config_service/client.py index 4e7db14d..8590a16c 100644 --- a/google/cloud/retail_v2beta/services/serving_config_service/client.py +++ b/google/cloud/retail_v2beta/services/serving_config_service/client.py @@ -47,7 +47,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.cloud.retail_v2beta.services.serving_config_service import pagers @@ -627,6 +627,7 @@ def delete_serving_config( metadata: Sequence[Tuple[str, str]] = (), ) -> None: r"""Deletes a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. @@ -849,6 +850,7 @@ def get_serving_config( metadata: Sequence[Tuple[str, str]] = (), ) -> serving_config.ServingConfig: r"""Gets a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. diff --git a/google/cloud/retail_v2beta/services/serving_config_service/transports/base.py b/google/cloud/retail_v2beta/services/serving_config_service/transports/base.py index e87112b4..7a974a9d 100644 --- a/google/cloud/retail_v2beta/services/serving_config_service/transports/base.py +++ b/google/cloud/retail_v2beta/services/serving_config_service/transports/base.py @@ -23,7 +23,7 @@ import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account # type: ignore from google.protobuf import empty_pb2 # type: ignore diff --git a/google/cloud/retail_v2beta/services/serving_config_service/transports/grpc.py b/google/cloud/retail_v2beta/services/serving_config_service/transports/grpc.py index 8f3a35a2..015aec28 100644 --- a/google/cloud/retail_v2beta/services/serving_config_service/transports/grpc.py +++ b/google/cloud/retail_v2beta/services/serving_config_service/transports/grpc.py @@ -21,7 +21,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore import grpc # type: ignore @@ -274,6 +274,7 @@ def delete_serving_config( r"""Return a callable for the delete serving config method over gRPC. Deletes a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. @@ -333,6 +334,7 @@ def get_serving_config( r"""Return a callable for the get serving config method over gRPC. Gets a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. diff --git a/google/cloud/retail_v2beta/services/serving_config_service/transports/grpc_asyncio.py b/google/cloud/retail_v2beta/services/serving_config_service/transports/grpc_asyncio.py index 3a70a35e..05ced967 100644 --- a/google/cloud/retail_v2beta/services/serving_config_service/transports/grpc_asyncio.py +++ b/google/cloud/retail_v2beta/services/serving_config_service/transports/grpc_asyncio.py @@ -20,7 +20,7 @@ from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore import grpc # type: ignore from grpc.experimental import aio # type: ignore @@ -279,6 +279,7 @@ def delete_serving_config( r"""Return a callable for the delete serving config method over gRPC. Deletes a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. @@ -339,6 +340,7 @@ def get_serving_config( r"""Return a callable for the get serving config method over gRPC. Gets a ServingConfig. + Returns a NotFound error if the ServingConfig does not exist. diff --git a/google/cloud/retail_v2beta/services/serving_config_service/transports/rest.py b/google/cloud/retail_v2beta/services/serving_config_service/transports/rest.py index 84e280bd..a66d9898 100644 --- a/google/cloud/retail_v2beta/services/serving_config_service/transports/rest.py +++ b/google/cloud/retail_v2beta/services/serving_config_service/transports/rest.py @@ -27,7 +27,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version @@ -38,6 +37,7 @@ OptionalRetry = Union[retries.Retry, object] # type: ignore +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import empty_pb2 # type: ignore from google.cloud.retail_v2beta.types import serving_config as gcr_serving_config diff --git a/google/cloud/retail_v2beta/services/user_event_service/async_client.py b/google/cloud/retail_v2beta/services/user_event_service/async_client.py index 03fa5e49..74192d01 100644 --- a/google/cloud/retail_v2beta/services/user_event_service/async_client.py +++ b/google/cloud/retail_v2beta/services/user_event_service/async_client.py @@ -46,7 +46,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import any_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -331,6 +331,7 @@ async def collect_user_event( r"""Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. + This method is used only by the Retail API JavaScript pixel and Google Tag Manager. Users should not call this method directly. diff --git a/google/cloud/retail_v2beta/services/user_event_service/client.py b/google/cloud/retail_v2beta/services/user_event_service/client.py index e1f12a1e..35f48c2d 100644 --- a/google/cloud/retail_v2beta/services/user_event_service/client.py +++ b/google/cloud/retail_v2beta/services/user_event_service/client.py @@ -50,7 +50,7 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.protobuf import any_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -585,6 +585,7 @@ def collect_user_event( r"""Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. + This method is used only by the Retail API JavaScript pixel and Google Tag Manager. Users should not call this method directly. diff --git a/google/cloud/retail_v2beta/services/user_event_service/transports/grpc.py b/google/cloud/retail_v2beta/services/user_event_service/transports/grpc.py index 3e3b82d9..53cdb1d1 100644 --- a/google/cloud/retail_v2beta/services/user_event_service/transports/grpc.py +++ b/google/cloud/retail_v2beta/services/user_event_service/transports/grpc.py @@ -287,6 +287,7 @@ def collect_user_event( Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. + This method is used only by the Retail API JavaScript pixel and Google Tag Manager. Users should not call this method directly. diff --git a/google/cloud/retail_v2beta/services/user_event_service/transports/grpc_asyncio.py b/google/cloud/retail_v2beta/services/user_event_service/transports/grpc_asyncio.py index 97ead6bd..4d539de8 100644 --- a/google/cloud/retail_v2beta/services/user_event_service/transports/grpc_asyncio.py +++ b/google/cloud/retail_v2beta/services/user_event_service/transports/grpc_asyncio.py @@ -296,6 +296,7 @@ def collect_user_event( Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. + This method is used only by the Retail API JavaScript pixel and Google Tag Manager. Users should not call this method directly. diff --git a/google/cloud/retail_v2beta/services/user_event_service/transports/rest.py b/google/cloud/retail_v2beta/services/user_event_service/transports/rest.py index dde84e6e..f6538833 100644 --- a/google/cloud/retail_v2beta/services/user_event_service/transports/rest.py +++ b/google/cloud/retail_v2beta/services/user_event_service/transports/rest.py @@ -33,7 +33,6 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.transport.requests import AuthorizedSession # type: ignore from google.cloud.location import locations_pb2 # type: ignore -from google.longrunning import operations_pb2 from google.protobuf import json_format import grpc # type: ignore from requests import __version__ as requests_version diff --git a/google/cloud/retail_v2beta/types/import_config.py b/google/cloud/retail_v2beta/types/import_config.py index 3c2bc6f5..f2c35d19 100644 --- a/google/cloud/retail_v2beta/types/import_config.py +++ b/google/cloud/retail_v2beta/types/import_config.py @@ -520,6 +520,7 @@ class CompletionDataInputConfig(proto.Message): Attributes: big_query_source (google.cloud.retail_v2beta.types.BigQuerySource): Required. BigQuery input source. + Add the IAM permission "BigQuery Data Viewer" for cloud-retail-customer-data-access@system.gserviceaccount.com diff --git a/google/cloud/retail_v2beta/types/model.py b/google/cloud/retail_v2beta/types/model.py index 84941b77..ed609872 100644 --- a/google/cloud/retail_v2beta/types/model.py +++ b/google/cloud/retail_v2beta/types/model.py @@ -47,6 +47,7 @@ class Model(proto.Message): char limit of 40. display_name (str): Required. The display name of the model. + Should be human readable, used to display Recommendation Models in the Retail Cloud Console Dashboard. UTF-8 encoded string with diff --git a/google/cloud/retail_v2beta/types/search_service.py b/google/cloud/retail_v2beta/types/search_service.py index 8c55e3e8..9eae2e5e 100644 --- a/google/cloud/retail_v2beta/types/search_service.py +++ b/google/cloud/retail_v2beta/types/search_service.py @@ -154,6 +154,7 @@ class SearchRequest(proto.Message): Deprecated. Refer to https://cloud.google.com/retail/docs/configs#dynamic to enable dynamic facets. Do not set this field. + The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. diff --git a/google/cloud/retail_v2beta/types/user_event.py b/google/cloud/retail_v2beta/types/user_event.py index 39b09435..6d3b7a1c 100644 --- a/google/cloud/retail_v2beta/types/user_event.py +++ b/google/cloud/retail_v2beta/types/user_event.py @@ -274,6 +274,7 @@ class UserEvent(proto.Message): 5,000 characters. referrer_uri (str): The referrer URL of the current page. + When using the client side event reporting with JavaScript pixel and Google Tag Manager, this value is filled in automatically. diff --git a/tests/unit/gapic/retail_v2/test_catalog_service.py b/tests/unit/gapic/retail_v2/test_catalog_service.py index 33d7c801..9b49efc1 100644 --- a/tests/unit/gapic/retail_v2/test_catalog_service.py +++ b/tests/unit/gapic/retail_v2/test_catalog_service.py @@ -33,7 +33,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import json_format diff --git a/tests/unit/gapic/retail_v2/test_completion_service.py b/tests/unit/gapic/retail_v2/test_completion_service.py index 4fa76fca..cf951e1f 100644 --- a/tests/unit/gapic/retail_v2/test_completion_service.py +++ b/tests/unit/gapic/retail_v2/test_completion_service.py @@ -42,7 +42,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import json_format from google.type import date_pb2 # type: ignore diff --git a/tests/unit/gapic/retail_v2/test_control_service.py b/tests/unit/gapic/retail_v2/test_control_service.py index 6010f903..c6cc7619 100644 --- a/tests/unit/gapic/retail_v2/test_control_service.py +++ b/tests/unit/gapic/retail_v2/test_control_service.py @@ -33,7 +33,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import json_format diff --git a/tests/unit/gapic/retail_v2/test_model_service.py b/tests/unit/gapic/retail_v2/test_model_service.py index 14b806af..b9b9866a 100644 --- a/tests/unit/gapic/retail_v2/test_model_service.py +++ b/tests/unit/gapic/retail_v2/test_model_service.py @@ -42,7 +42,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import json_format diff --git a/tests/unit/gapic/retail_v2/test_prediction_service.py b/tests/unit/gapic/retail_v2/test_prediction_service.py index f031e73b..ddbb873b 100644 --- a/tests/unit/gapic/retail_v2/test_prediction_service.py +++ b/tests/unit/gapic/retail_v2/test_prediction_service.py @@ -33,7 +33,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import duration_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore diff --git a/tests/unit/gapic/retail_v2/test_product_service.py b/tests/unit/gapic/retail_v2/test_product_service.py index 08b5f6e9..d5c13062 100644 --- a/tests/unit/gapic/retail_v2/test_product_service.py +++ b/tests/unit/gapic/retail_v2/test_product_service.py @@ -42,7 +42,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import duration_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore diff --git a/tests/unit/gapic/retail_v2/test_search_service.py b/tests/unit/gapic/retail_v2/test_search_service.py index 4d578484..8a50912e 100644 --- a/tests/unit/gapic/retail_v2/test_search_service.py +++ b/tests/unit/gapic/retail_v2/test_search_service.py @@ -33,7 +33,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import json_format import grpc diff --git a/tests/unit/gapic/retail_v2/test_serving_config_service.py b/tests/unit/gapic/retail_v2/test_serving_config_service.py index 216448cb..4a197fb9 100644 --- a/tests/unit/gapic/retail_v2/test_serving_config_service.py +++ b/tests/unit/gapic/retail_v2/test_serving_config_service.py @@ -33,7 +33,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import json_format diff --git a/tests/unit/gapic/retail_v2/test_user_event_service.py b/tests/unit/gapic/retail_v2/test_user_event_service.py index b52e9546..221b6905 100644 --- a/tests/unit/gapic/retail_v2/test_user_event_service.py +++ b/tests/unit/gapic/retail_v2/test_user_event_service.py @@ -43,7 +43,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import any_pb2 # type: ignore from google.protobuf import duration_pb2 # type: ignore diff --git a/tests/unit/gapic/retail_v2alpha/test_catalog_service.py b/tests/unit/gapic/retail_v2alpha/test_catalog_service.py index e6fd5e3d..f07b9dc8 100644 --- a/tests/unit/gapic/retail_v2alpha/test_catalog_service.py +++ b/tests/unit/gapic/retail_v2alpha/test_catalog_service.py @@ -33,7 +33,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import json_format diff --git a/tests/unit/gapic/retail_v2alpha/test_completion_service.py b/tests/unit/gapic/retail_v2alpha/test_completion_service.py index 541cfd1d..b22ea1ff 100644 --- a/tests/unit/gapic/retail_v2alpha/test_completion_service.py +++ b/tests/unit/gapic/retail_v2alpha/test_completion_service.py @@ -42,7 +42,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import json_format from google.type import date_pb2 # type: ignore diff --git a/tests/unit/gapic/retail_v2alpha/test_control_service.py b/tests/unit/gapic/retail_v2alpha/test_control_service.py index 21324022..dcbc17ab 100644 --- a/tests/unit/gapic/retail_v2alpha/test_control_service.py +++ b/tests/unit/gapic/retail_v2alpha/test_control_service.py @@ -33,7 +33,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import json_format diff --git a/tests/unit/gapic/retail_v2alpha/test_merchant_center_account_link_service.py b/tests/unit/gapic/retail_v2alpha/test_merchant_center_account_link_service.py index 9a239c55..797c1e27 100644 --- a/tests/unit/gapic/retail_v2alpha/test_merchant_center_account_link_service.py +++ b/tests/unit/gapic/retail_v2alpha/test_merchant_center_account_link_service.py @@ -42,7 +42,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import json_format import grpc diff --git a/tests/unit/gapic/retail_v2alpha/test_model_service.py b/tests/unit/gapic/retail_v2alpha/test_model_service.py index f9d83282..f82b0ba7 100644 --- a/tests/unit/gapic/retail_v2alpha/test_model_service.py +++ b/tests/unit/gapic/retail_v2alpha/test_model_service.py @@ -42,7 +42,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import json_format diff --git a/tests/unit/gapic/retail_v2alpha/test_prediction_service.py b/tests/unit/gapic/retail_v2alpha/test_prediction_service.py index 10139041..a290ee07 100644 --- a/tests/unit/gapic/retail_v2alpha/test_prediction_service.py +++ b/tests/unit/gapic/retail_v2alpha/test_prediction_service.py @@ -33,7 +33,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import duration_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore diff --git a/tests/unit/gapic/retail_v2alpha/test_product_service.py b/tests/unit/gapic/retail_v2alpha/test_product_service.py index 022466be..6e66059f 100644 --- a/tests/unit/gapic/retail_v2alpha/test_product_service.py +++ b/tests/unit/gapic/retail_v2alpha/test_product_service.py @@ -42,7 +42,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import duration_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore diff --git a/tests/unit/gapic/retail_v2alpha/test_search_service.py b/tests/unit/gapic/retail_v2alpha/test_search_service.py index 81019dab..7726fff6 100644 --- a/tests/unit/gapic/retail_v2alpha/test_search_service.py +++ b/tests/unit/gapic/retail_v2alpha/test_search_service.py @@ -33,7 +33,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import json_format import grpc diff --git a/tests/unit/gapic/retail_v2alpha/test_serving_config_service.py b/tests/unit/gapic/retail_v2alpha/test_serving_config_service.py index bf964cec..ca47f221 100644 --- a/tests/unit/gapic/retail_v2alpha/test_serving_config_service.py +++ b/tests/unit/gapic/retail_v2alpha/test_serving_config_service.py @@ -33,7 +33,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import json_format diff --git a/tests/unit/gapic/retail_v2alpha/test_user_event_service.py b/tests/unit/gapic/retail_v2alpha/test_user_event_service.py index f3efe894..05c0918f 100644 --- a/tests/unit/gapic/retail_v2alpha/test_user_event_service.py +++ b/tests/unit/gapic/retail_v2alpha/test_user_event_service.py @@ -43,7 +43,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import any_pb2 # type: ignore from google.protobuf import duration_pb2 # type: ignore diff --git a/tests/unit/gapic/retail_v2beta/test_catalog_service.py b/tests/unit/gapic/retail_v2beta/test_catalog_service.py index eb4e2f9a..395e77d2 100644 --- a/tests/unit/gapic/retail_v2beta/test_catalog_service.py +++ b/tests/unit/gapic/retail_v2beta/test_catalog_service.py @@ -33,7 +33,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import json_format diff --git a/tests/unit/gapic/retail_v2beta/test_completion_service.py b/tests/unit/gapic/retail_v2beta/test_completion_service.py index 4dee3d8e..cc03a69e 100644 --- a/tests/unit/gapic/retail_v2beta/test_completion_service.py +++ b/tests/unit/gapic/retail_v2beta/test_completion_service.py @@ -42,7 +42,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import json_format from google.type import date_pb2 # type: ignore diff --git a/tests/unit/gapic/retail_v2beta/test_control_service.py b/tests/unit/gapic/retail_v2beta/test_control_service.py index a425cce7..3f876963 100644 --- a/tests/unit/gapic/retail_v2beta/test_control_service.py +++ b/tests/unit/gapic/retail_v2beta/test_control_service.py @@ -33,7 +33,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import json_format diff --git a/tests/unit/gapic/retail_v2beta/test_model_service.py b/tests/unit/gapic/retail_v2beta/test_model_service.py index a1eaeecd..1db02925 100644 --- a/tests/unit/gapic/retail_v2beta/test_model_service.py +++ b/tests/unit/gapic/retail_v2beta/test_model_service.py @@ -42,7 +42,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import json_format diff --git a/tests/unit/gapic/retail_v2beta/test_prediction_service.py b/tests/unit/gapic/retail_v2beta/test_prediction_service.py index 0435ea5e..34d45b43 100644 --- a/tests/unit/gapic/retail_v2beta/test_prediction_service.py +++ b/tests/unit/gapic/retail_v2beta/test_prediction_service.py @@ -33,7 +33,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import duration_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore diff --git a/tests/unit/gapic/retail_v2beta/test_product_service.py b/tests/unit/gapic/retail_v2beta/test_product_service.py index 967aab66..b9c0c6dd 100644 --- a/tests/unit/gapic/retail_v2beta/test_product_service.py +++ b/tests/unit/gapic/retail_v2beta/test_product_service.py @@ -42,7 +42,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import duration_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore diff --git a/tests/unit/gapic/retail_v2beta/test_search_service.py b/tests/unit/gapic/retail_v2beta/test_search_service.py index 2ba96a53..c4ed1604 100644 --- a/tests/unit/gapic/retail_v2beta/test_search_service.py +++ b/tests/unit/gapic/retail_v2beta/test_search_service.py @@ -33,7 +33,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import json_format import grpc diff --git a/tests/unit/gapic/retail_v2beta/test_serving_config_service.py b/tests/unit/gapic/retail_v2beta/test_serving_config_service.py index c2c4c827..cc3277bd 100644 --- a/tests/unit/gapic/retail_v2beta/test_serving_config_service.py +++ b/tests/unit/gapic/retail_v2beta/test_serving_config_service.py @@ -33,7 +33,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import json_format diff --git a/tests/unit/gapic/retail_v2beta/test_user_event_service.py b/tests/unit/gapic/retail_v2beta/test_user_event_service.py index 4c7f1276..c490c9b5 100644 --- a/tests/unit/gapic/retail_v2beta/test_user_event_service.py +++ b/tests/unit/gapic/retail_v2beta/test_user_event_service.py @@ -43,7 +43,7 @@ from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError from google.cloud.location import locations_pb2 -from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account from google.protobuf import any_pb2 # type: ignore from google.protobuf import duration_pb2 # type: ignore