google-cloud-dialogflow-v2 0.11.1 → 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/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 +252 -31
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +115 -12
- 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 +46 -6
- 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 +126 -18
- 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 +4 -2
- data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +1 -1
- 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/conversation_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +112 -15
- 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 +180 -27
- data/lib/google/cloud/dialogflow/v2/documents/operations.rb +115 -12
- 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 +284 -30
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +115 -12
- 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 +132 -18
- 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 +40 -6
- 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 +175 -21
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +115 -12
- 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 +106 -15
- 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 +146 -21
- 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 +106 -15
- 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 +58 -3
- 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 +106 -15
- 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/conversation_profile.rb +25 -8
- data/proto_docs/google/cloud/dialogflow/v2/session.rb +38 -33
- metadata +6 -5
@@ -184,6 +184,27 @@ module Google
|
|
184
184
|
#
|
185
185
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
186
186
|
#
|
187
|
+
# @example Basic example
|
188
|
+
# require "google/cloud/dialogflow/v2"
|
189
|
+
#
|
190
|
+
# # Create a client object. The client can be reused for multiple calls.
|
191
|
+
# client = Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.new
|
192
|
+
#
|
193
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
194
|
+
# request = Google::Cloud::Dialogflow::V2::ListKnowledgeBasesRequest.new
|
195
|
+
#
|
196
|
+
# # Call the list_knowledge_bases method.
|
197
|
+
# result = client.list_knowledge_bases request
|
198
|
+
#
|
199
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
200
|
+
# # iterate over all elements by calling #each, and the enumerable
|
201
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
202
|
+
# # methods are also available for managing paging directly.
|
203
|
+
# result.each do |response|
|
204
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::V2::KnowledgeBase.
|
205
|
+
# p response
|
206
|
+
# end
|
207
|
+
#
|
187
208
|
def list_knowledge_bases request, options = nil
|
188
209
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
189
210
|
|
@@ -201,9 +222,11 @@ module Google
|
|
201
222
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
202
223
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
203
224
|
|
204
|
-
header_params = {
|
205
|
-
|
206
|
-
|
225
|
+
header_params = {}
|
226
|
+
if request.parent
|
227
|
+
header_params["parent"] = request.parent
|
228
|
+
end
|
229
|
+
|
207
230
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
208
231
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
209
232
|
|
@@ -255,6 +278,21 @@ module Google
|
|
255
278
|
#
|
256
279
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
257
280
|
#
|
281
|
+
# @example Basic example
|
282
|
+
# require "google/cloud/dialogflow/v2"
|
283
|
+
#
|
284
|
+
# # Create a client object. The client can be reused for multiple calls.
|
285
|
+
# client = Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.new
|
286
|
+
#
|
287
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
288
|
+
# request = Google::Cloud::Dialogflow::V2::GetKnowledgeBaseRequest.new
|
289
|
+
#
|
290
|
+
# # Call the get_knowledge_base method.
|
291
|
+
# result = client.get_knowledge_base request
|
292
|
+
#
|
293
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::KnowledgeBase.
|
294
|
+
# p result
|
295
|
+
#
|
258
296
|
def get_knowledge_base request, options = nil
|
259
297
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
260
298
|
|
@@ -272,9 +310,11 @@ module Google
|
|
272
310
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
273
311
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
274
312
|
|
275
|
-
header_params = {
|
276
|
-
|
277
|
-
|
313
|
+
header_params = {}
|
314
|
+
if request.name
|
315
|
+
header_params["name"] = request.name
|
316
|
+
end
|
317
|
+
|
278
318
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
279
319
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
280
320
|
|
@@ -326,6 +366,21 @@ module Google
|
|
326
366
|
#
|
327
367
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
328
368
|
#
|
369
|
+
# @example Basic example
|
370
|
+
# require "google/cloud/dialogflow/v2"
|
371
|
+
#
|
372
|
+
# # Create a client object. The client can be reused for multiple calls.
|
373
|
+
# client = Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.new
|
374
|
+
#
|
375
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
376
|
+
# request = Google::Cloud::Dialogflow::V2::CreateKnowledgeBaseRequest.new
|
377
|
+
#
|
378
|
+
# # Call the create_knowledge_base method.
|
379
|
+
# result = client.create_knowledge_base request
|
380
|
+
#
|
381
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::KnowledgeBase.
|
382
|
+
# p result
|
383
|
+
#
|
329
384
|
def create_knowledge_base request, options = nil
|
330
385
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
331
386
|
|
@@ -343,9 +398,11 @@ module Google
|
|
343
398
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
344
399
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
345
400
|
|
346
|
-
header_params = {
|
347
|
-
|
348
|
-
|
401
|
+
header_params = {}
|
402
|
+
if request.parent
|
403
|
+
header_params["parent"] = request.parent
|
404
|
+
end
|
405
|
+
|
349
406
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
350
407
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
351
408
|
|
@@ -399,6 +456,21 @@ module Google
|
|
399
456
|
#
|
400
457
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
401
458
|
#
|
459
|
+
# @example Basic example
|
460
|
+
# require "google/cloud/dialogflow/v2"
|
461
|
+
#
|
462
|
+
# # Create a client object. The client can be reused for multiple calls.
|
463
|
+
# client = Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.new
|
464
|
+
#
|
465
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
466
|
+
# request = Google::Cloud::Dialogflow::V2::DeleteKnowledgeBaseRequest.new
|
467
|
+
#
|
468
|
+
# # Call the delete_knowledge_base method.
|
469
|
+
# result = client.delete_knowledge_base request
|
470
|
+
#
|
471
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
472
|
+
# p result
|
473
|
+
#
|
402
474
|
def delete_knowledge_base request, options = nil
|
403
475
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
404
476
|
|
@@ -416,9 +488,11 @@ module Google
|
|
416
488
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
417
489
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
418
490
|
|
419
|
-
header_params = {
|
420
|
-
|
421
|
-
|
491
|
+
header_params = {}
|
492
|
+
if request.name
|
493
|
+
header_params["name"] = request.name
|
494
|
+
end
|
495
|
+
|
422
496
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
423
497
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
424
498
|
|
@@ -471,6 +545,21 @@ module Google
|
|
471
545
|
#
|
472
546
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
473
547
|
#
|
548
|
+
# @example Basic example
|
549
|
+
# require "google/cloud/dialogflow/v2"
|
550
|
+
#
|
551
|
+
# # Create a client object. The client can be reused for multiple calls.
|
552
|
+
# client = Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.new
|
553
|
+
#
|
554
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
555
|
+
# request = Google::Cloud::Dialogflow::V2::UpdateKnowledgeBaseRequest.new
|
556
|
+
#
|
557
|
+
# # Call the update_knowledge_base method.
|
558
|
+
# result = client.update_knowledge_base request
|
559
|
+
#
|
560
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::KnowledgeBase.
|
561
|
+
# p result
|
562
|
+
#
|
474
563
|
def update_knowledge_base request, options = nil
|
475
564
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
476
565
|
|
@@ -488,9 +577,11 @@ module Google
|
|
488
577
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
489
578
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
490
579
|
|
491
|
-
header_params = {
|
492
|
-
|
493
|
-
|
580
|
+
header_params = {}
|
581
|
+
if request.knowledge_base&.name
|
582
|
+
header_params["knowledge_base.name"] = request.knowledge_base.name
|
583
|
+
end
|
584
|
+
|
494
585
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
495
586
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
496
587
|
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/v2/participant.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'
|
@@ -15,6 +13,8 @@ require 'google/protobuf/field_mask_pb'
|
|
15
13
|
require 'google/protobuf/struct_pb'
|
16
14
|
require 'google/protobuf/timestamp_pb'
|
17
15
|
require 'google/rpc/status_pb'
|
16
|
+
require 'google/protobuf'
|
17
|
+
|
18
18
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
19
19
|
add_file("google/cloud/dialogflow/v2/participant.proto", :syntax => :proto3) do
|
20
20
|
add_message "google.cloud.dialogflow.v2.Participant" do
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# Service for managing [Participants][google.cloud.dialogflow.v2.Participant].
|
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
|
@@ -187,6 +187,21 @@ 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::Participants::Client.new
|
195
|
+
#
|
196
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
197
|
+
# request = Google::Cloud::Dialogflow::V2::CreateParticipantRequest.new
|
198
|
+
#
|
199
|
+
# # Call the create_participant method.
|
200
|
+
# result = client.create_participant request
|
201
|
+
#
|
202
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Participant.
|
203
|
+
# p result
|
204
|
+
#
|
190
205
|
def create_participant request, options = nil
|
191
206
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
192
207
|
|
@@ -204,9 +219,11 @@ module Google
|
|
204
219
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
205
220
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
206
221
|
|
207
|
-
header_params = {
|
208
|
-
|
209
|
-
|
222
|
+
header_params = {}
|
223
|
+
if request.parent
|
224
|
+
header_params["parent"] = request.parent
|
225
|
+
end
|
226
|
+
|
210
227
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
211
228
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
212
229
|
|
@@ -257,6 +274,21 @@ module Google
|
|
257
274
|
#
|
258
275
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
259
276
|
#
|
277
|
+
# @example Basic example
|
278
|
+
# require "google/cloud/dialogflow/v2"
|
279
|
+
#
|
280
|
+
# # Create a client object. The client can be reused for multiple calls.
|
281
|
+
# client = Google::Cloud::Dialogflow::V2::Participants::Client.new
|
282
|
+
#
|
283
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
284
|
+
# request = Google::Cloud::Dialogflow::V2::GetParticipantRequest.new
|
285
|
+
#
|
286
|
+
# # Call the get_participant method.
|
287
|
+
# result = client.get_participant request
|
288
|
+
#
|
289
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Participant.
|
290
|
+
# p result
|
291
|
+
#
|
260
292
|
def get_participant request, options = nil
|
261
293
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
262
294
|
|
@@ -274,9 +306,11 @@ module Google
|
|
274
306
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
275
307
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
276
308
|
|
277
|
-
header_params = {
|
278
|
-
|
279
|
-
|
309
|
+
header_params = {}
|
310
|
+
if request.name
|
311
|
+
header_params["name"] = request.name
|
312
|
+
end
|
313
|
+
|
280
314
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
281
315
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
282
316
|
|
@@ -332,6 +366,27 @@ module Google
|
|
332
366
|
#
|
333
367
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
334
368
|
#
|
369
|
+
# @example Basic example
|
370
|
+
# require "google/cloud/dialogflow/v2"
|
371
|
+
#
|
372
|
+
# # Create a client object. The client can be reused for multiple calls.
|
373
|
+
# client = Google::Cloud::Dialogflow::V2::Participants::Client.new
|
374
|
+
#
|
375
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
376
|
+
# request = Google::Cloud::Dialogflow::V2::ListParticipantsRequest.new
|
377
|
+
#
|
378
|
+
# # Call the list_participants method.
|
379
|
+
# result = client.list_participants request
|
380
|
+
#
|
381
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
382
|
+
# # iterate over all elements by calling #each, and the enumerable
|
383
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
384
|
+
# # methods are also available for managing paging directly.
|
385
|
+
# result.each do |response|
|
386
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::V2::Participant.
|
387
|
+
# p response
|
388
|
+
# end
|
389
|
+
#
|
335
390
|
def list_participants request, options = nil
|
336
391
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
337
392
|
|
@@ -349,9 +404,11 @@ module Google
|
|
349
404
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
350
405
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
351
406
|
|
352
|
-
header_params = {
|
353
|
-
|
354
|
-
|
407
|
+
header_params = {}
|
408
|
+
if request.parent
|
409
|
+
header_params["parent"] = request.parent
|
410
|
+
end
|
411
|
+
|
355
412
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
356
413
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
357
414
|
|
@@ -403,6 +460,21 @@ module Google
|
|
403
460
|
#
|
404
461
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
405
462
|
#
|
463
|
+
# @example Basic example
|
464
|
+
# require "google/cloud/dialogflow/v2"
|
465
|
+
#
|
466
|
+
# # Create a client object. The client can be reused for multiple calls.
|
467
|
+
# client = Google::Cloud::Dialogflow::V2::Participants::Client.new
|
468
|
+
#
|
469
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
470
|
+
# request = Google::Cloud::Dialogflow::V2::UpdateParticipantRequest.new
|
471
|
+
#
|
472
|
+
# # Call the update_participant method.
|
473
|
+
# result = client.update_participant request
|
474
|
+
#
|
475
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Participant.
|
476
|
+
# p result
|
477
|
+
#
|
406
478
|
def update_participant request, options = nil
|
407
479
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
408
480
|
|
@@ -420,9 +492,11 @@ module Google
|
|
420
492
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
421
493
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
422
494
|
|
423
|
-
header_params = {
|
424
|
-
|
425
|
-
|
495
|
+
header_params = {}
|
496
|
+
if request.participant&.name
|
497
|
+
header_params["participant.name"] = request.participant.name
|
498
|
+
end
|
499
|
+
|
426
500
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
427
501
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
428
502
|
|
@@ -494,6 +568,21 @@ module Google
|
|
494
568
|
#
|
495
569
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
496
570
|
#
|
571
|
+
# @example Basic example
|
572
|
+
# require "google/cloud/dialogflow/v2"
|
573
|
+
#
|
574
|
+
# # Create a client object. The client can be reused for multiple calls.
|
575
|
+
# client = Google::Cloud::Dialogflow::V2::Participants::Client.new
|
576
|
+
#
|
577
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
578
|
+
# request = Google::Cloud::Dialogflow::V2::AnalyzeContentRequest.new
|
579
|
+
#
|
580
|
+
# # Call the analyze_content method.
|
581
|
+
# result = client.analyze_content request
|
582
|
+
#
|
583
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::AnalyzeContentResponse.
|
584
|
+
# p result
|
585
|
+
#
|
497
586
|
def analyze_content request, options = nil
|
498
587
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
499
588
|
|
@@ -511,9 +600,11 @@ module Google
|
|
511
600
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
512
601
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
513
602
|
|
514
|
-
header_params = {
|
515
|
-
|
516
|
-
|
603
|
+
header_params = {}
|
604
|
+
if request.participant
|
605
|
+
header_params["participant"] = request.participant
|
606
|
+
end
|
607
|
+
|
517
608
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
518
609
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
519
610
|
|
@@ -575,6 +666,21 @@ module Google
|
|
575
666
|
#
|
576
667
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
577
668
|
#
|
669
|
+
# @example Basic example
|
670
|
+
# require "google/cloud/dialogflow/v2"
|
671
|
+
#
|
672
|
+
# # Create a client object. The client can be reused for multiple calls.
|
673
|
+
# client = Google::Cloud::Dialogflow::V2::Participants::Client.new
|
674
|
+
#
|
675
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
676
|
+
# request = Google::Cloud::Dialogflow::V2::SuggestArticlesRequest.new
|
677
|
+
#
|
678
|
+
# # Call the suggest_articles method.
|
679
|
+
# result = client.suggest_articles request
|
680
|
+
#
|
681
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::SuggestArticlesResponse.
|
682
|
+
# p result
|
683
|
+
#
|
578
684
|
def suggest_articles request, options = nil
|
579
685
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
580
686
|
|
@@ -592,9 +698,11 @@ module Google
|
|
592
698
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
593
699
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
594
700
|
|
595
|
-
header_params = {
|
596
|
-
|
597
|
-
|
701
|
+
header_params = {}
|
702
|
+
if request.parent
|
703
|
+
header_params["parent"] = request.parent
|
704
|
+
end
|
705
|
+
|
598
706
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
599
707
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
600
708
|
|
@@ -656,6 +764,21 @@ module Google
|
|
656
764
|
#
|
657
765
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
658
766
|
#
|
767
|
+
# @example Basic example
|
768
|
+
# require "google/cloud/dialogflow/v2"
|
769
|
+
#
|
770
|
+
# # Create a client object. The client can be reused for multiple calls.
|
771
|
+
# client = Google::Cloud::Dialogflow::V2::Participants::Client.new
|
772
|
+
#
|
773
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
774
|
+
# request = Google::Cloud::Dialogflow::V2::SuggestFaqAnswersRequest.new
|
775
|
+
#
|
776
|
+
# # Call the suggest_faq_answers method.
|
777
|
+
# result = client.suggest_faq_answers request
|
778
|
+
#
|
779
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::SuggestFaqAnswersResponse.
|
780
|
+
# p result
|
781
|
+
#
|
659
782
|
def suggest_faq_answers request, options = nil
|
660
783
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
661
784
|
|
@@ -673,9 +796,11 @@ module Google
|
|
673
796
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
674
797
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
675
798
|
|
676
|
-
header_params = {
|
677
|
-
|
678
|
-
|
799
|
+
header_params = {}
|
800
|
+
if request.parent
|
801
|
+
header_params["parent"] = request.parent
|
802
|
+
end
|
803
|
+
|
679
804
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
680
805
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
681
806
|
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/v2/session_entity_type.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'
|
@@ -10,6 +8,8 @@ require 'google/api/resource_pb'
|
|
10
8
|
require 'google/cloud/dialogflow/v2/entity_type_pb'
|
11
9
|
require 'google/protobuf/empty_pb'
|
12
10
|
require 'google/protobuf/field_mask_pb'
|
11
|
+
require 'google/protobuf'
|
12
|
+
|
13
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
14
|
add_file("google/cloud/dialogflow/v2/session_entity_type.proto", :syntax => :proto3) do
|
15
15
|
add_message "google.cloud.dialogflow.v2.SessionEntityType" do
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# Service for managing [SessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityType].
|
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
|