google-cloud-dialogflow-v2 0.11.0 → 0.11.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/dialogflow/v2/agent_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +39 -5
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +94 -49
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +30 -21
- data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +35 -38
- data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +3 -2
- data/lib/google/cloud/dialogflow/v2/context_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/context_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +47 -42
- data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +44 -41
- data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +44 -41
- data/lib/google/cloud/dialogflow/v2/document_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +27 -10
- data/lib/google/cloud/dialogflow/v2/documents/client.rb +73 -51
- data/lib/google/cloud/dialogflow/v2/documents/operations.rb +30 -21
- data/lib/google/cloud/dialogflow/v2/entity_type_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +45 -1
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +102 -46
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +30 -21
- data/lib/google/cloud/dialogflow/v2/environment_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/environment_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/environments/client.rb +47 -42
- data/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/fulfillment_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +35 -38
- data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/intent_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +16 -1
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +65 -43
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +30 -21
- data/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/knowledge_base_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +44 -41
- data/lib/google/cloud/dialogflow/v2/participant_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +50 -43
- data/lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +44 -41
- data/lib/google/cloud/dialogflow/v2/session_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/session_services_pb.rb +15 -1
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +49 -38
- data/lib/google/cloud/dialogflow/v2/validation_result_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/version_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/version_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/versions/client.rb +44 -41
- data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +2 -2
- data/proto_docs/google/cloud/dialogflow/v2/agent.rb +4 -3
- data/proto_docs/google/cloud/dialogflow/v2/intent.rb +4 -3
- data/proto_docs/google/cloud/dialogflow/v2/session.rb +38 -33
- metadata +8 -7
@@ -44,13 +44,12 @@ module Google
|
|
44
44
|
# See {::Google::Cloud::Dialogflow::V2::Sessions::Client::Configuration}
|
45
45
|
# for a description of the configuration fields.
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# @example
|
48
48
|
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
# end
|
49
|
+
# # Modify the configuration for all Sessions clients
|
50
|
+
# ::Google::Cloud::Dialogflow::V2::Sessions::Client.configure do |config|
|
51
|
+
# config.timeout = 10.0
|
52
|
+
# end
|
54
53
|
#
|
55
54
|
# @yield [config] Configure the Client client.
|
56
55
|
# @yieldparam config [Client::Configuration]
|
@@ -109,19 +108,15 @@ module Google
|
|
109
108
|
##
|
110
109
|
# Create a new Sessions client object.
|
111
110
|
#
|
112
|
-
#
|
113
|
-
#
|
114
|
-
# To create a new Sessions client with the default
|
115
|
-
# configuration:
|
116
|
-
#
|
117
|
-
# client = ::Google::Cloud::Dialogflow::V2::Sessions::Client.new
|
111
|
+
# @example
|
118
112
|
#
|
119
|
-
#
|
120
|
-
#
|
113
|
+
# # Create a client using the default configuration
|
114
|
+
# client = ::Google::Cloud::Dialogflow::V2::Sessions::Client.new
|
121
115
|
#
|
122
|
-
#
|
123
|
-
#
|
124
|
-
#
|
116
|
+
# # Create a client using a custom configuration
|
117
|
+
# client = ::Google::Cloud::Dialogflow::V2::Sessions::Client.new do |config|
|
118
|
+
# config.timeout = 10.0
|
119
|
+
# end
|
125
120
|
#
|
126
121
|
# @yield [config] Configure the Sessions client.
|
127
122
|
# @yieldparam config [Client::Configuration]
|
@@ -141,10 +136,9 @@ module Google
|
|
141
136
|
|
142
137
|
# Create credentials
|
143
138
|
credentials = @config.credentials
|
144
|
-
# Use self-signed JWT if the
|
139
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
145
140
|
# but only if the default endpoint does not have a region prefix.
|
146
|
-
enable_self_signed_jwt = @config.
|
147
|
-
@config.endpoint == Client.configure.endpoint &&
|
141
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
148
142
|
!@config.endpoint.split(".").first.include?("-")
|
149
143
|
credentials ||= Credentials.default scope: @config.scope,
|
150
144
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -171,6 +165,13 @@ module Google
|
|
171
165
|
# and session entity types to be updated, which in turn might affect
|
172
166
|
# results of future queries.
|
173
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
|
+
#
|
174
175
|
# Note: Always use agent versions for production traffic.
|
175
176
|
# See [Versions and
|
176
177
|
# environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
|
@@ -269,7 +270,9 @@ module Google
|
|
269
270
|
options.apply_defaults timeout: @config.rpcs.detect_intent.timeout,
|
270
271
|
metadata: metadata,
|
271
272
|
retry_policy: @config.rpcs.detect_intent.retry_policy
|
272
|
-
|
273
|
+
|
274
|
+
options.apply_defaults timeout: @config.timeout,
|
275
|
+
metadata: @config.metadata,
|
273
276
|
retry_policy: @config.retry_policy
|
274
277
|
|
275
278
|
@sessions_stub.call_rpc :detect_intent, request, options: options do |response, operation|
|
@@ -285,6 +288,13 @@ module Google
|
|
285
288
|
# and returns structured, actionable data as a result. This method is only
|
286
289
|
# available via the gRPC API (not REST).
|
287
290
|
#
|
291
|
+
# If you might use
|
292
|
+
# [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa)
|
293
|
+
# or other CCAI products now or in the future, consider using
|
294
|
+
# [StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]
|
295
|
+
# instead of `StreamingDetectIntent`. `StreamingAnalyzeContent` has
|
296
|
+
# additional functionality for Agent Assist and other CCAI products.
|
297
|
+
#
|
288
298
|
# Note: Always use agent versions for production traffic.
|
289
299
|
# See [Versions and
|
290
300
|
# environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).
|
@@ -327,7 +337,9 @@ module Google
|
|
327
337
|
options.apply_defaults timeout: @config.rpcs.streaming_detect_intent.timeout,
|
328
338
|
metadata: metadata,
|
329
339
|
retry_policy: @config.rpcs.streaming_detect_intent.retry_policy
|
330
|
-
|
340
|
+
|
341
|
+
options.apply_defaults timeout: @config.timeout,
|
342
|
+
metadata: @config.metadata,
|
331
343
|
retry_policy: @config.retry_policy
|
332
344
|
|
333
345
|
@sessions_stub.call_rpc :streaming_detect_intent, request, options: options do |response, operation|
|
@@ -351,22 +363,21 @@ module Google
|
|
351
363
|
# Configuration can be applied globally to all clients, or to a single client
|
352
364
|
# on construction.
|
353
365
|
#
|
354
|
-
#
|
355
|
-
#
|
356
|
-
#
|
357
|
-
# to 20 seconds,
|
358
|
-
#
|
359
|
-
#
|
360
|
-
#
|
361
|
-
#
|
362
|
-
#
|
363
|
-
#
|
364
|
-
#
|
365
|
-
#
|
366
|
-
#
|
367
|
-
#
|
368
|
-
#
|
369
|
-
# end
|
366
|
+
# @example
|
367
|
+
#
|
368
|
+
# # Modify the global config, setting the timeout for
|
369
|
+
# # detect_intent to 20 seconds,
|
370
|
+
# # and all remaining timeouts to 10 seconds.
|
371
|
+
# ::Google::Cloud::Dialogflow::V2::Sessions::Client.configure do |config|
|
372
|
+
# config.timeout = 10.0
|
373
|
+
# config.rpcs.detect_intent.timeout = 20.0
|
374
|
+
# end
|
375
|
+
#
|
376
|
+
# # Apply the above configuration only to a new client.
|
377
|
+
# client = ::Google::Cloud::Dialogflow::V2::Sessions::Client.new do |config|
|
378
|
+
# config.timeout = 10.0
|
379
|
+
# config.rpcs.detect_intent.timeout = 20.0
|
380
|
+
# end
|
370
381
|
#
|
371
382
|
# @!attribute [rw] endpoint
|
372
383
|
# The hostname or hostname:port of the service endpoint.
|
@@ -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
|
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::Dialogflow::V2::Versions::Client::Configuration}
|
42
42
|
# for a description of the configuration fields.
|
43
43
|
#
|
44
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
# end
|
46
|
+
# # Modify the configuration for all Versions clients
|
47
|
+
# ::Google::Cloud::Dialogflow::V2::Versions::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
|
+
# end
|
51
50
|
#
|
52
51
|
# @yield [config] Configure the Client client.
|
53
52
|
# @yieldparam config [Client::Configuration]
|
@@ -99,19 +98,15 @@ module Google
|
|
99
98
|
##
|
100
99
|
# Create a new Versions client object.
|
101
100
|
#
|
102
|
-
#
|
103
|
-
#
|
104
|
-
# To create a new Versions client with the default
|
105
|
-
# configuration:
|
106
|
-
#
|
107
|
-
# client = ::Google::Cloud::Dialogflow::V2::Versions::Client.new
|
101
|
+
# @example
|
108
102
|
#
|
109
|
-
#
|
110
|
-
#
|
103
|
+
# # Create a client using the default configuration
|
104
|
+
# client = ::Google::Cloud::Dialogflow::V2::Versions::Client.new
|
111
105
|
#
|
112
|
-
#
|
113
|
-
#
|
114
|
-
#
|
106
|
+
# # Create a client using a custom configuration
|
107
|
+
# client = ::Google::Cloud::Dialogflow::V2::Versions::Client.new do |config|
|
108
|
+
# config.timeout = 10.0
|
109
|
+
# end
|
115
110
|
#
|
116
111
|
# @yield [config] Configure the Versions client.
|
117
112
|
# @yieldparam config [Client::Configuration]
|
@@ -131,10 +126,9 @@ module Google
|
|
131
126
|
|
132
127
|
# Create credentials
|
133
128
|
credentials = @config.credentials
|
134
|
-
# Use self-signed JWT if the
|
129
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
135
130
|
# but only if the default endpoint does not have a region prefix.
|
136
|
-
enable_self_signed_jwt = @config.
|
137
|
-
@config.endpoint == Client.configure.endpoint &&
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
138
132
|
!@config.endpoint.split(".").first.include?("-")
|
139
133
|
credentials ||= Credentials.default scope: @config.scope,
|
140
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -219,7 +213,9 @@ module Google
|
|
219
213
|
options.apply_defaults timeout: @config.rpcs.list_versions.timeout,
|
220
214
|
metadata: metadata,
|
221
215
|
retry_policy: @config.rpcs.list_versions.retry_policy
|
222
|
-
|
216
|
+
|
217
|
+
options.apply_defaults timeout: @config.timeout,
|
218
|
+
metadata: @config.metadata,
|
223
219
|
retry_policy: @config.retry_policy
|
224
220
|
|
225
221
|
@versions_stub.call_rpc :list_versions, request, options: options do |response, operation|
|
@@ -291,7 +287,9 @@ module Google
|
|
291
287
|
options.apply_defaults timeout: @config.rpcs.get_version.timeout,
|
292
288
|
metadata: metadata,
|
293
289
|
retry_policy: @config.rpcs.get_version.retry_policy
|
294
|
-
|
290
|
+
|
291
|
+
options.apply_defaults timeout: @config.timeout,
|
292
|
+
metadata: @config.metadata,
|
295
293
|
retry_policy: @config.retry_policy
|
296
294
|
|
297
295
|
@versions_stub.call_rpc :get_version, request, options: options do |response, operation|
|
@@ -365,7 +363,9 @@ module Google
|
|
365
363
|
options.apply_defaults timeout: @config.rpcs.create_version.timeout,
|
366
364
|
metadata: metadata,
|
367
365
|
retry_policy: @config.rpcs.create_version.retry_policy
|
368
|
-
|
366
|
+
|
367
|
+
options.apply_defaults timeout: @config.timeout,
|
368
|
+
metadata: @config.metadata,
|
369
369
|
retry_policy: @config.retry_policy
|
370
370
|
|
371
371
|
@versions_stub.call_rpc :create_version, request, options: options do |response, operation|
|
@@ -442,7 +442,9 @@ module Google
|
|
442
442
|
options.apply_defaults timeout: @config.rpcs.update_version.timeout,
|
443
443
|
metadata: metadata,
|
444
444
|
retry_policy: @config.rpcs.update_version.retry_policy
|
445
|
-
|
445
|
+
|
446
|
+
options.apply_defaults timeout: @config.timeout,
|
447
|
+
metadata: @config.metadata,
|
446
448
|
retry_policy: @config.retry_policy
|
447
449
|
|
448
450
|
@versions_stub.call_rpc :update_version, request, options: options do |response, operation|
|
@@ -513,7 +515,9 @@ module Google
|
|
513
515
|
options.apply_defaults timeout: @config.rpcs.delete_version.timeout,
|
514
516
|
metadata: metadata,
|
515
517
|
retry_policy: @config.rpcs.delete_version.retry_policy
|
516
|
-
|
518
|
+
|
519
|
+
options.apply_defaults timeout: @config.timeout,
|
520
|
+
metadata: @config.metadata,
|
517
521
|
retry_policy: @config.retry_policy
|
518
522
|
|
519
523
|
@versions_stub.call_rpc :delete_version, request, options: options do |response, operation|
|
@@ -537,22 +541,21 @@ module Google
|
|
537
541
|
# Configuration can be applied globally to all clients, or to a single client
|
538
542
|
# on construction.
|
539
543
|
#
|
540
|
-
#
|
541
|
-
#
|
542
|
-
#
|
543
|
-
# to 20 seconds,
|
544
|
-
#
|
545
|
-
#
|
546
|
-
#
|
547
|
-
#
|
548
|
-
#
|
549
|
-
#
|
550
|
-
#
|
551
|
-
#
|
552
|
-
#
|
553
|
-
#
|
554
|
-
#
|
555
|
-
# end
|
544
|
+
# @example
|
545
|
+
#
|
546
|
+
# # Modify the global config, setting the timeout for
|
547
|
+
# # list_versions to 20 seconds,
|
548
|
+
# # and all remaining timeouts to 10 seconds.
|
549
|
+
# ::Google::Cloud::Dialogflow::V2::Versions::Client.configure do |config|
|
550
|
+
# config.timeout = 10.0
|
551
|
+
# config.rpcs.list_versions.timeout = 20.0
|
552
|
+
# end
|
553
|
+
#
|
554
|
+
# # Apply the above configuration only to a new client.
|
555
|
+
# client = ::Google::Cloud::Dialogflow::V2::Versions::Client.new do |config|
|
556
|
+
# config.timeout = 10.0
|
557
|
+
# config.rpcs.list_versions.timeout = 20.0
|
558
|
+
# end
|
556
559
|
#
|
557
560
|
# @!attribute [rw] endpoint
|
558
561
|
# The hostname or hostname:port of the service endpoint.
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/v2/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
|
@@ -113,8 +113,9 @@ module Google
|
|
113
113
|
# @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::Message::Platform>]
|
114
114
|
# Optional. The list of platforms for which the first responses will be
|
115
115
|
# copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
|
116
|
-
# @!attribute [
|
116
|
+
# @!attribute [r] root_followup_intent_name
|
117
117
|
# @return [::String]
|
118
|
+
# Output only.
|
118
119
|
# Read-only. The unique identifier of the root intent in the chain of
|
119
120
|
# followup intents. It identifies the correct followup intents chain for
|
120
121
|
# this intent. We populate this field only in the output.
|
@@ -130,9 +131,9 @@ module Google
|
|
130
131
|
#
|
131
132
|
# It identifies the parent followup intent.
|
132
133
|
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
|
133
|
-
# @!attribute [
|
134
|
+
# @!attribute [r] followup_intent_info
|
134
135
|
# @return [::Array<::Google::Cloud::Dialogflow::V2::Intent::FollowupIntentInfo>]
|
135
|
-
# Read-only. Information about all followup intents that have this intent as
|
136
|
+
# Output only. Read-only. Information about all followup intents that have this intent as
|
136
137
|
# a direct or indirect parent. We populate this field only in the output.
|
137
138
|
class Intent
|
138
139
|
include ::Google::Protobuf::MessageExts
|
@@ -406,10 +406,11 @@ module Google
|
|
406
406
|
#
|
407
407
|
# Multiple response messages can be returned in order:
|
408
408
|
#
|
409
|
-
# 1. If the
|
410
|
-
#
|
411
|
-
#
|
412
|
-
#
|
409
|
+
# 1. If the `StreamingDetectIntentRequest.input_audio` field was
|
410
|
+
# set, the `recognition_result` field is populated for one
|
411
|
+
# or more messages.
|
412
|
+
# See the {::Google::Cloud::Dialogflow::V2::StreamingRecognitionResult StreamingRecognitionResult} message for details
|
413
|
+
# about the result message sequence.
|
413
414
|
#
|
414
415
|
# 2. The next message contains `response_id`, `query_result`
|
415
416
|
# and optionally `webhook_status` if a WebHook was called.
|
@@ -450,35 +451,39 @@ module Google
|
|
450
451
|
# that is currently being processed or an indication that this is the end
|
451
452
|
# of the single requested utterance.
|
452
453
|
#
|
453
|
-
#
|
454
|
-
#
|
455
|
-
#
|
456
|
-
#
|
457
|
-
#
|
458
|
-
#
|
459
|
-
#
|
460
|
-
#
|
461
|
-
#
|
462
|
-
#
|
463
|
-
#
|
464
|
-
#
|
465
|
-
#
|
466
|
-
#
|
467
|
-
#
|
468
|
-
#
|
469
|
-
#
|
470
|
-
#
|
471
|
-
#
|
472
|
-
#
|
473
|
-
#
|
474
|
-
#
|
475
|
-
#
|
476
|
-
#
|
477
|
-
#
|
478
|
-
#
|
479
|
-
#
|
480
|
-
#
|
481
|
-
#
|
454
|
+
# While end-user audio is being processed, Dialogflow sends a series of
|
455
|
+
# results. Each result may contain a `transcript` value. A transcript
|
456
|
+
# represents a portion of the utterance. While the recognizer is processing
|
457
|
+
# audio, transcript values may be interim values or finalized values.
|
458
|
+
# Once a transcript is finalized, the `is_final` value is set to true and
|
459
|
+
# processing continues for the next transcript.
|
460
|
+
#
|
461
|
+
# If `StreamingDetectIntentRequest.query_input.audio_config.single_utterance`
|
462
|
+
# was true, and the recognizer has completed processing audio,
|
463
|
+
# the `message_type` value is set to `END_OF_SINGLE_UTTERANCE and the
|
464
|
+
# following (last) result contains the last finalized transcript.
|
465
|
+
#
|
466
|
+
# The complete end-user utterance is determined by concatenating the
|
467
|
+
# finalized transcript values received for the series of results.
|
468
|
+
#
|
469
|
+
# In the following example, single utterance is enabled. In the case where
|
470
|
+
# single utterance is not enabled, result 7 would not occur.
|
471
|
+
#
|
472
|
+
# ```
|
473
|
+
# Num | transcript | message_type | is_final
|
474
|
+
# --- | ----------------------- | ----------------------- | --------
|
475
|
+
# 1 | "tube" | TRANSCRIPT | false
|
476
|
+
# 2 | "to be a" | TRANSCRIPT | false
|
477
|
+
# 3 | "to be" | TRANSCRIPT | false
|
478
|
+
# 4 | "to be or not to be" | TRANSCRIPT | true
|
479
|
+
# 5 | "that's" | TRANSCRIPT | false
|
480
|
+
# 6 | "that is | TRANSCRIPT | false
|
481
|
+
# 7 | unset | END_OF_SINGLE_UTTERANCE | unset
|
482
|
+
# 8 | " that is the question" | TRANSCRIPT | true
|
483
|
+
# ```
|
484
|
+
#
|
485
|
+
# Concatenating the finalized transcripts with `is_final` set to true,
|
486
|
+
# the complete utterance becomes "to be or not to be that is the question".
|
482
487
|
# @!attribute [rw] message_type
|
483
488
|
# @return [::Google::Cloud::Dialogflow::V2::StreamingRecognitionResult::MessageType]
|
484
489
|
# Type of the result message.
|
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.4
|
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-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -160,9 +160,10 @@ description: Dialogflow is an end-to-end, build-once deploy-everywhere developme
|
|
160
160
|
suite for creating conversational interfaces for websites, mobile applications,
|
161
161
|
popular messaging platforms, and IoT devices. You can use it to build interfaces
|
162
162
|
(such as chatbots and conversational IVR) that enable natural and rich interactions
|
163
|
-
between your users and your business.
|
164
|
-
|
165
|
-
|
163
|
+
between your users and your business. This client is for Dialogflow ES, providing
|
164
|
+
the standard agent type suitable for small and simple agents. Note that google-cloud-dialogflow-v2
|
165
|
+
is a version-specific client library. For most uses, we recommend installing the
|
166
|
+
main client library google-cloud-dialogflow instead. See the readme for more details.
|
166
167
|
email: googleapis-packages@google.com
|
167
168
|
executables: []
|
168
169
|
extensions: []
|