google-cloud-dialogflow-v2 0.10.1 → 0.11.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: c023c07476d29e91e2b3f6e943f5e6a0deecdea280e661fe0c469ce4cfe0cac4
4
- data.tar.gz: 77d7d8f0136cec992efc97f5f228501bd1a7343010caa7285b09ae1e04245e88
3
+ metadata.gz: 0f6a922385ad3d34527ce31b2d3cbb0ade12123fbf31a3049276b31243f15e05
4
+ data.tar.gz: d68611727d8dbe3cdef29d8db1ea8c654314ca1278cc8fb0e83f7366b09ec006
5
5
  SHA512:
6
- metadata.gz: 6e23ef0fdbc073fff3d268e9e16cb43583efeb8e62612187f30fd54ec9d7551cff324478535842c6d2995fe422773651bbe57da5612fe73ec38ca9013b3f78b9
7
- data.tar.gz: 6837388b581f23b0049114ed4667500050a770e177fd2eef4bc029f011e2ce0d15fd63e2f2b67edd075e7bc18a25e4d4d0b529cba75fe303689b44ef620303c0
6
+ metadata.gz: 66cdf0854441fdca937e45dbf73dcacd49444ff269358fec0a572bb197c6d07088093246e8a537d211ee321bdad3d4054131ad39511ce7e1ef05e1ae8a9d6c19
7
+ data.tar.gz: 8ccbda725c796781f7fc883ab79a5689ed8166ae1278aeac1e59b042e129e812bd67b0df9488b3296915e92b07d760dd514e13feb9feba1563dc1f39576365d7
@@ -33,7 +33,7 @@ module Google
33
33
  self.unmarshal_class_method = :decode
34
34
  self.service_name = 'google.cloud.dialogflow.v2.Environments'
35
35
 
36
- # Returns the list of all non-draft environments of the specified agent.
36
+ # Returns the list of all non-default environments of the specified agent.
37
37
  rpc :ListEnvironments, ::Google::Cloud::Dialogflow::V2::ListEnvironmentsRequest, ::Google::Cloud::Dialogflow::V2::ListEnvironmentsResponse
38
38
  # Retrieves the specified agent environment.
39
39
  rpc :GetEnvironment, ::Google::Cloud::Dialogflow::V2::GetEnvironmentRequest, ::Google::Cloud::Dialogflow::V2::Environment
@@ -44,13 +44,13 @@ module Google
44
44
  # This method allows you to deploy new agent versions into the environment.
45
45
  # When an environment is pointed to a new agent version by setting
46
46
  # `environment.agent_version`, the environment is temporarily set to the
47
- # `LOADING` state. During that time, the environment keeps on serving the
47
+ # `LOADING` state. During that time, the environment continues serving the
48
48
  # previous version of the agent. After the new agent version is done loading,
49
49
  # the environment is set back to the `RUNNING` state.
50
- # You can use "-" as Environment ID in environment name to update version
51
- # in "draft" environment. WARNING: this will negate all recent changes to
52
- # draft and can't be undone. You may want to save the draft to a version
53
- # before calling this function.
50
+ # You can use "-" as Environment ID in environment name to update an agent
51
+ # version in the default environment. WARNING: this will negate all recent
52
+ # changes to the draft agent and can't be undone. You may want to save the
53
+ # draft agent to a version before calling this method.
54
54
  rpc :UpdateEnvironment, ::Google::Cloud::Dialogflow::V2::UpdateEnvironmentRequest, ::Google::Cloud::Dialogflow::V2::Environment
55
55
  # Deletes the specified agent environment.
56
56
  rpc :DeleteEnvironment, ::Google::Cloud::Dialogflow::V2::DeleteEnvironmentRequest, ::Google::Protobuf::Empty
@@ -156,7 +156,7 @@ module Google
156
156
  # Service calls
157
157
 
158
158
  ##
159
- # Returns the list of all non-draft environments of the specified agent.
159
+ # Returns the list of all non-default environments of the specified agent.
160
160
  #
161
161
  # @overload list_environments(request, options = nil)
162
162
  # Pass arguments to `list_environments` via a request object, either of type
@@ -176,6 +176,7 @@ module Google
176
176
  # @param parent [::String]
177
177
  # Required. The agent to list all environments from.
178
178
  # Format:
179
+ #
179
180
  # - `projects/<Project ID>/agent`
180
181
  # - `projects/<Project ID>/locations/<Location ID>/agent`
181
182
  # @param page_size [::Integer]
@@ -251,10 +252,13 @@ module Google
251
252
  # @param name [::String]
252
253
  # Required. The name of the environment.
253
254
  # Supported formats:
255
+ #
254
256
  # - `projects/<Project ID>/agent/environments/<Environment ID>`
