google-cloud-dialogflow-v2 0.8.1 → 0.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61cb8fe66f5c94db7de63549e0f997ccd222f7d6d7364bf82e56ce82abb8de62
4
- data.tar.gz: 53cd81c37e38587646ab9bd883db0f848bf4a423eb5d5836adb092ad513349a3
3
+ metadata.gz: c86303c78008f5bef3bdb05cb9214795febe9436b9fb21a6d2076d0e442e0c23
4
+ data.tar.gz: 91f7a758f57bc62416f8fadfbf5b9917f3ca5fd2c811a66a056a2a341f69b24d
5
5
  SHA512:
6
- metadata.gz: 6b872223c16bb0247f8049bd9329317017e654e66844916af3092dc5fd4b13b9f1c7fee38c41e11532f1fb217f3d3149e4cfd639559c7c6cc1456ca5651d4e23
7
- data.tar.gz: 61095c7577b6d4f0d5de9954c546a8917ca31c1f13b2d02ca3a6d218a97ce511d2c26a22ac238fbbbfa016ccd97f0673c98e70c82848b4dde9137d01b15473f8
6
+ metadata.gz: 29aaac78018fbb70e182d7ef1de6a1e12735a97d80f4e482b677fa66f3a6716219630dc91f1cbcff27b15e25ed59efbed930aa454571f1b0bb4776ec1d044597
7
+ data.tar.gz: 8aa2712581dc4af4affa5d1ad9786726907c6369bed35b396e15efe50c0feef36f7c9617468fed24dfccabfee505f28eb1e14a011cca9f4670acde6c4632a658
@@ -68,9 +68,9 @@ module Google
68
68
  default_config.timeout = 60.0
69
69
  default_config.retry_policy = {
70
70
  initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14]
71
+ max_delay: 60.0,
72
+ multiplier: 1.3,
73
+ retry_codes: [14]
74
74
  }
75
75
 
76
76
  default_config
@@ -68,9 +68,9 @@ module Google
68
68
  default_config.timeout = 60.0
69
69
  default_config.retry_policy = {
70
70
  initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14]
71
+ max_delay: 60.0,
72
+ multiplier: 1.3,
73
+ retry_codes: [14]
74
74
  }
75
75
 
76
76
  default_config
@@ -68,9 +68,9 @@ module Google
68
68
  default_config.timeout = 60.0
69
69
  default_config.retry_policy = {
70
70
  initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14]
71
+ max_delay: 60.0,
72
+ multiplier: 1.3,
73
+ retry_codes: [14]
74
74
  }
75
75
 
76
76
  default_config
@@ -68,9 +68,9 @@ module Google
68
68
  default_config.timeout = 60.0
69
69
  default_config.retry_policy = {
70
70
  initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14]
71
+ max_delay: 60.0,
72
+ multiplier: 1.3,
73
+ retry_codes: [14]
74
74
  }
75
75
 
76
76
  default_config
@@ -68,9 +68,9 @@ module Google
68
68
  default_config.timeout = 60.0
69
69
  default_config.retry_policy = {
70
70
  initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14]
71
+ max_delay: 60.0,
72
+ multiplier: 1.3,
73
+ retry_codes: [14]
74
74
  }
75
75
 
76
76
  default_config
@@ -68,9 +68,9 @@ module Google
68
68
  default_config.timeout = 60.0
69
69
  default_config.retry_policy = {
70
70
  initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14]
71
+ max_delay: 60.0,
72
+ multiplier: 1.3,
73
+ retry_codes: [14]
74
74
  }
75
75
 
76
76
  default_config
@@ -68,9 +68,9 @@ module Google
68
68
  default_config.timeout = 60.0
69
69
  default_config.retry_policy = {
70
70
  initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14]
71
+ max_delay: 60.0,
72
+ multiplier: 1.3,
73
+ retry_codes: [14]
74
74
  }
75
75
 
76
76
  default_config
@@ -68,9 +68,9 @@ module Google
68
68
  default_config.timeout = 60.0
69
69
  default_config.retry_policy = {
70
70
  initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14]
71
+ max_delay: 60.0,
72
+ multiplier: 1.3,
73
+ retry_codes: [14]
74
74
  }
