Skip to content
This repository was archived by the owner on Dec 17, 2023. It is now read-only.

Commit 12b4f60

Browse files
chore: use gapic-generator-python 0.51.2 (#398)
- [ ] Regenerate this pull request now. fix: add 'dict' annotation type to 'request' Committer: @busunkim96 PiperOrigin-RevId: 398509016 Source-Link: googleapis/googleapis@b224dfa Source-Link: https://github.com/googleapis/googleapis-gen/commit/63a1db7a38d74b9639592f521ed1daaf7299ad9a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9
1 parent b03678b commit 12b4f60

124 files changed

Lines changed: 804 additions & 784 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.

google/cloud/dialogflow_v2/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
@@ -351,7 +351,7 @@ def __init__(
351351

352352
def get_agent(
353353
self,
354-
request: agent.GetAgentRequest = None,
354+
request: Union[agent.GetAgentRequest, dict] = None,
355355
*,
356356
parent: str = None,
357357
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -361,7 +361,7 @@ def get_agent(
361361
r"""Retrieves the specified agent.
362362
363363
Args:
364-
request (google.cloud.dialogflow_v2.types.GetAgentRequest):
364+
request (Union[google.cloud.dialogflow_v2.types.GetAgentRequest, dict]):
365365
The request object. The request message for
366366
[Agents.GetAgent][google.cloud.dialogflow.v2.Agents.GetAgent].
367367
parent (str):
@@ -431,7 +431,7 @@ def get_agent(
431431

432432
def set_agent(
433433
self,
434-
request: gcd_agent.SetAgentRequest = None,
434+
request: Union[gcd_agent.SetAgentRequest, dict] = None,
435435
*,
436436
agent: gcd_agent.Agent = None,
437437
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -445,7 +445,7 @@ def set_agent(
445445
documentation <https://cloud.google.com/dialogflow/es/docs/training>`__.
446446
447447
Args:
448-
request (google.cloud.dialogflow_v2.types.SetAgentRequest):
448+
request (Union[google.cloud.dialogflow_v2.types.SetAgentRequest, dict]):
449449
The request object. The request message for
450450
[Agents.SetAgent][google.cloud.dialogflow.v2.Agents.SetAgent].
451451
agent (google.cloud.dialogflow_v2.types.Agent):
@@ -515,7 +515,7 @@ def set_agent(
515515

516516
def delete_agent(
517517
self,
518-
request: agent.DeleteAgentRequest = None,
518+
request: Union[agent.DeleteAgentRequest, dict] = None,
519519
*,
520520
parent: str = None,
521521
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -525,7 +525,7 @@ def delete_agent(
525525
r"""Deletes the specified agent.
526526
527527
Args:
528-
request (google.cloud.dialogflow_v2.types.DeleteAgentRequest):
528+
request (Union[google.cloud.dialogflow_v2.types.DeleteAgentRequest, dict]):
529529
The request object. The request message for
530530
[Agents.DeleteAgent][google.cloud.dialogflow.v2.Agents.DeleteAgent].
531531
parent (str):
@@ -579,7 +579,7 @@ def delete_agent(
579579

580580
def search_agents(
581581
self,
582-
request: agent.SearchAgentsRequest = None,
582+
request: Union[agent.SearchAgentsRequest, dict] = None,
583583
*,
584584
parent: str = None,
585585
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -595,7 +595,7 @@ def search_agents(
595595
Sub-Collections <https://cloud.google.com/apis/design/design_patterns#list_sub-collections>`__.
596596
597597
Args:
598-
request (google.cloud.dialogflow_v2.types.SearchAgentsRequest):
598+
request (Union[google.cloud.dialogflow_v2.types.SearchAgentsRequest, dict]):
599599
The request object. The request message for
600600
[Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].
601601
parent (str):
@@ -665,7 +665,7 @@ def search_agents(
665665

666666
def train_agent(
667667
self,
668-
request: agent.TrainAgentRequest = None,
668+
request: Union[agent.TrainAgentRequest, dict] = None,
669669
*,
670670
parent: str = None,
671671
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -689,7 +689,7 @@ def train_agent(
689689
documentation <https://cloud.google.com/dialogflow/es/docs/training>`__.
690690
691691
Args:
692-
request (google.cloud.dialogflow_v2.types.TrainAgentRequest):
692+
request (Union[google.cloud.dialogflow_v2.types.TrainAgentRequest, dict]):
693693
The request object. The request message for
694694
[Agents.TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent].
695695
parent (str):
@@ -771,7 +771,7 @@ def train_agent(
771771

772772
def export_agent(
773773
self,
774-
request: agent.ExportAgentRequest = None,
774+
request: Union[agent.ExportAgentRequest, dict] = None,
775775
*,
776776
parent: str = None,
777777
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -791,7 +791,7 @@ def export_agent(
791791
[ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]
792792
793793
Args:
794-
request (google.cloud.dialogflow_v2.types.ExportAgentRequest):
794+
request (Union[google.cloud.dialogflow_v2.types.ExportAgentRequest, dict]):
795795
The request object. The request message for
796796
[Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].
797797
parent (str):
@@ -864,7 +864,7 @@ def export_agent(
864864

865865
def import_agent(
866866
self,
867-
request: agent.ImportAgentRequest = None,
867+
request: Union[agent.ImportAgentRequest, dict] = None,
868868
*,
869869
retry: retries.Retry = gapic_v1.method.DEFAULT,
870870
timeout: float = None,
@@ -901,7 +901,7 @@ def import_agent(
901901
documentation <https://cloud.google.com/dialogflow/es/docs/training>`__.
902902
903903
Args:
904-
request (google.cloud.dialogflow_v2.types.ImportAgentRequest):
904+
request (Union[google.cloud.dialogflow_v2.types.ImportAgentRequest, dict]):
905905
The request object. The request message for
906906
[Agents.ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent].
907907
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -963,7 +963,7 @@ def import_agent(
963963

964964
def restore_agent(
965965
self,
966-
request: agent.RestoreAgentRequest = None,
966+
request: Union[agent.RestoreAgentRequest, dict] = None,
967967
*,
968968
retry: retries.Retry = gapic_v1.method.DEFAULT,
969969
timeout: float = None,
@@ -998,7 +998,7 @@ def restore_agent(
998998
documentation <https://cloud.google.com/dialogflow/es/docs/training>`__.
999999
10001000
Args:
1001-
request (google.cloud.dialogflow_v2.types.RestoreAgentRequest):
1001+
request (Union[google.cloud.dialogflow_v2.types.RestoreAgentRequest, dict]):
10021002
The request object. The request message for
10031003
[Agents.RestoreAgent][google.cloud.dialogflow.v2.Agents.RestoreAgent].
10041004
retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -1060,7 +1060,7 @@ def restore_agent(
10601060

10611061
def get_validation_result(
10621062
self,
1063-
request: agent.GetValidationResultRequest = None,
1063+
request: Union[agent.GetValidationResultRequest, dict] = None,
10641064
*,
10651065
retry: retries.Retry = gapic_v1.method.DEFAULT,
10661066
timeout: float = None,
@@ -1071,7 +1071,7 @@ def get_validation_result(
10711071
automatically when training is completed.
10721072
10731073
Args:
1074-
request (google.cloud.dialogflow_v2.types.GetValidationResultRequest):
1074+
request (Union[google.cloud.dialogflow_v2.types.GetValidationResultRequest, dict]):
10751075
The request object. The request message for
10761076
[Agents.GetValidationResult][google.cloud.dialogflow.v2.Agents.GetValidationResult].
10771077
retry (google.api_core.retry.Retry): Designation of what errors, if any,

google/cloud/dialogflow_v2/services/agents/transports/base.py

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

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

google/cloud/dialogflow_v2/services/agents/transports/grpc.py

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

google/cloud/dialogflow_v2/services/agents/transports/grpc_asyncio.py

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

google/cloud/dialogflow_v2/services/answer_records/client.py

Lines changed: 5 additions & 5 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
@@ -353,7 +353,7 @@ def __init__(
353353

354354
def list_answer_records(
355355
self,
356-
request: answer_record.ListAnswerRecordsRequest = None,
356+
request: Union[answer_record.ListAnswerRecordsRequest, dict] = None,
357357
*,
358358
parent: str = None,
359359
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -364,7 +364,7 @@ def list_answer_records(
364364
specified project in reverse chronological order.
365365
366366
Args:
367-
request (google.cloud.dialogflow_v2.types.ListAnswerRecordsRequest):
367+
request (Union[google.cloud.dialogflow_v2.types.ListAnswerRecordsRequest, dict]):
368368
The request object. Request message for
369369
[AnswerRecords.ListAnswerRecords][google.cloud.dialogflow.v2.AnswerRecords.ListAnswerRecords].
370370
parent (str):
@@ -435,7 +435,7 @@ def list_answer_records(
435435

436436
def update_answer_record(
437437
self,
438-
request: gcd_answer_record.UpdateAnswerRecordRequest = None,
438+
request: Union[gcd_answer_record.UpdateAnswerRecordRequest, dict] = None,
439439
*,
440440
answer_record: gcd_answer_record.AnswerRecord = None,
441441
update_mask: field_mask_pb2.FieldMask = None,
@@ -446,7 +446,7 @@ def update_answer_record(
446446
r"""Updates the specified answer record.
447447
448448
Args:
449-
request (google.cloud.dialogflow_v2.types.UpdateAnswerRecordRequest):
449+
request (Union[google.cloud.dialogflow_v2.types.UpdateAnswerRecordRequest, dict]):
450450
The request object. Request message for
451451
[AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord].
452452
answer_record (google.cloud.dialogflow_v2.types.AnswerRecord):

google/cloud/dialogflow_v2/services/answer_records/transports/base.py

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

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

google/cloud/dialogflow_v2/services/answer_records/transports/grpc.py

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

google/cloud/dialogflow_v2/services/answer_records/transports/grpc_asyncio.py

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

0 commit comments

Comments
 (0)