Skip to content
Permalink
Browse files
chore: use gapic-generator-python 0.51.2 (#95)
- [ ] Regenerate this pull request now.

fix: add 'dict' annotation type to 'request'

Committer: @busunkim96
PiperOrigin-RevId: 398509016

Source-Link: googleapis/googleapis@b224dfa

Source-Link: googleapis/googleapis-gen@63a1db7
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9
  • Loading branch information
gcf-owl-bot committed Sep 24, 2021
1 parent aba8baf commit bee28be042f00bc030a789959cb2043b927a6a50
Showing with 115 additions and 115 deletions.
  1. +9 −9 google/cloud/retail_v2/services/catalog_service/client.py
  2. +1 −1 google/cloud/retail_v2/services/catalog_service/transports/base.py
  3. +3 −3 google/cloud/retail_v2/services/catalog_service/transports/grpc.py
  4. +3 −3 google/cloud/retail_v2/services/catalog_service/transports/grpc_asyncio.py
  5. +5 −5 google/cloud/retail_v2/services/completion_service/client.py
  6. +1 −1 google/cloud/retail_v2/services/completion_service/transports/base.py
  7. +3 −3 google/cloud/retail_v2/services/completion_service/transports/grpc.py
  8. +3 −3 google/cloud/retail_v2/services/completion_service/transports/grpc_asyncio.py
  9. +3 −3 google/cloud/retail_v2/services/prediction_service/client.py
  10. +1 −1 google/cloud/retail_v2/services/prediction_service/transports/base.py
  11. +3 −3 google/cloud/retail_v2/services/prediction_service/transports/grpc.py
  12. +3 −3 google/cloud/retail_v2/services/prediction_service/transports/grpc_asyncio.py
  13. +19 −19 google/cloud/retail_v2/services/product_service/client.py
  14. +1 −1 google/cloud/retail_v2/services/product_service/transports/base.py
  15. +3 −3 google/cloud/retail_v2/services/product_service/transports/grpc.py
  16. +3 −3 google/cloud/retail_v2/services/product_service/transports/grpc_asyncio.py
  17. +3 −3 google/cloud/retail_v2/services/search_service/client.py
  18. +1 −1 google/cloud/retail_v2/services/search_service/transports/base.py
  19. +3 −3 google/cloud/retail_v2/services/search_service/transports/grpc.py
  20. +3 −3 google/cloud/retail_v2/services/search_service/transports/grpc_asyncio.py
  21. +11 −11 google/cloud/retail_v2/services/user_event_service/client.py
  22. +1 −1 google/cloud/retail_v2/services/user_event_service/transports/base.py
  23. +3 −3 google/cloud/retail_v2/services/user_event_service/transports/grpc.py
  24. +3 −3 google/cloud/retail_v2/services/user_event_service/transports/grpc_asyncio.py
  25. +23 −23 scripts/fixup_retail_v2_keywords.py
@@ -17,7 +17,7 @@
from distutils import util
import os
import re
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib # type: ignore
@@ -372,7 +372,7 @@ def __init__(

def list_catalogs(
self,
request: catalog_service.ListCatalogsRequest = None,
request: Union[catalog_service.ListCatalogsRequest, dict] = None,
*,
parent: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -383,7 +383,7 @@ def list_catalogs(
associated with the project.
Args:
request (google.cloud.retail_v2.types.ListCatalogsRequest):
request (Union[google.cloud.retail_v2.types.ListCatalogsRequest, dict]):
The request object. Request for
[CatalogService.ListCatalogs][google.cloud.retail.v2.CatalogService.ListCatalogs]
method.
@@ -460,7 +460,7 @@ def list_catalogs(

def update_catalog(
self,
request: catalog_service.UpdateCatalogRequest = None,
request: Union[catalog_service.UpdateCatalogRequest, dict] = None,
*,
catalog: gcr_catalog.Catalog = None,
update_mask: field_mask_pb2.FieldMask = None,
@@ -471,7 +471,7 @@ def update_catalog(
r"""Updates the [Catalog][google.cloud.retail.v2.Catalog]s.
Args:
request (google.cloud.retail_v2.types.UpdateCatalogRequest):
request (Union[google.cloud.retail_v2.types.UpdateCatalogRequest, dict]):
The request object. Request for
[CatalogService.UpdateCatalog][google.cloud.retail.v2.CatalogService.UpdateCatalog]
method.
@@ -553,7 +553,7 @@ def update_catalog(

def set_default_branch(
self,
request: catalog_service.SetDefaultBranchRequest = None,
request: Union[catalog_service.SetDefaultBranchRequest, dict] = None,
*,
catalog: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -602,7 +602,7 @@ def set_default_branch(
sales if you are interested in using Retail Search.
Args:
request (google.cloud.retail_v2.types.SetDefaultBranchRequest):
request (Union[google.cloud.retail_v2.types.SetDefaultBranchRequest, dict]):
The request object. Request message to set a specified
branch as new default_branch.
catalog (str):
@@ -656,7 +656,7 @@ def set_default_branch(

def get_default_branch(
self,
request: catalog_service.GetDefaultBranchRequest = None,
request: Union[catalog_service.GetDefaultBranchRequest, dict] = None,
*,
catalog: str = None,
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -673,7 +673,7 @@ def get_default_branch(
sales if you are interested in using Retail Search.
Args:
request (google.cloud.retail_v2.types.GetDefaultBranchRequest):
request (Union[google.cloud.retail_v2.types.GetDefaultBranchRequest, dict]):
The request object. Request message to show which branch
is currently the default branch.
catalog (str):
@@ -117,7 +117,7 @@ def __init__(
**scopes_kwargs, quota_project_id=quota_project_id
)

# If the credentials is service account credentials, then always try to use self signed JWT.
# If the credentials are service account credentials, then always try to use self signed JWT.
if (
always_use_jwt_access
and isinstance(credentials, service_account.Credentials)
@@ -82,16 +82,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
@@ -129,16 +129,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
@@ -17,7 +17,7 @@
from distutils import util
import os
import re
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib # type: ignore
@@ -362,7 +362,7 @@ def __init__(

def complete_query(
self,
request: completion_service.CompleteQueryRequest = None,
request: Union[completion_service.CompleteQueryRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
@@ -376,7 +376,7 @@ def complete_query(
sales if you are interested in using Retail Search.
Args:
request (google.cloud.retail_v2.types.CompleteQueryRequest):
request (Union[google.cloud.retail_v2.types.CompleteQueryRequest, dict]):
The request object. Auto-complete parameters.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
@@ -414,7 +414,7 @@ def complete_query(

def import_completion_data(
self,
request: import_config.ImportCompletionDataRequest = None,
request: Union[import_config.ImportCompletionDataRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
@@ -431,7 +431,7 @@ def import_completion_data(
sales if you are interested in using Retail Search.
Args:
request (google.cloud.retail_v2.types.ImportCompletionDataRequest):
request (Union[google.cloud.retail_v2.types.ImportCompletionDataRequest, dict]):
The request object. Request message for
ImportCompletionData methods.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -118,7 +118,7 @@ def __init__(
**scopes_kwargs, quota_project_id=quota_project_id
)

# If the credentials is service account credentials, then always try to use self signed JWT.
# If the credentials are service account credentials, then always try to use self signed JWT.
if (
always_use_jwt_access
and isinstance(credentials, service_account.Credentials)
@@ -88,16 +88,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
@@ -135,16 +135,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
@@ -17,7 +17,7 @@
from distutils import util
import os
import re
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib # type: ignore
@@ -359,7 +359,7 @@ def __init__(

def predict(
self,
request: prediction_service.PredictRequest = None,
request: Union[prediction_service.PredictRequest, dict] = None,
*,
retry: retries.Retry = gapic_v1.method.DEFAULT,
timeout: float = None,
@@ -368,7 +368,7 @@ def predict(
r"""Makes a recommendation prediction.
Args:
request (google.cloud.retail_v2.types.PredictRequest):
request (Union[google.cloud.retail_v2.types.PredictRequest, dict]):
The request object. Request message for Predict method.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
@@ -115,7 +115,7 @@ def __init__(
**scopes_kwargs, quota_project_id=quota_project_id
)

# If the credentials is service account credentials, then always try to use self signed JWT.
# If the credentials are service account credentials, then always try to use self signed JWT.
if (
always_use_jwt_access
and isinstance(credentials, service_account.Credentials)
@@ -80,16 +80,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
@@ -127,16 +127,16 @@ def __init__(
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
If provided, it overrides the ``host`` argument and tries to create
a mutual TLS channel with client SSL credentials from
``client_cert_source`` or applicatin default SSL credentials.
``client_cert_source`` or application default SSL credentials.
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
Deprecated. A callback to provide client SSL certificate bytes and
private key bytes, both in PEM format. It is ignored if
``api_mtls_endpoint`` is None.
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
for grpc channel. It is ignored if ``channel`` is provided.
for the grpc channel. It is ignored if ``channel`` is provided.
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
A callback to provide client certificate bytes and private key bytes,
both in PEM format. It is used to configure mutual TLS channel. It is
both in PEM format. It is used to configure a mutual TLS channel. It is
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
quota_project_id (Optional[str]): An optional project to use for billing
and quota.
Loading

0 comments on commit bee28be

Please sign in to comment.