75
75
 
76
76
  default_config
@@ -68,9 +68,9 @@ module Google
68
68
  default_config.timeout = 60.0
69
69
  default_config.retry_policy = {
70
70
  initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14]
71
+ max_delay: 60.0,
72
+ multiplier: 1.3,
73
+ retry_codes: [14]
74
74
  }
75
75
 
76
76
  default_config
@@ -68,9 +68,9 @@ module Google
68
68
  default_config.timeout = 60.0
69
69
  default_config.retry_policy = {
70
70
  initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14]
71
+ max_delay: 60.0,
72
+ multiplier: 1.3,
73
+ retry_codes: [14]
74
74
  }
75
75
 
76
76
  default_config
@@ -68,9 +68,9 @@ module Google
68
68
  default_config.timeout = 60.0
69
69
  default_config.retry_policy = {
70
70
  initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14]
71
+ max_delay: 60.0,
72
+ multiplier: 1.3,
73
+ retry_codes: [14]
74
74
  }
75
75
 
76
76
  default_config
@@ -9,6 +9,7 @@ require 'google/api/field_behavior_pb'
9
9
  require 'google/api/resource_pb'
10
10
  require 'google/cloud/dialogflow/v2/audio_config_pb'
11
11
  require 'google/cloud/dialogflow/v2/session_pb'
12
+ require 'google/protobuf/any_pb'
12
13
  require 'google/protobuf/duration_pb'
13
14
  require 'google/protobuf/field_mask_pb'
14
15
  require 'google/protobuf/struct_pb'
@@ -104,6 +105,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
104
105
  end
105
106
  add_message "google.cloud.dialogflow.v2.AutomatedAgentReply" do
106
107
  optional :detect_intent_response, :message, 1, "google.cloud.dialogflow.v2.DetectIntentResponse"
108
+ optional :automated_agent_reply_type, :enum, 7, "google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType"
109
+ optional :allow_cancellation, :bool, 8
110
+ end
111
+ add_enum "google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType" do
112
+ value :AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED, 0
113
+ value :PARTIAL, 1
114
+ value :FINAL, 2
107
115
  end
108
116
  add_message "google.cloud.dialogflow.v2.ArticleAnswer" do
109
117
  optional :title, :string, 1
@@ -161,6 +169,7 @@ module Google
161
169
  SuggestFaqAnswersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestFaqAnswersResponse").msgclass
162
170
  OutputAudio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.OutputAudio").msgclass
163
171
  AutomatedAgentReply = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AutomatedAgentReply").msgclass
172
+ AutomatedAgentReply::AutomatedAgentReplyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType").enummodule
164
173
  ArticleAnswer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ArticleAnswer").msgclass
165
174
  FaqAnswer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.FaqAnswer").msgclass
166
175
  SuggestionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestionResult").msgclass
@@ -68,17 +68,17 @@ module Google
68
68
  default_config.timeout = 60.0
69
69
  default_config.retry_policy = {
70
70
  initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14]
71
+ max_delay: 60.0,
72
+ multiplier: 1.3,
73
+ retry_codes: [14]
74
74
  }
75
75
 
76
76
  default_config.rpcs.analyze_content.timeout = 220.0
77
77
  default_config.rpcs.analyze_content.retry_policy = {
78
78
  initial_delay: 0.1,
79
- max_delay: 60.0,
80
- multiplier: 1.3,
81
- retry_codes: [14]
79
+ max_delay: 60.0,
80
+ multiplier: 1.3,
81
+ retry_codes: [14]
82
82
  }
83
83
 
84
84
  default_config
@@ -68,9 +68,9 @@ module Google
68
68
  default_config.timeout = 60.0
69
69
  default_config.retry_policy = {
70
70
  initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14]
71
+ max_delay: 60.0,
72
+ multiplier: 1.3,
73
+ retry_codes: [14]
74
74
  }
75
75
 
76
76
  default_config
@@ -57,6 +57,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
57
57
  optional :action, :string, 3
58
58
  optional :parameters, :message, 4, "google.protobuf.Struct"
59
59
  optional :all_required_params_present, :bool, 5
