google-cloud-dialogflow-v2 0.13.0 → 0.15.1

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.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/dialogflow/v2/agents/client.rb +18 -0
  4. data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +0 -1
  5. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +0 -2
  6. data/lib/google/cloud/dialogflow/v2/conversation_dataset_pb.rb +92 -0
  7. data/lib/google/cloud/dialogflow/v2/conversation_dataset_services_pb.rb +81 -0
  8. data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +849 -0
  9. data/lib/google/cloud/dialogflow/v2/conversation_datasets/credentials.rb +52 -0
  10. data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +767 -0
  11. data/lib/google/cloud/dialogflow/v2/conversation_datasets/paths.rb +69 -0
  12. data/lib/google/cloud/dialogflow/v2/conversation_datasets.rb +53 -0
  13. data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +0 -1
  14. data/lib/google/cloud/dialogflow/v2/conversation_model_pb.rb +205 -0
  15. data/lib/google/cloud/dialogflow/v2/conversation_model_services_pb.rb +98 -0
  16. data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +1257 -0
  17. data/lib/google/cloud/dialogflow/v2/conversation_models/credentials.rb +52 -0
  18. data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +767 -0
  19. data/lib/google/cloud/dialogflow/v2/conversation_models/paths.rb +179 -0
  20. data/lib/google/cloud/dialogflow/v2/conversation_models.rb +50 -0
  21. data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +0 -1
  22. data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +31 -1
  23. data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +27 -0
  24. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +250 -0
  25. data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +767 -0
  26. data/lib/google/cloud/dialogflow/v2/conversation_profiles/paths.rb +31 -9
  27. data/lib/google/cloud/dialogflow/v2/conversation_profiles.rb +1 -0
  28. data/lib/google/cloud/dialogflow/v2/document_pb.rb +38 -0
  29. data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +11 -0
  30. data/lib/google/cloud/dialogflow/v2/documents/client.rb +123 -0
  31. data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +4 -1
  32. data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +0 -1
  33. data/lib/google/cloud/dialogflow/v2/intent_pb.rb +0 -2
  34. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +22 -3
  35. data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +3 -0
  36. data/lib/google/cloud/dialogflow/v2/participants/client.rb +113 -4
  37. data/lib/google/cloud/dialogflow/v2/session_pb.rb +0 -1
  38. data/lib/google/cloud/dialogflow/v2/validation_result_pb.rb +0 -1
  39. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  40. data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +0 -1
  41. data/lib/google/cloud/dialogflow/v2.rb +4 -0
  42. data/proto_docs/google/cloud/dialogflow/v2/agent.rb +18 -0
  43. data/proto_docs/google/cloud/dialogflow/v2/conversation_dataset.rb +211 -0
  44. data/proto_docs/google/cloud/dialogflow/v2/conversation_model.rb +522 -0
  45. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +100 -2
  46. data/proto_docs/google/cloud/dialogflow/v2/document.rb +104 -0
  47. data/proto_docs/google/cloud/dialogflow/v2/gcs.rb +11 -0
  48. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +88 -6
  49. data/proto_docs/google/cloud/dialogflow/v2/session.rb +5 -0
  50. metadata +20 -3
@@ -25,6 +25,8 @@ require "google/cloud/dialogflow/v2/sessions"
25
25
  require "google/cloud/dialogflow/v2/participants"
26
26
  require "google/cloud/dialogflow/v2/answer_records"
27
27
  require "google/cloud/dialogflow/v2/conversations"
28
+ require "google/cloud/dialogflow/v2/conversation_datasets"
29
+ require "google/cloud/dialogflow/v2/conversation_models"
28
30
  require "google/cloud/dialogflow/v2/conversation_profiles"
29
31
  require "google/cloud/dialogflow/v2/documents"
30
32
  require "google/cloud/dialogflow/v2/fulfillments"
@@ -39,6 +41,8 @@ module Google
39
41
  ##
40
42
  # To load this package, including all its services, and instantiate a client:
41
43
  #
