Skip to content

Commit e262c10

Browse files
chore: [google-cloud-dialogflow] Update gapic-generator-python to v1.23.2 (#13566)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 732281673 Source-Link: googleapis/googleapis@2f37e0a Source-Link: googleapis/googleapis-gen@016b753 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3cvLk93bEJvdC55YW1sIiwiaCI6IjAxNmI3NTM4YmE1YTc5OGYyYWU0MjNkNGNjZDdmODJiMDZjZGY2ZDIifQ== BEGIN_COMMIT_OVERRIDE docs(v2beta1): clarified wording around document_correctness docs(v2beta1): clarified wording around use_timeout_based_endpointing docs(v2beta1): clarified wording around BoostSpec and filter_specs docs(v2beta1): clarified wording around send_time END_COMMIT_OVERRIDE BEGIN_NESTED_COMMIT PiperOrigin-RevId: 731775764 Source-Link: googleapis/googleapis@8dc944f Source-Link: googleapis/googleapis-gen@3fbcb01 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3cvLk93bEJvdC55YW1sIiwiaCI6IjNmYmNiMDFiZDVlZDFlODRlOTM5ZjUwYTExNTExYTQxN2MzM2U2ZjQifQ== END_NESTED_COMMIT --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 1df29f9 commit e262c10

File tree

87 files changed

+1635
-405
lines changed

Some content is hidden

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

87 files changed

+1635
-405
lines changed

packages/google-cloud-dialogflow/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ In order to use this library, you first need to go through the following steps:
2626
1. `Select or create a Cloud Platform project.`_
2727
2. `Enable billing for your project.`_
2828
3. `Enable the Dialogflow.`_
29-
4. `Setup Authentication.`_
29+
4. `Set up Authentication.`_
3030

3131
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
3232
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
3333
.. _Enable the Dialogflow.: https://www.dialogflow.com/
34-
.. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
34+
.. _Set up Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html
3535

3636
Installation
3737
~~~~~~~~~~~~

packages/google-cloud-dialogflow/google/cloud/dialogflow/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.39.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.39.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,10 @@ async def sample_get_agent():
359359
# Create or coerce a protobuf request object.
360360
# - Quick check: If we got a request object, we should *not* have
361361
# gotten any keyword arguments that map to the request.
362-
has_flattened_params = any([parent])
362+
flattened_params = [parent]
363+
has_flattened_params = (
364+
len([param for param in flattened_params if param is not None]) > 0
365+
)
363366
if request is not None and has_flattened_params:
364367
raise ValueError(
365368
"If the `request` argument is set, then none of "
@@ -484,7 +487,10 @@ async def sample_set_agent():
484487
# Create or coerce a protobuf request object.
485488
# - Quick check: If we got a request object, we should *not* have
486489
# gotten any keyword arguments that map to the request.
487-
has_flattened_params = any([agent])
490+
flattened_params = [agent]
491+
has_flattened_params = (
492+
len([param for param in flattened_params if param is not None]) > 0
493+
)
488494
if request is not None and has_flattened_params:
489495
raise ValueError(
490496
"If the `request` argument is set, then none of "
@@ -585,7 +591,10 @@ async def sample_delete_agent():
585591
# Create or coerce a protobuf request object.
586592
# - Quick check: If we got a request object, we should *not* have
587593
# gotten any keyword arguments that map to the request.
588-
has_flattened_params = any([parent])
594+
flattened_params = [parent]
595+
has_flattened_params = (
596+
len([param for param in flattened_params if param is not None]) > 0
597+
)
589598
if request is not None and has_flattened_params:
590599
raise ValueError(
591600
"If the `request` argument is set, then none of "
@@ -700,7 +709,10 @@ async def sample_search_agents():
700709
# Create or coerce a protobuf request object.
701710
# - Quick check: If we got a request object, we should *not* have
702711
# gotten any keyword arguments that map to the request.
703-
has_flattened_params = any([parent])
712+
flattened_params = [parent]
713+
has_flattened_params = (
714+
len([param for param in flattened_params if param is not None]) > 0
715+
)
704716
if request is not None and has_flattened_params:
705717
raise ValueError(
706718
"If the `request` argument is set, then none of "
@@ -847,7 +859,10 @@ async def sample_train_agent():
847859
# Create or coerce a protobuf request object.
848860
# - Quick check: If we got a request object, we should *not* have
849861
# gotten any keyword arguments that map to the request.
850-
has_flattened_params = any([parent])
862+
flattened_params = [parent]
863+
has_flattened_params = (
864+
len([param for param in flattened_params if param is not None]) > 0
865+
)
851866
if request is not None and has_flattened_params:
852867
raise ValueError(
853868
"If the `request` argument is set, then none of "
@@ -980,7 +995,10 @@ async def sample_export_agent():
980995
# Create or coerce a protobuf request object.
981996
# - Quick check: If we got a request object, we should *not* have
982997
# gotten any keyword arguments that map to the request.
983-
has_flattened_params = any([parent])
998+
flattened_params = [parent]
999+
has_flattened_params = (
1000+
len([param for param in flattened_params if param is not None]) > 0
1001+
)
9841002
if request is not None and has_flattened_params:
9851003
raise ValueError(
9861004
"If the `request` argument is set, then none of "

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

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,10 @@ def sample_get_agent():
780780
# Create or coerce a protobuf request object.
781781
# - Quick check: If we got a request object, we should *not* have
782782
# gotten any keyword arguments that map to the request.
783-
has_flattened_params = any([parent])
783+
flattened_params = [parent]
784+
has_flattened_params = (
785+
len([param for param in flattened_params if param is not None]) > 0
786+
)
784787
if request is not None and has_flattened_params:
785788
raise ValueError(
786789
"If the `request` argument is set, then none of "
@@ -902,7 +905,10 @@ def sample_set_agent():
902905
# Create or coerce a protobuf request object.
903906
# - Quick check: If we got a request object, we should *not* have
904907
# gotten any keyword arguments that map to the request.
905-
has_flattened_params = any([agent])
908+
flattened_params = [agent]
909+
has_flattened_params = (
910+
len([param for param in flattened_params if param is not None]) > 0
911+
)
906912
if request is not None and has_flattened_params:
907913
raise ValueError(
908914
"If the `request` argument is set, then none of "
@@ -1000,7 +1006,10 @@ def sample_delete_agent():
10001006
# Create or coerce a protobuf request object.
10011007
# - Quick check: If we got a request object, we should *not* have
10021008
# gotten any keyword arguments that map to the request.
1003-
has_flattened_params = any([parent])
1009+
flattened_params = [parent]
1010+
has_flattened_params = (
1011+
len([param for param in flattened_params if param is not None]) > 0
1012+
)
10041013
if request is not None and has_flattened_params:
10051014
raise ValueError(
10061015
"If the `request` argument is set, then none of "
@@ -1112,7 +1121,10 @@ def sample_search_agents():
11121121
# Create or coerce a protobuf request object.
11131122
# - Quick check: If we got a request object, we should *not* have
11141123
# gotten any keyword arguments that map to the request.
1115-
has_flattened_params = any([parent])
1124+
flattened_params = [parent]
1125+
has_flattened_params = (
1126+
len([param for param in flattened_params if param is not None]) > 0
1127+
)
11161128
if request is not None and has_flattened_params:
11171129
raise ValueError(
11181130
"If the `request` argument is set, then none of "
@@ -1256,7 +1268,10 @@ def sample_train_agent():
12561268
# Create or coerce a protobuf request object.
12571269
# - Quick check: If we got a request object, we should *not* have
12581270
# gotten any keyword arguments that map to the request.
1259-
has_flattened_params = any([parent])
1271+
flattened_params = [parent]
1272+
has_flattened_params = (
1273+
len([param for param in flattened_params if param is not None]) > 0
1274+
)
12601275
if request is not None and has_flattened_params:
12611276
raise ValueError(
12621277
"If the `request` argument is set, then none of "
@@ -1386,7 +1401,10 @@ def sample_export_agent():
13861401
# Create or coerce a protobuf request object.
13871402
# - Quick check: If we got a request object, we should *not* have
13881403
# gotten any keyword arguments that map to the request.
1389-
has_flattened_params = any([parent])
1404+
flattened_params = [parent]
1405+
has_flattened_params = (
1406+
len([param for param in flattened_params if param is not None]) > 0
1407+
)
13901408
if request is not None and has_flattened_params:
13911409
raise ValueError(
13921410
"If the `request` argument is set, then none of "

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,10 @@ async def sample_list_answer_records():
370370
# Create or coerce a protobuf request object.
371371
# - Quick check: If we got a request object, we should *not* have
372372
# gotten any keyword arguments that map to the request.
373-
has_flattened_params = any([parent])
373+
flattened_params = [parent]
374+
has_flattened_params = (
375+
len([param for param in flattened_params if param is not None]) > 0
376+
)
374377
if request is not None and has_flattened_params:
375378
raise ValueError(
376379
"If the `request` argument is set, then none of "
@@ -529,7 +532,10 @@ async def sample_update_answer_record():
529532
# Create or coerce a protobuf request object.
530533
# - Quick check: If we got a request object, we should *not* have
531534
# gotten any keyword arguments that map to the request.
532-
has_flattened_params = any([answer_record, update_mask])
535+
flattened_params = [answer_record, update_mask]
536+
has_flattened_params = (
537+
len([param for param in flattened_params if param is not None]) > 0
538+
)
533539
if request is not None and has_flattened_params:
534540
raise ValueError(
535541
"If the `request` argument is set, then none of "

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,10 @@ def sample_list_answer_records():
821821
# Create or coerce a protobuf request object.
822822
# - Quick check: If we got a request object, we should *not* have
823823
# gotten any keyword arguments that map to the request.
824-
has_flattened_params = any([parent])
824+
flattened_params = [parent]
825+
has_flattened_params = (
826+
len([param for param in flattened_params if param is not None]) > 0
827+
)
825828
if request is not None and has_flattened_params:
826829
raise ValueError(
827830
"If the `request` argument is set, then none of "
@@ -977,7 +980,10 @@ def sample_update_answer_record():
977980
# Create or coerce a protobuf request object.
978981
# - Quick check: If we got a request object, we should *not* have
979982
# gotten any keyword arguments that map to the request.
980-
has_flattened_params = any([answer_record, update_mask])
983+
flattened_params = [answer_record, update_mask]
984+
has_flattened_params = (
985+
len([param for param in flattened_params if param is not None]) > 0
986+
)
981987
if request is not None and has_flattened_params:
982988
raise ValueError(
983989
"If the `request` argument is set, then none of "

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

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,10 @@ async def sample_list_contexts():
358358
# Create or coerce a protobuf request object.
359359
# - Quick check: If we got a request object, we should *not* have
360360
# gotten any keyword arguments that map to the request.
361-
has_flattened_params = any([parent])
361+
flattened_params = [parent]
362+
has_flattened_params = (
363+
len([param for param in flattened_params if param is not None]) > 0
364+
)
362365
if request is not None and has_flattened_params:
363366
raise ValueError(
364367
"If the `request` argument is set, then none of "
@@ -499,7 +502,10 @@ async def sample_get_context():
499502
# Create or coerce a protobuf request object.
500503
# - Quick check: If we got a request object, we should *not* have
501504
# gotten any keyword arguments that map to the request.
502-
has_flattened_params = any([name])
505+
flattened_params = [name]
506+
has_flattened_params = (
507+
len([param for param in flattened_params if param is not None]) > 0
508+
)
503509
if request is not None and has_flattened_params:
504510
raise ValueError(
505511
"If the `request` argument is set, then none of "
@@ -641,7 +647,10 @@ async def sample_create_context():
641647
# Create or coerce a protobuf request object.
642648
# - Quick check: If we got a request object, we should *not* have
643649
# gotten any keyword arguments that map to the request.
644-
has_flattened_params = any([parent, context])
650+
flattened_params = [parent, context]
651+
has_flattened_params = (
652+
len([param for param in flattened_params if param is not None]) > 0
653+
)
645654
if request is not None and has_flattened_params:
646655
raise ValueError(
647656
"If the `request` argument is set, then none of "
@@ -777,7 +786,10 @@ async def sample_update_context():
777786
# Create or coerce a protobuf request object.
778787
# - Quick check: If we got a request object, we should *not* have
779788
# gotten any keyword arguments that map to the request.
780-
has_flattened_params = any([context, update_mask])
789+
flattened_params = [context, update_mask]
790+
has_flattened_params = (
791+
len([param for param in flattened_params if param is not None]) > 0
792+
)
781793
if request is not None and has_flattened_params:
782794
raise ValueError(
783795
"If the `request` argument is set, then none of "
@@ -885,7 +897,10 @@ async def sample_delete_context():
885897
# Create or coerce a protobuf request object.
886898
# - Quick check: If we got a request object, we should *not* have
887899
# gotten any keyword arguments that map to the request.
888-
has_flattened_params = any([name])
900+
flattened_params = [name]
901+
has_flattened_params = (
902+
len([param for param in flattened_params if param is not None]) > 0
903+
)
889904
if request is not None and has_flattened_params:
890905
raise ValueError(
891906
"If the `request` argument is set, then none of "
@@ -986,7 +1001,10 @@ async def sample_delete_all_contexts():
9861001
# Create or coerce a protobuf request object.
9871002
# - Quick check: If we got a request object, we should *not* have
9881003
# gotten any keyword arguments that map to the request.
989-
has_flattened_params = any([parent])
1004+
flattened_params = [parent]
1005+
has_flattened_params = (
1006+
len([param for param in flattened_params if param is not None]) > 0
1007+
)
9901008
if request is not None and has_flattened_params:
9911009
raise ValueError(
9921010
"If the `request` argument is set, then none of "

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

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,10 @@ def sample_list_contexts():
784784
# Create or coerce a protobuf request object.
785785
# - Quick check: If we got a request object, we should *not* have
786786
# gotten any keyword arguments that map to the request.
787-
has_flattened_params = any([parent])
787+
flattened_params = [parent]
788+
has_flattened_params = (
789+
len([param for param in flattened_params if param is not None]) > 0
790+
)
788791
if request is not None and has_flattened_params:
789792
raise ValueError(
790793
"If the `request` argument is set, then none of "
@@ -922,7 +925,10 @@ def sample_get_context():
922925
# Create or coerce a protobuf request object.
923926
# - Quick check: If we got a request object, we should *not* have
924927
# gotten any keyword arguments that map to the request.
925-
has_flattened_params = any([name])
928+
flattened_params = [name]
929+
has_flattened_params = (
930+
len([param for param in flattened_params if param is not None]) > 0
931+
)
926932
if request is not None and has_flattened_params:
927933
raise ValueError(
928934
"If the `request` argument is set, then none of "
@@ -1061,7 +1067,10 @@ def sample_create_context():
10611067
# Create or coerce a protobuf request object.
10621068
# - Quick check: If we got a request object, we should *not* have
10631069
# gotten any keyword arguments that map to the request.
1064-
has_flattened_params = any([parent, context])
1070+
flattened_params = [parent, context]
1071+
has_flattened_params = (
1072+
len([param for param in flattened_params if param is not None]) > 0
1073+
)
10651074
if request is not None and has_flattened_params:
10661075
raise ValueError(
10671076
"If the `request` argument is set, then none of "
@@ -1194,7 +1203,10 @@ def sample_update_context():
11941203
# Create or coerce a protobuf request object.
11951204
# - Quick check: If we got a request object, we should *not* have
11961205
# gotten any keyword arguments that map to the request.
1197-
has_flattened_params = any([context, update_mask])
1206+
flattened_params = [context, update_mask]
1207+
has_flattened_params = (
1208+
len([param for param in flattened_params if param is not None]) > 0
1209+
)
11981210
if request is not None and has_flattened_params:
11991211
raise ValueError(
12001212
"If the `request` argument is set, then none of "
@@ -1299,7 +1311,10 @@ def sample_delete_context():
12991311
# Create or coerce a protobuf request object.
13001312
# - Quick check: If we got a request object, we should *not* have
13011313
# gotten any keyword arguments that map to the request.
1302-
has_flattened_params = any([name])
1314+
flattened_params = [name]
1315+
has_flattened_params = (
1316+
len([param for param in flattened_params if param is not None]) > 0
1317+
)
13031318
if request is not None and has_flattened_params:
13041319
raise ValueError(
13051320
"If the `request` argument is set, then none of "
@@ -1397,7 +1412,10 @@ def sample_delete_all_contexts():
13971412
# Create or coerce a protobuf request object.
13981413
# - Quick check: If we got a request object, we should *not* have
13991414
# gotten any keyword arguments that map to the request.
1400-
has_flattened_params = any([parent])
1415+
flattened_params = [parent]
1416+
has_flattened_params = (
1417+
len([param for param in flattened_params if param is not None]) > 0
1418+
)
14011419
if request is not None and has_flattened_params:
14021420
raise ValueError(
14031421
"If the `request` argument is set, then none of "

0 commit comments

Comments
 (0)