google-cloud-dialogflow-v2 0.11.0 → 0.11.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/dialogflow/v2/agent_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +39 -5
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +94 -49
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +30 -21
- data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +35 -38
- data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +3 -2
- data/lib/google/cloud/dialogflow/v2/context_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/context_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +47 -42
- data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +44 -41
- data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +44 -41
- data/lib/google/cloud/dialogflow/v2/document_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +27 -10
- data/lib/google/cloud/dialogflow/v2/documents/client.rb +73 -51
- data/lib/google/cloud/dialogflow/v2/documents/operations.rb +30 -21
- data/lib/google/cloud/dialogflow/v2/entity_type_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +45 -1
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +102 -46
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +30 -21
- data/lib/google/cloud/dialogflow/v2/environment_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/environment_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/environments/client.rb +47 -42
- data/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/fulfillment_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +35 -38
- data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/intent_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +16 -1
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +65 -43
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +30 -21
- data/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/knowledge_base_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +44 -41
- data/lib/google/cloud/dialogflow/v2/participant_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +50 -43
- data/lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +44 -41
- data/lib/google/cloud/dialogflow/v2/session_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/session_services_pb.rb +15 -1
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +49 -38
- data/lib/google/cloud/dialogflow/v2/validation_result_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/version_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/version_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/versions/client.rb +44 -41
- data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +2 -2
- data/proto_docs/google/cloud/dialogflow/v2/agent.rb +4 -3
- data/proto_docs/google/cloud/dialogflow/v2/intent.rb +4 -3
- data/proto_docs/google/cloud/dialogflow/v2/session.rb +38 -33
- metadata +8 -7
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::Dialogflow::V2::EntityTypes::Client::Configuration}
|
42
42
|
# for a description of the configuration fields.
|
43
43
|
#
|
44
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
# end
|
46
|
+
# # Modify the configuration for all EntityTypes clients
|
47
|
+
# ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
|
+
# end
|
51
50
|
#
|
52
51
|
# @yield [config] Configure the Client client.
|
53
52
|
# @yieldparam config [Client::Configuration]
|
@@ -99,19 +98,15 @@ module Google
|
|
99
98
|
##
|
100
99
|
# Create a new EntityTypes client object.
|
101
100
|
#
|
102
|
-
#
|
103
|
-
#
|
104
|
-
# To create a new EntityTypes client with the default
|
105
|
-
# configuration:
|
101
|
+
# @example
|
106
102
|
#
|
107
|
-
#
|
103
|
+
# # Create a client using the default configuration
|
104
|
+
# client = ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.new
|
108
105
|
#
|
109
|
-
#
|
110
|
-
#
|
111
|
-
#
|
112
|
-
#
|
113
|
-
# config.timeout = 10.0
|
114
|
-
# end
|
106
|
+
# # Create a client using a custom configuration
|
107
|
+
# client = ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.new do |config|
|
108
|
+
# config.timeout = 10.0
|
109
|
+
# end
|
115
110
|
#
|
116
111
|
# @yield [config] Configure the EntityTypes client.
|
117
112
|
# @yieldparam config [Client::Configuration]
|
@@ -131,10 +126,9 @@ module Google
|
|
131
126
|
|
132
127
|
# Create credentials
|
133
128
|
credentials = @config.credentials
|
134
|
-
# Use self-signed JWT if the
|
129
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
135
130
|
# but only if the default endpoint does not have a region prefix.
|
136
|
-
enable_self_signed_jwt = @config.
|
137
|
-
@config.endpoint == Client.configure.endpoint &&
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
138
132
|
!@config.endpoint.split(".").first.include?("-")
|
139
133
|
credentials ||= Credentials.default scope: @config.scope,
|
140
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -234,7 +228,9 @@ module Google
|
|
234
228
|
options.apply_defaults timeout: @config.rpcs.list_entity_types.timeout,
|
235
229
|
metadata: metadata,
|
236
230
|
retry_policy: @config.rpcs.list_entity_types.retry_policy
|
237
|
-
|
231
|
+
|
232
|
+
options.apply_defaults timeout: @config.timeout,
|
233
|
+
metadata: @config.metadata,
|
238
234
|
retry_policy: @config.retry_policy
|
239
235
|
|
240
236
|
@entity_types_stub.call_rpc :list_entity_types, request, options: options do |response, operation|
|
@@ -308,7 +304,9 @@ module Google
|
|
308
304
|
options.apply_defaults timeout: @config.rpcs.get_entity_type.timeout,
|
309
305
|
metadata: metadata,
|
310
306
|
retry_policy: @config.rpcs.get_entity_type.retry_policy
|
311
|
-
|
307
|
+
|
308
|
+
options.apply_defaults timeout: @config.timeout,
|
309
|
+
metadata: @config.metadata,
|
312
310
|
retry_policy: @config.retry_policy
|
313
311
|
|
314
312
|
@entity_types_stub.call_rpc :get_entity_type, request, options: options do |response, operation|
|
@@ -387,7 +385,9 @@ module Google
|
|
387
385
|
options.apply_defaults timeout: @config.rpcs.create_entity_type.timeout,
|
388
386
|
metadata: metadata,
|
389
387
|
retry_policy: @config.rpcs.create_entity_type.retry_policy
|
390
|
-
|
388
|
+
|
389
|
+
options.apply_defaults timeout: @config.timeout,
|
390
|
+
metadata: @config.metadata,
|
391
391
|
retry_policy: @config.retry_policy
|
392
392
|
|
393
393
|
@entity_types_stub.call_rpc :create_entity_type, request, options: options do |response, operation|
|
@@ -465,7 +465,9 @@ module Google
|
|
465
465
|
options.apply_defaults timeout: @config.rpcs.update_entity_type.timeout,
|
466
466
|
metadata: metadata,
|
467
467
|
retry_policy: @config.rpcs.update_entity_type.retry_policy
|
468
|
-
|
468
|
+
|
469
|
+
options.apply_defaults timeout: @config.timeout,
|
470
|
+
metadata: @config.metadata,
|
469
471
|
retry_policy: @config.retry_policy
|
470
472
|
|
471
473
|
@entity_types_stub.call_rpc :update_entity_type, request, options: options do |response, operation|
|
@@ -536,7 +538,9 @@ module Google
|
|
536
538
|
options.apply_defaults timeout: @config.rpcs.delete_entity_type.timeout,
|
537
539
|
metadata: metadata,
|
538
540
|
retry_policy: @config.rpcs.delete_entity_type.retry_policy
|
539
|
-
|
541
|
+
|
542
|
+
options.apply_defaults timeout: @config.timeout,
|
543
|
+
metadata: @config.metadata,
|
540
544
|
retry_policy: @config.retry_policy
|
541
545
|
|
542
546
|
@entity_types_stub.call_rpc :delete_entity_type, request, options: options do |response, operation|
|
@@ -550,6 +554,13 @@ module Google
|
|
550
554
|
##
|
551
555
|
# Updates/Creates multiple entity types in the specified agent.
|
552
556
|
#
|
557
|
+
# This method is a [long-running
|
558
|
+
# operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
|
559
|
+
# The returned `Operation` type has the following method-specific fields:
|
560
|
+
#
|
561
|
+
# - `metadata`: An empty [Struct
|
562
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
|
563
|
+
# - `response`: {::Google::Cloud::Dialogflow::V2::BatchUpdateEntityTypesResponse BatchUpdateEntityTypesResponse}
|
553
564
|
#
|
554
565
|
# Note: You should always train an agent prior to sending it queries. See the
|
555
566
|
# [training
|
@@ -623,7 +634,9 @@ module Google
|
|
623
634
|
options.apply_defaults timeout: @config.rpcs.batch_update_entity_types.timeout,
|
624
635
|
metadata: metadata,
|
625
636
|
retry_policy: @config.rpcs.batch_update_entity_types.retry_policy
|
626
|
-
|
637
|
+
|
638
|
+
options.apply_defaults timeout: @config.timeout,
|
639
|
+
metadata: @config.metadata,
|
627
640
|
retry_policy: @config.retry_policy
|
628
641
|
|
629
642
|
@entity_types_stub.call_rpc :batch_update_entity_types, request, options: options do |response, operation|
|
@@ -638,6 +651,15 @@ module Google
|
|
638
651
|
##
|
639
652
|
# Deletes entity types in the specified agent.
|
640
653
|
#
|
654
|
+
# This method is a [long-running
|
655
|
+
# operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
|
656
|
+
# The returned `Operation` type has the following method-specific fields:
|
657
|
+
#
|
658
|
+
# - `metadata`: An empty [Struct
|
659
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
|
660
|
+
# - `response`: An [Empty
|
661
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
|
662
|
+
#
|
641
663
|
# Note: You should always train an agent prior to sending it queries. See the
|
642
664
|
# [training
|
643
665
|
# documentation](https://cloud.google.com/dialogflow/es/docs/training).
|
@@ -698,7 +720,9 @@ module Google
|
|
698
720
|
options.apply_defaults timeout: @config.rpcs.batch_delete_entity_types.timeout,
|
699
721
|
metadata: metadata,
|
700
722
|
retry_policy: @config.rpcs.batch_delete_entity_types.retry_policy
|
701
|
-
|
723
|
+
|
724
|
+
options.apply_defaults timeout: @config.timeout,
|
725
|
+
metadata: @config.metadata,
|
702
726
|
retry_policy: @config.retry_policy
|
703
727
|
|
704
728
|
@entity_types_stub.call_rpc :batch_delete_entity_types, request, options: options do |response, operation|
|
@@ -713,6 +737,15 @@ module Google
|
|
713
737
|
##
|
714
738
|
# Creates multiple new entities in the specified entity type.
|
715
739
|
#
|
740
|
+
# This method is a [long-running
|
741
|
+
# operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
|
742
|
+
# The returned `Operation` type has the following method-specific fields:
|
743
|
+
#
|
744
|
+
# - `metadata`: An empty [Struct
|
745
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
|
746
|
+
# - `response`: An [Empty
|
747
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
|
748
|
+
#
|
716
749
|
# Note: You should always train an agent prior to sending it queries. See the
|
717
750
|
# [training
|
718
751
|
# documentation](https://cloud.google.com/dialogflow/es/docs/training).
|
@@ -778,7 +811,9 @@ module Google
|
|
778
811
|
options.apply_defaults timeout: @config.rpcs.batch_create_entities.timeout,
|
779
812
|
metadata: metadata,
|
780
813
|
retry_policy: @config.rpcs.batch_create_entities.retry_policy
|
781
|
-
|
814
|
+
|
815
|
+
options.apply_defaults timeout: @config.timeout,
|
816
|
+
metadata: @config.metadata,
|
782
817
|
retry_policy: @config.retry_policy
|
783
818
|
|
784
819
|
@entity_types_stub.call_rpc :batch_create_entities, request, options: options do |response, operation|
|
@@ -795,6 +830,15 @@ module Google
|
|
795
830
|
# method does not affect entities in the entity type that aren't explicitly
|
796
831
|
# specified in the request.
|
797
832
|
#
|
833
|
+
# This method is a [long-running
|
834
|
+
# operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
|
835
|
+
# The returned `Operation` type has the following method-specific fields:
|
836
|
+
#
|
837
|
+
# - `metadata`: An empty [Struct
|
838
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
|
839
|
+
# - `response`: An [Empty
|
840
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
|
841
|
+
#
|
798
842
|
# Note: You should always train an agent prior to sending it queries. See the
|
799
843
|
# [training
|
800
844
|
# documentation](https://cloud.google.com/dialogflow/es/docs/training).
|
@@ -862,7 +906,9 @@ module Google
|
|
862
906
|
options.apply_defaults timeout: @config.rpcs.batch_update_entities.timeout,
|
863
907
|
metadata: metadata,
|
864
908
|
retry_policy: @config.rpcs.batch_update_entities.retry_policy
|
865
|
-
|
909
|
+
|
910
|
+
options.apply_defaults timeout: @config.timeout,
|
911
|
+
metadata: @config.metadata,
|
866
912
|
retry_policy: @config.retry_policy
|
867
913
|
|
868
914
|
@entity_types_stub.call_rpc :batch_update_entities, request, options: options do |response, operation|
|
@@ -877,6 +923,15 @@ module Google
|
|
877
923
|
##
|
878
924
|
# Deletes entities in the specified entity type.
|
879
925
|
#
|
926
|
+
# This method is a [long-running
|
927
|
+
# operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
|
928
|
+
# The returned `Operation` type has the following method-specific fields:
|
929
|
+
#
|
930
|
+
# - `metadata`: An empty [Struct
|
931
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
|
932
|
+
# - `response`: An [Empty
|
933
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
|
934
|
+
#
|
880
935
|
# Note: You should always train an agent prior to sending it queries. See the
|
881
936
|
# [training
|
882
937
|
# documentation](https://cloud.google.com/dialogflow/es/docs/training).
|
@@ -944,7 +999,9 @@ module Google
|
|
944
999
|
options.apply_defaults timeout: @config.rpcs.batch_delete_entities.timeout,
|
945
1000
|
metadata: metadata,
|
946
1001
|
retry_policy: @config.rpcs.batch_delete_entities.retry_policy
|
947
|
-
|
1002
|
+
|
1003
|
+
options.apply_defaults timeout: @config.timeout,
|
1004
|
+
metadata: @config.metadata,
|
948
1005
|
retry_policy: @config.retry_policy
|
949
1006
|
|
950
1007
|
@entity_types_stub.call_rpc :batch_delete_entities, request, options: options do |response, operation|
|
@@ -969,22 +1026,21 @@ module Google
|
|
969
1026
|
# Configuration can be applied globally to all clients, or to a single client
|
970
1027
|
# on construction.
|
971
1028
|
#
|
972
|
-
#
|
973
|
-
#
|
974
|
-
#
|
975
|
-
# to 20 seconds,
|
976
|
-
#
|
977
|
-
#
|
978
|
-
#
|
979
|
-
#
|
980
|
-
#
|
981
|
-
#
|
982
|
-
#
|
983
|
-
#
|
984
|
-
#
|
985
|
-
#
|
986
|
-
#
|
987
|
-
# end
|
1029
|
+
# @example
|
1030
|
+
#
|
1031
|
+
# # Modify the global config, setting the timeout for
|
1032
|
+
# # list_entity_types to 20 seconds,
|
1033
|
+
# # and all remaining timeouts to 10 seconds.
|
1034
|
+
# ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.configure do |config|
|
1035
|
+
# config.timeout = 10.0
|
1036
|
+
# config.rpcs.list_entity_types.timeout = 20.0
|
1037
|
+
# end
|
1038
|
+
#
|
1039
|
+
# # Apply the above configuration only to a new client.
|
1040
|
+
# client = ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.new do |config|
|
1041
|
+
# config.timeout = 10.0
|
1042
|
+
# config.rpcs.list_entity_types.timeout = 20.0
|
1043
|
+
# end
|
988
1044
|
#
|
989
1045
|
# @!attribute [rw] endpoint
|
990
1046
|
# The hostname or hostname:port of the service endpoint.
|
@@ -169,7 +169,9 @@ module Google
|
|
169
169
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
170
170
|
metadata: metadata,
|
171
171
|
retry_policy: @config.rpcs.list_operations.retry_policy
|
172
|
-
|
172
|
+
|
173
|
+
options.apply_defaults timeout: @config.timeout,
|
174
|
+
metadata: @config.metadata,
|
173
175
|
retry_policy: @config.retry_policy
|
174
176
|
|
175
177
|
@operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
|
@@ -239,7 +241,9 @@ module Google
|
|
239
241
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
240
242
|
metadata: metadata,
|
241
243
|
retry_policy: @config.rpcs.get_operation.retry_policy
|
242
|
-
|
244
|
+
|
245
|
+
options.apply_defaults timeout: @config.timeout,
|
246
|
+
metadata: @config.metadata,
|
243
247
|
retry_policy: @config.retry_policy
|
244
248
|
|
245
249
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
@@ -309,7 +313,9 @@ module Google
|
|
309
313
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
310
314
|
metadata: metadata,
|
311
315
|
retry_policy: @config.rpcs.delete_operation.retry_policy
|
312
|
-
|
316
|
+
|
317
|
+
options.apply_defaults timeout: @config.timeout,
|
318
|
+
metadata: @config.metadata,
|
313
319
|
retry_policy: @config.retry_policy
|
314
320
|
|
315
321
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
@@ -384,7 +390,9 @@ module Google
|
|
384
390
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
385
391
|
metadata: metadata,
|
386
392
|
retry_policy: @config.rpcs.cancel_operation.retry_policy
|
387
|
-
|
393
|
+
|
394
|
+
options.apply_defaults timeout: @config.timeout,
|
395
|
+
metadata: @config.metadata,
|
388
396
|
retry_policy: @config.retry_policy
|
389
397
|
|
390
398
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
@@ -456,7 +464,9 @@ module Google
|
|
456
464
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
457
465
|
metadata: metadata,
|
458
466
|
retry_policy: @config.rpcs.wait_operation.retry_policy
|
459
|
-
|
467
|
+
|
468
|
+
options.apply_defaults timeout: @config.timeout,
|
469
|
+
metadata: @config.metadata,
|
460
470
|
retry_policy: @config.retry_policy
|
461
471
|
|
462
472
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
@@ -481,22 +491,21 @@ module Google
|
|
481
491
|
# Configuration can be applied globally to all clients, or to a single client
|
482
492
|
# on construction.
|
483
493
|
#
|
484
|
-
#
|
485
|
-
#
|
486
|
-
#
|
487
|
-
# to 20 seconds,
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
499
|
-
# end
|
494
|
+
# @example
|
495
|
+
#
|
496
|
+
# # Modify the global config, setting the timeout for
|
497
|
+
# # list_operations to 20 seconds,
|
498
|
+
# # and all remaining timeouts to 10 seconds.
|
499
|
+
# ::Google::Longrunning::Operations::Client.configure do |config|
|
500
|
+
# config.timeout = 10.0
|
501
|
+
# config.rpcs.list_operations.timeout = 20.0
|
502
|
+
# end
|
503
|
+
#
|
504
|
+
# # Apply the above configuration only to a new client.
|
505
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
506
|
+
# config.timeout = 10.0
|
507
|
+
# config.rpcs.list_operations.timeout = 20.0
|
508
|
+
# end
|
500
509
|
#
|
501
510
|
# @!attribute [rw] endpoint
|
502
511
|
# The hostname or hostname:port of the service endpoint.
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/v2/environment.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -12,6 +10,8 @@ require 'google/cloud/dialogflow/v2/fulfillment_pb'
|
|
12
10
|
require 'google/protobuf/empty_pb'
|
13
11
|
require 'google/protobuf/field_mask_pb'
|
14
12
|
require 'google/protobuf/timestamp_pb'
|
13
|
+
require 'google/protobuf'
|
14
|
+
|
15
15
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
16
|
add_file("google/cloud/dialogflow/v2/environment.proto", :syntax => :proto3) do
|
17
17
|
add_message "google.cloud.dialogflow.v2.Environment" do
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# Service for managing [Environments][google.cloud.dialogflow.v2.Environment].
|
28
28
|
class Service
|
29
29
|
|
30
|
-
include GRPC::GenericService
|
30
|
+
include ::GRPC::GenericService
|
31
31
|
|
32
32
|
self.marshal_class_method = :encode
|
33
33
|
self.unmarshal_class_method = :decode
|
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::Dialogflow::V2::Environments::Client::Configuration}
|
42
42
|
# for a description of the configuration fields.
|
43
43
|
#
|
44
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
# end
|
46
|
+
# # Modify the configuration for all Environments clients
|
47
|
+
# ::Google::Cloud::Dialogflow::V2::Environments::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
|
+
# end
|
51
50
|
#
|
52
51
|
# @yield [config] Configure the Client client.
|
53
52
|
# @yieldparam config [Client::Configuration]
|
@@ -99,19 +98,15 @@ module Google
|
|
99
98
|
##
|
100
99
|
# Create a new Environments client object.
|
101
100
|
#
|
102
|
-
#
|
103
|
-
#
|
104
|
-
# To create a new Environments client with the default
|
105
|
-
# configuration:
|
101
|
+
# @example
|
106
102
|
#
|
107
|
-
#
|
103
|
+
# # Create a client using the default configuration
|
104
|
+
# client = ::Google::Cloud::Dialogflow::V2::Environments::Client.new
|
108
105
|
#
|
109
|
-
#
|
110
|
-
#
|
111
|
-
#
|
112
|
-
#
|
113
|
-
# config.timeout = 10.0
|
114
|
-
# end
|
106
|
+
# # Create a client using a custom configuration
|
107
|
+
# client = ::Google::Cloud::Dialogflow::V2::Environments::Client.new do |config|
|
108
|
+
# config.timeout = 10.0
|
109
|
+
# end
|
115
110
|
#
|
116
111
|
# @yield [config] Configure the Environments client.
|
117
112
|
# @yieldparam config [Client::Configuration]
|
@@ -131,10 +126,9 @@ module Google
|
|
131
126
|
|
132
127
|
# Create credentials
|
133
128
|
credentials = @config.credentials
|
134
|
-
# Use self-signed JWT if the
|
129
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
135
130
|
# but only if the default endpoint does not have a region prefix.
|
136
|
-
enable_self_signed_jwt = @config.
|
137
|
-
@config.endpoint == Client.configure.endpoint &&
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
138
132
|
!@config.endpoint.split(".").first.include?("-")
|
139
133
|
credentials ||= Credentials.default scope: @config.scope,
|
140
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -219,7 +213,9 @@ module Google
|
|
219
213
|
options.apply_defaults timeout: @config.rpcs.list_environments.timeout,
|
220
214
|
metadata: metadata,
|
221
215
|
retry_policy: @config.rpcs.list_environments.retry_policy
|
222
|
-
|
216
|
+
|
217
|
+
options.apply_defaults timeout: @config.timeout,
|
218
|
+
metadata: @config.metadata,
|
223
219
|
retry_policy: @config.retry_policy
|
224
220
|
|
225
221
|
@environments_stub.call_rpc :list_environments, request, options: options do |response, operation|
|
@@ -293,7 +289,9 @@ module Google
|
|
293
289
|
options.apply_defaults timeout: @config.rpcs.get_environment.timeout,
|
294
290
|
metadata: metadata,
|
295
291
|
retry_policy: @config.rpcs.get_environment.retry_policy
|
296
|
-
|
292
|
+
|
293
|
+
options.apply_defaults timeout: @config.timeout,
|
294
|
+
metadata: @config.metadata,
|
297
295
|
retry_policy: @config.retry_policy
|
298
296
|
|
299
297
|
@environments_stub.call_rpc :get_environment, request, options: options do |response, operation|
|
@@ -367,7 +365,9 @@ module Google
|
|
367
365
|
options.apply_defaults timeout: @config.rpcs.create_environment.timeout,
|
368
366
|
metadata: metadata,
|
369
367
|
retry_policy: @config.rpcs.create_environment.retry_policy
|
370
|
-
|
368
|
+
|
369
|
+
options.apply_defaults timeout: @config.timeout,
|
370
|
+
metadata: @config.metadata,
|
371
371
|
retry_policy: @config.retry_policy
|
372
372
|
|
373
373
|
@environments_stub.call_rpc :create_environment, request, options: options do |response, operation|
|
@@ -451,7 +451,9 @@ module Google
|
|
451
451
|
options.apply_defaults timeout: @config.rpcs.update_environment.timeout,
|
452
452
|
metadata: metadata,
|
453
453
|
retry_policy: @config.rpcs.update_environment.retry_policy
|
454
|
-
|
454
|
+
|
455
|
+
options.apply_defaults timeout: @config.timeout,
|
456
|
+
metadata: @config.metadata,
|
455
457
|
retry_policy: @config.retry_policy
|
456
458
|
|
457
459
|
@environments_stub.call_rpc :update_environment, request, options: options do |response, operation|
|
@@ -524,7 +526,9 @@ module Google
|
|
524
526
|
options.apply_defaults timeout: @config.rpcs.delete_environment.timeout,
|
525
527
|
metadata: metadata,
|
526
528
|
retry_policy: @config.rpcs.delete_environment.retry_policy
|
527
|
-
|
529
|
+
|
530
|
+
options.apply_defaults timeout: @config.timeout,
|
531
|
+
metadata: @config.metadata,
|
528
532
|
retry_policy: @config.retry_policy
|
529
533
|
|
530
534
|
@environments_stub.call_rpc :delete_environment, request, options: options do |response, operation|
|
@@ -602,7 +606,9 @@ module Google
|
|
602
606
|
options.apply_defaults timeout: @config.rpcs.get_environment_history.timeout,
|
603
607
|
metadata: metadata,
|
604
608
|
retry_policy: @config.rpcs.get_environment_history.retry_policy
|
605
|
-
|
609
|
+
|
610
|
+
options.apply_defaults timeout: @config.timeout,
|
611
|
+
metadata: @config.metadata,
|
606
612
|
retry_policy: @config.retry_policy
|
607
613
|
|
608
614
|
@environments_stub.call_rpc :get_environment_history, request, options: options do |response, operation|
|
@@ -627,22 +633,21 @@ module Google
|
|
627
633
|
# Configuration can be applied globally to all clients, or to a single client
|
628
634
|
# on construction.
|
629
635
|
#
|
630
|
-
#
|
631
|
-
#
|
632
|
-
#
|
633
|
-
# to 20 seconds,
|
634
|
-
#
|
635
|
-
#
|
636
|
-
#
|
637
|
-
#
|
638
|
-
#
|
639
|
-
#
|
640
|
-
#
|
641
|
-
#
|
642
|
-
#
|
643
|
-
#
|
644
|
-
#
|
645
|
-
# end
|
636
|
+
# @example
|
637
|
+
#
|
638
|
+
# # Modify the global config, setting the timeout for
|
639
|
+
# # list_environments to 20 seconds,
|
640
|
+
# # and all remaining timeouts to 10 seconds.
|
641
|
+
# ::Google::Cloud::Dialogflow::V2::Environments::Client.configure do |config|
|
642
|
+
# config.timeout = 10.0
|
643
|
+
# config.rpcs.list_environments.timeout = 20.0
|
644
|
+
# end
|
645
|
+
#
|
646
|
+
# # Apply the above configuration only to a new client.
|
647
|
+
# client = ::Google::Cloud::Dialogflow::V2::Environments::Client.new do |config|
|
648
|
+
# config.timeout = 10.0
|
649
|
+
# config.rpcs.list_environments.timeout = 20.0
|
650
|
+
# end
|
646
651
|
#
|
647
652
|
# @!attribute [rw] endpoint
|
648
653
|
# The hostname or hostname:port of the service endpoint.
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/v2/fulfillment.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
9
7
|
require 'google/api/resource_pb'
|
10
8
|
require 'google/protobuf/field_mask_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/cloud/dialogflow/v2/fulfillment.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.cloud.dialogflow.v2.Fulfillment" do
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# Service for managing [Fulfillments][google.cloud.dialogflow.v2.Fulfillment].
|
28
28
|
class Service
|
29
29
|
|
30
|
-
include GRPC::GenericService
|
30
|
+
include ::GRPC::GenericService
|
31
31
|
|
32
32
|
self.marshal_class_method = :encode
|
33
33
|
self.unmarshal_class_method = :decode
|