44
+ # @example
45
+ #
42
46
  # require "google/cloud/dialogflow/v2"
43
47
  # client = ::Google::Cloud::Dialogflow::V2::Agents::Client.new
44
48
  #
@@ -222,6 +222,12 @@ module Google
222
222
  # URI to export the agent to.
223
223
  # The format of this URI must be `gs://<bucket-name>/<object-name>`.
224
224
  # If left unspecified, the serialized agent is returned inline.
225
+ #
226
+ # Dialogflow performs a write operation for the Cloud Storage object
227
+ # on the caller's behalf, so your request authentication must
228
+ # have write permissions for the object. For more information, see
229
+ # [Dialogflow access
230
+ # control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
225
231
  class ExportAgentRequest
226
232
  include ::Google::Protobuf::MessageExts
227
233
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -249,6 +255,12 @@ module Google
249
255
  # @return [::String]
250
256
  # The URI to a Google Cloud Storage file containing the agent to import.
251
257
  # Note: The URI must start with "gs://".
258
+ #
259
+ # Dialogflow performs a read operation for the Cloud Storage object
260
+ # on the caller's behalf, so your request authentication must
261
+ # have read permissions for the object. For more information, see
262
+ # [Dialogflow access
263
+ # control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
252
264
  # @!attribute [rw] agent_content
253
265
  # @return [::String]
254
266
  # Zip compressed raw byte content for agent.
@@ -266,6 +278,12 @@ module Google
266
278
  # @return [::String]
267
279
  # The URI to a Google Cloud Storage file containing the agent to restore.
268
280
  # Note: The URI must start with "gs://".
281
+ #
282
+ # Dialogflow performs a read operation for the Cloud Storage object
283
+ # on the caller's behalf, so your request authentication must
284
+ # have read permissions for the object. For more information, see
285
+ # [Dialogflow access
286
+ # control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
269
287
  # @!attribute [rw] agent_content
270
288
  # @return [::String]
271
289
  # Zip compressed raw byte content for agent.
