Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

docs: Minor formatting #433

Merged
merged 3 commits into from Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion google/cloud/retail_v2/services/catalog_service/client.py
Expand Up @@ -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

Expand Down
Expand Up @@ -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

Expand Down
Expand Up @@ -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

Expand Down
Expand Up @@ -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
Expand Down
Expand Up @@ -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
Expand All @@ -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
Expand Down
Expand Up @@ -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

Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
6 changes: 5 additions & 1 deletion google/cloud/retail_v2/services/completion_service/client.py
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion google/cloud/retail_v2/services/control_service/client.py
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
Expand Up @@ -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

Expand Down
Expand Up @@ -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

Expand Down
Expand Up @@ -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
Expand Down
Expand Up @@ -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
Expand All @@ -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
Expand Down
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion google/cloud/retail_v2/services/model_service/client.py
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down
Expand Up @@ -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
Expand Down
Expand Up @@ -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

Expand Down
Expand Up @@ -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

Expand Down
Expand Up @@ -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
Expand Down
Expand Up @@ -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
Expand Down
Expand Up @@ -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

Expand Down
Expand Up @@ -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
Expand All @@ -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
Expand Down
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/retail_v2/services/product_service/client.py
Expand Up @@ -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
Expand Down
Expand Up @@ -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
Expand Down