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
@@ -0,0 +1,69 @@
|
|
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
|
+
module ConversationDatasets
|
25
|
+
# Path helper methods for the ConversationDatasets API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified ConversationDataset resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/conversationDatasets/{conversation_dataset}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param conversation_dataset [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def conversation_dataset_path project:, location:, conversation_dataset:
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
42
|
+
|
43
|
+
"projects/#{project}/locations/#{location}/conversationDatasets/#{conversation_dataset}"
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# Create a fully-qualified Location resource string.
|
48
|
+
#
|
49
|
+
# The resource will be in the following format:
|
50
|
+
#
|
51
|
+
# `projects/{project}/locations/{location}`
|
52
|
+
#
|
53
|
+
# @param project [String]
|
54
|
+
# @param location [String]
|
55
|
+
#
|
56
|
+
# @return [::String]
|
57
|
+
def location_path project:, location:
|
58
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
59
|
+
|
60
|
+
"projects/#{project}/locations/#{location}"
|
61
|
+
end
|
62
|
+
|
63
|
+
extend self
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,53 @@
|
|
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
|
+
require "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/dialogflow/v2/version"
|
24
|
+
|
25
|
+
require "google/cloud/dialogflow/v2/conversation_datasets/credentials"
|
26
|
+
require "google/cloud/dialogflow/v2/conversation_datasets/paths"
|
27
|
+
require "google/cloud/dialogflow/v2/conversation_datasets/operations"
|
28
|
+
require "google/cloud/dialogflow/v2/conversation_datasets/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module Dialogflow
|
33
|
+
module V2
|
34
|
+
##
|
35
|
+
# Conversation datasets.
|
36
|
+
#
|
37
|
+
# Conversation datasets contain raw conversation files and their
|
38
|
+
# customizable metadata that can be used for model training.
|
39
|
+
#
|
40
|
+
# To load this service and instantiate a client:
|
41
|
+
#
|
42
|
+
# require "google/cloud/dialogflow/v2/conversation_datasets"
|
43
|
+
# client = ::Google::Cloud::Dialogflow::V2::ConversationDatasets::Client.new
|
44
|
+
#
|
45
|
+
module ConversationDatasets
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
helper_path = ::File.join __dir__, "conversation_datasets", "helpers.rb"
|
53
|
+
require "google/cloud/dialogflow/v2/conversation_datasets/helpers" if ::File.file? helper_path
|
@@ -1,7 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/v2/conversation_event.proto
|
3
3
|
|
4
|
-
require 'google/api/annotations_pb'
|
5
4
|
require 'google/cloud/dialogflow/v2/participant_pb'
|
6
5
|
require 'google/rpc/status_pb'
|
7
6
|
require 'google/protobuf'
|
@@ -0,0 +1,205 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/dialogflow/v2/conversation_model.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/longrunning/operations_pb'
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
12
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
|
+
add_file("google/cloud/dialogflow/v2/conversation_model.proto", :syntax => :proto3) do
|
14
|
+
add_message "google.cloud.dialogflow.v2.ConversationModel" do
|
15
|
+
optional :name, :string, 1
|
16
|
+
optional :display_name, :string, 2
|
17
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
18
|
+
repeated :datasets, :message, 4, "google.cloud.dialogflow.v2.InputDataset"
|
19
|
+
optional :state, :enum, 7, "google.cloud.dialogflow.v2.ConversationModel.State"
|
20
|
+
optional :language_code, :string, 19
|
21
|
+
oneof :model_metadata do
|
22
|
+
optional :article_suggestion_model_metadata, :message, 8, "google.cloud.dialogflow.v2.ArticleSuggestionModelMetadata"
|
23
|
+
optional :smart_reply_model_metadata, :message, 9, "google.cloud.dialogflow.v2.SmartReplyModelMetadata"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
add_enum "google.cloud.dialogflow.v2.ConversationModel.State" do
|
27
|
+
value :STATE_UNSPECIFIED, 0
|
28
|
+
value :CREATING, 1
|
29
|
+
value :UNDEPLOYED, 2
|
30
|
+
value :DEPLOYING, 3
|
31
|
+
value :DEPLOYED, 4
|
32
|
+
value :UNDEPLOYING, 5
|
33
|
+
value :DELETING, 6
|
34
|
+
value :FAILED, 7
|
35
|
+
value :PENDING, 8
|
36
|
+
end
|
37
|
+
add_enum "google.cloud.dialogflow.v2.ConversationModel.ModelType" do
|
38
|
+
value :MODEL_TYPE_UNSPECIFIED, 0
|
39
|
+
value :SMART_REPLY_DUAL_ENCODER_MODEL, 2
|
40
|
+
value :SMART_REPLY_BERT_MODEL, 6
|
41
|
+
end
|
42
|
+
add_message "google.cloud.dialogflow.v2.ConversationModelEvaluation" do
|
43
|
+
optional :name, :string, 1
|
44
|
+
optional :display_name, :string, 2
|
45
|
+
optional :evaluation_config, :message, 6, "google.cloud.dialogflow.v2.EvaluationConfig"
|
46
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
47
|
+
oneof :metrics do
|
48
|
+
optional :smart_reply_metrics, :message, 5, "google.cloud.dialogflow.v2.SmartReplyMetrics"
|
49
|
+
end
|
50
|
+
end
|
51
|
+
add_message "google.cloud.dialogflow.v2.EvaluationConfig" do
|
52
|
+
repeated :datasets, :message, 3, "google.cloud.dialogflow.v2.InputDataset"
|
53
|
+
oneof :model_specific_config do
|
54
|
+
optional :smart_reply_config, :message, 2, "google.cloud.dialogflow.v2.EvaluationConfig.SmartReplyConfig"
|
55
|
+
optional :smart_compose_config, :message, 4, "google.cloud.dialogflow.v2.EvaluationConfig.SmartComposeConfig"
|
56
|
+
end
|
57
|
+
end
|
58
|
+
add_message "google.cloud.dialogflow.v2.EvaluationConfig.SmartReplyConfig" do
|
59
|
+
optional :allowlist_document, :string, 1
|
60
|
+
optional :max_result_count, :int32, 2
|
61
|
+
end
|
62
|
+
add_message "google.cloud.dialogflow.v2.EvaluationConfig.SmartComposeConfig" do
|
63
|
+
optional :allowlist_document, :string, 1
|
64
|
+
optional :max_result_count, :int32, 2
|
65
|
+
end
|
66
|
+
add_message "google.cloud.dialogflow.v2.InputDataset" do
|
67
|
+
optional :dataset, :string, 1
|
68
|
+
end
|
69
|
+
add_message "google.cloud.dialogflow.v2.ArticleSuggestionModelMetadata" do
|
70
|
+
optional :training_model_type, :enum, 3, "google.cloud.dialogflow.v2.ConversationModel.ModelType"
|
71
|
+
end
|
72
|
+
add_message "google.cloud.dialogflow.v2.SmartReplyModelMetadata" do
|
73
|
+
optional :training_model_type, :enum, 6, "google.cloud.dialogflow.v2.ConversationModel.ModelType"
|
74
|
+
end
|
75
|
+
add_message "google.cloud.dialogflow.v2.SmartReplyMetrics" do
|
76
|
+
optional :allowlist_coverage, :float, 1
|
77
|
+
repeated :top_n_metrics, :message, 2, "google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics"
|
78
|
+
optional :conversation_count, :int64, 3
|
79
|
+
end
|
80
|
+
add_message "google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics" do
|
81
|
+
optional :n, :int32, 1
|
82
|
+
optional :recall, :float, 2
|
83
|
+
end
|
84
|
+
add_message "google.cloud.dialogflow.v2.CreateConversationModelRequest" do
|
85
|
+
optional :parent, :string, 1
|
86
|
+
optional :conversation_model, :message, 2, "google.cloud.dialogflow.v2.ConversationModel"
|
87
|
+
end
|
88
|
+
add_message "google.cloud.dialogflow.v2.GetConversationModelRequest" do
|
89
|
+
optional :name, :string, 1
|
90
|
+
end
|
91
|
+
add_message "google.cloud.dialogflow.v2.ListConversationModelsRequest" do
|
92
|
+
optional :parent, :string, 1
|
93
|
+
optional :page_size, :int32, 2
|
94
|
+
optional :page_token, :string, 3
|
95
|
+
end
|
96
|
+
add_message "google.cloud.dialogflow.v2.ListConversationModelsResponse" do
|
97
|
+
repeated :conversation_models, :message, 1, "google.cloud.dialogflow.v2.ConversationModel"
|
98
|
+
optional :next_page_token, :string, 2
|
99
|
+
end
|
100
|
+
add_message "google.cloud.dialogflow.v2.DeleteConversationModelRequest" do
|
101
|
+
optional :name, :string, 1
|
102
|
+
end
|
103
|
+
add_message "google.cloud.dialogflow.v2.DeployConversationModelRequest" do
|
104
|
+
optional :name, :string, 1
|
105
|
+
end
|
106
|
+
add_message "google.cloud.dialogflow.v2.UndeployConversationModelRequest" do
|
107
|
+
optional :name, :string, 1
|
108
|
+
end
|
109
|
+
add_message "google.cloud.dialogflow.v2.GetConversationModelEvaluationRequest" do
|
110
|
+
optional :name, :string, 1
|
111
|
+
end
|
112
|
+
add_message "google.cloud.dialogflow.v2.ListConversationModelEvaluationsRequest" do
|
113
|
+
optional :parent, :string, 1
|
114
|
+
optional :page_size, :int32, 2
|
115
|
+
optional :page_token, :string, 3
|
116
|
+
end
|
117
|
+
add_message "google.cloud.dialogflow.v2.ListConversationModelEvaluationsResponse" do
|
118
|
+
repeated :conversation_model_evaluations, :message, 1, "google.cloud.dialogflow.v2.ConversationModelEvaluation"
|
119
|
+
optional :next_page_token, :string, 2
|
120
|
+
end
|
121
|
+
add_message "google.cloud.dialogflow.v2.CreateConversationModelEvaluationRequest" do
|
122
|
+
optional :parent, :string, 1
|
123
|
+
optional :conversation_model_evaluation, :message, 2, "google.cloud.dialogflow.v2.ConversationModelEvaluation"
|
124
|
+
end
|
125
|
+
add_message "google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata" do
|
126
|
+
optional :conversation_model, :string, 1
|
127
|
+
optional :state, :enum, 2, "google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata.State"
|
128
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
129
|
+
end
|
130
|
+
add_enum "google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata.State" do
|
131
|
+
value :STATE_UNSPECIFIED, 0
|
132
|
+
value :PENDING, 1
|
133
|
+
value :SUCCEEDED, 2
|
134
|
+
value :FAILED, 3
|
135
|
+
value :CANCELLED, 4
|
136
|
+
value :CANCELLING, 5
|
137
|
+
value :TRAINING, 6
|
138
|
+
end
|
139
|
+
add_message "google.cloud.dialogflow.v2.DeployConversationModelOperationMetadata" do
|
140
|
+
optional :conversation_model, :string, 1
|
141
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
142
|
+
end
|
143
|
+
add_message "google.cloud.dialogflow.v2.UndeployConversationModelOperationMetadata" do
|
144
|
+
optional :conversation_model, :string, 1
|
145
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
146
|
+
end
|
147
|
+
add_message "google.cloud.dialogflow.v2.DeleteConversationModelOperationMetadata" do
|
148
|
+
optional :conversation_model, :string, 1
|
149
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
150
|
+
end
|
151
|
+
add_message "google.cloud.dialogflow.v2.CreateConversationModelEvaluationOperationMetadata" do
|
152
|
+
optional :conversation_model_evaluation, :string, 1
|
153
|
+
optional :conversation_model, :string, 4
|
154
|
+
optional :state, :enum, 2, "google.cloud.dialogflow.v2.CreateConversationModelEvaluationOperationMetadata.State"
|
155
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
156
|
+
end
|
157
|
+
add_enum "google.cloud.dialogflow.v2.CreateConversationModelEvaluationOperationMetadata.State" do
|
158
|
+
value :STATE_UNSPECIFIED, 0
|
159
|
+
value :INITIALIZING, 1
|
160
|
+
value :RUNNING, 2
|
161
|
+
value :CANCELLED, 3
|
162
|
+
value :SUCCEEDED, 4
|
163
|
+
value :FAILED, 5
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
module Google
|
169
|
+
module Cloud
|
170
|
+
module Dialogflow
|
171
|
+
module V2
|
172
|
+
ConversationModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ConversationModel").msgclass
|
173
|
+
ConversationModel::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ConversationModel.State").enummodule
|
174
|
+
ConversationModel::ModelType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ConversationModel.ModelType").enummodule
|
175
|
+
ConversationModelEvaluation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ConversationModelEvaluation").msgclass
|
176
|
+
EvaluationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.EvaluationConfig").msgclass
|
177
|
+
EvaluationConfig::SmartReplyConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.EvaluationConfig.SmartReplyConfig").msgclass
|
178
|
+
EvaluationConfig::SmartComposeConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.EvaluationConfig.SmartComposeConfig").msgclass
|
179
|
+
InputDataset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.InputDataset").msgclass
|
180
|
+
ArticleSuggestionModelMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ArticleSuggestionModelMetadata").msgclass
|
181
|
+
SmartReplyModelMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SmartReplyModelMetadata").msgclass
|
182
|
+
SmartReplyMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SmartReplyMetrics").msgclass
|
183
|
+
SmartReplyMetrics::TopNMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SmartReplyMetrics.TopNMetrics").msgclass
|
184
|
+
CreateConversationModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.CreateConversationModelRequest").msgclass
|
185
|
+
GetConversationModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GetConversationModelRequest").msgclass
|
186
|
+
ListConversationModelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListConversationModelsRequest").msgclass
|
187
|
+
ListConversationModelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListConversationModelsResponse").msgclass
|
188
|
+
DeleteConversationModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.DeleteConversationModelRequest").msgclass
|
189
|
+
DeployConversationModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.DeployConversationModelRequest").msgclass
|
190
|
+
UndeployConversationModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.UndeployConversationModelRequest").msgclass
|
191
|
+
GetConversationModelEvaluationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GetConversationModelEvaluationRequest").msgclass
|
192
|
+
ListConversationModelEvaluationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListConversationModelEvaluationsRequest").msgclass
|
193
|
+
ListConversationModelEvaluationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.ListConversationModelEvaluationsResponse").msgclass
|
194
|
+
CreateConversationModelEvaluationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.CreateConversationModelEvaluationRequest").msgclass
|
195
|
+
CreateConversationModelOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata").msgclass
|
196
|
+
CreateConversationModelOperationMetadata::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata.State").enummodule
|
197
|
+
DeployConversationModelOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.DeployConversationModelOperationMetadata").msgclass
|
198
|
+
UndeployConversationModelOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.UndeployConversationModelOperationMetadata").msgclass
|
199
|
+
DeleteConversationModelOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.DeleteConversationModelOperationMetadata").msgclass
|
200
|
+
CreateConversationModelEvaluationOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.CreateConversationModelEvaluationOperationMetadata").msgclass
|
201
|
+
CreateConversationModelEvaluationOperationMetadata::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.CreateConversationModelEvaluationOperationMetadata.State").enummodule
|
202
|
+
end
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
@@ -0,0 +1,98 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/dialogflow/v2/conversation_model.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_model_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Dialogflow
|
25
|
+
module V2
|
26
|
+
module ConversationModels
|
27
|
+
# Manages a collection of models for human agent assistant.
|
28
|
+
class Service
|
29
|
+
|
30
|
+
include ::GRPC::GenericService
|
31
|
+
|
32
|
+
self.marshal_class_method = :encode
|
33
|
+
self.unmarshal_class_method = :decode
|
34
|
+
self.service_name = 'google.cloud.dialogflow.v2.ConversationModels'
|
35
|
+
|
36
|
+
# Creates a model.
|
37
|
+
#
|
38
|
+
# This method is a [long-running
|
39
|
+
# operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
|
40
|
+
# The returned `Operation` type has the following method-specific fields:
|
41
|
+
#
|
42
|
+
# - `metadata`: [CreateConversationModelOperationMetadata][google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata]
|
43
|
+
# - `response`: [ConversationModel][google.cloud.dialogflow.v2.ConversationModel]
|
44
|
+
rpc :CreateConversationModel, ::Google::Cloud::Dialogflow::V2::CreateConversationModelRequest, ::Google::Longrunning::Operation
|
45
|
+
# Gets conversation model.
|
46
|
+
rpc :GetConversationModel, ::Google::Cloud::Dialogflow::V2::GetConversationModelRequest, ::Google::Cloud::Dialogflow::V2::ConversationModel
|
47
|
+
# Lists conversation models.
|
48
|
+
rpc :ListConversationModels, ::Google::Cloud::Dialogflow::V2::ListConversationModelsRequest, ::Google::Cloud::Dialogflow::V2::ListConversationModelsResponse
|
49
|
+
# Deletes a model.
|
50
|
+
#
|
51
|
+
# This method is a [long-running
|
52
|
+
# operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
|
53
|
+
# The returned `Operation` type has the following method-specific fields:
|
54
|
+
#
|
55
|
+
# - `metadata`: [DeleteConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationModelOperationMetadata]
|
56
|
+
# - `response`: An [Empty
|
57
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
|
58
|
+
rpc :DeleteConversationModel, ::Google::Cloud::Dialogflow::V2::DeleteConversationModelRequest, ::Google::Longrunning::Operation
|
59
|
+
# Deploys a model. If a model is already deployed, deploying it
|
60
|
+
# has no effect. A model can only serve prediction requests after it gets
|
61
|
+
# deployed. For article suggestion, custom model will not be used unless
|
62
|
+
# it is deployed.
|
63
|
+
#
|
64
|
+
# This method is a [long-running
|
65
|
+
# operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
|
66
|
+
# The returned `Operation` type has the following method-specific fields:
|
67
|
+
#
|
68
|
+
# - `metadata`: [DeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeployConversationModelOperationMetadata]
|
69
|
+
# - `response`: An [Empty
|
70
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
|
71
|
+
rpc :DeployConversationModel, ::Google::Cloud::Dialogflow::V2::DeployConversationModelRequest, ::Google::Longrunning::Operation
|
72
|
+
# Undeploys a model. If the model is not deployed this method has no effect.
|
73
|
+
# If the model is currently being used:
|
74
|
+
# - For article suggestion, article suggestion will fallback to the default
|
75
|
+
# model if model is undeployed.
|
76
|
+
#
|
77
|
+
# This method is a [long-running
|
78
|
+
# operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
|
79
|
+
# The returned `Operation` type has the following method-specific fields:
|
80
|
+
#
|
81
|
+
# - `metadata`: [UndeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.UndeployConversationModelOperationMetadata]
|
82
|
+
# - `response`: An [Empty
|
83
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
|
84
|
+
rpc :UndeployConversationModel, ::Google::Cloud::Dialogflow::V2::UndeployConversationModelRequest, ::Google::Longrunning::Operation
|
85
|
+
# Gets an evaluation of conversation model.
|
86
|
+
rpc :GetConversationModelEvaluation, ::Google::Cloud::Dialogflow::V2::GetConversationModelEvaluationRequest, ::Google::Cloud::Dialogflow::V2::ConversationModelEvaluation
|
87
|
+
# Lists evaluations of a conversation model.
|
88
|
+
rpc :ListConversationModelEvaluations, ::Google::Cloud::Dialogflow::V2::ListConversationModelEvaluationsRequest, ::Google::Cloud::Dialogflow::V2::ListConversationModelEvaluationsResponse
|
89
|
+
# Creates evaluation of a conversation model.
|
90
|
+
rpc :CreateConversationModelEvaluation, ::Google::Cloud::Dialogflow::V2::CreateConversationModelEvaluationRequest, ::Google::Longrunning::Operation
|
91
|
+
end
|
92
|
+
|
93
|
+
Stub = Service.rpc_stub_class
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|