google-cloud-dialogflow-v2 0.11.4 → 0.11.5
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/lib/google/cloud/dialogflow/v2/agents/client.rb +214 -27
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +46 -6
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +126 -18
- data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +106 -15
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/paths.rb +19 -0
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +112 -15
- data/lib/google/cloud/dialogflow/v2/documents/client.rb +154 -18
- data/lib/google/cloud/dialogflow/v2/documents/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +241 -30
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/v2/environments/client.rb +132 -18
- data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +40 -6
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +160 -21
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +106 -15
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +146 -21
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +106 -15
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +44 -3
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/versions/client.rb +106 -15
- data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +25 -8
- metadata +2 -2
@@ -192,6 +192,27 @@ module Google
|
|
192
192
|
#
|
193
193
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
194
194
|
#
|
195
|
+
# @example Basic example
|
196
|
+
# require "google/cloud/dialogflow/v2"
|
197
|
+
#
|
198
|
+
# # Create a client object. The client can be reused for multiple calls.
|
199
|
+
# client = Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.new
|
200
|
+
#
|
201
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
202
|
+
# request = Google::Cloud::Dialogflow::V2::ListSessionEntityTypesRequest.new
|
203
|
+
#
|
204
|
+
# # Call the list_session_entity_types method.
|
205
|
+
# result = client.list_session_entity_types request
|
206
|
+
#
|
207
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
208
|
+
# # iterate over all elements by calling #each, and the enumerable
|
209
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
210
|
+
# # methods are also available for managing paging directly.
|
211
|
+
# result.each do |response|
|
212
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::V2::SessionEntityType.
|
213
|
+
# p response
|
214
|
+
# end
|
215
|
+
#
|
195
216
|
def list_session_entity_types request, options = nil
|
196
217
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
197
218
|
|
@@ -209,9 +230,11 @@ module Google
|
|
209
230
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
210
231
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
211
232
|
|
212
|
-
header_params = {
|
213
|
-
|
214
|
-
|
233
|
+
header_params = {}
|
234
|
+
if request.parent
|
235
|
+
header_params["parent"] = request.parent
|
236
|
+
end
|
237
|
+
|
215
238
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
216
239
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
217
240
|
|
@@ -271,6 +294,21 @@ module Google
|
|
271
294
|
#
|
272
295
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
273
296
|
#
|
297
|
+
# @example Basic example
|
298
|
+
# require "google/cloud/dialogflow/v2"
|
299
|
+
#
|
300
|
+
# # Create a client object. The client can be reused for multiple calls.
|
301
|
+
# client = Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.new
|
302
|
+
#
|
303
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
304
|
+
# request = Google::Cloud::Dialogflow::V2::GetSessionEntityTypeRequest.new
|
305
|
+
#
|
306
|
+
# # Call the get_session_entity_type method.
|
307
|
+
# result = client.get_session_entity_type request
|
308
|
+
#
|
309
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::SessionEntityType.
|
310
|
+
# p result
|
311
|
+
#
|
274
312
|
def get_session_entity_type request, options = nil
|
275
313
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
276
314
|
|
@@ -288,9 +326,11 @@ module Google
|
|
288
326
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
289
327
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
290
328
|
|
291
|
-
header_params = {
|
292
|
-
|
293
|
-
|
329
|
+
header_params = {}
|
330
|
+
if request.name
|
331
|
+
header_params["name"] = request.name
|
332
|
+
end
|
333
|
+
|
294
334
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
295
335
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
296
336
|
|
@@ -353,6 +393,21 @@ module Google
|
|
353
393
|
#
|
354
394
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
355
395
|
#
|
396
|
+
# @example Basic example
|
397
|
+
# require "google/cloud/dialogflow/v2"
|
398
|
+
#
|
399
|
+
# # Create a client object. The client can be reused for multiple calls.
|
400
|
+
# client = Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.new
|
401
|
+
#
|
402
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
403
|
+
# request = Google::Cloud::Dialogflow::V2::CreateSessionEntityTypeRequest.new
|
404
|
+
#
|
405
|
+
# # Call the create_session_entity_type method.
|
406
|
+
# result = client.create_session_entity_type request
|
407
|
+
#
|
408
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::SessionEntityType.
|
409
|
+
# p result
|
410
|
+
#
|
356
411
|
def create_session_entity_type request, options = nil
|
357
412
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
358
413
|
|
@@ -370,9 +425,11 @@ module Google
|
|
370
425
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
371
426
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
372
427
|
|
373
|
-
header_params = {
|
374
|
-
|
375
|
-
|
428
|
+
header_params = {}
|
429
|
+
if request.parent
|
430
|
+
header_params["parent"] = request.parent
|
431
|
+
end
|
432
|
+
|
376
433
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
377
434
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
378
435
|
|
@@ -427,6 +484,21 @@ module Google
|
|
427
484
|
#
|
428
485
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
429
486
|
#
|
487
|
+
# @example Basic example
|
488
|
+
# require "google/cloud/dialogflow/v2"
|
489
|
+
#
|
490
|
+
# # Create a client object. The client can be reused for multiple calls.
|
491
|
+
# client = Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.new
|
492
|
+
#
|
493
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
494
|
+
# request = Google::Cloud::Dialogflow::V2::UpdateSessionEntityTypeRequest.new
|
495
|
+
#
|
496
|
+
# # Call the update_session_entity_type method.
|
497
|
+
# result = client.update_session_entity_type request
|
498
|
+
#
|
499
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::SessionEntityType.
|
500
|
+
# p result
|
501
|
+
#
|
430
502
|
def update_session_entity_type request, options = nil
|
431
503
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
432
504
|
|
@@ -444,9 +516,11 @@ module Google
|
|
444
516
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
445
517
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
446
518
|
|
447
|
-
header_params = {
|
448
|
-
|
449
|
-
|
519
|
+
header_params = {}
|
520
|
+
if request.session_entity_type&.name
|
521
|
+
header_params["session_entity_type.name"] = request.session_entity_type.name
|
522
|
+
end
|
523
|
+
|
450
524
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
451
525
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
452
526
|
|
@@ -505,6 +579,21 @@ module Google
|
|
505
579
|
#
|
506
580
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
507
581
|
#
|
582
|
+
# @example Basic example
|
583
|
+
# require "google/cloud/dialogflow/v2"
|
584
|
+
#
|
585
|
+
# # Create a client object. The client can be reused for multiple calls.
|
586
|
+
# client = Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.new
|
587
|
+
#
|
588
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
589
|
+
# request = Google::Cloud::Dialogflow::V2::DeleteSessionEntityTypeRequest.new
|
590
|
+
#
|
591
|
+
# # Call the delete_session_entity_type method.
|
592
|
+
# result = client.delete_session_entity_type request
|
593
|
+
#
|
594
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
595
|
+
# p result
|
596
|
+
#
|
508
597
|
def delete_session_entity_type request, options = nil
|
509
598
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
510
599
|
|
@@ -522,9 +611,11 @@ module Google
|
|
522
611
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
523
612
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
524
613
|
|
525
|
-
header_params = {
|
526
|
-
|
527
|
-
|
614
|
+
header_params = {}
|
615
|
+
if request.name
|
616
|
+
header_params["name"] = request.name
|
617
|
+
end
|
618
|
+
|
528
619
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
529
620
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
530
621
|
|
@@ -244,6 +244,21 @@ module Google
|
|
244
244
|
#
|
245
245
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
246
246
|
#
|
247
|
+
# @example Basic example
|
248
|
+
# require "google/cloud/dialogflow/v2"
|
249
|
+
#
|
250
|
+
# # Create a client object. The client can be reused for multiple calls.
|
251
|
+
# client = Google::Cloud::Dialogflow::V2::Sessions::Client.new
|
252
|
+
#
|
253
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
254
|
+
# request = Google::Cloud::Dialogflow::V2::DetectIntentRequest.new
|
255
|
+
#
|
256
|
+
# # Call the detect_intent method.
|
257
|
+
# result = client.detect_intent request
|
258
|
+
#
|
259
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::DetectIntentResponse.
|
260
|
+
# p result
|
261
|
+
#
|
247
262
|
def detect_intent request, options = nil
|
248
263
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
249
264
|
|
@@ -261,9 +276,11 @@ module Google
|
|
261
276
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
262
277
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
263
278
|
|
264
|
-
header_params = {
|
265
|
-
|
266
|
-
|
279
|
+
header_params = {}
|
280
|
+
if request.session
|
281
|
+
header_params["session"] = request.session
|
282
|
+
end
|
283
|
+
|
267
284
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
268
285
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
269
286
|
|
@@ -312,6 +329,30 @@ module Google
|
|
312
329
|
#
|
313
330
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
314
331
|
#
|
332
|
+
# @example Basic example
|
333
|
+
# require "google/cloud/dialogflow/v2"
|
334
|
+
#
|
335
|
+
# # Create a client object. The client can be reused for multiple calls.
|
336
|
+
# client = Google::Cloud::Dialogflow::V2::Sessions::Client.new
|
337
|
+
#
|
338
|
+
# # Create an input stream
|
339
|
+
# input = Gapic::StreamInput.new
|
340
|
+
#
|
341
|
+
# # Call the streaming_detect_intent method to start streaming.
|
342
|
+
# output = client.streaming_detect_intent input
|
343
|
+
#
|
344
|
+
# # Send requests on the stream. For each request, pass in keyword
|
345
|
+
# # arguments to set fields. Be sure to close the stream when done.
|
346
|
+
# input << Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest.new
|
347
|
+
# input << Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest.new
|
348
|
+
# input.close
|
349
|
+
#
|
350
|
+
# # Handle streamed responses. These may be interleaved with inputs.
|
351
|
+
# # Each response is of type ::Google::Cloud::Dialogflow::V2::StreamingDetectIntentResponse.
|
352
|
+
# output.each do |response|
|
353
|
+
# p response
|
354
|
+
# end
|
355
|
+
#
|
315
356
|
def streaming_detect_intent request, options = nil
|
316
357
|
unless request.is_a? ::Enumerable
|
317
358
|
raise ::ArgumentError, "request must be an Enumerable" unless request.respond_to? :to_enum
|
@@ -187,6 +187,27 @@ module Google
|
|
187
187
|
#
|
188
188
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
189
189
|
#
|
190
|
+
# @example Basic example
|
191
|
+
# require "google/cloud/dialogflow/v2"
|
192
|
+
#
|
193
|
+
# # Create a client object. The client can be reused for multiple calls.
|
194
|
+
# client = Google::Cloud::Dialogflow::V2::Versions::Client.new
|
195
|
+
#
|
196
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
197
|
+
# request = Google::Cloud::Dialogflow::V2::ListVersionsRequest.new
|
198
|
+
#
|
199
|
+
# # Call the list_versions method.
|
200
|
+
# result = client.list_versions request
|
201
|
+
#
|
202
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
203
|
+
# # iterate over all elements by calling #each, and the enumerable
|
204
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
205
|
+
# # methods are also available for managing paging directly.
|
206
|
+
# result.each do |response|
|
207
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::V2::Version.
|
208
|
+
# p response
|
209
|
+
# end
|
210
|
+
#
|
190
211
|
def list_versions request, options = nil
|
191
212
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
192
213
|
|
@@ -204,9 +225,11 @@ module Google
|
|
204
225
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
205
226
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
206
227
|
|
207
|
-
header_params = {
|
208
|
-
|
209
|
-
|
228
|
+
header_params = {}
|
229
|
+
if request.parent
|
230
|
+
header_params["parent"] = request.parent
|
231
|
+
end
|
232
|
+
|
210
233
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
211
234
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
212
235
|
|
@@ -261,6 +284,21 @@ module Google
|
|
261
284
|
#
|
262
285
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
263
286
|
#
|
287
|
+
# @example Basic example
|
288
|
+
# require "google/cloud/dialogflow/v2"
|
289
|
+
#
|
290
|
+
# # Create a client object. The client can be reused for multiple calls.
|
291
|
+
# client = Google::Cloud::Dialogflow::V2::Versions::Client.new
|
292
|
+
#
|
293
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
294
|
+
# request = Google::Cloud::Dialogflow::V2::GetVersionRequest.new
|
295
|
+
#
|
296
|
+
# # Call the get_version method.
|
297
|
+
# result = client.get_version request
|
298
|
+
#
|
299
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Version.
|
300
|
+
# p result
|
301
|
+
#
|
264
302
|
def get_version request, options = nil
|
265
303
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
266
304
|
|
@@ -278,9 +316,11 @@ module Google
|
|
278
316
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
279
317
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
280
318
|
|
281
|
-
header_params = {
|
282
|
-
|
283
|
-
|
319
|
+
header_params = {}
|
320
|
+
if request.name
|
321
|
+
header_params["name"] = request.name
|
322
|
+
end
|
323
|
+
|
284
324
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
285
325
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
286
326
|
|
@@ -337,6 +377,21 @@ module Google
|
|
337
377
|
#
|
338
378
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
339
379
|
#
|
380
|
+
# @example Basic example
|
381
|
+
# require "google/cloud/dialogflow/v2"
|
382
|
+
#
|
383
|
+
# # Create a client object. The client can be reused for multiple calls.
|
384
|
+
# client = Google::Cloud::Dialogflow::V2::Versions::Client.new
|
385
|
+
#
|
386
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
387
|
+
# request = Google::Cloud::Dialogflow::V2::CreateVersionRequest.new
|
388
|
+
#
|
389
|
+
# # Call the create_version method.
|
390
|
+
# result = client.create_version request
|
391
|
+
#
|
392
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Version.
|
393
|
+
# p result
|
394
|
+
#
|
340
395
|
def create_version request, options = nil
|
341
396
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
342
397
|
|
@@ -354,9 +409,11 @@ module Google
|
|
354
409
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
355
410
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
356
411
|
|
357
|
-
header_params = {
|
358
|
-
|
359
|
-
|
412
|
+
header_params = {}
|
413
|
+
if request.parent
|
414
|
+
header_params["parent"] = request.parent
|
415
|
+
end
|
416
|
+
|
360
417
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
361
418
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
362
419
|
|
@@ -416,6 +473,21 @@ module Google
|
|
416
473
|
#
|
417
474
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
418
475
|
#
|
476
|
+
# @example Basic example
|
477
|
+
# require "google/cloud/dialogflow/v2"
|
478
|
+
#
|
479
|
+
# # Create a client object. The client can be reused for multiple calls.
|
480
|
+
# client = Google::Cloud::Dialogflow::V2::Versions::Client.new
|
481
|
+
#
|
482
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
483
|
+
# request = Google::Cloud::Dialogflow::V2::UpdateVersionRequest.new
|
484
|
+
#
|
485
|
+
# # Call the update_version method.
|
486
|
+
# result = client.update_version request
|
487
|
+
#
|
488
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Version.
|
489
|
+
# p result
|
490
|
+
#
|
419
491
|
def update_version request, options = nil
|
420
492
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
421
493
|
|
@@ -433,9 +505,11 @@ module Google
|
|
433
505
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
434
506
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
435
507
|
|
436
|
-
header_params = {
|
437
|
-
|
438
|
-
|
508
|
+
header_params = {}
|
509
|
+
if request.version&.name
|
510
|
+
header_params["version.name"] = request.version.name
|
511
|
+
end
|
512
|
+
|
439
513
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
440
514
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
441
515
|
|
@@ -489,6 +563,21 @@ module Google
|
|
489
563
|
#
|
490
564
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
491
565
|
#
|
566
|
+
# @example Basic example
|
567
|
+
# require "google/cloud/dialogflow/v2"
|
568
|
+
#
|
569
|
+
# # Create a client object. The client can be reused for multiple calls.
|
570
|
+
# client = Google::Cloud::Dialogflow::V2::Versions::Client.new
|
571
|
+
#
|
572
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
573
|
+
# request = Google::Cloud::Dialogflow::V2::DeleteVersionRequest.new
|
574
|
+
#
|
575
|
+
# # Call the delete_version method.
|
576
|
+
# result = client.delete_version request
|
577
|
+
#
|
578
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
579
|
+
# p result
|
580
|
+
#
|
492
581
|
def delete_version request, options = nil
|
493
582
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
494
583
|
|
@@ -506,9 +595,11 @@ module Google
|
|
506
595
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
507
596
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
508
597
|
|
509
|
-
header_params = {
|
510
|
-
|
511
|
-
|
598
|
+
header_params = {}
|
599
|
+
if request.name
|
600
|
+
header_params["name"] = request.name
|
601
|
+
end
|
602
|
+
|
512
603
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
513
604
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
514
605
|
|
@@ -63,9 +63,21 @@ module Google
|
|
63
63
|
# Settings for speech transcription.
|
64
64
|
# @!attribute [rw] language_code
|
65
65
|
# @return [::String]
|
66
|
-
# Language
|
67
|
-
#
|
68
|
-
#
|
66
|
+
# Language code for the conversation profile. If not specified, the language
|
67
|
+
# is en-US. Language at ConversationProfile should be set for all non en-US
|
68
|
+
# languages.
|
69
|
+
# This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
|
70
|
+
# language tag. Example: "en-US".
|
71
|
+
# @!attribute [rw] time_zone
|
72
|
+
# @return [::String]
|
73
|
+
# The time zone of this conversational profile from the
|
74
|
+
# [time zone database](https://www.iana.org/time-zones), e.g.,
|
75
|
+
# America/New_York, Europe/Paris. Defaults to America/New_York.
|
76
|
+
# @!attribute [rw] security_settings
|
77
|
+
# @return [::String]
|
78
|
+
# Name of the CX SecuritySettings reference for the agent.
|
79
|
+
# Format: `projects/<Project ID>/locations/<Location
|
80
|
+
# ID>/securitySettings/<Security Settings ID>`.
|
69
81
|
class ConversationProfile
|
70
82
|
include ::Google::Protobuf::MessageExts
|
71
83
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -162,11 +174,16 @@ module Google
|
|
162
174
|
# Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API
|
163
175
|
# Service Agent` role in this project.
|
164
176
|
#
|
165
|
-
#
|
177
|
+
# - For ES agents, use format: `projects/<Project ID>/locations/<Location
|
166
178
|
# ID>/agent/environments/<Environment ID or '-'>`. If environment is not
|
167
179
|
# specified, the default `draft` environment is used. Refer to
|
168
180
|
# [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest)
|
169
181
|
# for more details.
|
182
|
+
#
|
183
|
+
# - For CX agents, use format `projects/<Project ID>/locations/<Location
|
184
|
+
# ID>/agents/<Agent ID>/environments/<Environment ID
|
185
|
+
# or '-'>`. If environment is not specified, the default `draft` environment
|
186
|
+
# is used.
|
170
187
|
class AutomatedAgentConfig
|
171
188
|
include ::Google::Protobuf::MessageExts
|
172
189
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -289,7 +306,7 @@ module Google
|
|
289
306
|
# If this field is not set, it defaults to 0.0, which means that all
|
290
307
|
# suggestions are returned.
|
291
308
|
#
|
292
|
-
# Supported features: ARTICLE_SUGGESTION.
|
309
|
+
# Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE.
|
293
310
|
# @!attribute [rw] context_filter_settings
|
294
311
|
# @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::ContextFilterSettings]
|
295
312
|
# Determines how recent conversation context is filtered when generating
|
@@ -471,13 +488,13 @@ module Google
|
|
471
488
|
|
472
489
|
# Format of cloud pub/sub message.
|
473
490
|
module MessageFormat
|
474
|
-
# If it is
|
491
|
+
# If it is unspecified, PROTO will be used.
|
475
492
|
MESSAGE_FORMAT_UNSPECIFIED = 0
|
476
493
|
|
477
|
-
#
|
494
|
+
# Pub/Sub message will be serialized proto.
|
478
495
|
PROTO = 1
|
479
496
|
|
480
|
-
#
|
497
|
+
# Pub/Sub message will be json.
|
481
498
|
JSON = 2
|
482
499
|
end
|
483
500
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dialogflow-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|