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::Fulfillments::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 Fulfillments clients
|
47
|
+
# ::Google::Cloud::Dialogflow::V2::Fulfillments::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 Fulfillments client object.
|
101
100
|
#
|
102
|
-
#
|
103
|
-
#
|
104
|
-
# To create a new Fulfillments client with the default
|
105
|
-
# configuration:
|
106
|
-
#
|
107
|
-
# client = ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.new
|
101
|
+
# @example
|
108
102
|
#
|
109
|
-
#
|
110
|
-
#
|
103
|
+
# # Create a client using the default configuration
|
104
|
+
# client = ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.new
|
111
105
|
#
|
112
|
-
#
|
113
|
-
#
|
114
|
-
#
|
106
|
+
# # Create a client using a custom configuration
|
107
|
+
# client = ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.new do |config|
|
108
|
+
# config.timeout = 10.0
|
109
|
+
# end
|
115
110
|
#
|
116
111
|
# @yield [config] Configure the Fulfillments 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
|
@@ -211,7 +205,9 @@ module Google
|
|
211
205
|
options.apply_defaults timeout: @config.rpcs.get_fulfillment.timeout,
|
212
206
|
metadata: metadata,
|
213
207
|
retry_policy: @config.rpcs.get_fulfillment.retry_policy
|
214
|
-
|
208
|
+
|
209
|
+
options.apply_defaults timeout: @config.timeout,
|
210
|
+
metadata: @config.metadata,
|
215
211
|
retry_policy: @config.retry_policy
|
216
212
|
|
217
213
|
@fulfillments_stub.call_rpc :get_fulfillment, request, options: options do |response, operation|
|
@@ -280,7 +276,9 @@ module Google
|
|
280
276
|
options.apply_defaults timeout: @config.rpcs.update_fulfillment.timeout,
|
281
277
|
metadata: metadata,
|
282
278
|
retry_policy: @config.rpcs.update_fulfillment.retry_policy
|
283
|
-
|
279
|
+
|
280
|
+
options.apply_defaults timeout: @config.timeout,
|
281
|
+
metadata: @config.metadata,
|
284
282
|
retry_policy: @config.retry_policy
|
285
283
|
|
286
284
|
@fulfillments_stub.call_rpc :update_fulfillment, request, options: options do |response, operation|
|
@@ -304,22 +302,21 @@ module Google
|
|
304
302
|
# Configuration can be applied globally to all clients, or to a single client
|
305
303
|
# on construction.
|
306
304
|
#
|
307
|
-
#
|
308
|
-
#
|
309
|
-
#
|
310
|
-
# to 20 seconds,
|
311
|
-
#
|
312
|
-
#
|
313
|
-
#
|
314
|
-
#
|
315
|
-
#
|
316
|
-
#
|
317
|
-
#
|
318
|
-
#
|
319
|
-
#
|
320
|
-
#
|
321
|
-
#
|
322
|
-
# end
|
305
|
+
# @example
|
306
|
+
#
|
307
|
+
# # Modify the global config, setting the timeout for
|
308
|
+
# # get_fulfillment to 20 seconds,
|
309
|
+
# # and all remaining timeouts to 10 seconds.
|
310
|
+
# ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.configure do |config|
|
311
|
+
# config.timeout = 10.0
|
312
|
+
# config.rpcs.get_fulfillment.timeout = 20.0
|
313
|
+
# end
|
314
|
+
#
|
315
|
+
# # Apply the above configuration only to a new client.
|
316
|
+
# client = ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.new do |config|
|
317
|
+
# config.timeout = 10.0
|
318
|
+
# config.rpcs.get_fulfillment.timeout = 20.0
|
319
|
+
# end
|
323
320
|
#
|
324
321
|
# @!attribute [rw] endpoint
|
325
322
|
# The hostname or hostname:port of the service endpoint.
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/v2/gcs.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/annotations_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/cloud/dialogflow/v2/gcs.proto", :syntax => :proto3) do
|
10
10
|
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/v2/human_agent_assistant_event.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/cloud/dialogflow/v2/participant_pb'
|
7
5
|
require 'google/api/annotations_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/cloud/dialogflow/v2/human_agent_assistant_event.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.cloud.dialogflow.v2.HumanAgentAssistantEvent" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/v2/intent.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'
|
@@ -14,6 +12,8 @@ require 'google/protobuf/duration_pb'
|
|
14
12
|
require 'google/protobuf/empty_pb'
|
15
13
|
require 'google/protobuf/field_mask_pb'
|
16
14
|
require 'google/protobuf/struct_pb'
|
15
|
+
require 'google/protobuf'
|
16
|
+
|
17
17
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
18
18
|
add_file("google/cloud/dialogflow/v2/intent.proto", :syntax => :proto3) do
|
19
19
|
add_message "google.cloud.dialogflow.v2.Intent" do
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# Service for managing [Intents][google.cloud.dialogflow.v2.Intent].
|
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
|
@@ -57,6 +57,13 @@ module Google
|
|
57
57
|
rpc :DeleteIntent, ::Google::Cloud::Dialogflow::V2::DeleteIntentRequest, ::Google::Protobuf::Empty
|
58
58
|
# Updates/Creates multiple intents in the specified agent.
|
59
59
|
#
|
60
|
+
# This method is a [long-running
|
61
|
+
# operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
|
62
|
+
# The returned `Operation` type has the following method-specific fields:
|
63
|
+
#
|
64
|
+
# - `metadata`: An empty [Struct
|
65
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
|
66
|
+
# - `response`: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]
|
60
67
|
#
|
61
68
|
# Note: You should always train an agent prior to sending it queries. See the
|
62
69
|
# [training
|
@@ -64,6 +71,14 @@ module Google
|
|
64
71
|
rpc :BatchUpdateIntents, ::Google::Cloud::Dialogflow::V2::BatchUpdateIntentsRequest, ::Google::Longrunning::Operation
|
65
72
|
# Deletes intents in the specified agent.
|
66
73
|
#
|
74
|
+
# This method is a [long-running
|
75
|
+
# operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
|
76
|
+
# The returned `Operation` type has the following method-specific fields:
|
77
|
+
#
|
78
|
+
# - `metadata`: An empty [Struct
|
79
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
|
80
|
+
# - `response`: An [Empty
|
81
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
|
67
82
|
#
|
68
83
|
# Note: You should always train an agent prior to sending it queries. See the
|
69
84
|
# [training
|
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::Dialogflow::V2::Intents::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 Intents clients
|
47
|
+
# ::Google::Cloud::Dialogflow::V2::Intents::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 Intents client object.
|
101
100
|
#
|
102
|
-
#
|
103
|
-
#
|
104
|
-
# To create a new Intents 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::Intents::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::Intents::Client.new do |config|
|
108
|
+
# config.timeout = 10.0
|
109
|
+
# end
|
115
110
|
#
|
116
111
|
# @yield [config] Configure the Intents 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
|
@@ -244,7 +238,9 @@ module Google
|
|
244
238
|
options.apply_defaults timeout: @config.rpcs.list_intents.timeout,
|
245
239
|
metadata: metadata,
|
246
240
|
retry_policy: @config.rpcs.list_intents.retry_policy
|
247
|
-
|
241
|
+
|
242
|
+
options.apply_defaults timeout: @config.timeout,
|
243
|
+
metadata: @config.metadata,
|
248
244
|
retry_policy: @config.retry_policy
|
249
245
|
|
250
246
|
@intents_stub.call_rpc :list_intents, request, options: options do |response, operation|
|
@@ -320,7 +316,9 @@ module Google
|
|
320
316
|
options.apply_defaults timeout: @config.rpcs.get_intent.timeout,
|
321
317
|
metadata: metadata,
|
322
318
|
retry_policy: @config.rpcs.get_intent.retry_policy
|
323
|
-
|
319
|
+
|
320
|
+
options.apply_defaults timeout: @config.timeout,
|
321
|
+
metadata: @config.metadata,
|
324
322
|
retry_policy: @config.retry_policy
|
325
323
|
|
326
324
|
@intents_stub.call_rpc :get_intent, request, options: options do |response, operation|
|
@@ -401,7 +399,9 @@ module Google
|
|
401
399
|
options.apply_defaults timeout: @config.rpcs.create_intent.timeout,
|
402
400
|
metadata: metadata,
|
403
401
|
retry_policy: @config.rpcs.create_intent.retry_policy
|
404
|
-
|
402
|
+
|
403
|
+
options.apply_defaults timeout: @config.timeout,
|
404
|
+
metadata: @config.metadata,
|
405
405
|
retry_policy: @config.retry_policy
|
406
406
|
|
407
407
|
@intents_stub.call_rpc :create_intent, request, options: options do |response, operation|
|
@@ -481,7 +481,9 @@ module Google
|
|
481
481
|
options.apply_defaults timeout: @config.rpcs.update_intent.timeout,
|
482
482
|
metadata: metadata,
|
483
483
|
retry_policy: @config.rpcs.update_intent.retry_policy
|
484
|
-
|
484
|
+
|
485
|
+
options.apply_defaults timeout: @config.timeout,
|
486
|
+
metadata: @config.metadata,
|
485
487
|
retry_policy: @config.retry_policy
|
486
488
|
|
487
489
|
@intents_stub.call_rpc :update_intent, request, options: options do |response, operation|
|
@@ -553,7 +555,9 @@ module Google
|
|
553
555
|
options.apply_defaults timeout: @config.rpcs.delete_intent.timeout,
|
554
556
|
metadata: metadata,
|
555
557
|
retry_policy: @config.rpcs.delete_intent.retry_policy
|
556
|
-
|
558
|
+
|
559
|
+
options.apply_defaults timeout: @config.timeout,
|
560
|
+
metadata: @config.metadata,
|
557
561
|
retry_policy: @config.retry_policy
|
558
562
|
|
559
563
|
@intents_stub.call_rpc :delete_intent, request, options: options do |response, operation|
|
@@ -567,6 +571,13 @@ module Google
|
|
567
571
|
##
|
568
572
|
# Updates/Creates multiple intents in the specified agent.
|
569
573
|
#
|
574
|
+
# This method is a [long-running
|
575
|
+
# operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
|
576
|
+
# The returned `Operation` type has the following method-specific fields:
|
577
|
+
#
|
578
|
+
# - `metadata`: An empty [Struct
|
579
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
|
580
|
+
# - `response`: {::Google::Cloud::Dialogflow::V2::BatchUpdateIntentsResponse BatchUpdateIntentsResponse}
|
570
581
|
#
|
571
582
|
# Note: You should always train an agent prior to sending it queries. See the
|
572
583
|
# [training
|
@@ -641,7 +652,9 @@ module Google
|
|
641
652
|
options.apply_defaults timeout: @config.rpcs.batch_update_intents.timeout,
|
642
653
|
metadata: metadata,
|
643
654
|
retry_policy: @config.rpcs.batch_update_intents.retry_policy
|
644
|
-
|
655
|
+
|
656
|
+
options.apply_defaults timeout: @config.timeout,
|
657
|
+
metadata: @config.metadata,
|
645
658
|
retry_policy: @config.retry_policy
|
646
659
|
|
647
660
|
@intents_stub.call_rpc :batch_update_intents, request, options: options do |response, operation|
|
@@ -656,6 +669,14 @@ module Google
|
|
656
669
|
##
|
657
670
|
# Deletes intents in the specified agent.
|
658
671
|
#
|
672
|
+
# This method is a [long-running
|
673
|
+
# operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
|
674
|
+
# The returned `Operation` type has the following method-specific fields:
|
675
|
+
#
|
676
|
+
# - `metadata`: An empty [Struct
|
677
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
|
678
|
+
# - `response`: An [Empty
|
679
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
|
659
680
|
#
|
660
681
|
# Note: You should always train an agent prior to sending it queries. See the
|
661
682
|
# [training
|
@@ -717,7 +738,9 @@ module Google
|
|
717
738
|
options.apply_defaults timeout: @config.rpcs.batch_delete_intents.timeout,
|
718
739
|
metadata: metadata,
|
719
740
|
retry_policy: @config.rpcs.batch_delete_intents.retry_policy
|
720
|
-
|
741
|
+
|
742
|
+
options.apply_defaults timeout: @config.timeout,
|
743
|
+
metadata: @config.metadata,
|
721
744
|
retry_policy: @config.retry_policy
|
722
745
|
|
723
746
|
@intents_stub.call_rpc :batch_delete_intents, request, options: options do |response, operation|
|
@@ -742,22 +765,21 @@ module Google
|
|
742
765
|
# Configuration can be applied globally to all clients, or to a single client
|
743
766
|
# on construction.
|
744
767
|
#
|
745
|
-
#
|
746
|
-
#
|
747
|
-
#
|
748
|
-
# to 20 seconds,
|
749
|
-
#
|
750
|
-
#
|
751
|
-
#
|
752
|
-
#
|
753
|
-
#
|
754
|
-
#
|
755
|
-
#
|
756
|
-
#
|
757
|
-
#
|
758
|
-
#
|
759
|
-
#
|
760
|
-
# end
|
768
|
+
# @example
|
769
|
+
#
|
770
|
+
# # Modify the global config, setting the timeout for
|
771
|
+
# # list_intents to 20 seconds,
|
772
|
+
# # and all remaining timeouts to 10 seconds.
|
773
|
+
# ::Google::Cloud::Dialogflow::V2::Intents::Client.configure do |config|
|
774
|
+
# config.timeout = 10.0
|
775
|
+
# config.rpcs.list_intents.timeout = 20.0
|
776
|
+
# end
|
777
|
+
#
|
778
|
+
# # Apply the above configuration only to a new client.
|
779
|
+
# client = ::Google::Cloud::Dialogflow::V2::Intents::Client.new do |config|
|
780
|
+
# config.timeout = 10.0
|
781
|
+
# config.rpcs.list_intents.timeout = 20.0
|
782
|
+
# end
|
761
783
|
#
|
762
784
|
# @!attribute [rw] endpoint
|
763
785
|
# 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,14 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/v2/knowledge_base.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/empty_pb'
|
11
9
|
require 'google/protobuf/field_mask_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_file("google/cloud/dialogflow/v2/knowledge_base.proto", :syntax => :proto3) do
|
14
14
|
add_message "google.cloud.dialogflow.v2.KnowledgeBase" do
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# Service for managing [KnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBase].
|
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
|