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.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/AUTHENTICATION.md +7 -25
  4. data/README.md +1 -1
  5. data/lib/google/cloud/dialogflow/v2/agents/client.rb +1 -0
  6. data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +0 -1
  7. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +0 -2
  8. data/lib/google/cloud/dialogflow/v2/conversation_dataset_pb.rb +92 -0
  9. data/lib/google/cloud/dialogflow/v2/conversation_dataset_services_pb.rb +81 -0
  10. data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +849 -0
  11. data/lib/google/cloud/dialogflow/v2/conversation_datasets/credentials.rb +52 -0
  12. data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +767 -0
  13. data/lib/google/cloud/dialogflow/v2/conversation_datasets/paths.rb +69 -0
  14. data/lib/google/cloud/dialogflow/v2/conversation_datasets.rb +53 -0
  15. data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +0 -1
  16. data/lib/google/cloud/dialogflow/v2/conversation_model_pb.rb +205 -0
  17. data/lib/google/cloud/dialogflow/v2/conversation_model_services_pb.rb +98 -0
  18. data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +1257 -0
  19. data/lib/google/cloud/dialogflow/v2/conversation_models/credentials.rb +52 -0
  20. data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +767 -0
  21. data/lib/google/cloud/dialogflow/v2/conversation_models/paths.rb +179 -0
  22. data/lib/google/cloud/dialogflow/v2/conversation_models.rb +50 -0
  23. data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +0 -1
  24. data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +31 -0
  25. data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +27 -0
  26. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +250 -0
  27. data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +767 -0
  28. data/lib/google/cloud/dialogflow/v2/conversation_profiles/paths.rb +31 -9
  29. data/lib/google/cloud/dialogflow/v2/conversation_profiles.rb +1 -0
  30. data/lib/google/cloud/dialogflow/v2/document_pb.rb +51 -0
  31. data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +21 -0
  32. data/lib/google/cloud/dialogflow/v2/documents/client.rb +272 -2
  33. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +1 -0
  34. data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +8 -1
  35. data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +0 -1
  36. data/lib/google/cloud/dialogflow/v2/intent_pb.rb +0 -2
  37. data/lib/google/cloud/dialogflow/v2/intents/client.rb +1 -0
  38. data/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +1 -0
  39. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +28 -1
  40. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +22 -2
  41. data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +3 -0
  42. data/lib/google/cloud/dialogflow/v2/participants/client.rb +115 -7
  43. data/lib/google/cloud/dialogflow/v2/validation_result_pb.rb +0 -1
  44. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  45. data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +0 -1
  46. data/lib/google/cloud/dialogflow/v2.rb +4 -0
  47. data/proto_docs/google/api/resource.rb +10 -71
  48. data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +4 -1
  49. data/proto_docs/google/cloud/dialogflow/v2/conversation_dataset.rb +211 -0
  50. data/proto_docs/google/cloud/dialogflow/v2/conversation_model.rb +522 -0
  51. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +100 -2
  52. data/proto_docs/google/cloud/dialogflow/v2/document.rb +157 -0
  53. data/proto_docs/google/cloud/dialogflow/v2/gcs.rb +50 -0
  54. data/proto_docs/google/cloud/dialogflow/v2/knowledge_base.rb +28 -0
  55. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +123 -65
  56. metadata +21 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a9f0ad38ea4ab150fca99037912d53e19cf459dd572ae984836b06369631f68
4
- data.tar.gz: 4b1ee57d4570b8dc2002452fbf1d3504bb870129fcc5f52474152a8aa0199222
3
+ metadata.gz: 254de7c3257cb7faff81f40a0f195eaa461ffce83ba3dc8b8c56c7421c4e136b
4
+ data.tar.gz: e446260999acf81c2bc395d020952ed80f8749ec07c0e7b19243fe9cfd0f1381
5
5
  SHA512:
6
- metadata.gz: 90ef2740177423fbe5952af457da66366eb1c06d010077cdd18ae824310cf7729fab2f0e2b8cc9aca00185f4c49d2a996dadba96d7d3dc0a0fe496e66fb31460
7
- data.tar.gz: 9005e2d86e254d129c7d7b7bdfce41059f01c291362a9269b53e30114d1011470b27be4a2f079d0f3ac217d4d6f5791f03390226ab8d73a5ea01c5fb7ba4ac44
6
+ metadata.gz: 67fb773ec91225518aa1a173d04bc5f3d09025c3ef503d145611cb5de0746f19bf70799d8c23fa992e156eb0a7e42027faa09a33f8892a1b8e3e7bfd71d0c026
7
+ data.tar.gz: 37a5df53431e1bec6044ed46f4771ad0b7f13564bf87eee2fac7b9ac93e18ca2abf454a98694b5706ba0106eb0def285e5cbe9093c004ec1c03f6db1fbb08fc4
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Dialogflow V2 API
2
+ --title="Dialogflow V2 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
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 Developers Console][dev-console].
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 slide-out navigation tray and select **API Manager**. From
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
- You should see a screen like one of the following.
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, and click "Generate
164
- new JSON key":
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://googleapis.dev/ruby/google-cloud-dialogflow-v2/latest)
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)
@@ -140,6 +140,7 @@ module Google
140
140
 
141
141
  @operations_client = Operations.new do |config|
142
142
  config.credentials = credentials
143
+ config.quota_project = @quota_project_id
143
144
  config.endpoint = @config.endpoint
144
145
  end
145
146
 
@@ -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