google-cloud-dialogflow-v2 0.14.0 → 0.15.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/README.md +1 -1
- 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 -3
- data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +26 -1
- 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 +18 -0
- data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +0 -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/participant_pb.rb +0 -3
- data/lib/google/cloud/dialogflow/v2/session_pb.rb +0 -1
- 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 +5 -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 +87 -2
- data/proto_docs/google/cloud/dialogflow/v2/document.rb +39 -0
- metadata +19 -2
@@ -82,20 +82,42 @@ module Google
|
|
82
82
|
##
|
83
83
|
# Create a fully-qualified ConversationModel resource string.
|
84
84
|
#
|
85
|
-
#
|
85
|
+
# @overload conversation_model_path(project:, conversation_model:)
|
86
|
+
# The resource will be in the following format:
|
86
87
|
#
|
87
|
-
#
|
88
|
+
# `projects/{project}/conversationModels/{conversation_model}`
|
88
89
|
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
90
|
+
# @param project [String]
|
91
|
+
# @param conversation_model [String]
|
92
|
+
#
|
93
|
+
# @overload conversation_model_path(project:, location:, conversation_model:)
|
94
|
+
# The resource will be in the following format:
|
95
|
+
#
|
96
|
+
# `projects/{project}/locations/{location}/conversationModels/{conversation_model}`
|
97
|
+
#
|
98
|
+
# @param project [String]
|
99
|
+
# @param location [String]
|
100
|
+
# @param conversation_model [String]
|
92
101
|
#
|
93
102
|
# @return [::String]
|
94
|
-
def conversation_model_path
|
95
|
-
|
96
|
-
|
103
|
+
def conversation_model_path **args
|
104
|
+
resources = {
|
105
|
+
"conversation_model:project" => (proc do |project:, conversation_model:|
|
106
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
107
|
+
|
108
|
+
"projects/#{project}/conversationModels/#{conversation_model}"
|
109
|
+
end),
|
110
|
+
"conversation_model:location:project" => (proc do |project:, location:, conversation_model:|
|
111
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
112
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
97
113
|
|
98
|
-
|
114
|
+
"projects/#{project}/locations/#{location}/conversationModels/#{conversation_model}"
|
115
|
+
end)
|
116
|
+
}
|
117
|
+
|
118
|
+
resource = resources[args.keys.sort.join(":")]
|
119
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
120
|
+
resource.call(**args)
|
99
121
|
end
|
100
122
|
|
101
123
|
##
|
@@ -24,6 +24,7 @@ require "google/cloud/dialogflow/v2/version"
|
|
24
24
|
|
25
25
|
require "google/cloud/dialogflow/v2/conversation_profiles/credentials"
|
26
26
|
require "google/cloud/dialogflow/v2/conversation_profiles/paths"
|
27
|
+
require "google/cloud/dialogflow/v2/conversation_profiles/operations"
|
27
28
|
require "google/cloud/dialogflow/v2/conversation_profiles/client"
|
28
29
|
|
29
30
|
module Google
|
@@ -22,6 +22,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
22
22
|
optional :enable_auto_reload, :bool, 11
|
23
23
|
optional :latest_reload_status, :message, 12, "google.cloud.dialogflow.v2.Document.ReloadStatus"
|
24
24
|
map :metadata, :string, :string, 7
|
25
|
+
optional :state, :enum, 13, "google.cloud.dialogflow.v2.Document.State"
|
25
26
|
oneof :source do
|
26
27
|
optional :content_uri, :string, 5
|
27
28
|
optional :raw_content, :bytes, 9
|
@@ -36,6 +37,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
36
37
|
value :FAQ, 1
|
37
38
|
value :EXTRACTIVE_QA, 2
|
38
39
|
value :ARTICLE_SUGGESTION, 3
|
40
|
+
value :AGENT_FACING_SMART_REPLY, 4
|
41
|
+
end
|
42
|
+
add_enum "google.cloud.dialogflow.v2.Document.State" do
|
43
|
+
value :STATE_UNSPECIFIED, 0
|
44
|
+
value :CREATING, 1
|
45
|
+
value :ACTIVE, 2
|
46
|
+
value :UPDATING, 3
|
47
|
+
value :RELOADING, 4
|
48
|
+
value :DELETING, 5
|
39
49
|
end
|
40
50
|
add_message "google.cloud.dialogflow.v2.GetDocumentRequest" do
|
41
51
|
optional :name, :string, 1
|
@@ -93,9 +103,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
93
103
|
optional :gcs_destination, :message, 2, "google.cloud.dialogflow.v2.GcsDestination"
|
94
104
|
end
|
95
105
|
end
|
106
|
+
add_message "google.cloud.dialogflow.v2.ExportOperationMetadata" do
|
107
|
+
optional :exported_gcs_destination, :message, 1, "google.cloud.dialogflow.v2.GcsDestination"
|
108
|
+
end
|
96
109
|
add_message "google.cloud.dialogflow.v2.KnowledgeOperationMetadata" do
|
97
110
|
optional :state, :enum, 1, "google.cloud.dialogflow.v2.KnowledgeOperationMetadata.State"
|
98
111
|
optional :knowledge_base, :string, 3
|
112
|
+
oneof :operation_metadata do
|
113
|
+
optional :export_operation_metadata, :message, 4, "google.cloud.dialogflow.v2.ExportOperationMetadata"
|
114
|
+
end
|
99
115
|
end
|
100
116
|
add_enum "google.cloud.dialogflow.v2.KnowledgeOperationMetadata.State" do
|
101
117
|
value :STATE_UNSPECIFIED, 0
|
@@ -113,6 +129,7 @@ module Google
|
|
113
129
|
Document = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Document").msgclass
|
114
130
|
Document::ReloadStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Document.ReloadStatus").msgclass
|
115
131
|
Document::KnowledgeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Document.KnowledgeType").enummodule
|
132
|
+
Document::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.Document.State").enummodule
|
116
133
|
GetDocumentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GetDocumentRequest").msgclass
|
117
134
|
ListDocumentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListDocumentsRequest").msgclass
|
118
135
|
ListDocumentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListDocumentsResponse").msgclass
|
@@ -124,6 +141,7 @@ module Google
|
|
124
141
|
UpdateDocumentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.UpdateDocumentRequest").msgclass
|
125
142
|
ReloadDocumentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ReloadDocumentRequest").msgclass
|
126
143
|
ExportDocumentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ExportDocumentRequest").msgclass
|
144
|
+
ExportOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ExportOperationMetadata").msgclass
|
127
145
|
KnowledgeOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.KnowledgeOperationMetadata").msgclass
|
128
146
|
KnowledgeOperationMetadata::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.KnowledgeOperationMetadata.State").enummodule
|
129
147
|
end
|
@@ -5,10 +5,8 @@ require 'google/api/annotations_pb'
|
|
5
5
|
require 'google/api/client_pb'
|
6
6
|
require 'google/api/field_behavior_pb'
|
7
7
|
require 'google/api/resource_pb'
|
8
|
-
require 'google/cloud/dialogflow/v2/audio_config_pb'
|
9
8
|
require 'google/cloud/dialogflow/v2/context_pb'
|
10
9
|
require 'google/longrunning/operations_pb'
|
11
|
-
require 'google/protobuf/duration_pb'
|
12
10
|
require 'google/protobuf/empty_pb'
|
13
11
|
require 'google/protobuf/field_mask_pb'
|
14
12
|
require 'google/protobuf/struct_pb'
|
@@ -6,10 +6,7 @@ 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/audio_config_pb'
|
9
|
-
require 'google/cloud/dialogflow/v2/gcs_pb'
|
10
9
|
require 'google/cloud/dialogflow/v2/session_pb'
|
11
|
-
require 'google/protobuf/any_pb'
|
12
|
-
require 'google/protobuf/duration_pb'
|
13
10
|
require 'google/protobuf/field_mask_pb'
|
14
11
|
require 'google/protobuf/struct_pb'
|
15
12
|
require 'google/protobuf/timestamp_pb'
|
@@ -7,7 +7,6 @@ require 'google/api/field_behavior_pb'
|
|
7
7
|
require 'google/api/resource_pb'
|
8
8
|
require 'google/cloud/dialogflow/v2/audio_config_pb'
|
9
9
|
require 'google/cloud/dialogflow/v2/context_pb'
|
10
|
-
require 'google/cloud/dialogflow/v2/gcs_pb'
|
11
10
|
require 'google/cloud/dialogflow/v2/intent_pb'
|
12
11
|
require 'google/cloud/dialogflow/v2/session_entity_type_pb'
|
13
12
|
require 'google/protobuf/duration_pb'
|
@@ -1,7 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/v2/webhook.proto
|
3
3
|
|
4
|
-
require 'google/api/annotations_pb'
|
5
4
|
require 'google/cloud/dialogflow/v2/context_pb'
|
6
5
|
require 'google/cloud/dialogflow/v2/intent_pb'
|
7
6
|
require 'google/cloud/dialogflow/v2/session_pb'
|
@@ -24,8 +24,10 @@ require "google/cloud/dialogflow/v2/session_entity_types"
|
|
24
24
|
require "google/cloud/dialogflow/v2/sessions"
|
25
25
|
require "google/cloud/dialogflow/v2/participants"
|
26
26
|
require "google/cloud/dialogflow/v2/answer_records"
|
27
|
-
require "google/cloud/dialogflow/v2/conversation_profiles"
|
28
27
|
require "google/cloud/dialogflow/v2/conversations"
|
28
|
+
require "google/cloud/dialogflow/v2/conversation_datasets"
|
29
|
+
require "google/cloud/dialogflow/v2/conversation_models"
|
30
|
+
require "google/cloud/dialogflow/v2/conversation_profiles"
|
29
31
|
require "google/cloud/dialogflow/v2/documents"
|
30
32
|
require "google/cloud/dialogflow/v2/fulfillments"
|
31
33
|
require "google/cloud/dialogflow/v2/environments"
|
@@ -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
|
#
|
@@ -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
|