60
+ optional :cancels_slot_filling, :bool, 21
60
61
  optional :fulfillment_text, :string, 6
61
62
  repeated :fulfillment_messages, :message, 7, "google.cloud.dialogflow.v2.Intent.Message"
62
63
  optional :webhook_source, :string, 8
@@ -71,17 +71,17 @@ module Google
71
71
  default_config.timeout = 60.0
72
72
  default_config.retry_policy = {
73
73
  initial_delay: 0.1,
74
- max_delay: 60.0,
75
- multiplier: 1.3,
76
- retry_codes: [14]
74
+ max_delay: 60.0,
75
+ multiplier: 1.3,
76
+ retry_codes: [14]
77
77
  }
78
78
 
79
79
  default_config.rpcs.detect_intent.timeout = 220.0
80
80
  default_config.rpcs.detect_intent.retry_policy = {
81
81
  initial_delay: 0.1,
82
- max_delay: 60.0,
83
- multiplier: 1.3,
84
- retry_codes: [14]
82
+ max_delay: 60.0,
83
+ multiplier: 1.3,
84
+ retry_codes: [14]
85
85
  }
86
86
 
87
87
  default_config.rpcs.streaming_detect_intent.timeout = 220.0
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dialogflow
23
23
  module V2
24
- VERSION = "0.8.1"
24
+ VERSION = "0.9.0"
25
25
  end
26
26
  end
27
27
  end
@@ -68,9 +68,9 @@ module Google
68
68
  default_config.timeout = 60.0
69
69
  default_config.retry_policy = {
70
70
  initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14]
71
+ max_delay: 60.0,
72
+ multiplier: 1.3,
73
+ retry_codes: [14]
74
74
  }
75
75
 
76
76
  default_config
@@ -353,9 +353,31 @@ module Google
353
353
  # @!attribute [rw] detect_intent_response
354
354
  # @return [::Google::Cloud::Dialogflow::V2::DetectIntentResponse]
355
355
  # Response of the Dialogflow {::Google::Cloud::Dialogflow::V2::Sessions::Client#detect_intent Sessions.DetectIntent} call.
356
+ # @!attribute [rw] automated_agent_reply_type
357
+ # @return [::Google::Cloud::Dialogflow::V2::AutomatedAgentReply::AutomatedAgentReplyType]
358
+ # AutomatedAgentReply type.
359
+ # @!attribute [rw] allow_cancellation
360
+ # @return [::Boolean]
361
+ # Indicates whether the partial automated agent reply is interruptible when a
362
+ # later reply message arrives. e.g. if the agent specified some music as
363
+ # partial response, it can be cancelled.
356
364
  class AutomatedAgentReply
357
365
  include ::Google::Protobuf::MessageExts
358
366
  extend ::Google::Protobuf::MessageExts::ClassMethods
367
+
368
+ # Represents different automated agent reply types.
369
+ module AutomatedAgentReplyType
370
+ # Not specified. This should never happen.
371
+ AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED = 0
372
+
373
+ # Partial reply. e.g. Aggregated responses in a `Fulfillment` that enables
374
+ # `return_partial_response` can be returned as partial reply.
375
+ # WARNING: partial reply is not eligible for barge-in.
376
+ PARTIAL = 1
377
+
378
+ # Final reply.
379
+ FINAL = 2
380
+ end
359
381
  end
360
382
 
361
383
  # Represents article answer.
@@ -248,6 +248,10 @@ module Google
248
248
  # the required parameter values have been collected.
249
249
  # - `true` if all required parameter values have been collected, or if the
250
250
  # matched intent doesn't contain any required parameters.
251
+ # @!attribute [rw] cancels_slot_filling
252
+ # @return [::Boolean]
253
+ # Indicates whether the conversational query triggers a cancellation for slot
254
+ # filling.
251
255
  # @!attribute [rw] fulfillment_text
252
256
  # @return [::String]
253
257
  # The text to be pronounced to the user or shown on the screen.
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dialogflow-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.9.0
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-05-21 00:00:00.000000000 Z
11
+ date: 2021-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.5'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '0.4'
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.5'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.4'
32
+ version: 2.a
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: google-cloud-errors
29
35
  requirement: !ruby/object:Gem::Requirement