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.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/dialogflow/v2/agent_pb.rb +2 -2
  4. data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +39 -5
  5. data/lib/google/cloud/dialogflow/v2/agents/client.rb +94 -49
  6. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +30 -21
  7. data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +2 -2
  8. data/lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb +1 -1
  9. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +35 -38
  10. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +3 -2
  11. data/lib/google/cloud/dialogflow/v2/context_pb.rb +2 -2
  12. data/lib/google/cloud/dialogflow/v2/context_services_pb.rb +1 -1
  13. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +47 -42
  14. data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +2 -2
  15. data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +2 -2
  16. data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +2 -2
  17. data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +1 -1
  18. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +44 -41
  19. data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +1 -1
  20. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +44 -41
  21. data/lib/google/cloud/dialogflow/v2/document_pb.rb +2 -2
  22. data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +27 -10
  23. data/lib/google/cloud/dialogflow/v2/documents/client.rb +73 -51
  24. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +30 -21
  25. data/lib/google/cloud/dialogflow/v2/entity_type_pb.rb +2 -2
  26. data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +45 -1
  27. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +102 -46
  28. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +30 -21
  29. data/lib/google/cloud/dialogflow/v2/environment_pb.rb +2 -2
  30. data/lib/google/cloud/dialogflow/v2/environment_services_pb.rb +1 -1
  31. data/lib/google/cloud/dialogflow/v2/environments/client.rb +47 -42
  32. data/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb +2 -2
  33. data/lib/google/cloud/dialogflow/v2/fulfillment_services_pb.rb +1 -1
  34. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +35 -38
  35. data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +2 -2
  36. data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +2 -2
  37. data/lib/google/cloud/dialogflow/v2/intent_pb.rb +2 -2
  38. data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +16 -1
  39. data/lib/google/cloud/dialogflow/v2/intents/client.rb +65 -43
  40. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +30 -21
  41. data/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +2 -2
  42. data/lib/google/cloud/dialogflow/v2/knowledge_base_services_pb.rb +1 -1
  43. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +44 -41
  44. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +2 -2
  45. data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +1 -1
  46. data/lib/google/cloud/dialogflow/v2/participants/client.rb +50 -43
  47. data/lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb +2 -2
  48. data/lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb +1 -1
  49. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +44 -41
  50. data/lib/google/cloud/dialogflow/v2/session_pb.rb +2 -2
  51. data/lib/google/cloud/dialogflow/v2/session_services_pb.rb +15 -1
  52. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +49 -38
  53. data/lib/google/cloud/dialogflow/v2/validation_result_pb.rb +1 -1
  54. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  55. data/lib/google/cloud/dialogflow/v2/version_pb.rb +2 -2
  56. data/lib/google/cloud/dialogflow/v2/version_services_pb.rb +1 -1
  57. data/lib/google/cloud/dialogflow/v2/versions/client.rb +44 -41
  58. data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +2 -2
  59. data/proto_docs/google/cloud/dialogflow/v2/agent.rb +4 -3
  60. data/proto_docs/google/cloud/dialogflow/v2/intent.rb +4 -3
  61. data/proto_docs/google/cloud/dialogflow/v2/session.rb +38 -33
  62. 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
- # ## Example
47
+ # @example
48
48
  #
49
- # To modify the configuration for all Sessions clients:
50
- #
51
- # ::Google::Cloud::Dialogflow::V2::Sessions::Client.configure do |config|
52
- # config.timeout = 10.0
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
- # ## Examples
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
- # To create a new Sessions client with a custom
120
- # configuration:
113
+ # # Create a client using the default configuration
114
+ # client = ::Google::Cloud::Dialogflow::V2::Sessions::Client.new
121
115
  #
