google-cloud-dialogflow-v2 0.8.1 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +8 -8
  3. data/README.md +1 -1
  4. data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +17 -6
  5. data/lib/google/cloud/dialogflow/v2/agents/client.rb +18 -10
  6. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +4 -4
  7. data/lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb +1 -1
  8. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +2 -5
  9. data/lib/google/cloud/dialogflow/v2/context_services_pb.rb +1 -1
  10. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +2 -5
  11. data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +1 -1
  12. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +2 -5
  13. data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +1 -1
  14. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +2 -5
  15. data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +1 -1
  16. data/lib/google/cloud/dialogflow/v2/documents/client.rb +2 -5
  17. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +4 -4
  18. data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +29 -8
  19. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +30 -12
  20. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +4 -4
  21. data/lib/google/cloud/dialogflow/v2/environment_services_pb.rb +7 -7
  22. data/lib/google/cloud/dialogflow/v2/environments/client.rb +22 -14
  23. data/lib/google/cloud/dialogflow/v2/environments/paths.rb +41 -0
  24. data/lib/google/cloud/dialogflow/v2/fulfillment_services_pb.rb +1 -1
  25. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +2 -5
  26. data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +21 -3
  27. data/lib/google/cloud/dialogflow/v2/intents/client.rb +22 -7
  28. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +4 -4
  29. data/lib/google/cloud/dialogflow/v2/knowledge_base_services_pb.rb +1 -1
  30. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +2 -5
  31. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +9 -0
  32. data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +1 -1
  33. data/lib/google/cloud/dialogflow/v2/participants/client.rb +3 -9
  34. data/lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb +1 -1
  35. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +2 -5
  36. data/lib/google/cloud/dialogflow/v2/session_pb.rb +2 -0
  37. data/lib/google/cloud/dialogflow/v2/session_services_pb.rb +1 -1
  38. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +3 -9
  39. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  40. data/lib/google/cloud/dialogflow/v2/version_services_pb.rb +1 -1
  41. data/lib/google/cloud/dialogflow/v2/versions/client.rb +7 -5
  42. data/proto_docs/google/api/field_behavior.rb +7 -1
  43. data/proto_docs/google/cloud/dialogflow/v2/environment.rb +21 -3
  44. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +22 -0
  45. data/proto_docs/google/cloud/dialogflow/v2/session.rb +7 -0
  46. data/proto_docs/google/cloud/dialogflow/v2/validation_result.rb +1 -1
  47. data/proto_docs/google/cloud/dialogflow/v2/version.rb +6 -0
  48. metadata +12 -6
@@ -82,7 +82,7 @@ module Google
82
82
  # Create credentials
83
83
  credentials = @config.credentials
84
84
  credentials ||= Credentials.default scope: @config.scope
85
- if credentials.is_a?(String) || credentials.is_a?(Hash)
85
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
86
86
  credentials = Credentials.new credentials, scope: @config.scope
87
87
  end
88
88
  @quota_project_id = @config.quota_project
@@ -396,9 +396,9 @@ module Google
396
396
  end
397
397
 
398
398
  ##
399
- # Waits for the specified long-running operation until it is done or reaches
400
- # at most a specified timeout, returning the latest state. If the operation
401
- # is already done, the latest state is immediately returned. If the timeout
399
+ # Waits until the specified long-running operation is done or reaches at most
400
+ # a specified timeout, returning the latest state. If the operation is
401
+ # already done, the latest state is immediately returned. If the timeout
402
402
  # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
403
403
  # timeout is used. If the server does not support this method, it returns
404
404
  # `google.rpc.Code.UNIMPLEMENTED`.
@@ -27,7 +27,7 @@ module Google
27
27
  # Service for managing [KnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBase].
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
@@ -67,10 +67,7 @@ module Google
67
67
 
68
68
  default_config.timeout = 60.0
69
69
  default_config.retry_policy = {
70
- initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14]
70
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
74
71
  }
75
72
 
76
73
  default_config
@@ -141,7 +138,7 @@ module Google
141
138
  !@config.endpoint.split(".").first.include?("-")
142
139
  credentials ||= Credentials.default scope: @config.scope,
143
140
  enable_self_signed_jwt: enable_self_signed_jwt
