google-cloud-dialogflow-v2 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +48 -1
- data/lib/google-cloud-dialogflow-v2.rb +21 -1
- data/lib/google/cloud/dialogflow/v2.rb +16 -0
- data/lib/google/cloud/dialogflow/v2/agents.rb +58 -2
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +88 -65
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +39 -33
- data/lib/google/cloud/dialogflow/v2/contexts.rb +47 -1
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +62 -39
- data/lib/google/cloud/dialogflow/v2/contexts/paths.rb +43 -0
- data/lib/google/cloud/dialogflow/v2/entity_types.rb +58 -2
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +103 -65
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +39 -33
- data/lib/google/cloud/dialogflow/v2/entity_types/paths.rb +14 -0
- data/lib/google/cloud/dialogflow/v2/intents.rb +62 -2
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +74 -47
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +39 -33
- data/lib/google/cloud/dialogflow/v2/intents/paths.rb +14 -0
- data/lib/google/cloud/dialogflow/v2/session_entity_types.rb +46 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +48 -53
- data/lib/google/cloud/dialogflow/v2/session_entity_types/paths.rb +43 -0
- data/lib/google/cloud/dialogflow/v2/sessions.rb +33 -1
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +15 -28
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/proto_docs/google/cloud/dialogflow/v2/agent.rb +0 -2
- data/proto_docs/google/cloud/dialogflow/v2/context.rb +1 -1
- data/proto_docs/google/cloud/dialogflow/v2/session.rb +28 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7b82709afedacbe0f56ca44aa0672e496501f7f577724b4ecd6f254935712ae
|
4
|
+
data.tar.gz: d2fb17fecc2e54e01e3ab7c0ddc39e298ce4597f088c66e894fec5432230f48b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf6ae2afc93029fdc525c22c5ef785880c2493bfff9edce2370b65a4d6bb8f9ca6043f14006da9a7b35ebf95b8dfca510778eebdf91edef7143745aa1d6e2e2c
|
7
|
+
data.tar.gz: e5227e577dc00c5945c161278e54b09ee8895206bb8abd4b4e8d18afed3a52a9fd37edfae9067b0e7757d2d19f58bfeb172ba0d1dac74474baef3396bb412767
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Dialogflow V2
|
1
|
+
# Ruby Client for the Dialogflow V2 API
|
2
2
|
|
3
3
|
API Client library for the Dialogflow V2 API
|
4
4
|
|
@@ -12,6 +12,53 @@ https://github.com/googleapis/google-cloud-ruby
|
|
12
12
|
$ gem install google-cloud-dialogflow-v2
|
13
13
|
```
|
14
14
|
|
15
|
+
## Before You Begin
|
16
|
+
|
17
|
+
In order to use this library, you first need to go through the following steps:
|
18
|
+
|
19
|
+
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
20
|
+
1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
21
|
+
1. {file:AUTHENTICATION.md Set up authentication.}
|
22
|
+
|
23
|
+
## Quick Start
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
require "google/cloud/dialogflow/v2"
|
27
|
+
|
28
|
+
client = Google::Cloud::Dialogflow::V2::Agents::Client.new
|
29
|
+
request = my_create_request
|
30
|
+
response = client.get_agent request
|
31
|
+
```
|
32
|
+
|
33
|
+
View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest)
|
34
|
+
for class and method documentation.
|
35
|
+
|
36
|
+
## Enabling Logging
|
37
|
+
|
38
|
+
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
39
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
|
40
|
+
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
41
|
+
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
42
|
+
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
43
|
+
|
44
|
+
Configuring a Ruby stdlib logger:
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
require "logger"
|
48
|
+
|
49
|
+
module MyLogger
|
50
|
+
LOGGER = Logger.new $stderr, level: Logger::WARN
|
51
|
+
def logger
|
52
|
+
LOGGER
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
57
|
+
module GRPC
|
58
|
+
extend MyLogger
|
59
|
+
end
|
60
|
+
```
|
61
|
+
|
15
62
|
## Supported Ruby Versions
|
16
63
|
|
17
64
|
This library is supported on Ruby 2.4+.
|
@@ -1 +1,21 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
# This gem does not autoload during Bundler.require. To load this gem,
|
20
|
+
# issue explicit require statements for the packages desired, e.g.:
|
21
|
+
# require "google/cloud/dialogflow/v2"
|
@@ -22,3 +22,19 @@ require "google/cloud/dialogflow/v2/entity_types"
|
|
22
22
|
require "google/cloud/dialogflow/v2/intents"
|
23
23
|
require "google/cloud/dialogflow/v2/session_entity_types"
|
24
24
|
require "google/cloud/dialogflow/v2/sessions"
|
25
|
+
require "google/cloud/dialogflow/v2/version"
|
26
|
+
|
27
|
+
module Google
|
28
|
+
module Cloud
|
29
|
+
module Dialogflow
|
30
|
+
##
|
31
|
+
# To load this package, including all its services, and instantiate a client:
|
32
|
+
#
|
33
|
+
# require "google/cloud/dialogflow/v2"
|
34
|
+
# client = Google::Cloud::Dialogflow::V2::Agents::Client.new
|
35
|
+
#
|
36
|
+
module V2
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -16,6 +16,62 @@
|
|
16
16
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
|
-
require "
|
20
|
-
require "
|
19
|
+
require "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/dialogflow/v2/version"
|
24
|
+
|
21
25
|
require "google/cloud/dialogflow/v2/agents/credentials"
|
26
|
+
require "google/cloud/dialogflow/v2/agents/paths"
|
27
|
+
require "google/cloud/dialogflow/v2/agents/operations"
|
28
|
+
require "google/cloud/dialogflow/v2/agents/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module Dialogflow
|
33
|
+
module V2
|
34
|
+
##
|
35
|
+
# Agents are best described as Natural Language Understanding (NLU) modules
|
36
|
+
# that transform user requests into actionable data. You can include agents
|
37
|
+
# in your app, product, or service to determine user intent and respond to the
|
38
|
+
# user in a natural way.
|
39
|
+
#
|
40
|
+
# After you create an agent, you can add {Google::Cloud::Dialogflow::V2::Intents::Client Intents}, {Google::Cloud::Dialogflow::V2::Contexts::Client Contexts},
|
41
|
+
# [Entity Types][google.cloud.dialogflow.v2.EntityTypes], {Google::Cloud::Dialogflow::V2::WebhookRequest Webhooks}, and so on to
|
42
|
+
# manage the flow of a conversation and match user input to predefined intents
|
43
|
+
# and actions.
|
44
|
+
#
|
45
|
+
# You can create an agent using both Dialogflow Standard Edition and
|
46
|
+
# Dialogflow Enterprise Edition. For details, see
|
47
|
+
# [Dialogflow
|
48
|
+
# Editions](https://cloud.google.com/dialogflow/docs/editions).
|
49
|
+
#
|
50
|
+
# You can save your agent for backup or versioning by exporting the agent by
|
51
|
+
# using the {Google::Cloud::Dialogflow::V2::Agents::Client#export_agent ExportAgent} method. You can import a saved
|
52
|
+
# agent by using the {Google::Cloud::Dialogflow::V2::Agents::Client#import_agent ImportAgent} method.
|
53
|
+
#
|
54
|
+
# Dialogflow provides several
|
55
|
+
# [prebuilt
|
56
|
+
# agents](https://cloud.google.com/dialogflow/docs/agents-prebuilt)
|
57
|
+
# for common conversation scenarios such as determining a date and time,
|
58
|
+
# converting currency, and so on.
|
59
|
+
#
|
60
|
+
# For more information about agents, see the
|
61
|
+
# [Dialogflow
|
62
|
+
# documentation](https://cloud.google.com/dialogflow/docs/agents-overview).
|
63
|
+
#
|
64
|
+
# To load this service and instantiate a client:
|
65
|
+
#
|
66
|
+
# require "google/cloud/dialogflow/v2/agents"
|
67
|
+
# client = Google::Cloud::Dialogflow::V2::Agents::Client.new
|
68
|
+
#
|
69
|
+
module Agents
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
helper_path = ::File.join __dir__, "agents", "helpers.rb"
|
77
|
+
require "google/cloud/dialogflow/v2/agents/helpers" if ::File.file? helper_path
|
@@ -16,16 +16,8 @@
|
|
16
16
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
|
-
require "gapic/common"
|
20
|
-
require "gapic/config"
|
21
|
-
require "gapic/config/method"
|
22
|
-
|
23
19
|
require "google/cloud/errors"
|
24
|
-
require "google/cloud/dialogflow/v2/version"
|
25
20
|
require "google/cloud/dialogflow/v2/agent_pb"
|
26
|
-
require "google/cloud/dialogflow/v2/agents/credentials"
|
27
|
-
require "google/cloud/dialogflow/v2/agents/paths"
|
28
|
-
require "google/cloud/dialogflow/v2/agents/operations"
|
29
21
|
|
30
22
|
module Google
|
31
23
|
module Cloud
|
@@ -244,17 +236,24 @@ module Google
|
|
244
236
|
# Retrieves the specified agent.
|
245
237
|
#
|
246
238
|
# @overload get_agent(request, options = nil)
|
247
|
-
#
|
248
|
-
#
|
239
|
+
# Pass arguments to `get_agent` via a request object, either of type
|
240
|
+
# {Google::Cloud::Dialogflow::V2::GetAgentRequest} or an equivalent Hash.
|
241
|
+
#
|
242
|
+
# @param request [Google::Cloud::Dialogflow::V2::GetAgentRequest, Hash]
|
243
|
+
# A request object representing the call parameters. Required. To specify no
|
244
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
249
245
|
# @param options [Gapic::CallOptions, Hash]
|
250
246
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
251
247
|
#
|
252
248
|
# @overload get_agent(parent: nil)
|
249
|
+
# Pass arguments to `get_agent` via keyword arguments. Note that at
|
250
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
251
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
252
|
+
#
|
253
253
|
# @param parent [String]
|
254
254
|
# Required. The project that the agent to fetch is associated with.
|
255
255
|
# Format: `projects/<Project ID>`.
|
256
256
|
#
|
257
|
-
#
|
258
257
|
# @yield [response, operation] Access the result along with the RPC operation
|
259
258
|
# @yieldparam response [Google::Cloud::Dialogflow::V2::Agent]
|
260
259
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -304,18 +303,25 @@ module Google
|
|
304
303
|
# Creates/updates the specified agent.
|
305
304
|
#
|
306
305
|
# @overload set_agent(request, options = nil)
|
307
|
-
#
|
308
|
-
#
|
306
|
+
# Pass arguments to `set_agent` via a request object, either of type
|
307
|
+
# {Google::Cloud::Dialogflow::V2::SetAgentRequest} or an equivalent Hash.
|
308
|
+
#
|
309
|
+
# @param request [Google::Cloud::Dialogflow::V2::SetAgentRequest, Hash]
|
310
|
+
# A request object representing the call parameters. Required. To specify no
|
311
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
309
312
|
# @param options [Gapic::CallOptions, Hash]
|
310
313
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
311
314
|
#
|
312
315
|
# @overload set_agent(agent: nil, update_mask: nil)
|
313
|
-
#
|
316
|
+
# Pass arguments to `set_agent` via keyword arguments. Note that at
|
317
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
318
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
319
|
+
#
|
320
|
+
# @param agent [Google::Cloud::Dialogflow::V2::Agent, Hash]
|
314
321
|
# Required. The agent to update.
|
315
|
-
# @param update_mask [Google::Protobuf::FieldMask
|
322
|
+
# @param update_mask [Google::Protobuf::FieldMask, Hash]
|
316
323
|
# Optional. The mask to control which fields get updated.
|
317
324
|
#
|
318
|
-
#
|
319
325
|
# @yield [response, operation] Access the result along with the RPC operation
|
320
326
|
# @yieldparam response [Google::Cloud::Dialogflow::V2::Agent]
|
321
327
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -365,17 +371,24 @@ module Google
|
|
365
371
|
# Deletes the specified agent.
|
366
372
|
#
|
367
373
|
# @overload delete_agent(request, options = nil)
|
368
|
-
#
|
369
|
-
#
|
374
|
+
# Pass arguments to `delete_agent` via a request object, either of type
|
375
|
+
# {Google::Cloud::Dialogflow::V2::DeleteAgentRequest} or an equivalent Hash.
|
376
|
+
#
|
377
|
+
# @param request [Google::Cloud::Dialogflow::V2::DeleteAgentRequest, Hash]
|
378
|
+
# A request object representing the call parameters. Required. To specify no
|
379
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
370
380
|
# @param options [Gapic::CallOptions, Hash]
|
371
381
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
372
382
|
#
|
373
383
|
# @overload delete_agent(parent: nil)
|
384
|
+
# Pass arguments to `delete_agent` via keyword arguments. Note that at
|
385
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
386
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
387
|
+
#
|
374
388
|
# @param parent [String]
|
375
389
|
# Required. The project that the agent to delete is associated with.
|
376
390
|
# Format: `projects/<Project ID>`.
|
377
391
|
#
|
378
|
-
#
|
379
392
|
# @yield [response, operation] Access the result along with the RPC operation
|
380
393
|
# @yieldparam response [Google::Protobuf::Empty]
|
381
394
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -431,18 +444,20 @@ module Google
|
|
431
444
|
# Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
|
432
445
|
#
|
433
446
|
# @overload search_agents(request, options = nil)
|
434
|
-
#
|
435
|
-
#
|
436
|
-
#
|
437
|
-
#
|
438
|
-
#
|
439
|
-
#
|
440
|
-
# Refer to [List
|
441
|
-
# Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
|
447
|
+
# Pass arguments to `search_agents` via a request object, either of type
|
448
|
+
# {Google::Cloud::Dialogflow::V2::SearchAgentsRequest} or an equivalent Hash.
|
449
|
+
#
|
450
|
+
# @param request [Google::Cloud::Dialogflow::V2::SearchAgentsRequest, Hash]
|
451
|
+
# A request object representing the call parameters. Required. To specify no
|
452
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
442
453
|
# @param options [Gapic::CallOptions, Hash]
|
443
454
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
444
455
|
#
|
445
456
|
# @overload search_agents(parent: nil, page_size: nil, page_token: nil)
|
457
|
+
# Pass arguments to `search_agents` via keyword arguments. Note that at
|
458
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
459
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
460
|
+
#
|
446
461
|
# @param parent [String]
|
447
462
|
# Required. The project to list agents from.
|
448
463
|
# Format: `projects/<Project ID or '-'>`.
|
@@ -452,7 +467,6 @@ module Google
|
|
452
467
|
# @param page_token [String]
|
453
468
|
# The next_page_token value returned from a previous list request.
|
454
469
|
#
|
455
|
-
#
|
456
470
|
# @yield [response, operation] Access the result along with the RPC operation
|
457
471
|
# @yieldparam response [Gapic::PagedEnumerable<Google::Cloud::Dialogflow::V2::Agent>]
|
458
472
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -505,19 +519,24 @@ module Google
|
|
505
519
|
# Operation <response: {Google::Protobuf::Empty google.protobuf.Empty}>
|
506
520
|
#
|
507
521
|
# @overload train_agent(request, options = nil)
|
508
|
-
#
|
509
|
-
#
|
522
|
+
# Pass arguments to `train_agent` via a request object, either of type
|
523
|
+
# {Google::Cloud::Dialogflow::V2::TrainAgentRequest} or an equivalent Hash.
|
510
524
|
#
|
511
|
-
#
|
525
|
+
# @param request [Google::Cloud::Dialogflow::V2::TrainAgentRequest, Hash]
|
526
|
+
# A request object representing the call parameters. Required. To specify no
|
527
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
512
528
|
# @param options [Gapic::CallOptions, Hash]
|
513
529
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
514
530
|
#
|
515
531
|
# @overload train_agent(parent: nil)
|
532
|
+
# Pass arguments to `train_agent` via keyword arguments. Note that at
|
533
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
534
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
535
|
+
#
|
516
536
|
# @param parent [String]
|
517
537
|
# Required. The project that the agent to train is associated with.
|
518
538
|
# Format: `projects/<Project ID>`.
|
519
539
|
#
|
520
|
-
#
|
521
540
|
# @yield [response, operation] Access the result along with the RPC operation
|
522
541
|
# @yieldparam response [Gapic::Operation]
|
523
542
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -570,14 +589,20 @@ module Google
|
|
570
589
|
# Operation <response: {Google::Cloud::Dialogflow::V2::ExportAgentResponse ExportAgentResponse}>
|
571
590
|
#
|
572
591
|
# @overload export_agent(request, options = nil)
|
573
|
-
#
|
574
|
-
#
|
592
|
+
# Pass arguments to `export_agent` via a request object, either of type
|
593
|
+
# {Google::Cloud::Dialogflow::V2::ExportAgentRequest} or an equivalent Hash.
|
575
594
|
#
|
576
|
-
#
|
595
|
+
# @param request [Google::Cloud::Dialogflow::V2::ExportAgentRequest, Hash]
|
596
|
+
# A request object representing the call parameters. Required. To specify no
|
597
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
577
598
|
# @param options [Gapic::CallOptions, Hash]
|
578
599
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
579
600
|
#
|
580
601
|
# @overload export_agent(parent: nil, agent_uri: nil)
|
602
|
+
# Pass arguments to `export_agent` via keyword arguments. Note that at
|
603
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
604
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
605
|
+
#
|
581
606
|
# @param parent [String]
|
582
607
|
# Required. The project that the agent to export is associated with.
|
583
608
|
# Format: `projects/<Project ID>`.
|
@@ -587,7 +612,6 @@ module Google
|
|
587
612
|
# The format of this URI must be `gs://<bucket-name>/<object-name>`.
|
588
613
|
# If left unspecified, the serialized agent is returned inline.
|
589
614
|
#
|
590
|
-
#
|
591
615
|
# @yield [response, operation] Access the result along with the RPC operation
|
592
616
|
# @yieldparam response [Gapic::Operation]
|
593
617
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -644,18 +668,20 @@ module Google
|
|
644
668
|
# Operation <response: {Google::Protobuf::Empty google.protobuf.Empty}>
|
645
669
|
#
|
646
670
|
# @overload import_agent(request, options = nil)
|
647
|
-
#
|
648
|
-
#
|
671
|
+
# Pass arguments to `import_agent` via a request object, either of type
|
672
|
+
# {Google::Cloud::Dialogflow::V2::ImportAgentRequest} or an equivalent Hash.
|
649
673
|
#
|
650
|
-
#
|
651
|
-
#
|
652
|
-
#
|
653
|
-
#
|
654
|
-
# Operation <response: {Google::Protobuf::Empty google.protobuf.Empty}>
|
674
|
+
# @param request [Google::Cloud::Dialogflow::V2::ImportAgentRequest, Hash]
|
675
|
+
# A request object representing the call parameters. Required. To specify no
|
676
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
655
677
|
# @param options [Gapic::CallOptions, Hash]
|
656
678
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
657
679
|
#
|
658
680
|
# @overload import_agent(parent: nil, agent_uri: nil, agent_content: nil)
|
681
|
+
# Pass arguments to `import_agent` via keyword arguments. Note that at
|
682
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
683
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
684
|
+
#
|
659
685
|
# @param parent [String]
|
660
686
|
# Required. The project that the agent to import is associated with.
|
661
687
|
# Format: `projects/<Project ID>`.
|
@@ -665,7 +691,6 @@ module Google
|
|
665
691
|
# @param agent_content [String]
|
666
692
|
# Zip compressed raw byte content for agent.
|
667
693
|
#
|
668
|
-
#
|
669
694
|
# @yield [response, operation] Access the result along with the RPC operation
|
670
695
|
# @yieldparam response [Gapic::Operation]
|
671
696
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -721,17 +746,20 @@ module Google
|
|
721
746
|
# Operation <response: {Google::Protobuf::Empty google.protobuf.Empty}>
|
722
747
|
#
|
723
748
|
# @overload restore_agent(request, options = nil)
|
724
|
-
#
|
725
|
-
#
|
726
|
-
#
|
727
|
-
# Replaces the current agent version with a new one. All the intents and
|
728
|
-
# entity types in the older version are deleted.
|
749
|
+
# Pass arguments to `restore_agent` via a request object, either of type
|
750
|
+
# {Google::Cloud::Dialogflow::V2::RestoreAgentRequest} or an equivalent Hash.
|
729
751
|
#
|
730
|
-
#
|
752
|
+
# @param request [Google::Cloud::Dialogflow::V2::RestoreAgentRequest, Hash]
|
753
|
+
# A request object representing the call parameters. Required. To specify no
|
754
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
731
755
|
# @param options [Gapic::CallOptions, Hash]
|
732
756
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
733
757
|
#
|
734
758
|
# @overload restore_agent(parent: nil, agent_uri: nil, agent_content: nil)
|
759
|
+
# Pass arguments to `restore_agent` via keyword arguments. Note that at
|
760
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
761
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
762
|
+
#
|
735
763
|
# @param parent [String]
|
736
764
|
# Required. The project that the agent to restore is associated with.
|
737
765
|
# Format: `projects/<Project ID>`.
|
@@ -741,7 +769,6 @@ module Google
|
|
741
769
|
# @param agent_content [String]
|
742
770
|
# Zip compressed raw byte content for agent.
|
743
771
|
#
|
744
|
-
#
|
745
772
|
# @yield [response, operation] Access the result along with the RPC operation
|
746
773
|
# @yieldparam response [Gapic::Operation]
|
747
774
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -793,13 +820,20 @@ module Google
|
|
793
820
|
# training time and is updated automatically when training is completed.
|
794
821
|
#
|
795
822
|
# @overload get_validation_result(request, options = nil)
|
796
|
-
#
|
797
|
-
#
|
798
|
-
#
|
823
|
+
# Pass arguments to `get_validation_result` via a request object, either of type
|
824
|
+
# {Google::Cloud::Dialogflow::V2::GetValidationResultRequest} or an equivalent Hash.
|
825
|
+
#
|
826
|
+
# @param request [Google::Cloud::Dialogflow::V2::GetValidationResultRequest, Hash]
|
827
|
+
# A request object representing the call parameters. Required. To specify no
|
828
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
799
829
|
# @param options [Gapic::CallOptions, Hash]
|
800
830
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
801
831
|
#
|
802
832
|
# @overload get_validation_result(parent: nil, language_code: nil)
|
833
|
+
# Pass arguments to `get_validation_result` via keyword arguments. Note that at
|
834
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
835
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
836
|
+
#
|
803
837
|
# @param parent [String]
|
804
838
|
# Required. The project that the agent is associated with.
|
805
839
|
# Format: `projects/<Project ID>`.
|
@@ -810,7 +844,6 @@ module Google
|
|
810
844
|
# are supported. Note: languages must be enabled in the agent before they can
|
811
845
|
# be used.
|
812
846
|
#
|
813
|
-
#
|
814
847
|
# @yield [response, operation] Access the result along with the RPC operation
|
815
848
|
# @yieldparam response [Google::Cloud::Dialogflow::V2::ValidationResult]
|
816
849
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
@@ -1065,13 +1098,3 @@ module Google
|
|
1065
1098
|
end
|
1066
1099
|
end
|
1067
1100
|
end
|
1068
|
-
|
1069
|
-
# rubocop:disable Lint/HandleExceptions
|
1070
|
-
|
1071
|
-
# Once client is loaded, load helpers.rb if it exists.
|
1072
|
-
begin
|
1073
|
-
require "google/cloud/dialogflow/v2/agents/helpers"
|
1074
|
-
rescue LoadError
|
1075
|
-
end
|
1076
|
-
|
1077
|
-
# rubocop:enable Lint/HandleExceptions
|