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
@@ -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
|
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/v2/session.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'
|
@@ -16,6 +14,8 @@ require 'google/protobuf/field_mask_pb'
|
|
16
14
|
require 'google/protobuf/struct_pb'
|
17
15
|
require 'google/rpc/status_pb'
|
18
16
|
require 'google/type/latlng_pb'
|
17
|
+
require 'google/protobuf'
|
18
|
+
|
19
19
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
20
20
|
add_file("google/cloud/dialogflow/v2/session.proto", :syntax => :proto3) do
|
21
21
|
add_message "google.cloud.dialogflow.v2.DetectIntentRequest" do
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# guide](https://cloud.google.com/dialogflow/docs/api-overview).
|
31
31
|
class Service
|
32
32
|
|
33
|
-
include GRPC::GenericService
|
33
|
+
include ::GRPC::GenericService
|
34
34
|
|
35
35
|
self.marshal_class_method = :encode
|
36
36
|
self.unmarshal_class_method = :decode
|
@@ -41,6 +41,13 @@ module Google
|
|
41
41
|
# and session entity types to be updated, which in turn might affect
|
42
42
|
# results of future queries.
|
43
43
|
#
|
44
|
+
# If you might use
|
45
|
+
# [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa)
|
46
|
+
# or other CCAI products now or in the future, consider using
|
47
|
+
# [AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]
|
48
|
+
# instead of `DetectIntent`. `AnalyzeContent` has additional
|
49
|
+
# functionality for Agent Assist and other CCAI products.
|
50
|
+
#
|
44
51
|
# Note: Always use agent versions for production traffic.
|
45
52
|
# See [Versions and
|
46
53
|
# environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
|
@@ -49,6 +56,13 @@ module Google
|
|
49
56
|
# and returns structured, actionable data as a result. This method is only
|
50
57
|
# available via the gRPC API (not REST).
|
51
58
|
#
|
59
|
+
# If you might use
|
60
|
+
# [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa)
|
61
|
+
# or other CCAI products now or in the future, consider using
|
62
|
+
# [StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
|
63
|
+
# instead of `StreamingDetectIntent`. `StreamingAnalyzeContent` has
|
64
|
+
# additional functionality for Agent Assist and other CCAI products.
|
65
|
+
#
|
52
66
|
# Note: Always use agent versions for production traffic.
|
53
67
|
# See [Versions and
|
54
68
|
# environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
|
@@ -165,6 +165,13 @@ module Google
|
|
165
165
|
# and session entity types to be updated, which in turn might affect
|
166
166
|
# results of future queries.
|
167
167
|
#
|
168
|
+
# If you might use
|
169
|
+
# [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa)
|
170
|
+
# or other CCAI products now or in the future, consider using
|
171
|
+
# {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content AnalyzeContent}
|
172
|
+
# instead of `DetectIntent`. `AnalyzeContent` has additional
|
173
|
+
# functionality for Agent Assist and other CCAI products.
|
174
|
+
#
|
168
175
|
# Note: Always use agent versions for production traffic.
|
169
176
|
# See [Versions and
|
170
177
|
# environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
|
@@ -237,6 +244,21 @@ module Google
|
|
237
244
|
#
|
238
245
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
239
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
|
+
#
|
240
262
|
def detect_intent request, options = nil
|
241
263
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
242
264
|
|
@@ -254,9 +276,11 @@ module Google
|
|
254
276
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
255
277
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
256
278
|
|
257
|
-
header_params = {
|
258
|
-
|
259
|
-
|
279
|
+
header_params = {}
|
280
|
+
if request.session
|
281
|
+
header_params["session"] = request.session
|
282
|
+
end
|
283
|
+
|
260
284
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
261
285
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
262
286
|
|
@@ -281,6 +305,13 @@ module Google
|
|
281
305
|
# and returns structured, actionable data as a result. This method is only
|
282
306
|
# available via the gRPC API (not REST).
|
283
307
|
#
|
308
|
+
# If you might use
|
309
|
+
# [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa)
|
310
|
+
# or other CCAI products now or in the future, consider using
|
311
|
+
# [StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
|
312
|
+
# instead of `StreamingDetectIntent`. `StreamingAnalyzeContent` has
|
313
|
+
# additional functionality for Agent Assist and other CCAI products.
|
314
|
+
#
|
284
315
|
# Note: Always use agent versions for production traffic.
|
285
316
|
# See [Versions and
|
286
317
|
# environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
|
@@ -298,6 +329,30 @@ module Google
|
|
298
329
|
#
|
299
330
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
300
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
|
+
#
|
301
356
|
def streaming_detect_intent request, options = nil
|
302
357
|
unless request.is_a? ::Enumerable
|
303
358
|
raise ::ArgumentError, "request must be an Enumerable" unless request.respond_to? :to_enum
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/v2/validation_result.proto
|
3
3
|
|
4
|
+
require 'google/api/annotations_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/api/annotations_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/cloud/dialogflow/v2/validation_result.proto", :syntax => :proto3) do
|
9
9
|
add_message "google.cloud.dialogflow.v2.ValidationError" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/v2/version.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/protobuf/empty_pb'
|
11
9
|
require 'google/protobuf/field_mask_pb'
|
12
10
|
require 'google/protobuf/timestamp_pb'
|
11
|
+
require 'google/protobuf'
|
12
|
+
|
13
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
14
|
add_file("google/cloud/dialogflow/v2/version.proto", :syntax => :proto3) do
|
15
15
|
add_message "google.cloud.dialogflow.v2.Version" do
|
@@ -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
|
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/v2/webhook.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/cloud/dialogflow/v2/context_pb'
|
7
5
|
require 'google/cloud/dialogflow/v2/intent_pb'
|
8
6
|
require 'google/cloud/dialogflow/v2/session_pb'
|
9
7
|
require 'google/cloud/dialogflow/v2/session_entity_type_pb'
|
10
8
|
require 'google/protobuf/struct_pb'
|
11
9
|
require 'google/api/annotations_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_file("google/cloud/dialogflow/v2/webhook.proto", :syntax => :proto3) do
|
14
14
|
add_message "google.cloud.dialogflow.v2.WebhookRequest" do
|
@@ -126,13 +126,14 @@ module Google
|
|
126
126
|
# Not specified. This value should never be used.
|
127
127
|
TIER_UNSPECIFIED = 0
|
128
128
|
|
129
|
-
# Standard
|
129
|
+
# Trial Edition, previously known as Standard Edition.
|
130
130
|
TIER_STANDARD = 1
|
131
131
|
|
132
|
-
# Enterprise
|
132
|
+
# Essentials Edition, previously known as Enterprise Essential Edition.
|
133
133
|
TIER_ENTERPRISE = 2
|
134
134
|
|
135
|
-
#
|
135
|
+
# Essentials Edition (same as TIER_ENTERPRISE), previously known as
|
136
|
+
# Enterprise Plus Edition.
|
136
137
|
TIER_ENTERPRISE_PLUS = 3
|
137
138
|
end
|
138
139
|
end
|