144
- if credentials.is_a?(String) || credentials.is_a?(Hash)
141
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
145
142
  credentials = Credentials.new credentials, scope: @config.scope
146
143
  end
147
144
  @quota_project_id = @config.quota_project
@@ -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
@@ -27,7 +27,7 @@ module Google
27
27
  # Service for managing [Participants][google.cloud.dialogflow.v2.Participant].
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
@@ -67,18 +67,12 @@ module Google
67
67
 
68
68
  default_config.timeout = 60.0
69
69
  default_config.retry_policy = {
70
- initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14]
70
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
74
71
  }
75
72
 
76
73
  default_config.rpcs.analyze_content.timeout = 220.0
77
74
  default_config.rpcs.analyze_content.retry_policy = {
78
- initial_delay: 0.1,
79
- max_delay: 60.0,
80
- multiplier: 1.3,
81
- retry_codes: [14]
75
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
82
76
  }
83
77
 
84
78
  default_config
@@ -149,7 +143,7 @@ module Google
149
143
  !@config.endpoint.split(".").first.include?("-")
150
144
  credentials ||= Credentials.default scope: @config.scope,
151
145
  enable_self_signed_jwt: enable_self_signed_jwt
152
- if credentials.is_a?(String) || credentials.is_a?(Hash)
146
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
153
147
  credentials = Credentials.new credentials, scope: @config.scope
154
148
  end
155
149
  @quota_project_id = @config.quota_project
@@ -27,7 +27,7 @@ module Google
27
27
  # Service for managing [SessionEntityTypes][google.cloud.dialogflow.v2.SessionEntityType].
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
@@ -67,10 +67,7 @@ module Google
67
67
 
68
68
  default_config.timeout = 60.0
69
69
  default_config.retry_policy = {
70
- initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14]
70
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
74
71
  }
75
72
 
76
73
  default_config
@@ -141,7 +138,7 @@ module Google
141
138
  !@config.endpoint.split(".").first.include?("-")
142
139
  credentials ||= Credentials.default scope: @config.scope,
143
140
  enable_self_signed_jwt: enable_self_signed_jwt
144
- if credentials.is_a?(String) || credentials.is_a?(Hash)
141
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
145
142
  credentials = Credentials.new credentials, scope: @config.scope
146
143
  end
147
144
  @quota_project_id = @config.quota_project
@@ -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
@@ -91,6 +92,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
91
92
  optional :confidence, :float, 4
92
93
  repeated :speech_word_info, :message, 7, "google.cloud.dialogflow.v2.SpeechWordInfo"
93
94
  optional :speech_end_offset, :message, 8, "google.protobuf.Duration"
95
+ optional :language_code, :string, 10
94
96
  end
95
97
  add_enum "google.cloud.dialogflow.v2.StreamingRecognitionResult.MessageType" do
96
98
  value :MESSAGE_TYPE_UNSPECIFIED, 0
@@ -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
@@ -70,18 +70,12 @@ module Google
70
70
 
71
71
  default_config.timeout = 60.0
72
72
  default_config.retry_policy = {
73
- initial_delay: 0.1,
74
- max_delay: 60.0,
75
- multiplier: 1.3,
76
- retry_codes: [14]
73
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
77
74
  }
78
75
 
79
76
  default_config.rpcs.detect_intent.timeout = 220.0
80
77
  default_config.rpcs.detect_intent.retry_policy = {
81
- initial_delay: 0.1,
82
- max_delay: 60.0,
83
- multiplier: 1.3,
84
- retry_codes: [14]
78
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
85
79
  }
86
80
 
87
81
  default_config.rpcs.streaming_detect_intent.timeout = 220.0
@@ -154,7 +148,7 @@ module Google
154
148
  !@config.endpoint.split(".").first.include?("-")
155
149
  credentials ||= Credentials.default scope: @config.scope,
156
150
  enable_self_signed_jwt: enable_self_signed_jwt
157
- if credentials.is_a?(String) || credentials.is_a?(Hash)
151
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
158
152
  credentials = Credentials.new credentials, scope: @config.scope
159
153
  end
160
154
  @quota_project_id = @config.quota_project
@@ -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.11.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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
@@ -67,10 +67,7 @@ module Google
67
67
 
68
68
  default_config.timeout = 60.0