255
257
  # - `projects/<Project ID>/locations/<Location
256
258
  # ID>/agent/environments/<Environment ID>`
257
259
  #
260
+ # The environment ID for the default environment is `-`.
261
+ #
258
262
  # @yield [response, operation] Access the result along with the RPC operation
259
263
  # @yieldparam response [::Google::Cloud::Dialogflow::V2::Environment]
260
264
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
@@ -321,6 +325,7 @@ module Google
321
325
  # @param parent [::String]
322
326
  # Required. The agent to create an environment for.
323
327
  # Supported formats:
328
+ #
324
329
  # - `projects/<Project ID>/agent`
325
330
  # - `projects/<Project ID>/locations/<Location ID>/agent`
326
331
  # @param environment [::Google::Cloud::Dialogflow::V2::Environment, ::Hash]
@@ -379,13 +384,13 @@ module Google
379
384
  # This method allows you to deploy new agent versions into the environment.
380
385
  # When an environment is pointed to a new agent version by setting
381
386
  # `environment.agent_version`, the environment is temporarily set to the
382
- # `LOADING` state. During that time, the environment keeps on serving the
387
+ # `LOADING` state. During that time, the environment continues serving the
383
388
  # previous version of the agent. After the new agent version is done loading,
384
389
  # the environment is set back to the `RUNNING` state.
385
- # You can use "-" as Environment ID in environment name to update version
386
- # in "draft" environment. WARNING: this will negate all recent changes to
387
- # draft and can't be undone. You may want to save the draft to a version
388
- # before calling this function.
390
+ # You can use "-" as Environment ID in environment name to update an agent
391
+ # version in the default environment. WARNING: this will negate all recent
392
+ # changes to the draft agent and can't be undone. You may want to save the
393
+ # draft agent to a version before calling this method.
389
394
  #
390
395
  # @overload update_environment(request, options = nil)
391
396
  # Pass arguments to `update_environment` via a request object, either of type
@@ -407,10 +412,10 @@ module Google
407
412
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
408
413
  # Required. The mask to control which fields get updated.
409
414
  # @param allow_load_to_draft_and_discard_changes [::Boolean]
410
- # Optional. This field is used to prevent accidental overwrite of the draft
415
+ # Optional. This field is used to prevent accidental overwrite of the default
411
416
  # environment, which is an operation that cannot be undone. To confirm that
412
417
  # the caller desires this overwrite, this field must be explicitly set to
413
- # true when updating the draft environment (environment ID = `-`).
418
+ # true when updating the default environment (environment ID = `-`).
414
419
  #
415
420
  # @yield [response, operation] Access the result along with the RPC operation
416
421
  # @yieldparam response [::Google::Cloud::Dialogflow::V2::Environment]
@@ -478,9 +483,12 @@ module Google
478
483
  # @param name [::String]
479
484
  # Required. The name of the environment to delete.
480
485
  # / Format:
486
+ #
481
487
  # - `projects/<Project ID>/agent/environments/<Environment ID>`
482
488
  # - `projects/<Project ID>/locations/<Location
483
- # ID>/agent/environments/<Environment ID>`
489
+ # ID>/agent/environments/<Environment ID>`
490
+ #
491
+ # The environment ID for the default environment is `-`.
484
492
  #
485
493
  # @yield [response, operation] Access the result along with the RPC operation
486
494
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -548,9 +556,12 @@ module Google
548
556
  # @param parent [::String]
549
557
  # Required. The name of the environment to retrieve history for.
550
558
  # Supported formats:
559
+ #
551
560
  # - `projects/<Project ID>/agent/environments/<Environment ID>`
552
561
  # - `projects/<Project ID>/locations/<Location
553
562
  # ID>/agent/environments/<Environment ID>`
563
+ #
564
+ # The environment ID for the default environment is `-`.
554
565
  # @param page_size [::Integer]
555
566
  # Optional. The maximum number of items to return in a single page. By default 100 and
556
567
  # at most 1000.
@@ -92,6 +92,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
92
92
  optional :confidence, :float, 4
93
93
  repeated :speech_word_info, :message, 7, "google.cloud.dialogflow.v2.SpeechWordInfo"
94
94
  optional :speech_end_offset, :message, 8, "google.protobuf.Duration"
95
+ optional :language_code, :string, 10
95
96
  end
96
97
  add_enum "google.cloud.dialogflow.v2.StreamingRecognitionResult.MessageType" do
97
98
  value :MESSAGE_TYPE_UNSPECIFIED, 0
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dialogflow
23
23
  module V2
24
- VERSION = "0.10.1"
24
+ VERSION = "0.11.0"
25
25
  end
26
26
  end
27
27
  end
@@ -176,6 +176,7 @@ module Google
176
176
  # @param parent [::String]
