google-cloud-dialogflow-v2 0.3.0 → 0.4.0
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 +48 -1
- data/lib/google-cloud-dialogflow-v2.rb +21 -1
- data/lib/google/cloud/dialogflow/v2.rb +16 -0
- data/lib/google/cloud/dialogflow/v2/agents.rb +58 -2
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +88 -65
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +39 -33
- data/lib/google/cloud/dialogflow/v2/contexts.rb +47 -1
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +62 -39
- data/lib/google/cloud/dialogflow/v2/contexts/paths.rb +43 -0
- data/lib/google/cloud/dialogflow/v2/entity_types.rb +58 -2
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +103 -65
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +39 -33
- data/lib/google/cloud/dialogflow/v2/entity_types/paths.rb +14 -0
- data/lib/google/cloud/dialogflow/v2/intents.rb +62 -2
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +74 -47
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +39 -33
- data/lib/google/cloud/dialogflow/v2/intents/paths.rb +14 -0
- data/lib/google/cloud/dialogflow/v2/session_entity_types.rb +46 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +48 -53
- data/lib/google/cloud/dialogflow/v2/session_entity_types/paths.rb +43 -0
- data/lib/google/cloud/dialogflow/v2/sessions.rb +33 -1
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +15 -28
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/proto_docs/google/cloud/dialogflow/v2/agent.rb +0 -2
- data/proto_docs/google/cloud/dialogflow/v2/context.rb +1 -1
- data/proto_docs/google/cloud/dialogflow/v2/session.rb +28 -1
- metadata +2 -2
@@ -24,6 +24,20 @@ module Google
|
|
24
24
|
module Intents
|
25
25
|
# Path helper methods for the Intents API.
|
26
26
|
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Agent resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/agent`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
#
|
36
|
+
# @return [String]
|
37
|
+
def agent_path project:
|
38
|
+
"projects/#{project}/agent"
|
39
|
+
end
|
40
|
+
|
27
41
|
##
|
28
42
|
# Create a fully-qualified Context resource string.
|
29
43
|
#
|
@@ -16,5 +16,50 @@
|
|
16
16
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
|
-
require "
|
19
|
+
require "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/dialogflow/v2/version"
|
24
|
+
|
20
25
|
require "google/cloud/dialogflow/v2/session_entity_types/credentials"
|
26
|
+
require "google/cloud/dialogflow/v2/session_entity_types/paths"
|
27
|
+
require "google/cloud/dialogflow/v2/session_entity_types/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Cloud
|
31
|
+
module Dialogflow
|
32
|
+
module V2
|
33
|
+
##
|
34
|
+
# Entities are extracted from user input and represent parameters that are
|
35
|
+
# meaningful to your application. For example, a date range, a proper name
|
36
|
+
# such as a geographic location or landmark, and so on. Entities represent
|
37
|
+
# actionable data for your application.
|
38
|
+
#
|
39
|
+
# Session entity types are referred to as **User** entity types and are
|
40
|
+
# entities that are built for an individual user such as
|
41
|
+
# favorites, preferences, playlists, and so on. You can redefine a session
|
42
|
+
# entity type at the session level.
|
43
|
+
#
|
44
|
+
# Session entity methods do not work with Google Assistant integration.
|
45
|
+
# Contact Dialogflow support if you need to use session entities
|
46
|
+
# with Google Assistant integration.
|
47
|
+
#
|
48
|
+
# For more information about entity types, see the
|
49
|
+
# [Dialogflow
|
50
|
+
# documentation](https://cloud.google.com/dialogflow/docs/entities-overview).
|
51
|
+
#
|
52
|
+
# To load this service and instantiate a client:
|
53
|
+
#
|
54
|
+
# require "google/cloud/dialogflow/v2/session_entity_types"
|
55
|
+
# client = Google::Cloud::Dialogflow::V2::SessionEntityTypes::Client.new
|
56
|
+
#
|
57
|
+
module SessionEntityTypes
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
helper_path = ::File.join __dir__, "session_entity_types", "helpers.rb"
|
65
|
+
require "google/cloud/dialogflow/v2/session_entity_types/helpers" if ::File.file? helper_path
|
@@ -16,15 +16,8 @@
|
|
16
16
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
|
-
require "gapic/common"
|
20
|
-
require "gapic/config"
|
21
|
-
require "gapic/config/method"
|
22
|
-
|
23
19
|
require "google/cloud/errors"
|
24
|
-
require "google/cloud/dialogflow/v2/version"
|
25
20
|
require "google/cloud/dialogflow/v2/session_entity_type_pb"
|
26
|
-
require "google/cloud/dialogflow/v2/session_entity_types/credentials"
|
27
|
-
require "google/cloud/dialogflow/v2/session_entity_types/paths"
|
28
21
|
|
29
22
|
module Google
|
30
23
|
module Cloud
|
@@ -202,16 +195,20 @@ module Google
|
|
202
195
|
# with Google Assistant integration.
|
203
196
|
#
|
204
197
|
# @overload list_session_entity_types(request, options = nil)
|
205
|
-
#
|
206
|
-
#
|
198
|
+
# Pass arguments to `list_session_entity_types` via a request object, either of type
|
199
|
+
# {Google::Cloud::Dialogflow::V2::ListSessionEntityTypesRequest} or an equivalent Hash.
|
207
200
|
#
|
208
|
-
#
|
209
|
-
#
|
210
|
-
#
|
201
|
+
# @param request [Google::Cloud::Dialogflow::V2::ListSessionEntityTypesRequest, Hash]
|
202
|
+
# A request object representing the call parameters. Required. To specify no
|
203
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
211
204
|
# @param options [Gapic::CallOptions, Hash]
|
212
205
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
213
206
|
#
|
214
207
|
# @overload list_session_entity_types(parent: nil, page_size: nil, page_token: nil)
|
208
|
+
# Pass arguments to `list_session_entity_types` via keyword arguments. Note that at
|
209
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
210
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
211
|
+
#
|
215
212
|
# @param parent [String]
|
216
213
|
# Required. The session to list all session entity types from.
|
217
214
|
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
@@ -225,7 +222,6 @@ module Google
|
|
225
222
|
# @param page_token [String]
|
226
223
|
# Optional. The next_page_token value returned from a previous list request.
|
227
224
|
#
|
228
|
-
#
|
229
225
|
# @yield [response, operation] Access the result along with the RPC operation
|
230
226
|
# @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Dialogflow::V2::SessionEntityType>]
|
231
227
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -280,16 +276,20 @@ module Google
|
|
280
276
|
# with Google Assistant integration.
|
281
277
|
#
|
282
278
|
# @overload get_session_entity_type(request, options = nil)
|
283
|
-
#
|
284
|
-
#
|
279
|
+
# Pass arguments to `get_session_entity_type` via a request object, either of type
|
280
|
+
# {Google::Cloud::Dialogflow::V2::GetSessionEntityTypeRequest} or an equivalent Hash.
|
285
281
|
#
|
286
|
-
#
|
287
|
-
#
|
288
|
-
#
|
282
|
+
# @param request [Google::Cloud::Dialogflow::V2::GetSessionEntityTypeRequest, Hash]
|
283
|
+
# A request object representing the call parameters. Required. To specify no
|
284
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
289
285
|
# @param options [Gapic::CallOptions, Hash]
|
290
286
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
291
287
|
#
|
292
288
|
# @overload get_session_entity_type(name: nil)
|
289
|
+
# Pass arguments to `get_session_entity_type` via keyword arguments. Note that at
|
290
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
291
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
292
|
+
#
|
293
293
|
# @param name [String]
|
294
294
|
# Required. The name of the session entity type. Format:
|
295
295
|
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
@@ -299,7 +299,6 @@ module Google
|
|
299
299
|
# If `Environment ID` is not specified, we assume default 'draft'
|
300
300
|
# environment. If `User ID` is not specified, we assume default '-' user.
|
301
301
|
#
|
302
|
-
#
|
303
302
|
# @yield [response, operation] Access the result along with the RPC operation
|
304
303
|
# @yieldparam response [Google::Cloud::Dialogflow::V2::SessionEntityType]
|
305
304
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -356,19 +355,20 @@ module Google
|
|
356
355
|
# with Google Assistant integration.
|
357
356
|
#
|
358
357
|
# @overload create_session_entity_type(request, options = nil)
|
359
|
-
#
|
360
|
-
#
|
361
|
-
#
|
362
|
-
# If the specified session entity type already exists, overrides the session
|
363
|
-
# entity type.
|
358
|
+
# Pass arguments to `create_session_entity_type` via a request object, either of type
|
359
|
+
# {Google::Cloud::Dialogflow::V2::CreateSessionEntityTypeRequest} or an equivalent Hash.
|
364
360
|
#
|
365
|
-
#
|
366
|
-
#
|
367
|
-
#
|
361
|
+
# @param request [Google::Cloud::Dialogflow::V2::CreateSessionEntityTypeRequest, Hash]
|
362
|
+
# A request object representing the call parameters. Required. To specify no
|
363
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
368
364
|
# @param options [Gapic::CallOptions, Hash]
|
369
365
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
370
366
|
#
|
371
367
|
# @overload create_session_entity_type(parent: nil, session_entity_type: nil)
|
368
|
+
# Pass arguments to `create_session_entity_type` via keyword arguments. Note that at
|
369
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
370
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
371
|
+
#
|
372
372
|
# @param parent [String]
|
373
373
|
# Required. The session to create a session entity type for.
|
374
374
|
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
@@ -376,10 +376,9 @@ module Google
|
|
376
376
|
# sessions/<Session ID>`.
|
377
377
|
# If `Environment ID` is not specified, we assume default 'draft'
|
378
378
|
# environment. If `User ID` is not specified, we assume default '-' user.
|
379
|
-
# @param session_entity_type [Google::Cloud::Dialogflow::V2::SessionEntityType
|
379
|
+
# @param session_entity_type [Google::Cloud::Dialogflow::V2::SessionEntityType, Hash]
|
380
380
|
# Required. The session entity type to create.
|
381
381
|
#
|
382
|
-
#
|
383
382
|
# @yield [response, operation] Access the result along with the RPC operation
|
384
383
|
# @yieldparam response [Google::Cloud::Dialogflow::V2::SessionEntityType]
|
385
384
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -433,22 +432,25 @@ module Google
|
|
433
432
|
# with Google Assistant integration.
|
434
433
|
#
|
435
434
|
# @overload update_session_entity_type(request, options = nil)
|
436
|
-
#
|
437
|
-
#
|
435
|
+
# Pass arguments to `update_session_entity_type` via a request object, either of type
|
436
|
+
# {Google::Cloud::Dialogflow::V2::UpdateSessionEntityTypeRequest} or an equivalent Hash.
|
438
437
|
#
|
439
|
-
#
|
440
|
-
#
|
441
|
-
#
|
438
|
+
# @param request [Google::Cloud::Dialogflow::V2::UpdateSessionEntityTypeRequest, Hash]
|
439
|
+
# A request object representing the call parameters. Required. To specify no
|
440
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
442
441
|
# @param options [Gapic::CallOptions, Hash]
|
443
442
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
444
443
|
#
|
445
444
|
# @overload update_session_entity_type(session_entity_type: nil, update_mask: nil)
|
446
|
-
#
|
445
|
+
# Pass arguments to `update_session_entity_type` via keyword arguments. Note that at
|
446
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
447
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
448
|
+
#
|
449
|
+
# @param session_entity_type [Google::Cloud::Dialogflow::V2::SessionEntityType, Hash]
|
447
450
|
# Required. The session entity type to update.
|
448
|
-
# @param update_mask [Google::Protobuf::FieldMask
|
451
|
+
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
449
452
|
# Optional. The mask to control which fields get updated.
|
450
453
|
#
|
451
|
-
#
|
452
454
|
# @yield [response, operation] Access the result along with the RPC operation
|
453
455
|
# @yieldparam response [Google::Cloud::Dialogflow::V2::SessionEntityType]
|
454
456
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -502,16 +504,20 @@ module Google
|
|
502
504
|
# with Google Assistant integration.
|
503
505
|
#
|
504
506
|
# @overload delete_session_entity_type(request, options = nil)
|
505
|
-
#
|
506
|
-
#
|
507
|
+
# Pass arguments to `delete_session_entity_type` via a request object, either of type
|
508
|
+
# {Google::Cloud::Dialogflow::V2::DeleteSessionEntityTypeRequest} or an equivalent Hash.
|
507
509
|
#
|
508
|
-
#
|
509
|
-
#
|
510
|
-
#
|
510
|
+
# @param request [Google::Cloud::Dialogflow::V2::DeleteSessionEntityTypeRequest, Hash]
|
511
|
+
# A request object representing the call parameters. Required. To specify no
|
512
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
511
513
|
# @param options [Gapic::CallOptions, Hash]
|
512
514
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
513
515
|
#
|
514
516
|
# @overload delete_session_entity_type(name: nil)
|
517
|
+
# Pass arguments to `delete_session_entity_type` via keyword arguments. Note that at
|
518
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
519
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
520
|
+
#
|
515
521
|
# @param name [String]
|
516
522
|
# Required. The name of the entity type to delete. Format:
|
517
523
|
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
@@ -521,7 +527,6 @@ module Google
|
|
521
527
|
# If `Environment ID` is not specified, we assume default 'draft'
|
522
528
|
# environment. If `User ID` is not specified, we assume default '-' user.
|
523
529
|
#
|
524
|
-
#
|
525
530
|
# @yield [response, operation] Access the result along with the RPC operation
|
526
531
|
# @yieldparam response [Google::Protobuf::Empty]
|
527
532
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -748,13 +753,3 @@ module Google
|
|
748
753
|
end
|
749
754
|
end
|
750
755
|
end
|
751
|
-
|
752
|
-
# rubocop:disable Lint/HandleExceptions
|
753
|
-
|
754
|
-
# Once client is loaded, load helpers.rb if it exists.
|
755
|
-
begin
|
756
|
-
require "google/cloud/dialogflow/v2/session_entity_types/helpers"
|
757
|
-
rescue LoadError
|
758
|
-
end
|
759
|
-
|
760
|
-
# rubocop:enable Lint/HandleExceptions
|
@@ -24,6 +24,49 @@ module Google
|
|
24
24
|
module SessionEntityTypes
|
25
25
|
# Path helper methods for the SessionEntityTypes API.
|
26
26
|
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Session resource string.
|
29
|
+
#
|
30
|
+
# @overload session_path(project:, session:)
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/agent/sessions/{session}`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
# @param session [String]
|
37
|
+
#
|
38
|
+
# @overload session_path(project:, environment:, user:, session:)
|
39
|
+
# The resource will be in the following format:
|
40
|
+
#
|
41
|
+
# `projects/{project}/agent/environments/{environment}/users/{user}/sessions/{session}`
|
42
|
+
#
|
43
|
+
# @param project [String]
|
44
|
+
# @param environment [String]
|
45
|
+
# @param user [String]
|
46
|
+
# @param session [String]
|
47
|
+
#
|
48
|
+
# @return [String]
|
49
|
+
def session_path **args
|
50
|
+
resources = {
|
51
|
+
"project:session" => (proc do |project:, session:|
|
52
|
+
raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
53
|
+
|
54
|
+
"projects/#{project}/agent/sessions/#{session}"
|
55
|
+
end),
|
56
|
+
"environment:project:session:user" => (proc do |project:, environment:, user:, session:|
|
57
|
+
raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
58
|
+
raise ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
|
59
|
+
raise ArgumentError, "user cannot contain /" if user.to_s.include? "/"
|
60
|
+
|
61
|
+
"projects/#{project}/agent/environments/#{environment}/users/#{user}/sessions/#{session}"
|
62
|
+
end)
|
63
|
+
}
|
64
|
+
|
65
|
+
resource = resources[args.keys.sort.join(":")]
|
66
|
+
raise ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
67
|
+
resource.call(**args)
|
68
|
+
end
|
69
|
+
|
27
70
|
##
|
28
71
|
# Create a fully-qualified SessionEntityType resource string.
|
29
72
|
#
|
@@ -16,5 +16,37 @@
|
|
16
16
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
|
-
require "
|
19
|
+
require "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/dialogflow/v2/version"
|
24
|
+
|
20
25
|
require "google/cloud/dialogflow/v2/sessions/credentials"
|
26
|
+
require "google/cloud/dialogflow/v2/sessions/paths"
|
27
|
+
require "google/cloud/dialogflow/v2/sessions/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Cloud
|
31
|
+
module Dialogflow
|
32
|
+
module V2
|
33
|
+
##
|
34
|
+
# A session represents an interaction with a user. You retrieve user input
|
35
|
+
# and pass it to the {Google::Cloud::Dialogflow::V2::Sessions::Client#detect_intent DetectIntent} (or
|
36
|
+
# {Google::Cloud::Dialogflow::V2::Sessions::Client#streaming_detect_intent StreamingDetectIntent}) method to determine
|
37
|
+
# user intent and respond.
|
38
|
+
#
|
39
|
+
# To load this service and instantiate a client:
|
40
|
+
#
|
41
|
+
# require "google/cloud/dialogflow/v2/sessions"
|
42
|
+
# client = Google::Cloud::Dialogflow::V2::Sessions::Client.new
|
43
|
+
#
|
44
|
+
module Sessions
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
helper_path = ::File.join __dir__, "sessions", "helpers.rb"
|
52
|
+
require "google/cloud/dialogflow/v2/sessions/helpers" if ::File.file? helper_path
|
@@ -16,15 +16,8 @@
|
|
16
16
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
|
-
require "gapic/common"
|
20
|
-
require "gapic/config"
|
21
|
-
require "gapic/config/method"
|
22
|
-
|
23
19
|
require "google/cloud/errors"
|
24
|
-
require "google/cloud/dialogflow/v2/version"
|
25
20
|
require "google/cloud/dialogflow/v2/session_pb"
|
26
|
-
require "google/cloud/dialogflow/v2/sessions/credentials"
|
27
|
-
require "google/cloud/dialogflow/v2/sessions/paths"
|
28
21
|
|
29
22
|
module Google
|
30
23
|
module Cloud
|
@@ -164,15 +157,20 @@ module Google
|
|
164
157
|
# results of future queries.
|
165
158
|
#
|
166
159
|
# @overload detect_intent(request, options = nil)
|
167
|
-
#
|
168
|
-
#
|
169
|
-
#
|
170
|
-
#
|
171
|
-
#
|
160
|
+
# Pass arguments to `detect_intent` via a request object, either of type
|
161
|
+
# {Google::Cloud::Dialogflow::V2::DetectIntentRequest} or an equivalent Hash.
|
162
|
+
#
|
163
|
+
# @param request [Google::Cloud::Dialogflow::V2::DetectIntentRequest, Hash]
|
164
|
+
# A request object representing the call parameters. Required. To specify no
|
165
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
172
166
|
# @param options [Gapic::CallOptions, Hash]
|
173
167
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
174
168
|
#
|
175
169
|
# @overload detect_intent(session: nil, query_params: nil, query_input: nil, output_audio_config: nil, output_audio_config_mask: nil, input_audio: nil)
|
170
|
+
# Pass arguments to `detect_intent` via keyword arguments. Note that at
|
171
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
172
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
173
|
+
#
|
176
174
|
# @param session [String]
|
177
175
|
# Required. The name of the session this query is sent to. Format:
|
178
176
|
# `projects/<Project ID>/agent/sessions/<Session ID>`, or
|
@@ -183,9 +181,9 @@ module Google
|
|
183
181
|
# `User Id`. They can be a random number or some type of user and session
|
184
182
|
# identifiers (preferably hashed). The length of the `Session ID` and
|
185
183
|
# `User ID` must not exceed 36 characters.
|
186
|
-
# @param query_params [Google::Cloud::Dialogflow::V2::QueryParameters
|
184
|
+
# @param query_params [Google::Cloud::Dialogflow::V2::QueryParameters, Hash]
|
187
185
|
# The parameters of this query.
|
188
|
-
# @param query_input [Google::Cloud::Dialogflow::V2::QueryInput
|
186
|
+
# @param query_input [Google::Cloud::Dialogflow::V2::QueryInput, Hash]
|
189
187
|
# Required. The input specification. It can be set to:
|
190
188
|
#
|
191
189
|
# 1. an audio config
|
@@ -194,11 +192,11 @@ module Google
|
|
194
192
|
# 2. a conversational query in the form of text, or
|
195
193
|
#
|
196
194
|
# 3. an event that specifies which intent to trigger.
|
197
|
-
# @param output_audio_config [Google::Cloud::Dialogflow::V2::OutputAudioConfig
|
195
|
+
# @param output_audio_config [Google::Cloud::Dialogflow::V2::OutputAudioConfig, Hash]
|
198
196
|
# Instructs the speech synthesizer how to generate the output
|
199
197
|
# audio. If this field is not set and agent-level speech synthesizer is not
|
200
198
|
# configured, no output audio is generated.
|
201
|
-
# @param output_audio_config_mask [Google::Protobuf::FieldMask
|
199
|
+
# @param output_audio_config_mask [Google::Protobuf::FieldMask, Hash]
|
202
200
|
# Mask for {Google::Cloud::Dialogflow::V2::DetectIntentRequest#output_audio_config output_audio_config} indicating which settings in this
|
203
201
|
# request-level config should override speech synthesizer settings defined at
|
204
202
|
# agent-level.
|
@@ -210,7 +208,6 @@ module Google
|
|
210
208
|
# should be populated iff `query_input` is set to an input audio config.
|
211
209
|
# A single request can contain up to 1 minute of speech audio data.
|
212
210
|
#
|
213
|
-
#
|
214
211
|
# @yield [response, operation] Access the result along with the RPC operation
|
215
212
|
# @yieldparam response [Google::Cloud::Dialogflow::V2::DetectIntentResponse]
|
216
213
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -261,7 +258,7 @@ module Google
|
|
261
258
|
# and returns structured, actionable data as a result. This method is only
|
262
259
|
# available via the gRPC API (not REST).
|
263
260
|
#
|
264
|
-
# @param request [Gapic::StreamInput, Enumerable<Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest
|
261
|
+
# @param request [Gapic::StreamInput, Enumerable<Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest, Hash>]
|
265
262
|
# An enumerable of {Google::Cloud::Dialogflow::V2::StreamingDetectIntentRequest} instances.
|
266
263
|
# @param options [Gapic::CallOptions, Hash]
|
267
264
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
@@ -470,13 +467,3 @@ module Google
|
|
470
467
|
end
|
471
468
|
end
|
472
469
|
end
|
473
|
-
|
474
|
-
# rubocop:disable Lint/HandleExceptions
|
475
|
-
|
476
|
-
# Once client is loaded, load helpers.rb if it exists.
|
477
|
-
begin
|
478
|
-
require "google/cloud/dialogflow/v2/sessions/helpers"
|
479
|
-
rescue LoadError
|
480
|
-
end
|
481
|
-
|
482
|
-
# rubocop:enable Lint/HandleExceptions
|