69
69
  default_config.retry_policy = {
70
- initial_delay: 0.1,
71
- max_delay: 60.0,
72
- multiplier: 1.3,
73
- retry_codes: [14]
70
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
74
71
  }
75
72
 
76
73
  default_config
@@ -141,7 +138,7 @@ module Google
141
138
  !@config.endpoint.split(".").first.include?("-")
142
139
  credentials ||= Credentials.default scope: @config.scope,
143
140
  enable_self_signed_jwt: enable_self_signed_jwt
144
- if credentials.is_a?(String) || credentials.is_a?(Hash)
141
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
145
142
  credentials = Credentials.new credentials, scope: @config.scope
146
143
  end
147
144
  @quota_project_id = @config.quota_project
@@ -179,6 +176,7 @@ module Google
179
176
  # @param parent [::String]
180
177
  # Required. The agent to list all versions from.
181
178
  # Supported formats:
179
+ #
182
180
  # - `projects/<Project ID>/agent`
183
181
  # - `projects/<Project ID>/locations/<Location ID>/agent`
184
182
  # @param page_size [::Integer]
@@ -254,6 +252,7 @@ module Google
254
252
  # @param name [::String]
255
253
  # Required. The name of the version.
256
254
  # Supported formats:
255
+ #
257
256
  # - `projects/<Project ID>/agent/versions/<Version ID>`
258
257
  # - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version
259
258
  # ID>`
@@ -326,6 +325,7 @@ module Google
326
325
  # @param parent [::String]
327
326
  # Required. The agent to create a version for.
328
327
  # Supported formats:
328
+ #
329
329
  # - `projects/<Project ID>/agent`
330
330
  # - `projects/<Project ID>/locations/<Location ID>/agent`
331
331
  # @param version [::Google::Cloud::Dialogflow::V2::Version, ::Hash]
@@ -401,6 +401,7 @@ module Google
401
401
  # @param version [::Google::Cloud::Dialogflow::V2::Version, ::Hash]
402
402
  # Required. The version to update.
403
403
  # Supported formats:
404
+ #
404
405
  # - `projects/<Project ID>/agent/versions/<Version ID>`
405
406
  # - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version
406
407
  # ID>`
@@ -473,6 +474,7 @@ module Google
473
474
  # @param name [::String]
474
475
  # Required. The name of the version to delete.
475
476
  # Supported formats:
477
+ #
476
478
  # - `projects/<Project ID>/agent/versions/<Version ID>`
477
479
  # - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version
478
480
  # ID>`
@@ -57,9 +57,15 @@ module Google
57
57
 
58
58
  # Denotes that a (repeated) field is an unordered list.
59
59
  # This indicates that the service may provide the elements of the list
60
- # in any arbitrary order, rather than the order the user originally
60
+ # in any arbitrary order, rather than the order the user originally
61
61
  # provided. Additionally, the list's order may or may not be stable.
62
62
  UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
63
69
  end
64
70
  end
65
71
  end
@@ -43,9 +43,12 @@ module Google
43
43
  # @return [::String]
44
44
  # Output only. The unique identifier of this agent environment.
45
45
  # Supported formats:
46
+ #
46
47
  # - `projects/<Project ID>/agent/environments/<Environment ID>`
47
48
  # - `projects/<Project ID>/locations/<Location
48
49
  # ID>/agent/environments/<Environment ID>`
50
+ #
51
+ # The environment ID for the default environment is `-`.
49
52
  # @!attribute [rw] description
50
53
  # @return [::String]
51
54
  # Optional. The developer-provided description for this environment.
@@ -54,6 +57,7 @@ module Google
54
57
  # @return [::String]
55
58
  # Optional. The agent version loaded into this environment.
56
59
  # Supported formats:
60
+ #
57
61
  # - `projects/<Project ID>/agent/versions/<Version ID>`
58
62
  # - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version
59
63
  # ID>`
@@ -134,6 +138,7 @@ module Google
134
138
  # @return [::String]
135
139
  # Required. The agent to list all environments from.
136
140
  # Format:
141
+ #
137
142
  # - `projects/<Project ID>/agent`
138
143
  # - `projects/<Project ID>/locations/<Location ID>/agent`