177
177
  # Required. The agent to list all versions from.
178
178
  # Supported formats:
179
+ #
179
180
  # - `projects/<Project ID>/agent`
180
181
  # - `projects/<Project ID>/locations/<Location ID>/agent`
181
182
  # @param page_size [::Integer]
@@ -251,6 +252,7 @@ module Google
251
252
  # @param name [::String]
252
253
  # Required. The name of the version.
253
254
  # Supported formats:
255
+ #
254
256
  # - `projects/<Project ID>/agent/versions/<Version ID>`
255
257
  # - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version
256
258
  # ID>`
@@ -323,6 +325,7 @@ module Google
323
325
  # @param parent [::String]
324
326
  # Required. The agent to create a version for.
325
327
  # Supported formats:
328
+ #
326
329
  # - `projects/<Project ID>/agent`
327
330
  # - `projects/<Project ID>/locations/<Location ID>/agent`
328
331
  # @param version [::Google::Cloud::Dialogflow::V2::Version, ::Hash]
@@ -398,6 +401,7 @@ module Google
398
401
  # @param version [::Google::Cloud::Dialogflow::V2::Version, ::Hash]
399
402
  # Required. The version to update.
400
403
  # Supported formats:
404
+ #
401
405
  # - `projects/<Project ID>/agent/versions/<Version ID>`
402
406
  # - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version
403
407
  # ID>`
@@ -470,6 +474,7 @@ module Google
470
474
  # @param name [::String]
471
475
  # Required. The name of the version to delete.
472
476
  # Supported formats:
477
+ #
473
478
  # - `projects/<Project ID>/agent/versions/<Version ID>`
474
479
  # - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version
475
480
  # ID>`
@@ -43,17 +43,21 @@ 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.
52
55
  # The maximum length is 500 characters. If exceeded, the request is rejected.
53
56
  # @!attribute [rw] agent_version
54
57
  # @return [::String]
55
- # Required. The agent version loaded into this environment.
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
@@ -510,6 +510,9 @@ module Google
510
510
  # @return [::Google::Protobuf::Duration]
511
511
  # Time offset of the end of this Speech recognition result relative to the
512
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.
513
516
  class StreamingRecognitionResult
514
517
  include ::Google::Protobuf::MessageExts
515
518
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -43,7 +43,7 @@ module Google
43
43
  # associated with certain entities.
44
44
  # @!attribute [rw] error_message
45
45
  # @return [::String]
46
- # The detailed error messsage.
46
+ # The detailed error message.
47
47
  class ValidationError
48
48
  include ::Google::Protobuf::MessageExts
49
49
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -43,6 +43,7 @@ module Google
43
43
  # @return [::String]
44
44
  # Output only. The unique identifier of this agent version.
45
45
  # Supported formats:
46
+ #
46
47
  # - `projects/<Project ID>/agent/versions/<Version ID>`
47
48
  # - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version
48
49
  # ID>`
@@ -86,6 +87,7 @@ module Google
86
87
  # @return [::String]
87
88
  # Required. The agent to list all versions from.
88
89
  # Supported formats:
90
+ #
89
91
  # - `projects/<Project ID>/agent`
90
92
  # - `projects/<Project ID>/locations/<Location ID>/agent`
91
93
  # @!attribute [rw] page_size
@@ -119,6 +121,7 @@ module Google
119
121
  # @return [::String]
120
122
  # Required. The name of the version.
121
123
  # Supported formats:
124
+ #
122
125
  # - `projects/<Project ID>/agent/versions/<Version ID>`
123
126
  # - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version
124
127
  # ID>`
@@ -132,6 +135,7 @@ module Google
132
135
  # @return [::String]
133
136
  # Required. The agent to create a version for.
134
137
  # Supported formats:
138
+ #
135
139
  # - `projects/<Project ID>/agent`
136
140
  # - `projects/<Project ID>/locations/<Location ID>/agent`
137
141
  # @!attribute [rw] version
@@ -147,6 +151,7 @@ module Google
147
151
  # @return [::Google::Cloud::Dialogflow::V2::Version]
148
152
  # Required. The version to update.
149
153
  # Supported formats:
154
+ #
150
155
  # - `projects/<Project ID>/agent/versions/<Version ID>`
151
156
  # - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version
152
157
  # ID>`
@@ -163,6 +168,7 @@ module Google
163
168
  # @return [::String]
164
169
  # Required. The name of the version to delete.
165
170
  # Supported formats:
171
+ #
166
172
  # - `projects/<Project ID>/agent/versions/<Version ID>`
167
173
  # - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version
168
174
  # ID>`
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.10.1
4
+ version: 0.11.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-07-12 00:00:00.000000000 Z
11
+ date: 2021-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common