Skip to content

Commit 5815dee

Browse files
chore: use gapic-generator-python 0.51.2 (#174)
- [ ] 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
1 parent f1e5a48 commit 5815dee

112 files changed

Lines changed: 620 additions & 604 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/services/agents/client.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from distutils import util
1818
import os
1919
import re
20-
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
20+
from typing import Dict, Optional, Sequence, Tuple, Type, Union
2121
import pkg_resources
2222

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

445445
def list_agents(
446446
self,
447-
request: agent.ListAgentsRequest = None,
447+
request: Union[agent.ListAgentsRequest, dict] = None,
448448
*,
449449
parent: str = None,
450450
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -455,7 +455,7 @@ def list_agents(
455455
location.
456456
457457
Args:
458-
request (google.cloud.dialogflowcx_v3.types.ListAgentsRequest):
458+
request (Union[google.cloud.dialogflowcx_v3.types.ListAgentsRequest, dict]):
459459
The request object. The request message for
460460
[Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
461461
parent (str):
@@ -525,7 +525,7 @@ def list_agents(
525525

526526
def get_agent(
527527
self,
528-
request: agent.GetAgentRequest = None,
528+
request: Union[agent.GetAgentRequest, dict] = None,
529529
*,
530530
name: str = None,
531531
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -535,7 +535,7 @@ def get_agent(
535535
r"""Retrieves the specified agent.
536536
537537
Args:
538-
request (google.cloud.dialogflowcx_v3.types.GetAgentRequest):
538+
request (Union[google.cloud.dialogflowcx_v3.types.GetAgentRequest, dict]):
539539
The request object. The request message for
540540
[Agents.GetAgent][google.cloud.dialogflow.cx.v3.Agents.GetAgent].
541541
name (str):
@@ -608,7 +608,7 @@ def get_agent(
608608

609609
def create_agent(
610610
self,
611-
request: gcdc_agent.CreateAgentRequest = None,
611+
request: Union[gcdc_agent.CreateAgentRequest, dict] = None,
612612
*,
613613
parent: str = None,
614614
agent: gcdc_agent.Agent = None,
@@ -623,7 +623,7 @@ def create_agent(
623623
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
624624
625625
Args:
626-
request (google.cloud.dialogflowcx_v3.types.CreateAgentRequest):
626+
request (Union[google.cloud.dialogflowcx_v3.types.CreateAgentRequest, dict]):
627627
The request object. The request message for
628628
[Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent].
629629
parent (str):
@@ -703,7 +703,7 @@ def create_agent(
703703

704704
def update_agent(
705705
self,
706-
request: gcdc_agent.UpdateAgentRequest = None,
706+
request: Union[gcdc_agent.UpdateAgentRequest, dict] = None,
707707
*,
708708
agent: gcdc_agent.Agent = None,
709709
update_mask: field_mask_pb2.FieldMask = None,
@@ -718,7 +718,7 @@ def update_agent(
718718
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
719719
720720
Args:
721-
request (google.cloud.dialogflowcx_v3.types.UpdateAgentRequest):
721+
request (Union[google.cloud.dialogflowcx_v3.types.UpdateAgentRequest, dict]):
722722
The request object. The request message for
723723
[Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent].
724724
agent (google.cloud.dialogflowcx_v3.types.Agent):
@@ -801,7 +801,7 @@ def update_agent(
801801

802802
def delete_agent(
803803
self,
804-
request: agent.DeleteAgentRequest = None,
804+
request: Union[agent.DeleteAgentRequest, dict] = None,
805805
*,
806806
name: str = None,
807807
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -811,7 +811,7 @@ def delete_agent(
811811
r"""Deletes the specified agent.
812812
813813
Args:
814-
request (google.cloud.dialogflowcx_v3.types.DeleteAgentRequest):
814+
request (Union[google.cloud.dialogflowcx_v3.types.DeleteAgentRequest, dict]):
815815
The request object. The request message for
816816
[Agents.DeleteAgent][google.cloud.dialogflow.cx.v3.Agents.DeleteAgent].
817817
name (str):
@@ -865,7 +865,7 @@ def delete_agent(
865865

866866
def export_agent(
867867
self,
868-
request: agent.ExportAgentRequest = None,
868+
request: Union[agent.ExportAgentRequest, dict] = None,
869869
*,
870870
retry: retries.Retry = gapic_v1.method.DEFAULT,
871871
timeout: float = None,
@@ -883,7 +883,7 @@ def export_agent(
883883
[ExportAgentResponse][google.cloud.dialogflow.cx.v3.ExportAgentResponse]
884884
885885
Args:
886-
request (google.cloud.dialogflowcx_v3.types.ExportAgentRequest):
886+
request (Union[google.cloud.dialogflowcx_v3.types.ExportAgentRequest, dict]):
887887
The request object. The request message for
888888
[Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent].
889889
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -936,7 +936,7 @@ def export_agent(
936936

937937
def restore_agent(
938938
self,
939-
request: agent.RestoreAgentRequest = None,
939+
request: Union[agent.RestoreAgentRequest, dict] = None,
940940
*,
941941
retry: retries.Retry = gapic_v1.method.DEFAULT,
942942
timeout: float = None,
@@ -953,7 +953,7 @@ def restore_agent(
953953
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
954954
955955
Args:
956-
request (google.cloud.dialogflowcx_v3.types.RestoreAgentRequest):
956+
request (Union[google.cloud.dialogflowcx_v3.types.RestoreAgentRequest, dict]):
957957
The request object. The request message for
958958
[Agents.RestoreAgent][google.cloud.dialogflow.cx.v3.Agents.RestoreAgent].
959959
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -1015,7 +1015,7 @@ def restore_agent(
10151015

10161016
def validate_agent(
10171017
self,
1018-
request: agent.ValidateAgentRequest = None,
1018+
request: Union[agent.ValidateAgentRequest, dict] = None,
10191019
*,
10201020
retry: retries.Retry = gapic_v1.method.DEFAULT,
10211021
timeout: float = None,
@@ -1027,7 +1027,7 @@ def validate_agent(
10271027
completed to get the complete validation results.
10281028
10291029
Args:
1030-
request (google.cloud.dialogflowcx_v3.types.ValidateAgentRequest):
1030+
request (Union[google.cloud.dialogflowcx_v3.types.ValidateAgentRequest, dict]):
10311031
The request object. The request message for
10321032
[Agents.ValidateAgent][google.cloud.dialogflow.cx.v3.Agents.ValidateAgent].
10331033
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -1068,7 +1068,7 @@ def validate_agent(
10681068

10691069
def get_agent_validation_result(
10701070
self,
1071-
request: agent.GetAgentValidationResultRequest = None,
1071+
request: Union[agent.GetAgentValidationResultRequest, dict] = None,
10721072
*,
10731073
name: str = None,
10741074
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -1079,7 +1079,7 @@ def get_agent_validation_result(
10791079
validation is performed when ValidateAgent is called.
10801080
10811081
Args:
1082-
request (google.cloud.dialogflowcx_v3.types.GetAgentValidationResultRequest):
1082+
request (Union[google.cloud.dialogflowcx_v3.types.GetAgentValidationResultRequest, dict]):
10831083
The request object. The request message for
10841084
[Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResult].
10851085
name (str):

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/services/agents/transports/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def __init__(
124124
**scopes_kwargs, quota_project_id=quota_project_id
125125
)
126126

127-
# If the credentials is service account credentials, then always try to use self signed JWT.
127+
# If the credentials are service account credentials, then always try to use self signed JWT.
128128
if (
129129
always_use_jwt_access
130130
and isinstance(credentials, service_account.Credentials)

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/services/agents/transports/grpc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,16 @@ def __init__(
8484
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
8585
If provided, it overrides the ``host`` argument and tries to create
8686
a mutual TLS channel with client SSL credentials from
87-
``client_cert_source`` or applicatin default SSL credentials.
87+
``client_cert_source`` or application default SSL credentials.
8888
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
8989
Deprecated. A callback to provide client SSL certificate bytes and
9090
private key bytes, both in PEM format. It is ignored if
9191
``api_mtls_endpoint`` is None.
9292
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
93-
for grpc channel. It is ignored if ``channel`` is provided.
93+
for the grpc channel. It is ignored if ``channel`` is provided.
9494
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
9595
A callback to provide client certificate bytes and private key bytes,
96-
both in PEM format. It is used to configure mutual TLS channel. It is
96+
both in PEM format. It is used to configure a mutual TLS channel. It is
9797
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
9898
quota_project_id (Optional[str]): An optional project to use for billing
9999
and quota.

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/services/agents/transports/grpc_asyncio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,16 @@ def __init__(
131131
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
132132
If provided, it overrides the ``host`` argument and tries to create
133133
a mutual TLS channel with client SSL credentials from
134-
``client_cert_source`` or applicatin default SSL credentials.
134+
``client_cert_source`` or application default SSL credentials.
135135
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
136136
Deprecated. A callback to provide client SSL certificate bytes and
137137
private key bytes, both in PEM format. It is ignored if
138138
``api_mtls_endpoint`` is None.
139139
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
140-
for grpc channel. It is ignored if ``channel`` is provided.
140+
for the grpc channel. It is ignored if ``channel`` is provided.
141141
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
142142
A callback to provide client certificate bytes and private key bytes,
143-
both in PEM format. It is used to configure mutual TLS channel. It is
143+
both in PEM format. It is used to configure a mutual TLS channel. It is
144144
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
145145
quota_project_id (Optional[str]): An optional project to use for billing
146146
and quota.

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/services/entity_types/client.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from distutils import util
1818
import os
1919
import re
20-
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
20+
from typing import Dict, Optional, Sequence, Tuple, Type, Union
2121
import pkg_resources
2222

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

357357
def list_entity_types(
358358
self,
359-
request: entity_type.ListEntityTypesRequest = None,
359+
request: Union[entity_type.ListEntityTypesRequest, dict] = None,
360360
*,
361361
parent: str = None,
362362
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -367,7 +367,7 @@ def list_entity_types(
367367
agent.
368368
369369
Args:
370-
request (google.cloud.dialogflowcx_v3.types.ListEntityTypesRequest):
370+
request (Union[google.cloud.dialogflowcx_v3.types.ListEntityTypesRequest, dict]):
371371
The request object. The request message for
372372
[EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
373373
parent (str):
@@ -438,7 +438,7 @@ def list_entity_types(
438438

439439
def get_entity_type(
440440
self,
441-
request: entity_type.GetEntityTypeRequest = None,
441+
request: Union[entity_type.GetEntityTypeRequest, dict] = None,
442442
*,
443443
name: str = None,
444444
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -448,7 +448,7 @@ def get_entity_type(
448448
r"""Retrieves the specified entity type.
449449
450450
Args:
451-
request (google.cloud.dialogflowcx_v3.types.GetEntityTypeRequest):
451+
request (Union[google.cloud.dialogflowcx_v3.types.GetEntityTypeRequest, dict]):
452452
The request object. The request message for
453453
[EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType].
454454
name (str):
@@ -541,7 +541,7 @@ def get_entity_type(
541541

542542
def create_entity_type(
543543
self,
544-
request: gcdc_entity_type.CreateEntityTypeRequest = None,
544+
request: Union[gcdc_entity_type.CreateEntityTypeRequest, dict] = None,
545545
*,
546546
parent: str = None,
547547
entity_type: gcdc_entity_type.EntityType = None,
@@ -556,7 +556,7 @@ def create_entity_type(
556556
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
557557
558558
Args:
559-
request (google.cloud.dialogflowcx_v3.types.CreateEntityTypeRequest):
559+
request (Union[google.cloud.dialogflowcx_v3.types.CreateEntityTypeRequest, dict]):
560560
The request object. The request message for
561561
[EntityTypes.CreateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.CreateEntityType].
562562
parent (str):
@@ -656,7 +656,7 @@ def create_entity_type(
656656

657657
def update_entity_type(
658658
self,
659-
request: gcdc_entity_type.UpdateEntityTypeRequest = None,
659+
request: Union[gcdc_entity_type.UpdateEntityTypeRequest, dict] = None,
660660
*,
661661
entity_type: gcdc_entity_type.EntityType = None,
662662
update_mask: field_mask_pb2.FieldMask = None,
@@ -671,7 +671,7 @@ def update_entity_type(
671671
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
672672
673673
Args:
674-
request (google.cloud.dialogflowcx_v3.types.UpdateEntityTypeRequest):
674+
request (Union[google.cloud.dialogflowcx_v3.types.UpdateEntityTypeRequest, dict]):
675675
The request object. The request message for
676676
[EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
677677
entity_type (google.cloud.dialogflowcx_v3.types.EntityType):
@@ -773,7 +773,7 @@ def update_entity_type(
773773

774774
def delete_entity_type(
775775
self,
776-
request: entity_type.DeleteEntityTypeRequest = None,
776+
request: Union[entity_type.DeleteEntityTypeRequest, dict] = None,
777777
*,
778778
name: str = None,
779779
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -787,7 +787,7 @@ def delete_entity_type(
787787
documentation <https://cloud.google.com/dialogflow/cx/docs/concept/training>`__.
788788
789789
Args:
790-
request (google.cloud.dialogflowcx_v3.types.DeleteEntityTypeRequest):
790+
request (Union[google.cloud.dialogflowcx_v3.types.DeleteEntityTypeRequest, dict]):
791791
The request object. The request message for
792792
[EntityTypes.DeleteEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityType].
793793
name (str):

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/services/entity_types/transports/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def __init__(
122122
**scopes_kwargs, quota_project_id=quota_project_id
123123
)
124124

125-
# If the credentials is service account credentials, then always try to use self signed JWT.
125+
# If the credentials are service account credentials, then always try to use self signed JWT.
126126
if (
127127
always_use_jwt_access
128128
and isinstance(credentials, service_account.Credentials)

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/services/entity_types/transports/grpc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,16 @@ def __init__(
8383
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
8484
If provided, it overrides the ``host`` argument and tries to create
8585
a mutual TLS channel with client SSL credentials from
86-
``client_cert_source`` or applicatin default SSL credentials.
86+
``client_cert_source`` or application default SSL credentials.
8787
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
8888
Deprecated. A callback to provide client SSL certificate bytes and
8989
private key bytes, both in PEM format. It is ignored if
9090
``api_mtls_endpoint`` is None.
9191
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
92-
for grpc channel. It is ignored if ``channel`` is provided.
92+
for the grpc channel. It is ignored if ``channel`` is provided.
9393
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
9494
A callback to provide client certificate bytes and private key bytes,
95-
both in PEM format. It is used to configure mutual TLS channel. It is
95+
both in PEM format. It is used to configure a mutual TLS channel. It is
9696
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
9797
quota_project_id (Optional[str]): An optional project to use for billing
9898
and quota.

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/services/entity_types/transports/grpc_asyncio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,16 @@ def __init__(
130130
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
131131
If provided, it overrides the ``host`` argument and tries to create
132132
a mutual TLS channel with client SSL credentials from
133-
``client_cert_source`` or applicatin default SSL credentials.
133+
``client_cert_source`` or application default SSL credentials.
134134
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
135135
Deprecated. A callback to provide client SSL certificate bytes and
136136
private key bytes, both in PEM format. It is ignored if
137137
``api_mtls_endpoint`` is None.
138138
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
139-
for grpc channel. It is ignored if ``channel`` is provided.
139+
for the grpc channel. It is ignored if ``channel`` is provided.
140140
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
141141
A callback to provide client certificate bytes and private key bytes,
142-
both in PEM format. It is used to configure mutual TLS channel. It is
142+
both in PEM format. It is used to configure a mutual TLS channel. It is
143143
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
144144
quota_project_id (Optional[str]): An optional project to use for billing
145145
and quota.

0 commit comments

Comments
 (0)