139
144
  # @!attribute [rw] page_size
@@ -167,9 +172,12 @@ module Google
167
172
  # @return [::String]
168
173
  # Required. The name of the environment.
169
174
  # Supported formats:
175
+ #
170
176
  # - `projects/<Project ID>/agent/environments/<Environment ID>`
171
177
  # - `projects/<Project ID>/locations/<Location
172
178
  # ID>/agent/environments/<Environment ID>`
179
+ #
180
+ # The environment ID for the default environment is `-`.
173
181
  class GetEnvironmentRequest
174
182
  include ::Google::Protobuf::MessageExts
175
183
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -180,6 +188,7 @@ module Google
180
188
  # @return [::String]
181
189
  # Required. The agent to create an environment for.
182
190
  # Supported formats:
191
+ #
183
192
  # - `projects/<Project ID>/agent`
184
193
  # - `projects/<Project ID>/locations/<Location ID>/agent`
185
194
  # @!attribute [rw] environment
@@ -202,10 +211,10 @@ module Google
202
211
  # Required. The mask to control which fields get updated.
203
212
  # @!attribute [rw] allow_load_to_draft_and_discard_changes
204
213
  # @return [::Boolean]
205
- # Optional. This field is used to prevent accidental overwrite of the draft
214
+ # Optional. This field is used to prevent accidental overwrite of the default
206
215
  # environment, which is an operation that cannot be undone. To confirm that
207
216
  # the caller desires this overwrite, this field must be explicitly set to
208
- # true when updating the draft environment (environment ID = `-`).
217
+ # true when updating the default environment (environment ID = `-`).
209
218
  class UpdateEnvironmentRequest
210
219
  include ::Google::Protobuf::MessageExts
211
220
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -216,9 +225,12 @@ module Google
216
225
  # @return [::String]
217
226
  # Required. The name of the environment to delete.
218
227
  # / Format:
228
+ #
219
229
  # - `projects/<Project ID>/agent/environments/<Environment ID>`
220
230
  # - `projects/<Project ID>/locations/<Location
221
- # ID>/agent/environments/<Environment ID>`
231
+ # ID>/agent/environments/<Environment ID>`
232
+ #
233
+ # The environment ID for the default environment is `-`.
222
234
  class DeleteEnvironmentRequest
223
235
  include ::Google::Protobuf::MessageExts
224
236
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -229,9 +241,12 @@ module Google
229
241
  # @return [::String]
230
242
  # Required. The name of the environment to retrieve history for.
231
243
  # Supported formats:
244
+ #
232
245
  # - `projects/<Project ID>/agent/environments/<Environment ID>`
233
246
  # - `projects/<Project ID>/locations/<Location
234
247
  # ID>/agent/environments/<Environment ID>`
248
+ #
249
+ # The environment ID for the default environment is `-`.
235
250
  # @!attribute [rw] page_size
236
251
  # @return [::Integer]
237
252
  # Optional. The maximum number of items to return in a single page. By default 100 and
@@ -249,9 +264,12 @@ module Google
249
264
  # @return [::String]
250
265
  # Output only. The name of the environment this history is for.
251
266
  # Supported formats:
267
+ #
252
268
  # - `projects/<Project ID>/agent/environments/<Environment ID>`
253
269
  # - `projects/<Project ID>/locations/<Location
254
270
  # ID>/agent/environments/<Environment ID>`
271
+ #
272
+ # The environment ID for the default environment is `-`.
255
273
  # @!attribute [r] entries
256
274
  # @return [::Array<::Google::Cloud::Dialogflow::V2::EnvironmentHistory::Entry>]
257
275
  # Output only. The list of agent environments. There will be a maximum number of items
@@ -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.
@@ -506,6 +510,9 @@ module Google
506
510
  # @return [::Google::Protobuf::Duration]
507
511
  # Time offset of the end of this Speech recognition result relative to the
508
512
  # beginning of the audio. Only populated for `message_type` = `TRANSCRIPT`.
513
+ # @!attribute [rw] language_code
514
+ # @return [::String]
515
+ # Detected language code for the transcript.
509
516
  class StreamingRecognitionResult
510
517
  include ::Google::Protobuf::MessageExts
511
518
  extend ::Google::Protobuf::MessageExts::ClassMethods