@@ -0,0 +1,211 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 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
+
20
+ module Google
21
+ module Cloud
22
+ module Dialogflow
23
+ module V2
24
+ # Represents metadata of a conversation.
25
+ # @!attribute [rw] language_code
26
+ # @return [::String]
27
+ # Optional. The language code of the conversation data within this dataset. See
28
+ # https://cloud.google.com/apis/design/standard_fields for more information.
29
+ # Supports all UTF-8 languages.
30
+ class ConversationInfo
31
+ include ::Google::Protobuf::MessageExts
32
+ extend ::Google::Protobuf::MessageExts::ClassMethods
33
+ end
34
+
35
+ # Represents the configuration of importing a set of conversation files in
36
+ # Google Cloud Storage.
37
+ # @!attribute [rw] gcs_source
38
+ # @return [::Google::Cloud::Dialogflow::V2::GcsSources]
39
+ # The Cloud Storage URI has the form gs://<Google Cloud Storage bucket
40
+ # name>//agent*.json. Wildcards are allowed and will be expanded into all
41
+ # matched JSON files, which will be read as one conversation per file.
42
+ class InputConfig
43
+ include ::Google::Protobuf::MessageExts
44
+ extend ::Google::Protobuf::MessageExts::ClassMethods
45
+ end
46
+
47
+ # Represents a conversation dataset that a user imports raw data into.
48
+ # The data inside ConversationDataset can not be changed after
49
+ # ImportConversationData finishes (and calling ImportConversationData on a
50
+ # dataset that already has data is not allowed).
51
+ # @!attribute [r] name
52
+ # @return [::String]
53
+ # Output only. ConversationDataset resource name. Format:
54
+ # `projects/<Project ID>/locations/<Location
55
+ # ID>/conversationDatasets/<Conversation Dataset ID>`
56
+ # @!attribute [rw] display_name
57
+ # @return [::String]
58
+ # Required. The display name of the dataset. Maximum of 64 bytes.
59
+ # @!attribute [rw] description
60
+ # @return [::String]
61
+ # Optional. The description of the dataset. Maximum of 10000 bytes.
62
+ # @!attribute [r] create_time
63
+ # @return [::Google::Protobuf::Timestamp]
64
+ # Output only. Creation time of this dataset.
65
+ # @!attribute [r] input_config
66
+ # @return [::Google::Cloud::Dialogflow::V2::InputConfig]
67
+ # Output only. Input configurations set during conversation data import.
68
+ # @!attribute [r] conversation_info
69
+ # @return [::Google::Cloud::Dialogflow::V2::ConversationInfo]
70
+ # Output only. Metadata set during conversation data import.
71
+ # @!attribute [r] conversation_count
72
+ # @return [::Integer]
73
+ # Output only. The number of conversations this conversation dataset contains.
74
+ class ConversationDataset
75
+ include ::Google::Protobuf::MessageExts
76
+ extend ::Google::Protobuf::MessageExts::ClassMethods
77
+ end
78
+
79
+ # The request message for
80
+ # {::Google::Cloud::Dialogflow::V2::ConversationDatasets::Client#create_conversation_dataset ConversationDatasets.CreateConversationDataset}.
81
+ # @!attribute [rw] parent
82
+ # @return [::String]
83
+ # Required. The project to create conversation dataset for. Format:
84
+ # `projects/<Project ID>/locations/<Location ID>`
85
+ # @!attribute [rw] conversation_dataset
86
+ # @return [::Google::Cloud::Dialogflow::V2::ConversationDataset]
87
+ # Required. The conversation dataset to create.
88
+ class CreateConversationDatasetRequest
89
+ include ::Google::Protobuf::MessageExts
90
+ extend ::Google::Protobuf::MessageExts::ClassMethods
91
+ end
92
+
93
+ # The request message for
94
+ # {::Google::Cloud::Dialogflow::V2::ConversationDatasets::Client#get_conversation_dataset ConversationDatasets.GetConversationDataset}.
95
+ # @!attribute [rw] name
96
+ # @return [::String]
97
+ # Required. The conversation dataset to retrieve. Format:
98
+ # `projects/<Project ID>/locations/<Location
99
+ # ID>/conversationDatasets/<Conversation Dataset ID>`
100
+ class GetConversationDatasetRequest
101
+ include ::Google::Protobuf::MessageExts
102
+ extend ::Google::Protobuf::MessageExts::ClassMethods
103
+ end
104
+
105
+ # The request message for
106
+ # {::Google::Cloud::Dialogflow::V2::ConversationDatasets::Client#list_conversation_datasets ConversationDatasets.ListConversationDatasets}.
107
+ # @!attribute [rw] parent
108
+ # @return [::String]
109
+ # Required. The project and location name to list all conversation datasets for.
110
+ # Format: `projects/<Project ID>/locations/<Location ID>`
111
+ # @!attribute [rw] page_size
112
+ # @return [::Integer]
113
+ # Optional. Maximum number of conversation datasets to return in a single
114
+ # page. By default 100 and at most 1000.
115
+ # @!attribute [rw] page_token
116
+ # @return [::String]
117
+ # Optional. The next_page_token value returned from a previous list request.
118
+ class ListConversationDatasetsRequest
119
+ include ::Google::Protobuf::MessageExts
120
+ extend ::Google::Protobuf::MessageExts::ClassMethods
121
+ end
122
+
123
+ # The response message for
124
+ # {::Google::Cloud::Dialogflow::V2::ConversationDatasets::Client#list_conversation_datasets ConversationDatasets.ListConversationDatasets}.
125
+ # @!attribute [rw] conversation_datasets
126
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::ConversationDataset>]
127
+ # The list of datasets to return.
128
+ # @!attribute [rw] next_page_token
129
+ # @return [::String]
130
+ # The token to use to retrieve the next page of results, or empty if there
131
+ # are no more results in the list.
132
+ class ListConversationDatasetsResponse
133
+ include ::Google::Protobuf::MessageExts
134
+ extend ::Google::Protobuf::MessageExts::ClassMethods
135
+ end
136
+
137
+ # The request message for
138
+ # {::Google::Cloud::Dialogflow::V2::ConversationDatasets::Client#delete_conversation_dataset ConversationDatasets.DeleteConversationDataset}.
139
+ # @!attribute [rw] name
140
+ # @return [::String]
141
+ # Required. The conversation dataset to delete. Format:
142
+ # `projects/<Project ID>/locations/<Location
143
+ # ID>/conversationDatasets/<Conversation Dataset ID>`
144
+ class DeleteConversationDatasetRequest
145
+ include ::Google::Protobuf::MessageExts
146
+ extend ::Google::Protobuf::MessageExts::ClassMethods
147
+ end
148
+
149
+ # The request message for {::Google::Cloud::Dialogflow::V2::ConversationDatasets::Client#import_conversation_data ConversationDatasets.ImportConversationData}.
150
+ # @!attribute [rw] name
151
+ # @return [::String]
152
+ # Required. Dataset resource name. Format:
153
+ # `projects/<Project ID>/locations/<Location
154
+ # ID>/conversationDatasets/<Conversation Dataset ID>`
155
+ # @!attribute [rw] input_config
156
+ # @return [::Google::Cloud::Dialogflow::V2::InputConfig]
157
+ # Required. Configuration describing where to import data from.
158
+ class ImportConversationDataRequest
159
+ include ::Google::Protobuf::MessageExts
160
+ extend ::Google::Protobuf::MessageExts::ClassMethods
161
+ end
162
+
163
+ # Metadata for a {::Google::Cloud::Dialogflow::V2::ConversationDatasets::Client#import_conversation_data ConversationDatasets.ImportConversationData} operation.
164
+ # @!attribute [rw] conversation_dataset
165
+ # @return [::String]
166
+ # The resource name of the imported conversation dataset. Format:
167
+ # `projects/<Project ID>/locations/<Location
168
+ # ID>/conversationDatasets/<Conversation Dataset Id>`
169
+ # @!attribute [rw] partial_failures
170
+ # @return [::Array<::Google::Rpc::Status>]
171
+ # Partial failures are failures that don't fail the whole long running
172
+ # operation, e.g. single files that couldn't be read.
173
+ # @!attribute [rw] create_time
174
+ # @return [::Google::Protobuf::Timestamp]
175
+ # Timestamp when import conversation data request was created. The time is
176
+ # measured on server side.
177
+ class ImportConversationDataOperationMetadata
178
+ include ::Google::Protobuf::MessageExts
179
+ extend ::Google::Protobuf::MessageExts::ClassMethods
180
+ end
181
+
182
+ # Response used for {::Google::Cloud::Dialogflow::V2::ConversationDatasets::Client#import_conversation_data ConversationDatasets.ImportConversationData} long
183
+ # running operation.
184
+ # @!attribute [rw] conversation_dataset
185
+ # @return [::String]
186
+ # The resource name of the imported conversation dataset. Format:
187
+ # `projects/<Project ID>/locations/<Location
188
+ # ID>/conversationDatasets/<Conversation Dataset Id>`
189
+ # @!attribute [rw] import_count
190
+ # @return [::Integer]
191
+ # Number of conversations imported successfully.
192
+ class ImportConversationDataOperationResponse
193
+ include ::Google::Protobuf::MessageExts
194
+ extend ::Google::Protobuf::MessageExts::ClassMethods
195
+ end
196
+
197
+ # Metadata for [ConversationDatasets][CreateConversationDataset].
198
+ class CreateConversationDatasetOperationMetadata
199
+ include ::Google::Protobuf::MessageExts
200
+ extend ::Google::Protobuf::MessageExts::ClassMethods
201
+ end
202
+
203
+ # Metadata for [ConversationDatasets][DeleteConversationDataset].
204
+ class DeleteConversationDatasetOperationMetadata
205
+ include ::Google::Protobuf::MessageExts
206
+ extend ::Google::Protobuf::MessageExts::ClassMethods
207
+ end
208
+ end
209
+ end
210
+ end
211
+ end