google-cloud-dialogflow 0.4.0 → 0.5.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 +4 -4
- data/lib/google/cloud/dialogflow.rb +31 -7
- data/lib/google/cloud/dialogflow/v2.rb +55 -7
- data/lib/google/cloud/dialogflow/v2/agent_pb.rb +26 -1
- data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +7 -3
- data/lib/google/cloud/dialogflow/v2/agents_client.rb +101 -5
- data/lib/google/cloud/dialogflow/v2/agents_client_config.json +10 -0
- data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/context_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/context_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/contexts_client.rb +9 -3
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/agent.rb +57 -2
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/audio_config.rb +7 -7
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/context.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/entity_type.rb +8 -8
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb +6 -6
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session.rb +16 -13
- data/lib/google/cloud/dialogflow/v2/entity_type_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/entity_types_client.rb +20 -11
- data/lib/google/cloud/dialogflow/v2/intent_pb.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/intents_client.rb +17 -8
- data/lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb +1 -0
- 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 +9 -3
- data/lib/google/cloud/dialogflow/v2/session_pb.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/sessions_client.rb +8 -2
- data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fdd0dce6a73bdf89095752f64da4d1cbb6a074c0b47d42a70f297e351446fc2
|
4
|
+
data.tar.gz: 86c9a0cdd485372d51716f4b2147f73952ce862b3c88508dd74b389339c92046
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c757e4cbdcd06c4e8ec944b99ca5b3e2be456e8727fd884790f96d25d0df4e8a68b741554e5af1ce1ba929149df18afd49f5b2f2b3a44391a718a5504e5004f
|
7
|
+
data.tar.gz: a7dfe767974d5027f5239bb99500bbeda6283a8ba5eeb7ef4083d84799b763b43fb24d3c9a0bd15798be7172b1c52f1a06c3da1cb75c9b8480af54b3710e6910
|
@@ -102,7 +102,7 @@ module Google
|
|
102
102
|
# You can create an agent using both Dialogflow Standard Edition and
|
103
103
|
# Dialogflow Enterprise Edition. For details, see
|
104
104
|
# [Dialogflow
|
105
|
-
# Editions](https://cloud.google.com/dialogflow
|
105
|
+
# Editions](https://cloud.google.com/dialogflow/docs/editions).
|
106
106
|
#
|
107
107
|
# You can save your agent for backup or versioning by exporting the agent by
|
108
108
|
# using the {Google::Cloud::Dialogflow::V2::Agents::ExportAgent ExportAgent} method. You can import a saved
|
@@ -110,13 +110,13 @@ module Google
|
|
110
110
|
#
|
111
111
|
# Dialogflow provides several
|
112
112
|
# [prebuilt
|
113
|
-
# agents](https://cloud.google.com/dialogflow
|
113
|
+
# agents](https://cloud.google.com/dialogflow/docs/agents-prebuilt)
|
114
114
|
# for common conversation scenarios such as determining a date and time,
|
115
115
|
# converting currency, and so on.
|
116
116
|
#
|
117
117
|
# For more information about agents, see the
|
118
118
|
# [Dialogflow
|
119
|
-
# documentation](https://cloud.google.com/dialogflow
|
119
|
+
# documentation](https://cloud.google.com/dialogflow/docs/agents-overview).
|
120
120
|
#
|
121
121
|
# @param version [Symbol, String]
|
122
122
|
# The major version of the service to be used. By default :v2
|
@@ -148,6 +148,10 @@ module Google
|
|
148
148
|
# The default timeout, in seconds, for calls made through this client.
|
149
149
|
# @param metadata [Hash]
|
150
150
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
151
|
+
# @param service_address [String]
|
152
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
153
|
+
# @param service_port [Integer]
|
154
|
+
# Override for the service port, or `nil` to leave as the default.
|
151
155
|
# @param exception_transformer [Proc]
|
152
156
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
153
157
|
# custom error handling.
|
@@ -185,7 +189,7 @@ module Google
|
|
185
189
|
#
|
186
190
|
# For more information about contexts, see the
|
187
191
|
# [Dialogflow
|
188
|
-
# documentation](https://cloud.google.com/dialogflow
|
192
|
+
# documentation](https://cloud.google.com/dialogflow/docs/contexts-overview).
|
189
193
|
#
|
190
194
|
# @param version [Symbol, String]
|
191
195
|
# The major version of the service to be used. By default :v2
|
@@ -217,6 +221,10 @@ module Google
|
|
217
221
|
# The default timeout, in seconds, for calls made through this client.
|
218
222
|
# @param metadata [Hash]
|
219
223
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
224
|
+
# @param service_address [String]
|
225
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
226
|
+
# @param service_port [Integer]
|
227
|
+
# Override for the service port, or `nil` to leave as the default.
|
220
228
|
# @param exception_transformer [Proc]
|
221
229
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
222
230
|
# custom error handling.
|
@@ -264,7 +272,7 @@ module Google
|
|
264
272
|
#
|
265
273
|
# For more information about entity types, see the
|
266
274
|
# [Dialogflow
|
267
|
-
# documentation](https://cloud.google.com/dialogflow
|
275
|
+
# documentation](https://cloud.google.com/dialogflow/docs/entities-overview).
|
268
276
|
#
|
269
277
|
# @param version [Symbol, String]
|
270
278
|
# The major version of the service to be used. By default :v2
|
@@ -296,6 +304,10 @@ module Google
|
|
296
304
|
# The default timeout, in seconds, for calls made through this client.
|
297
305
|
# @param metadata [Hash]
|
298
306
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
307
|
+
# @param service_address [String]
|
308
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
309
|
+
# @param service_port [Integer]
|
310
|
+
# Override for the service port, or `nil` to leave as the default.
|
299
311
|
# @param exception_transformer [Proc]
|
300
312
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
301
313
|
# custom error handling.
|
@@ -347,7 +359,7 @@ module Google
|
|
347
359
|
#
|
348
360
|
# For more information about intents, see the
|
349
361
|
# [Dialogflow
|
350
|
-
# documentation](https://cloud.google.com/dialogflow
|
362
|
+
# documentation](https://cloud.google.com/dialogflow/docs/intents-overview).
|
351
363
|
#
|
352
364
|
# @param version [Symbol, String]
|
353
365
|
# The major version of the service to be used. By default :v2
|
@@ -379,6 +391,10 @@ module Google
|
|
379
391
|
# The default timeout, in seconds, for calls made through this client.
|
380
392
|
# @param metadata [Hash]
|
381
393
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
394
|
+
# @param service_address [String]
|
395
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
396
|
+
# @param service_port [Integer]
|
397
|
+
# Override for the service port, or `nil` to leave as the default.
|
382
398
|
# @param exception_transformer [Proc]
|
383
399
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
384
400
|
# custom error handling.
|
@@ -411,7 +427,7 @@ module Google
|
|
411
427
|
#
|
412
428
|
# For more information about entity types, see the
|
413
429
|
# [Dialogflow
|
414
|
-
# documentation](https://cloud.google.com/dialogflow
|
430
|
+
# documentation](https://cloud.google.com/dialogflow/docs/entities-overview).
|
415
431
|
#
|
416
432
|
# @param version [Symbol, String]
|
417
433
|
# The major version of the service to be used. By default :v2
|
@@ -443,6 +459,10 @@ module Google
|
|
443
459
|
# The default timeout, in seconds, for calls made through this client.
|
444
460
|
# @param metadata [Hash]
|
445
461
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
462
|
+
# @param service_address [String]
|
463
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
464
|
+
# @param service_port [Integer]
|
465
|
+
# Override for the service port, or `nil` to leave as the default.
|
446
466
|
# @param exception_transformer [Proc]
|
447
467
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
448
468
|
# custom error handling.
|
@@ -498,6 +518,10 @@ module Google
|
|
498
518
|
# The default timeout, in seconds, for calls made through this client.
|
499
519
|
# @param metadata [Hash]
|
500
520
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
521
|
+
# @param service_address [String]
|
522
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
523
|
+
# @param service_port [Integer]
|
524
|
+
# Override for the service port, or `nil` to leave as the default.
|
501
525
|
# @param exception_transformer [Proc]
|
502
526
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
503
527
|
# custom error handling.
|
@@ -103,7 +103,7 @@ module Google
|
|
103
103
|
# You can create an agent using both Dialogflow Standard Edition and
|
104
104
|
# Dialogflow Enterprise Edition. For details, see
|
105
105
|
# [Dialogflow
|
106
|
-
# Editions](https://cloud.google.com/dialogflow
|
106
|
+
# Editions](https://cloud.google.com/dialogflow/docs/editions).
|
107
107
|
#
|
108
108
|
# You can save your agent for backup or versioning by exporting the agent by
|
109
109
|
# using the {Google::Cloud::Dialogflow::V2::Agents::ExportAgent ExportAgent} method. You can import a saved
|
@@ -111,13 +111,13 @@ module Google
|
|
111
111
|
#
|
112
112
|
# Dialogflow provides several
|
113
113
|
# [prebuilt
|
114
|
-
# agents](https://cloud.google.com/dialogflow
|
114
|
+
# agents](https://cloud.google.com/dialogflow/docs/agents-prebuilt)
|
115
115
|
# for common conversation scenarios such as determining a date and time,
|
116
116
|
# converting currency, and so on.
|
117
117
|
#
|
118
118
|
# For more information about agents, see the
|
119
119
|
# [Dialogflow
|
120
|
-
# documentation](https://cloud.google.com/dialogflow
|
120
|
+
# documentation](https://cloud.google.com/dialogflow/docs/agents-overview).
|
121
121
|
#
|
122
122
|
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
|
123
123
|
# Provides the means for authenticating requests made by the client. This parameter can
|
@@ -145,6 +145,10 @@ module Google
|
|
145
145
|
# The default timeout, in seconds, for calls made through this client.
|
146
146
|
# @param metadata [Hash]
|
147
147
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
148
|
+
# @param service_address [String]
|
149
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
150
|
+
# @param service_port [Integer]
|
151
|
+
# Override for the service port, or `nil` to leave as the default.
|
148
152
|
# @param exception_transformer [Proc]
|
149
153
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
150
154
|
# custom error handling.
|
@@ -154,6 +158,8 @@ module Google
|
|
154
158
|
client_config: nil,
|
155
159
|
timeout: nil,
|
156
160
|
metadata: nil,
|
161
|
+
service_address: nil,
|
162
|
+
service_port: nil,
|
157
163
|
exception_transformer: nil,
|
158
164
|
lib_name: nil,
|
159
165
|
lib_version: nil
|
@@ -165,6 +171,8 @@ module Google
|
|
165
171
|
metadata: metadata,
|
166
172
|
exception_transformer: exception_transformer,
|
167
173
|
lib_name: lib_name,
|
174
|
+
service_address: service_address,
|
175
|
+
service_port: service_port,
|
168
176
|
lib_version: lib_version
|
169
177
|
}.select { |_, v| v != nil }
|
170
178
|
Google::Cloud::Dialogflow::V2::AgentsClient.new(**kwargs)
|
@@ -190,7 +198,7 @@ module Google
|
|
190
198
|
#
|
191
199
|
# For more information about contexts, see the
|
192
200
|
# [Dialogflow
|
193
|
-
# documentation](https://cloud.google.com/dialogflow
|
201
|
+
# documentation](https://cloud.google.com/dialogflow/docs/contexts-overview).
|
194
202
|
#
|
195
203
|
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
|
196
204
|
# Provides the means for authenticating requests made by the client. This parameter can
|
@@ -218,6 +226,10 @@ module Google
|
|
218
226
|
# The default timeout, in seconds, for calls made through this client.
|
219
227
|
# @param metadata [Hash]
|
220
228
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
229
|
+
# @param service_address [String]
|
230
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
231
|
+
# @param service_port [Integer]
|
232
|
+
# Override for the service port, or `nil` to leave as the default.
|
221
233
|
# @param exception_transformer [Proc]
|
222
234
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
223
235
|
# custom error handling.
|
@@ -227,6 +239,8 @@ module Google
|
|
227
239
|
client_config: nil,
|
228
240
|
timeout: nil,
|
229
241
|
metadata: nil,
|
242
|
+
service_address: nil,
|
243
|
+
service_port: nil,
|
230
244
|
exception_transformer: nil,
|
231
245
|
lib_name: nil,
|
232
246
|
lib_version: nil
|
@@ -238,6 +252,8 @@ module Google
|
|
238
252
|
metadata: metadata,
|
239
253
|
exception_transformer: exception_transformer,
|
240
254
|
lib_name: lib_name,
|
255
|
+
service_address: service_address,
|
256
|
+
service_port: service_port,
|
241
257
|
lib_version: lib_version
|
242
258
|
}.select { |_, v| v != nil }
|
243
259
|
Google::Cloud::Dialogflow::V2::ContextsClient.new(**kwargs)
|
@@ -273,7 +289,7 @@ module Google
|
|
273
289
|
#
|
274
290
|
# For more information about entity types, see the
|
275
291
|
# [Dialogflow
|
276
|
-
# documentation](https://cloud.google.com/dialogflow
|
292
|
+
# documentation](https://cloud.google.com/dialogflow/docs/entities-overview).
|
277
293
|
#
|
278
294
|
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
|
279
295
|
# Provides the means for authenticating requests made by the client. This parameter can
|
@@ -301,6 +317,10 @@ module Google
|
|
301
317
|
# The default timeout, in seconds, for calls made through this client.
|
302
318
|
# @param metadata [Hash]
|
303
319
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
320
|
+
# @param service_address [String]
|
321
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
322
|
+
# @param service_port [Integer]
|
323
|
+
# Override for the service port, or `nil` to leave as the default.
|
304
324
|
# @param exception_transformer [Proc]
|
305
325
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
306
326
|
# custom error handling.
|
@@ -310,6 +330,8 @@ module Google
|
|
310
330
|
client_config: nil,
|
311
331
|
timeout: nil,
|
312
332
|
metadata: nil,
|
333
|
+
service_address: nil,
|
334
|
+
service_port: nil,
|
313
335
|
exception_transformer: nil,
|
314
336
|
lib_name: nil,
|
315
337
|
lib_version: nil
|
@@ -321,6 +343,8 @@ module Google
|
|
321
343
|
metadata: metadata,
|
322
344
|
exception_transformer: exception_transformer,
|
323
345
|
lib_name: lib_name,
|
346
|
+
service_address: service_address,
|
347
|
+
service_port: service_port,
|
324
348
|
lib_version: lib_version
|
325
349
|
}.select { |_, v| v != nil }
|
326
350
|
Google::Cloud::Dialogflow::V2::EntityTypesClient.new(**kwargs)
|
@@ -360,7 +384,7 @@ module Google
|
|
360
384
|
#
|
361
385
|
# For more information about intents, see the
|
362
386
|
# [Dialogflow
|
363
|
-
# documentation](https://cloud.google.com/dialogflow
|
387
|
+
# documentation](https://cloud.google.com/dialogflow/docs/intents-overview).
|
364
388
|
#
|
365
389
|
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
|
366
390
|
# Provides the means for authenticating requests made by the client. This parameter can
|
@@ -388,6 +412,10 @@ module Google
|
|
388
412
|
# The default timeout, in seconds, for calls made through this client.
|
389
413
|
# @param metadata [Hash]
|
390
414
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
415
|
+
# @param service_address [String]
|
416
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
417
|
+
# @param service_port [Integer]
|
418
|
+
# Override for the service port, or `nil` to leave as the default.
|
391
419
|
# @param exception_transformer [Proc]
|
392
420
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
393
421
|
# custom error handling.
|
@@ -397,6 +425,8 @@ module Google
|
|
397
425
|
client_config: nil,
|
398
426
|
timeout: nil,
|
399
427
|
metadata: nil,
|
428
|
+
service_address: nil,
|
429
|
+
service_port: nil,
|
400
430
|
exception_transformer: nil,
|
401
431
|
lib_name: nil,
|
402
432
|
lib_version: nil
|
@@ -408,6 +438,8 @@ module Google
|
|
408
438
|
metadata: metadata,
|
409
439
|
exception_transformer: exception_transformer,
|
410
440
|
lib_name: lib_name,
|
441
|
+
service_address: service_address,
|
442
|
+
service_port: service_port,
|
411
443
|
lib_version: lib_version
|
412
444
|
}.select { |_, v| v != nil }
|
413
445
|
Google::Cloud::Dialogflow::V2::IntentsClient.new(**kwargs)
|
@@ -428,7 +460,7 @@ module Google
|
|
428
460
|
#
|
429
461
|
# For more information about entity types, see the
|
430
462
|
# [Dialogflow
|
431
|
-
# documentation](https://cloud.google.com/dialogflow
|
463
|
+
# documentation](https://cloud.google.com/dialogflow/docs/entities-overview).
|
432
464
|
#
|
433
465
|
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
|
434
466
|
# Provides the means for authenticating requests made by the client. This parameter can
|
@@ -456,6 +488,10 @@ module Google
|
|
456
488
|
# The default timeout, in seconds, for calls made through this client.
|
457
489
|
# @param metadata [Hash]
|
458
490
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
491
|
+
# @param service_address [String]
|
492
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
493
|
+
# @param service_port [Integer]
|
494
|
+
# Override for the service port, or `nil` to leave as the default.
|
459
495
|
# @param exception_transformer [Proc]
|
460
496
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
461
497
|
# custom error handling.
|
@@ -465,6 +501,8 @@ module Google
|
|
465
501
|
client_config: nil,
|
466
502
|
timeout: nil,
|
467
503
|
metadata: nil,
|
504
|
+
service_address: nil,
|
505
|
+
service_port: nil,
|
468
506
|
exception_transformer: nil,
|
469
507
|
lib_name: nil,
|
470
508
|
lib_version: nil
|
@@ -476,6 +514,8 @@ module Google
|
|
476
514
|
metadata: metadata,
|
477
515
|
exception_transformer: exception_transformer,
|
478
516
|
lib_name: lib_name,
|
517
|
+
service_address: service_address,
|
518
|
+
service_port: service_port,
|
479
519
|
lib_version: lib_version
|
480
520
|
}.select { |_, v| v != nil }
|
481
521
|
Google::Cloud::Dialogflow::V2::SessionEntityTypesClient.new(**kwargs)
|
@@ -515,6 +555,10 @@ module Google
|
|
515
555
|
# The default timeout, in seconds, for calls made through this client.
|
516
556
|
# @param metadata [Hash]
|
517
557
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
558
|
+
# @param service_address [String]
|
559
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
560
|
+
# @param service_port [Integer]
|
561
|
+
# Override for the service port, or `nil` to leave as the default.
|
518
562
|
# @param exception_transformer [Proc]
|
519
563
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
520
564
|
# custom error handling.
|
@@ -524,6 +568,8 @@ module Google
|
|
524
568
|
client_config: nil,
|
525
569
|
timeout: nil,
|
526
570
|
metadata: nil,
|
571
|
+
service_address: nil,
|
572
|
+
service_port: nil,
|
527
573
|
exception_transformer: nil,
|
528
574
|
lib_name: nil,
|
529
575
|
lib_version: nil
|
@@ -535,6 +581,8 @@ module Google
|
|
535
581
|
metadata: metadata,
|
536
582
|
exception_transformer: exception_transformer,
|
537
583
|
lib_name: lib_name,
|
584
|
+
service_address: service_address,
|
585
|
+
service_port: service_port,
|
538
586
|
lib_version: lib_version
|
539
587
|
}.select { |_, v| v != nil }
|
540
588
|
Google::Cloud::Dialogflow::V2::SessionsClient.new(**kwargs)
|
@@ -8,7 +8,7 @@ require 'google/api/annotations_pb'
|
|
8
8
|
require 'google/longrunning/operations_pb'
|
9
9
|
require 'google/protobuf/empty_pb'
|
10
10
|
require 'google/protobuf/field_mask_pb'
|
11
|
-
require 'google/
|
11
|
+
require 'google/api/client_pb'
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_message "google.cloud.dialogflow.v2.Agent" do
|
14
14
|
optional :parent, :string, 1
|
@@ -21,15 +21,36 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
21
21
|
optional :enable_logging, :bool, 8
|
22
22
|
optional :match_mode, :enum, 9, "google.cloud.dialogflow.v2.Agent.MatchMode"
|
23
23
|
optional :classification_threshold, :float, 10
|
24
|
+
optional :api_version, :enum, 14, "google.cloud.dialogflow.v2.Agent.ApiVersion"
|
25
|
+
optional :tier, :enum, 15, "google.cloud.dialogflow.v2.Agent.Tier"
|
24
26
|
end
|
25
27
|
add_enum "google.cloud.dialogflow.v2.Agent.MatchMode" do
|
26
28
|
value :MATCH_MODE_UNSPECIFIED, 0
|
27
29
|
value :MATCH_MODE_HYBRID, 1
|
28
30
|
value :MATCH_MODE_ML_ONLY, 2
|
29
31
|
end
|
32
|
+
add_enum "google.cloud.dialogflow.v2.Agent.ApiVersion" do
|
33
|
+
value :API_VERSION_UNSPECIFIED, 0
|
34
|
+
value :API_VERSION_V1, 1
|
35
|
+
value :API_VERSION_V2, 2
|
36
|
+
value :API_VERSION_V2_BETA_1, 3
|
37
|
+
end
|
38
|
+
add_enum "google.cloud.dialogflow.v2.Agent.Tier" do
|
39
|
+
value :TIER_UNSPECIFIED, 0
|
40
|
+
value :TIER_STANDARD, 1
|
41
|
+
value :TIER_ENTERPRISE, 2
|
42
|
+
value :TIER_ENTERPRISE_PLUS, 3
|
43
|
+
end
|
30
44
|
add_message "google.cloud.dialogflow.v2.GetAgentRequest" do
|
31
45
|
optional :parent, :string, 1
|
32
46
|
end
|
47
|
+
add_message "google.cloud.dialogflow.v2.SetAgentRequest" do
|
48
|
+
optional :agent, :message, 1, "google.cloud.dialogflow.v2.Agent"
|
49
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
50
|
+
end
|
51
|
+
add_message "google.cloud.dialogflow.v2.DeleteAgentRequest" do
|
52
|
+
optional :parent, :string, 1
|
53
|
+
end
|
33
54
|
add_message "google.cloud.dialogflow.v2.SearchAgentsRequest" do
|
34
55
|
optional :parent, :string, 1
|
35
56
|
optional :page_size, :int32, 2
|
@@ -74,7 +95,11 @@ module Google
|
|
74
95
|
module V2
|
75
96
|
Agent = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Agent").msgclass
|
76
97
|
Agent::MatchMode = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Agent.MatchMode").enummodule
|
98
|
+
Agent::ApiVersion = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Agent.ApiVersion").enummodule
|
99
|
+
Agent::Tier = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Agent.Tier").enummodule
|
77
100
|
GetAgentRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GetAgentRequest").msgclass
|
101
|
+
SetAgentRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SetAgentRequest").msgclass
|
102
|
+
DeleteAgentRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.DeleteAgentRequest").msgclass
|
78
103
|
SearchAgentsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SearchAgentsRequest").msgclass
|
79
104
|
SearchAgentsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SearchAgentsResponse").msgclass
|
80
105
|
TrainAgentRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.TrainAgentRequest").msgclass
|
@@ -39,7 +39,7 @@ module Google
|
|
39
39
|
# You can create an agent using both Dialogflow Standard Edition and
|
40
40
|
# Dialogflow Enterprise Edition. For details, see
|
41
41
|
# [Dialogflow
|
42
|
-
# Editions](https://cloud.google.com/dialogflow
|
42
|
+
# Editions](https://cloud.google.com/dialogflow/docs/editions).
|
43
43
|
#
|
44
44
|
# You can save your agent for backup or versioning by exporting the agent by
|
45
45
|
# using the [ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent] method. You can import a saved
|
@@ -47,13 +47,13 @@ module Google
|
|
47
47
|
#
|
48
48
|
# Dialogflow provides several
|
49
49
|
# [prebuilt
|
50
|
-
# agents](https://cloud.google.com/dialogflow
|
50
|
+
# agents](https://cloud.google.com/dialogflow/docs/agents-prebuilt)
|
51
51
|
# for common conversation scenarios such as determining a date and time,
|
52
52
|
# converting currency, and so on.
|
53
53
|
#
|
54
54
|
# For more information about agents, see the
|
55
55
|
# [Dialogflow
|
56
|
-
# documentation](https://cloud.google.com/dialogflow
|
56
|
+
# documentation](https://cloud.google.com/dialogflow/docs/agents-overview).
|
57
57
|
class Service
|
58
58
|
|
59
59
|
include GRPC::GenericService
|
@@ -64,6 +64,10 @@ module Google
|
|
64
64
|
|
65
65
|
# Retrieves the specified agent.
|
66
66
|
rpc :GetAgent, GetAgentRequest, Agent
|
67
|
+
# Creates/updates the specified agent.
|
68
|
+
rpc :SetAgent, SetAgentRequest, Agent
|
69
|
+
# Deletes the specified agent.
|
70
|
+
rpc :DeleteAgent, DeleteAgentRequest, Google::Protobuf::Empty
|
67
71
|
# Returns the list of agents.
|
68
72
|
#
|
69
73
|
# Since there is at most one conversational agent per project, this method is
|