122
- # client = ::Google::Cloud::Dialogflow::V2::Sessions::Client.new do |config|
123
- # config.timeout = 10.0
124
- # end
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 scope and endpoint are unchanged from default,
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.scope == Client.configure.scope &&
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
355
- #
356
- # To modify the global config, setting the timeout for detect_intent
357
- # to 20 seconds, and all remaining timeouts to 10 seconds:
358
- #
359
- # ::Google::Cloud::Dialogflow::V2::Sessions::Client.configure do |config|
360
- # config.timeout = 10.0
361
- # config.rpcs.detect_intent.timeout = 20.0
362
- # end
363
- #
364
- # To apply the above configuration only to a new client:
365
- #
366
- # client = ::Google::Cloud::Dialogflow::V2::Sessions::Client.new do |config|
367
- # config.timeout = 10.0
368
- # config.rpcs.detect_intent.timeout = 20.0
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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dialogflow
23
23
  module V2
24
- VERSION = "0.11.0"
24
+ VERSION = "0.11.4"
25
25
  end
26
26
  end
27
27
  end
@@ -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
@@ -27,7 +27,7 @@ module Google
27
27
  # Service for managing [Versions][google.cloud.dialogflow.v2.Version].
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
@@ -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
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all Versions clients:
47
- #
48
- # ::Google::Cloud::Dialogflow::V2::Versions::Client.configure do |config|
49
- # config.timeout = 10.0
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
- # ## Examples
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
- # To create a new Versions client with a custom
110
- # configuration:
103
+ # # Create a client using the default configuration
104
+ # client = ::Google::Cloud::Dialogflow::V2::Versions::Client.new
111
105
  #
112
- # client = ::Google::Cloud::Dialogflow::V2::Versions::Client.new do |config|
113
- # config.timeout = 10.0
114
- # end
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 scope and endpoint are unchanged from default,
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.scope == Client.configure.scope &&
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
541
- #
542
- # To modify the global config, setting the timeout for list_versions
543
- # to 20 seconds, and all remaining timeouts to 10 seconds:
544
- #
545
- # ::Google::Cloud::Dialogflow::V2::Versions::Client.configure do |config|
546
- # config.timeout = 10.0
547
- # config.rpcs.list_versions.timeout = 20.0
548
- # end
549
- #
550
- # To apply the above configuration only to a new client:
551
- #
552
- # client = ::Google::Cloud::Dialogflow::V2::Versions::Client.new do |config|
553
- # config.timeout = 10.0
554
- # config.rpcs.list_versions.timeout = 20.0
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 tier.
129
+ # Trial Edition, previously known as Standard Edition.
130
130
  TIER_STANDARD = 1
131
131
 
132
- # Enterprise tier (Essentials).
132
+ # Essentials Edition, previously known as Enterprise Essential Edition.
133
133
  TIER_ENTERPRISE = 2
134
134
 
135
- # Enterprise tier (Plus).
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 [rw] root_followup_intent_name
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 [rw] followup_intent_info
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 input was set to streaming audio, the first one or more messages
410
- # contain `recognition_result`. Each `recognition_result` represents a more
411
- # complete transcript of what the user said. The last `recognition_result`
412
- # has `is_final` set to `true`.
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
- # Example:
454
- #
455
- # 1. transcript: "tube"
456
- #
457
- # 2. transcript: "to be a"
458
- #
459
- # 3. transcript: "to be"
460
- #
461
- # 4. transcript: "to be or not to be"
462
- # is_final: true
463
- #
464
- # 5. transcript: " that's"
465
- #
466
- # 6. transcript: " that is"
467
- #
468
- # 7. message_type: `END_OF_SINGLE_UTTERANCE`
469
- #
470
- # 8. transcript: " that is the question"
471
- # is_final: true
472
- #
473
- # Only two of the responses contain final results (#4 and #8 indicated by
474
- # `is_final: true`). Concatenating these generates the full transcript: "to be
475
- # or not to be that is the question".
476
- #
477
- # In each response we populate:
478
- #
479
- # * for `TRANSCRIPT`: `transcript` and possibly `is_final`.
480
- #
481
- # * for `END_OF_SINGLE_UTTERANCE`: only `message_type`.
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.0
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-08-05 00:00:00.000000000 Z
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.5'
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.5'
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. Note that google-cloud-dialogflow-v2 is a
164
- version-specific client library. For most uses, we recommend installing the main
165
- client library google-cloud-dialogflow instead. See the readme for more details.
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: []