google-cloud-dialogflow-v2 0.12.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +1 -1
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +0 -1
- data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +0 -2
- data/lib/google/cloud/dialogflow/v2/conversation_dataset_pb.rb +92 -0
- data/lib/google/cloud/dialogflow/v2/conversation_dataset_services_pb.rb +81 -0
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +849 -0
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/credentials.rb +52 -0
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +767 -0
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/paths.rb +69 -0
- data/lib/google/cloud/dialogflow/v2/conversation_datasets.rb +53 -0
- data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +0 -1
- data/lib/google/cloud/dialogflow/v2/conversation_model_pb.rb +205 -0
- data/lib/google/cloud/dialogflow/v2/conversation_model_services_pb.rb +98 -0
- data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +1257 -0
- data/lib/google/cloud/dialogflow/v2/conversation_models/credentials.rb +52 -0
- data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +767 -0
- data/lib/google/cloud/dialogflow/v2/conversation_models/paths.rb +179 -0
- data/lib/google/cloud/dialogflow/v2/conversation_models.rb +50 -0
- data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +0 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +31 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +27 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +250 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +767 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/paths.rb +31 -9
- data/lib/google/cloud/dialogflow/v2/conversation_profiles.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/document_pb.rb +51 -0
- data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +21 -0
- data/lib/google/cloud/dialogflow/v2/documents/client.rb +272 -2
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +8 -1
- data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +0 -1
- data/lib/google/cloud/dialogflow/v2/intent_pb.rb +0 -2
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +28 -1
- data/lib/google/cloud/dialogflow/v2/participant_pb.rb +22 -2
- data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +3 -0
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +115 -7
- data/lib/google/cloud/dialogflow/v2/validation_result_pb.rb +0 -1
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +0 -1
- data/lib/google/cloud/dialogflow/v2.rb +4 -0
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +4 -1
- data/proto_docs/google/cloud/dialogflow/v2/conversation_dataset.rb +211 -0
- data/proto_docs/google/cloud/dialogflow/v2/conversation_model.rb +522 -0
- data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +100 -2
- data/proto_docs/google/cloud/dialogflow/v2/document.rb +157 -0
- data/proto_docs/google/cloud/dialogflow/v2/gcs.rb +50 -0
- data/proto_docs/google/cloud/dialogflow/v2/knowledge_base.rb +28 -0
- data/proto_docs/google/cloud/dialogflow/v2/participant.rb +123 -65
- metadata +21 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 254de7c3257cb7faff81f40a0f195eaa461ffce83ba3dc8b8c56c7421c4e136b
|
4
|
+
data.tar.gz: e446260999acf81c2bc395d020952ed80f8749ec07c0e7b19243fe9cfd0f1381
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67fb773ec91225518aa1a173d04bc5f3d09025c3ef503d145611cb5de0746f19bf70799d8c23fa992e156eb0a7e42027faa09a33f8892a1b8e3e7bfd71d0c026
|
7
|
+
data.tar.gz: 37a5df53431e1bec6044ed46f4771ad0b7f13564bf87eee2fac7b9ac93e18ca2abf454a98694b5706ba0106eb0def285e5cbe9093c004ec1c03f6db1fbb08fc4
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
121
121
|
*should* only be used during development.
|
122
122
|
|
123
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
124
|
-
[dev-console]: https://console.cloud.google.com/project
|
125
|
-
|
126
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
127
|
-
|
128
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
129
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
130
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
131
|
-
|
132
123
|
## Creating a Service Account
|
133
124
|
|
134
125
|
Google Cloud requires **Service Account Credentials** to
|
@@ -139,31 +130,22 @@ If you are not running this client within
|
|
139
130
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
140
131
|
need a Google Developers service account.
|
141
132
|
|
142
|
-
1. Visit the [Google
|
133
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
143
134
|
2. Create a new project or click on an existing project.
|
144
|
-
3. Activate the
|
135
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
145
136
|
here, you will enable the APIs that your application requires.
|
146
137
|
|
147
|
-
![Enable the APIs that your application requires][enable-apis]
|
148
|
-
|
149
138
|
*Note: You may need to enable billing in order to use these services.*
|
150
139
|
|
151
140
|
4. Select **Credentials** from the side navigation.
|
152
141
|
|
153
|
-
|
154
|
-
|
155
|
-
![Create a new service account][create-new-service-account]
|
156
|
-
|
157
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
158
|
-
|
159
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
160
|
-
guided through downloading a new JSON key file.
|
142
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
143
|
+
"Service account" to be guided through downloading a new JSON key file.
|
161
144
|
|
162
145
|
If you want to re-use an existing service account, you can easily generate a
|
163
|
-
new key file. Just select the account you wish to re-use,
|
164
|
-
|
165
|
-
|
166
|
-
![Re-use an existing service account][reuse-service-account]
|
146
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
147
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
148
|
+
and then select **Add Key**.
|
167
149
|
|
168
150
|
The key file you download will be used by this library to authenticate API
|
169
151
|
requests and should be stored in a secure location.
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Dialogflow::V2::GetAgentRequest.new # (request fields
|
|
37
37
|
response = client.get_agent request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/dialogflow)
|
@@ -6,7 +6,6 @@ require 'google/api/client_pb'
|
|
6
6
|
require 'google/api/field_behavior_pb'
|
7
7
|
require 'google/api/resource_pb'
|
8
8
|
require 'google/cloud/dialogflow/v2/participant_pb'
|
9
|
-
require 'google/protobuf/empty_pb'
|
10
9
|
require 'google/protobuf/field_mask_pb'
|
11
10
|
require 'google/protobuf/timestamp_pb'
|
12
11
|
require 'google/protobuf'
|
@@ -4,8 +4,6 @@
|
|
4
4
|
require 'google/api/field_behavior_pb'
|
5
5
|
require 'google/api/resource_pb'
|
6
6
|
require 'google/protobuf/duration_pb'
|
7
|
-
require 'google/protobuf/timestamp_pb'
|
8
|
-
require 'google/api/annotations_pb'
|
9
7
|
require 'google/protobuf'
|
10
8
|
|
11
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -0,0 +1,92 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/dialogflow/v2/conversation_dataset.proto
|
3
|
+
|
4
|
+
require 'google/api/annotations_pb'
|
5
|
+
require 'google/api/client_pb'
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/cloud/dialogflow/v2/gcs_pb'
|
9
|
+
require 'google/longrunning/operations_pb'
|
10
|
+
require 'google/protobuf/timestamp_pb'
|
11
|
+
require 'google/rpc/status_pb'
|
12
|
+
require 'google/protobuf'
|
13
|
+
|
14
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
|
+
add_file("google/cloud/dialogflow/v2/conversation_dataset.proto", :syntax => :proto3) do
|
16
|
+
add_message "google.cloud.dialogflow.v2.ConversationInfo" do
|
17
|
+
optional :language_code, :string, 1
|
18
|
+
end
|
19
|
+
add_message "google.cloud.dialogflow.v2.InputConfig" do
|
20
|
+
oneof :source do
|
21
|
+
optional :gcs_source, :message, 1, "google.cloud.dialogflow.v2.GcsSources"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
add_message "google.cloud.dialogflow.v2.ConversationDataset" do
|
25
|
+
optional :name, :string, 1
|
26
|
+
optional :display_name, :string, 2
|
27
|
+
optional :description, :string, 3
|
28
|
+
optional :create_time, :message, 4, "google.protobuf.Timestamp"
|
29
|
+
optional :input_config, :message, 5, "google.cloud.dialogflow.v2.InputConfig"
|
30
|
+
optional :conversation_info, :message, 6, "google.cloud.dialogflow.v2.ConversationInfo"
|
31
|
+
optional :conversation_count, :int64, 7
|
32
|
+
end
|
33
|
+
add_message "google.cloud.dialogflow.v2.CreateConversationDatasetRequest" do
|
34
|
+
optional :parent, :string, 1
|
35
|
+
optional :conversation_dataset, :message, 2, "google.cloud.dialogflow.v2.ConversationDataset"
|
36
|
+
end
|
37
|
+
add_message "google.cloud.dialogflow.v2.GetConversationDatasetRequest" do
|
38
|
+
optional :name, :string, 1
|
39
|
+
end
|
40
|
+
add_message "google.cloud.dialogflow.v2.ListConversationDatasetsRequest" do
|
41
|
+
optional :parent, :string, 1
|
42
|
+
optional :page_size, :int32, 2
|
43
|
+
optional :page_token, :string, 3
|
44
|
+
end
|
45
|
+
add_message "google.cloud.dialogflow.v2.ListConversationDatasetsResponse" do
|
46
|
+
repeated :conversation_datasets, :message, 1, "google.cloud.dialogflow.v2.ConversationDataset"
|
47
|
+
optional :next_page_token, :string, 2
|
48
|
+
end
|
49
|
+
add_message "google.cloud.dialogflow.v2.DeleteConversationDatasetRequest" do
|
50
|
+
optional :name, :string, 1
|
51
|
+
end
|
52
|
+
add_message "google.cloud.dialogflow.v2.ImportConversationDataRequest" do
|
53
|
+
optional :name, :string, 1
|
54
|
+
optional :input_config, :message, 2, "google.cloud.dialogflow.v2.InputConfig"
|
55
|
+
end
|
56
|
+
add_message "google.cloud.dialogflow.v2.ImportConversationDataOperationMetadata" do
|
57
|
+
optional :conversation_dataset, :string, 1
|
58
|
+
repeated :partial_failures, :message, 2, "google.rpc.Status"
|
59
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
60
|
+
end
|
61
|
+
add_message "google.cloud.dialogflow.v2.ImportConversationDataOperationResponse" do
|
62
|
+
optional :conversation_dataset, :string, 1
|
63
|
+
optional :import_count, :int32, 3
|
64
|
+
end
|
65
|
+
add_message "google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata" do
|
66
|
+
end
|
67
|
+
add_message "google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata" do
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
module Google
|
73
|
+
module Cloud
|
74
|
+
module Dialogflow
|
75
|
+
module V2
|
76
|
+
ConversationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ConversationInfo").msgclass
|
77
|
+
InputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.InputConfig").msgclass
|
78
|
+
ConversationDataset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ConversationDataset").msgclass
|
79
|
+
CreateConversationDatasetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.CreateConversationDatasetRequest").msgclass
|
80
|
+
GetConversationDatasetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GetConversationDatasetRequest").msgclass
|
81
|
+
ListConversationDatasetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListConversationDatasetsRequest").msgclass
|
82
|
+
ListConversationDatasetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListConversationDatasetsResponse").msgclass
|
83
|
+
DeleteConversationDatasetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.DeleteConversationDatasetRequest").msgclass
|
84
|
+
ImportConversationDataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ImportConversationDataRequest").msgclass
|
85
|
+
ImportConversationDataOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ImportConversationDataOperationMetadata").msgclass
|
86
|
+
ImportConversationDataOperationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ImportConversationDataOperationResponse").msgclass
|
87
|
+
CreateConversationDatasetOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata").msgclass
|
88
|
+
DeleteConversationDatasetOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata").msgclass
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/dialogflow/v2/conversation_dataset.proto for package 'google.cloud.dialogflow.v2'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2022 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/cloud/dialogflow/v2/conversation_dataset_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Dialogflow
|
25
|
+
module V2
|
26
|
+
module ConversationDatasets
|
27
|
+
# Conversation datasets.
|
28
|
+
#
|
29
|
+
# Conversation datasets contain raw conversation files and their
|
30
|
+
# customizable metadata that can be used for model training.
|
31
|
+
class Service
|
32
|
+
|
33
|
+
include ::GRPC::GenericService
|
34
|
+
|
35
|
+
self.marshal_class_method = :encode
|
36
|
+
self.unmarshal_class_method = :decode
|
37
|
+
self.service_name = 'google.cloud.dialogflow.v2.ConversationDatasets'
|
38
|
+
|
39
|
+
# Creates a new conversation dataset.
|
40
|
+
#
|
41
|
+
# This method is a [long-running
|
42
|
+
# operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
|
43
|
+
# The returned `Operation` type has the following method-specific fields:
|
44
|
+
#
|
45
|
+
# - `metadata`: [CreateConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata]
|
46
|
+
# - `response`: [ConversationDataset][google.cloud.dialogflow.v2.ConversationDataset]
|
47
|
+
rpc :CreateConversationDataset, ::Google::Cloud::Dialogflow::V2::CreateConversationDatasetRequest, ::Google::Longrunning::Operation
|
48
|
+
# Retrieves the specified conversation dataset.
|
49
|
+
rpc :GetConversationDataset, ::Google::Cloud::Dialogflow::V2::GetConversationDatasetRequest, ::Google::Cloud::Dialogflow::V2::ConversationDataset
|
50
|
+
# Returns the list of all conversation datasets in the specified
|
51
|
+
# project and location.
|
52
|
+
rpc :ListConversationDatasets, ::Google::Cloud::Dialogflow::V2::ListConversationDatasetsRequest, ::Google::Cloud::Dialogflow::V2::ListConversationDatasetsResponse
|
53
|
+
# Deletes the specified conversation dataset.
|
54
|
+
#
|
55
|
+
# This method is a [long-running
|
56
|
+
# operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
|
57
|
+
# The returned `Operation` type has the following method-specific fields:
|
58
|
+
#
|
59
|
+
# - `metadata`: [DeleteConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata]
|
60
|
+
# - `response`: An [Empty
|
61
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
|
62
|
+
rpc :DeleteConversationDataset, ::Google::Cloud::Dialogflow::V2::DeleteConversationDatasetRequest, ::Google::Longrunning::Operation
|
63
|
+
# Import data into the specified conversation dataset. Note that it
|
64
|
+
# is not allowed to import data to a conversation dataset that
|
65
|
+
# already has data in it.
|
66
|
+
#
|
67
|
+
# This method is a [long-running
|
68
|
+
# operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
|
69
|
+
# The returned `Operation` type has the following method-specific fields:
|
70
|
+
#
|
71
|
+
# - `metadata`: [ImportConversationDataOperationMetadata][google.cloud.dialogflow.v2.ImportConversationDataOperationMetadata]
|
72
|
+
# - `response`: [ImportConversationDataOperationResponse][google.cloud.dialogflow.v2.ImportConversationDataOperationResponse]
|
73
|
+
rpc :ImportConversationData, ::Google::Cloud::Dialogflow::V2::ImportConversationDataRequest, ::Google::Longrunning::Operation
|
74
|
+
end
|
75
|
+
|
76
|
+
Stub = Service.rpc_stub_class
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|