Skip to content

Commit b411f6c

Browse files
chore: use gapic-generator-python 0.65.1 (#508)
* chore: use gapic-generator-python 0.65.1 PiperOrigin-RevId: 441524537 Source-Link: googleapis/googleapis@2a27391 Source-Link: googleapis/googleapis-gen@ab6756a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWI2NzU2YTQ4Yzg5YjViY2I5ZmI3MzQ0M2NiOGU1NWQ1NzRmNDY0MyJ9 * 🦉 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 <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 903f77b commit b411f6c

File tree

174 files changed

+17400
-1744
lines changed

Some content is hidden

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

174 files changed

+17400
-1744
lines changed

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/services/agents/async_client.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from collections import OrderedDict
1717
import functools
1818
import re
19-
from typing import Dict, Optional, Sequence, Tuple, Type, Union
19+
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
2020
import pkg_resources
2121

2222
from google.api_core.client_options import ClientOptions
@@ -317,7 +317,6 @@ async def set_agent(
317317
queries. See the `training
318318
documentation <https://cloud.google.com/dialogflow/es/docs/training>`__.
319319
320-
321320
.. code-block:: python
322321
323322
from google.cloud import dialogflow_v2
@@ -517,7 +516,6 @@ async def search_agents(
517516
wildcard project collection id "-". Refer to `List
518517
Sub-Collections <https://cloud.google.com/apis/design/design_patterns#list_sub-collections>`__.
519518
520-
521519
.. code-block:: python
522520
523521
from google.cloud import dialogflow_v2
@@ -640,7 +638,6 @@ async def train_agent(
640638
queries. See the `training
641639
documentation <https://cloud.google.com/dialogflow/es/docs/training>`__.
642640
643-
644641
.. code-block:: python
645642
646643
from google.cloud import dialogflow_v2
@@ -771,7 +768,6 @@ async def export_agent(
771768
- ``response``:
772769
[ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]
773770
774-
775771
.. code-block:: python
776772
777773
from google.cloud import dialogflow_v2
@@ -911,7 +907,6 @@ async def import_agent(
911907
queries. See the `training
912908
documentation <https://cloud.google.com/dialogflow/es/docs/training>`__.
913909
914-
915910
.. code-block:: python
916911
917912
from google.cloud import dialogflow_v2
@@ -1037,7 +1032,6 @@ async def restore_agent(
10371032
queries. See the `training
10381033
documentation <https://cloud.google.com/dialogflow/es/docs/training>`__.
10391034
1040-
10411035
.. code-block:: python
10421036
10431037
from google.cloud import dialogflow_v2
@@ -1139,7 +1133,6 @@ async def get_validation_result(
11391133
performed during training time and is updated
11401134
automatically when training is completed.
11411135
1142-
11431136
.. code-block:: python
11441137
11451138
from google.cloud import dialogflow_v2

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/services/agents/client.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from collections import OrderedDict
1717
import os
1818
import re
19-
from typing import Dict, Optional, Sequence, Tuple, Type, Union
19+
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
2020
import pkg_resources
2121

2222
from google.api_core import client_options as client_options_lib
@@ -542,7 +542,6 @@ def set_agent(
542542
queries. See the `training
543543
documentation <https://cloud.google.com/dialogflow/es/docs/training>`__.
544544
545-
546545
.. code-block:: python
547546
548547
from google.cloud import dialogflow_v2
@@ -742,7 +741,6 @@ def search_agents(
742741
wildcard project collection id "-". Refer to `List
743742
Sub-Collections <https://cloud.google.com/apis/design/design_patterns#list_sub-collections>`__.
744743
745-
746744
.. code-block:: python
747745
748746
from google.cloud import dialogflow_v2
@@ -865,7 +863,6 @@ def train_agent(
865863
queries. See the `training
866864
documentation <https://cloud.google.com/dialogflow/es/docs/training>`__.
867865
868-
869866
.. code-block:: python
870867
871868
from google.cloud import dialogflow_v2
@@ -996,7 +993,6 @@ def export_agent(
996993
- ``response``:
997994
[ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]
998995
999-
1000996
.. code-block:: python
1001997
1002998
from google.cloud import dialogflow_v2
@@ -1136,7 +1132,6 @@ def import_agent(
11361132
queries. See the `training
11371133
documentation <https://cloud.google.com/dialogflow/es/docs/training>`__.
11381134
1139-
11401135
.. code-block:: python
11411136
11421137
from google.cloud import dialogflow_v2
@@ -1263,7 +1258,6 @@ def restore_agent(
12631258
queries. See the `training
12641259
documentation <https://cloud.google.com/dialogflow/es/docs/training>`__.
12651260
1266-
12671261
.. code-block:: python
12681262
12691263
from google.cloud import dialogflow_v2
@@ -1366,7 +1360,6 @@ def get_validation_result(
13661360
performed during training time and is updated
13671361
automatically when training is completed.
13681362
1369-
13701363
.. code-block:: python
13711364
13721365
from google.cloud import dialogflow_v2

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ def __init__(
8888
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
8989
be used for service account credentials.
9090
"""
91+
9192
# Save the hostname. Default to port 443 (HTTPS) if none is specified.
9293
if ":" not in host:
9394
host += ":443"
@@ -268,5 +269,9 @@ def get_validation_result(
268269
]:
269270
raise NotImplementedError()
270271

272+
@property
273+
def kind(self) -> str:
274+
raise NotImplementedError()
275+
271276

272277
__all__ = ("AgentsTransport",)

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,5 +570,9 @@ def get_validation_result(
570570
def close(self):
571571
self.grpc_channel.close()
572572

573+
@property
574+
def kind(self) -> str:
575+
return "grpc"
576+
573577

574578
__all__ = ("AgentsGrpcTransport",)

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/services/answer_records/async_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from collections import OrderedDict
1717
import functools
1818
import re
19-
from typing import Dict, Optional, Sequence, Tuple, Type, Union
19+
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
2020
import pkg_resources
2121

2222
from google.api_core.client_options import ClientOptions
@@ -220,7 +220,6 @@ async def list_answer_records(
220220
r"""Returns the list of all answer records in the
221221
specified project in reverse chronological order.
222222
223-
224223
.. code-block:: python
225224
226225
from google.cloud import dialogflow_v2

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/services/answer_records/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from collections import OrderedDict
1717
import os
1818
import re
19-
from typing import Dict, Optional, Sequence, Tuple, Type, Union
19+
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
2020
import pkg_resources
2121

2222
from google.api_core import client_options as client_options_lib
@@ -437,7 +437,6 @@ def list_answer_records(
437437
r"""Returns the list of all answer records in the
438438
specified project in reverse chronological order.
439439
440-
441440
.. code-block:: python
442441
443442
from google.cloud import dialogflow_v2

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/services/answer_records/transports/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def __init__(
8484
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
8585
be used for service account credentials.
8686
"""
87+
8788
# Save the hostname. Default to port 443 (HTTPS) if none is specified.
8889
if ":" not in host:
8990
host += ":443"
@@ -168,5 +169,9 @@ def update_answer_record(
168169
]:
169170
raise NotImplementedError()
170171

172+
@property
173+
def kind(self) -> str:
174+
raise NotImplementedError()
175+
171176

172177
__all__ = ("AnswerRecordsTransport",)

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/services/answer_records/transports/grpc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,5 +290,9 @@ def update_answer_record(
290290
def close(self):
291291
self.grpc_channel.close()
292292

293+
@property
294+
def kind(self) -> str:
295+
return "grpc"
296+
293297

294298
__all__ = ("AnswerRecordsGrpcTransport",)

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/services/contexts/async_client.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from collections import OrderedDict
1717
import functools
1818
import re
19-
from typing import Dict, Optional, Sequence, Tuple, Type, Union
19+
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
2020
import pkg_resources
2121

2222
from google.api_core.client_options import ClientOptions
@@ -209,7 +209,6 @@ async def list_contexts(
209209
r"""Returns the list of all contexts in the specified
210210
session.
211211
212-
213212
.. code-block:: python
214213
215214
from google.cloud import dialogflow_v2
@@ -442,7 +441,6 @@ async def create_context(
442441
If the specified context already exists, overrides the
443442
context.
444443
445-
446444
.. code-block:: python
447445
448446
from google.cloud import dialogflow_v2

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/services/contexts/client.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from collections import OrderedDict
1717
import os
1818
import re
19-
from typing import Dict, Optional, Sequence, Tuple, Type, Union
19+
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
2020
import pkg_resources
2121

2222
from google.api_core import client_options as client_options_lib
@@ -439,7 +439,6 @@ def list_contexts(
439439
r"""Returns the list of all contexts in the specified
440440
session.
441441
442-
443442
.. code-block:: python
444443
445444
from google.cloud import dialogflow_v2
@@ -672,7 +671,6 @@ def create_context(
672671
If the specified context already exists, overrides the
673672
context.
674673
675-
676674
.. code-block:: python
677675
678676
from google.cloud import dialogflow_v2

0 commit comments

Comments
 (0)