google-cloud-dialogflow-v2 0.7.0 → 0.10.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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/dialogflow/v2.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +16 -5
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +18 -10
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +4 -4
- data/lib/google/cloud/dialogflow/v2/agents/paths.rb +42 -3
- data/lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb +1 -2
- data/lib/google/cloud/dialogflow/v2/answer_records.rb +1 -2
- data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +3 -7
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +2 -5
- data/lib/google/cloud/dialogflow/v2/contexts/paths.rb +72 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +2 -5
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/paths.rb +44 -3
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +2 -5
- data/lib/google/cloud/dialogflow/v2/documents/client.rb +2 -5
- data/lib/google/cloud/dialogflow/v2/documents/operations.rb +4 -4
- data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +28 -7
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +30 -12
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +4 -4
- data/lib/google/cloud/dialogflow/v2/entity_types/paths.rb +58 -12
- data/lib/google/cloud/dialogflow/v2/environment_pb.rb +50 -1
- data/lib/google/cloud/dialogflow/v2/environment_services_pb.rb +21 -0
- data/lib/google/cloud/dialogflow/v2/environments/client.rb +413 -6
- data/lib/google/cloud/dialogflow/v2/environments/paths.rb +145 -5
- data/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb +59 -0
- data/lib/google/cloud/dialogflow/v2/fulfillment_services_pb.rb +47 -0
- data/lib/google/cloud/dialogflow/v2/fulfillments.rb +49 -0
- data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +457 -0
- data/lib/google/cloud/dialogflow/v2/fulfillments/credentials.rb +52 -0
- data/lib/google/cloud/dialogflow/v2/fulfillments/paths.rb +69 -0
- data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +20 -2
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +31 -8
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +4 -4
- data/lib/google/cloud/dialogflow/v2/intents/paths.rb +96 -12
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +2 -5
- data/lib/google/cloud/dialogflow/v2/participant_pb.rb +9 -0
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +3 -9
- data/lib/google/cloud/dialogflow/v2/participants/paths.rb +76 -0
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +2 -5
- data/lib/google/cloud/dialogflow/v2/session_entity_types/paths.rb +72 -0
- data/lib/google/cloud/dialogflow/v2/session_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +3 -9
- data/lib/google/cloud/dialogflow/v2/sessions/paths.rb +110 -0
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/version_pb.rb +69 -0
- data/lib/google/cloud/dialogflow/v2/version_services_pb.rb +59 -0
- data/lib/google/cloud/dialogflow/v2/versions.rb +49 -0
- data/lib/google/cloud/dialogflow/v2/versions/client.rb +706 -0
- data/lib/google/cloud/dialogflow/v2/versions/credentials.rb +52 -0
- data/lib/google/cloud/dialogflow/v2/versions/paths.rb +110 -0
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +9 -16
- data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +14 -2
- data/proto_docs/google/cloud/dialogflow/v2/environment.rb +170 -5
- data/proto_docs/google/cloud/dialogflow/v2/fulfillment.rb +144 -0
- data/proto_docs/google/cloud/dialogflow/v2/intent.rb +9 -1
- data/proto_docs/google/cloud/dialogflow/v2/participant.rb +22 -0
- data/proto_docs/google/cloud/dialogflow/v2/session.rb +4 -0
- data/proto_docs/google/cloud/dialogflow/v2/version.rb +176 -0
- metadata +27 -7
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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 "googleauth"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Dialogflow
|
24
|
+
module V2
|
25
|
+
module Versions
|
26
|
+
# Credentials for the Versions API.
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform",
|
30
|
+
"https://www.googleapis.com/auth/dialogflow"
|
31
|
+
]
|
32
|
+
self.env_vars = [
|
33
|
+
"DIALOGFLOW_CREDENTIALS",
|
34
|
+
"DIALOGFLOW_KEYFILE",
|
35
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
36
|
+
"GOOGLE_CLOUD_KEYFILE",
|
37
|
+
"GCLOUD_KEYFILE",
|
38
|
+
"DIALOGFLOW_CREDENTIALS_JSON",
|
39
|
+
"DIALOGFLOW_KEYFILE_JSON",
|
40
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
41
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
42
|
+
"GCLOUD_KEYFILE_JSON"
|
43
|
+
]
|
44
|
+
self.paths = [
|
45
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
46
|
+
]
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,110 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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 Versions
|
25
|
+
# Path helper methods for the Versions API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Agent resource string.
|
29
|
+
#
|
30
|
+
# @overload agent_path(project:)
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/agent`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
#
|
37
|
+
# @overload agent_path(project:, location:)
|
38
|
+
# The resource will be in the following format:
|
39
|
+
#
|
40
|
+
# `projects/{project}/locations/{location}/agent`
|
41
|
+
#
|
42
|
+
# @param project [String]
|
43
|
+
# @param location [String]
|
44
|
+
#
|
45
|
+
# @return [::String]
|
46
|
+
def agent_path **args
|
47
|
+
resources = {
|
48
|
+
"project" => (proc do |project:|
|
49
|
+
"projects/#{project}/agent"
|
50
|
+
end),
|
51
|
+
"location:project" => (proc do |project:, location:|
|
52
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
53
|
+
|
54
|
+
"projects/#{project}/locations/#{location}/agent"
|
55
|
+
end)
|
56
|
+
}
|
57
|
+
|
58
|
+
resource = resources[args.keys.sort.join(":")]
|
59
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
60
|
+
resource.call(**args)
|
61
|
+
end
|
62
|
+
|
63
|
+
##
|
64
|
+
# Create a fully-qualified Version resource string.
|
65
|
+
#
|
66
|
+
# @overload version_path(project:, version:)
|
67
|
+
# The resource will be in the following format:
|
68
|
+
#
|
69
|
+
# `projects/{project}/agent/versions/{version}`
|
70
|
+
#
|
71
|
+
# @param project [String]
|
72
|
+
# @param version [String]
|
73
|
+
#
|
74
|
+
# @overload version_path(project:, location:, version:)
|
75
|
+
# The resource will be in the following format:
|
76
|
+
#
|
77
|
+
# `projects/{project}/locations/{location}/agent/versions/{version}`
|
78
|
+
#
|
79
|
+
# @param project [String]
|
80
|
+
# @param location [String]
|
81
|
+
# @param version [String]
|
82
|
+
#
|
83
|
+
# @return [::String]
|
84
|
+
def version_path **args
|
85
|
+
resources = {
|
86
|
+
"project:version" => (proc do |project:, version:|
|
87
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
88
|
+
|
89
|
+
"projects/#{project}/agent/versions/#{version}"
|
90
|
+
end),
|
91
|
+
"location:project:version" => (proc do |project:, location:, version:|
|
92
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
93
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
94
|
+
|
95
|
+
"projects/#{project}/locations/#{location}/agent/versions/#{version}"
|
96
|
+
end)
|
97
|
+
}
|
98
|
+
|
99
|
+
resource = resources[args.keys.sort.join(":")]
|
100
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
101
|
+
resource.call(**args)
|
102
|
+
end
|
103
|
+
|
104
|
+
extend self
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
@@ -57,9 +57,15 @@ module Google
|
|
57
57
|
|
58
58
|
# Denotes that a (repeated) field is an unordered list.
|
59
59
|
# This indicates that the service may provide the elements of the list
|
60
|
-
# in any arbitrary
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
61
|
# provided. Additionally, the list's order may or may not be stable.
|
62
62
|
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
63
69
|
end
|
64
70
|
end
|
65
71
|
end
|
@@ -42,11 +42,9 @@ module Google
|
|
42
42
|
# A typical workflow for customers provide feedback to an answer is:
|
43
43
|
#
|
44
44
|
# 1. For human agent assistant, customers get suggestion via ListSuggestions
|
45
|
-
# API. Together with the answers,
|
46
|
-
#
|
47
|
-
#
|
48
|
-
# 2. The customer uses the
|
49
|
-
# {::Google::Cloud::Dialogflow::V2::AnswerRecord#name AnswerRecord.name} to call the
|
45
|
+
# API. Together with the answers, {::Google::Cloud::Dialogflow::V2::AnswerRecord#name AnswerRecord.name} are returned to the
|
46
|
+
# customers.
|
47
|
+
# 2. The customer uses the {::Google::Cloud::Dialogflow::V2::AnswerRecord#name AnswerRecord.name} to call the
|
50
48
|
# [UpdateAnswerRecord][] method to send feedback about a specific answer
|
51
49
|
# that they believe is wrong.
|
52
50
|
# @!attribute [rw] name
|
@@ -57,8 +55,8 @@ module Google
|
|
57
55
|
# @!attribute [rw] answer_feedback
|
58
56
|
# @return [::Google::Cloud::Dialogflow::V2::AnswerFeedback]
|
59
57
|
# Required. The AnswerFeedback for this record. You can set this with
|
60
|
-
# {::Google::Cloud::Dialogflow::V2::AnswerRecords::Client#update_answer_record AnswerRecords.UpdateAnswerRecord}
|
61
|
-
#
|
58
|
+
# {::Google::Cloud::Dialogflow::V2::AnswerRecords::Client#update_answer_record AnswerRecords.UpdateAnswerRecord} in order to give us feedback about
|
59
|
+
# this answer.
|
62
60
|
# @!attribute [r] agent_assistant_record
|
63
61
|
# @return [::Google::Cloud::Dialogflow::V2::AgentAssistantRecord]
|
64
62
|
# Output only. The record for human agent assistant.
|
@@ -67,8 +65,7 @@ module Google
|
|
67
65
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
68
66
|
end
|
69
67
|
|
70
|
-
# Request message for
|
71
|
-
# {::Google::Cloud::Dialogflow::V2::AnswerRecords::Client#list_answer_records AnswerRecords.ListAnswerRecords}.
|
68
|
+
# Request message for {::Google::Cloud::Dialogflow::V2::AnswerRecords::Client#list_answer_records AnswerRecords.ListAnswerRecords}.
|
72
69
|
# @!attribute [rw] parent
|
73
70
|
# @return [::String]
|
74
71
|
# Required. The project to list all answer records for in reverse
|
@@ -98,8 +95,7 @@ module Google
|
|
98
95
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
99
96
|
end
|
100
97
|
|
101
|
-
# Response message for
|
102
|
-
# {::Google::Cloud::Dialogflow::V2::AnswerRecords::Client#list_answer_records AnswerRecords.ListAnswerRecords}.
|
98
|
+
# Response message for {::Google::Cloud::Dialogflow::V2::AnswerRecords::Client#list_answer_records AnswerRecords.ListAnswerRecords}.
|
103
99
|
# @!attribute [rw] answer_records
|
104
100
|
# @return [::Array<::Google::Cloud::Dialogflow::V2::AnswerRecord>]
|
105
101
|
# The list of answer records.
|
@@ -116,8 +112,7 @@ module Google
|
|
116
112
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
117
113
|
end
|
118
114
|
|
119
|
-
# Request message for
|
120
|
-
# {::Google::Cloud::Dialogflow::V2::AnswerRecords::Client#update_answer_record AnswerRecords.UpdateAnswerRecord}.
|
115
|
+
# Request message for {::Google::Cloud::Dialogflow::V2::AnswerRecords::Client#update_answer_record AnswerRecords.UpdateAnswerRecord}.
|
121
116
|
# @!attribute [rw] answer_record
|
122
117
|
# @return [::Google::Cloud::Dialogflow::V2::AnswerRecord]
|
123
118
|
# Required. Answer record to update.
|
@@ -197,9 +192,7 @@ module Google
|
|
197
192
|
# @return [::Google::Cloud::Dialogflow::V2::AgentAssistantFeedback::DocumentEfficiency]
|
198
193
|
# Optional. Whether or not the suggested document is efficient. For example,
|
199
194
|
# if the document is poorly written, hard to understand, hard to use or
|
200
|
-
# too long to find useful information,
|
201
|
-
# {::Google::Cloud::Dialogflow::V2::AgentAssistantFeedback#document_efficiency document_efficiency}
|
202
|
-
# is
|
195
|
+
# too long to find useful information, {::Google::Cloud::Dialogflow::V2::AgentAssistantFeedback#document_efficiency document_efficiency} is
|
203
196
|
# {::Google::Cloud::Dialogflow::V2::AgentAssistantFeedback::DocumentEfficiency::INEFFICIENT DocumentEfficiency.INEFFICIENT}.
|
204
197
|
class AgentAssistantFeedback
|
205
198
|
include ::Google::Protobuf::MessageExts
|
@@ -24,7 +24,7 @@ module Google
|
|
24
24
|
# Defines the services to connect to incoming Dialogflow conversations.
|
25
25
|
# @!attribute [rw] name
|
26
26
|
# @return [::String]
|
27
|
-
#
|
27
|
+
# The unique identifier of this conversation profile.
|
28
28
|
# Format: `projects/<Project ID>/locations/<Location
|
29
29
|
# ID>/conversationProfiles/<Conversation Profile ID>`.
|
30
30
|
# @!attribute [rw] display_name
|
@@ -45,6 +45,9 @@ module Google
|
|
45
45
|
# @!attribute [rw] human_agent_handoff_config
|
46
46
|
# @return [::Google::Cloud::Dialogflow::V2::HumanAgentHandoffConfig]
|
47
47
|
# Configuration for connecting to a live agent.
|
48
|
+
#
|
49
|
+
# Currently, this feature is not general available, please contact Google
|
50
|
+
# to get access.
|
48
51
|
# @!attribute [rw] notification_config
|
49
52
|
# @return [::Google::Cloud::Dialogflow::V2::NotificationConfig]
|
50
53
|
# Configuration for publishing conversation lifecycle events.
|
@@ -179,6 +182,9 @@ module Google
|
|
179
182
|
# @!attribute [rw] end_user_suggestion_config
|
180
183
|
# @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionConfig]
|
181
184
|
# Configuration for agent assistance of end user participant.
|
185
|
+
#
|
186
|
+
# Currently, this feature is not general available, please contact Google
|
187
|
+
# to get access.
|
182
188
|
# @!attribute [rw] message_analysis_config
|
183
189
|
# @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::MessageAnalysisConfig]
|
184
190
|
# Configuration for message analysis.
|
@@ -357,7 +363,7 @@ module Google
|
|
357
363
|
# Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY.
|
358
364
|
# @!attribute [rw] model
|
359
365
|
# @return [::String]
|
360
|
-
#
|
366
|
+
# Conversation model resource name. Format: `projects/<Project
|
361
367
|
# ID>/conversationModels/<Model ID>`.
|
362
368
|
class ConversationModelConfig
|
363
369
|
include ::Google::Protobuf::MessageExts
|
@@ -370,6 +376,9 @@ module Google
|
|
370
376
|
# Enable entity extraction in conversation messages on [agent assist
|
371
377
|
# stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
|
372
378
|
# If unspecified, defaults to false.
|
379
|
+
#
|
380
|
+
# Currently, this feature is not general available, please contact Google
|
381
|
+
# to get access.
|
373
382
|
# @!attribute [rw] enable_sentiment_analysis
|
374
383
|
# @return [::Boolean]
|
375
384
|
# Enable sentiment analysis in conversation messages on [agent assist
|
@@ -394,6 +403,9 @@ module Google
|
|
394
403
|
|
395
404
|
# Defines the hand off to a live agent, typically on which external agent
|
396
405
|
# service provider to connect to a conversation.
|
406
|
+
#
|
407
|
+
# Currently, this feature is not general available, please contact Google
|
408
|
+
# to get access.
|
397
409
|
# @!attribute [rw] live_person_config
|
398
410
|
# @return [::Google::Cloud::Dialogflow::V2::HumanAgentHandoffConfig::LivePersonConfig]
|
399
411
|
# Uses LivePerson (https://www.liveperson.com).
|
@@ -42,16 +42,21 @@ module Google
|
|
42
42
|
# @!attribute [r] name
|
43
43
|
# @return [::String]
|
44
44
|
# Output only. The unique identifier of this agent environment.
|
45
|
-
#
|
46
|
-
#
|
45
|
+
# Supported formats:
|
46
|
+
# - `projects/<Project ID>/agent/environments/<Environment ID>`
|
47
|
+
# - `projects/<Project ID>/locations/<Location
|
48
|
+
# ID>/agent/environments/<Environment ID>`
|
47
49
|
# @!attribute [rw] description
|
48
50
|
# @return [::String]
|
49
51
|
# Optional. The developer-provided description for this environment.
|
50
52
|
# The maximum length is 500 characters. If exceeded, the request is rejected.
|
51
53
|
# @!attribute [rw] agent_version
|
52
54
|
# @return [::String]
|
53
|
-
#
|
54
|
-
#
|
55
|
+
# Required. The agent version loaded into this environment.
|
56
|
+
# Supported formats:
|
57
|
+
# - `projects/<Project ID>/agent/versions/<Version ID>`
|
58
|
+
# - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version
|
59
|
+
# ID>`
|
55
60
|
# @!attribute [r] state
|
56
61
|
# @return [::Google::Cloud::Dialogflow::V2::Environment::State]
|
57
62
|
# Output only. The state of this environment. This field is read-only, i.e., it cannot be
|
@@ -60,6 +65,12 @@ module Google
|
|
60
65
|
# @return [::Google::Protobuf::Timestamp]
|
61
66
|
# Output only. The last update time of this environment. This field is read-only, i.e., it
|
62
67
|
# cannot be set by create and update methods.
|
68
|
+
# @!attribute [rw] text_to_speech_settings
|
69
|
+
# @return [::Google::Cloud::Dialogflow::V2::TextToSpeechSettings]
|
70
|
+
# Optional. Text to speech settings for this environment.
|
71
|
+
# @!attribute [rw] fulfillment
|
72
|
+
# @return [::Google::Cloud::Dialogflow::V2::Fulfillment]
|
73
|
+
# Optional. The fulfillment settings to use for this environment.
|
63
74
|
class Environment
|
64
75
|
include ::Google::Protobuf::MessageExts
|
65
76
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -84,11 +95,47 @@ module Google
|
|
84
95
|
end
|
85
96
|
end
|
86
97
|
|
98
|
+
# Instructs the speech synthesizer on how to generate the output audio content.
|
99
|
+
# @!attribute [rw] enable_text_to_speech
|
100
|
+
# @return [::Boolean]
|
101
|
+
# Optional. Indicates whether text to speech is enabled. Even when this field is false,
|
102
|
+
# other settings in this proto are still retained.
|
103
|
+
# @!attribute [rw] output_audio_encoding
|
104
|
+
# @return [::Google::Cloud::Dialogflow::V2::OutputAudioEncoding]
|
105
|
+
# Required. Audio encoding of the synthesized audio content.
|
106
|
+
# @!attribute [rw] sample_rate_hertz
|
107
|
+
# @return [::Integer]
|
108
|
+
# Optional. The synthesis sample rate (in hertz) for this audio. If not provided, then
|
109
|
+
# the synthesizer will use the default sample rate based on the audio
|
110
|
+
# encoding. If this is different from the voice's natural sample rate, then
|
111
|
+
# the synthesizer will honor this request by converting to the desired sample
|
112
|
+
# rate (which might result in worse audio quality).
|
113
|
+
# @!attribute [rw] synthesize_speech_configs
|
114
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Dialogflow::V2::SynthesizeSpeechConfig}]
|
115
|
+
# Optional. Configuration of how speech should be synthesized, mapping from language
|
116
|
+
# (https://cloud.google.com/dialogflow/docs/reference/language) to
|
117
|
+
# SynthesizeSpeechConfig.
|
118
|
+
class TextToSpeechSettings
|
119
|
+
include ::Google::Protobuf::MessageExts
|
120
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
121
|
+
|
122
|
+
# @!attribute [rw] key
|
123
|
+
# @return [::String]
|
124
|
+
# @!attribute [rw] value
|
125
|
+
# @return [::Google::Cloud::Dialogflow::V2::SynthesizeSpeechConfig]
|
126
|
+
class SynthesizeSpeechConfigsEntry
|
127
|
+
include ::Google::Protobuf::MessageExts
|
128
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
87
132
|
# The request message for {::Google::Cloud::Dialogflow::V2::Environments::Client#list_environments Environments.ListEnvironments}.
|
88
133
|
# @!attribute [rw] parent
|
89
134
|
# @return [::String]
|
90
135
|
# Required. The agent to list all environments from.
|
91
|
-
# Format:
|
136
|
+
# Format:
|
137
|
+
# - `projects/<Project ID>/agent`
|
138
|
+
# - `projects/<Project ID>/locations/<Location ID>/agent`
|
92
139
|
# @!attribute [rw] page_size
|
93
140
|
# @return [::Integer]
|
94
141
|
# Optional. The maximum number of items to return in a single page. By default 100 and
|
@@ -114,6 +161,124 @@ module Google
|
|
114
161
|
include ::Google::Protobuf::MessageExts
|
115
162
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
116
163
|
end
|
164
|
+
|
165
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::Environments::Client#get_environment Environments.GetEnvironment}.
|
166
|
+
# @!attribute [rw] name
|
167
|
+
# @return [::String]
|
168
|
+
# Required. The name of the environment.
|
169
|
+
# Supported formats:
|
170
|
+
# - `projects/<Project ID>/agent/environments/<Environment ID>`
|
171
|
+
# - `projects/<Project ID>/locations/<Location
|
172
|
+
# ID>/agent/environments/<Environment ID>`
|
173
|
+
class GetEnvironmentRequest
|
174
|
+
include ::Google::Protobuf::MessageExts
|
175
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
176
|
+
end
|
177
|
+
|
178
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::Environments::Client#create_environment Environments.CreateEnvironment}.
|
179
|
+
# @!attribute [rw] parent
|
180
|
+
# @return [::String]
|
181
|
+
# Required. The agent to create an environment for.
|
182
|
+
# Supported formats:
|
183
|
+
# - `projects/<Project ID>/agent`
|
184
|
+
# - `projects/<Project ID>/locations/<Location ID>/agent`
|
185
|
+
# @!attribute [rw] environment
|
186
|
+
# @return [::Google::Cloud::Dialogflow::V2::Environment]
|
187
|
+
# Required. The environment to create.
|
188
|
+
# @!attribute [rw] environment_id
|
189
|
+
# @return [::String]
|
190
|
+
# Required. The unique id of the new environment.
|
191
|
+
class CreateEnvironmentRequest
|
192
|
+
include ::Google::Protobuf::MessageExts
|
193
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
194
|
+
end
|
195
|
+
|
196
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::Environments::Client#update_environment Environments.UpdateEnvironment}.
|
197
|
+
# @!attribute [rw] environment
|
198
|
+
# @return [::Google::Cloud::Dialogflow::V2::Environment]
|
199
|
+
# Required. The environment to update.
|
200
|
+
# @!attribute [rw] update_mask
|
201
|
+
# @return [::Google::Protobuf::FieldMask]
|
202
|
+
# Required. The mask to control which fields get updated.
|
203
|
+
# @!attribute [rw] allow_load_to_draft_and_discard_changes
|
204
|
+
# @return [::Boolean]
|
205
|
+
# Optional. This field is used to prevent accidental overwrite of the draft
|
206
|
+
# environment, which is an operation that cannot be undone. To confirm that
|
207
|
+
# the caller desires this overwrite, this field must be explicitly set to
|
208
|
+
# true when updating the draft environment (environment ID = `-`).
|
209
|
+
class UpdateEnvironmentRequest
|
210
|
+
include ::Google::Protobuf::MessageExts
|
211
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
212
|
+
end
|
213
|
+
|
214
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::Environments::Client#delete_environment Environments.DeleteEnvironment}.
|
215
|
+
# @!attribute [rw] name
|
216
|
+
# @return [::String]
|
217
|
+
# Required. The name of the environment to delete.
|
218
|
+
# / Format:
|
219
|
+
# - `projects/<Project ID>/agent/environments/<Environment ID>`
|
220
|
+
# - `projects/<Project ID>/locations/<Location
|
221
|
+
# ID>/agent/environments/<Environment ID>`
|
222
|
+
class DeleteEnvironmentRequest
|
223
|
+
include ::Google::Protobuf::MessageExts
|
224
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
225
|
+
end
|
226
|
+
|
227
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::Environments::Client#get_environment_history Environments.GetEnvironmentHistory}.
|
228
|
+
# @!attribute [rw] parent
|
229
|
+
# @return [::String]
|
230
|
+
# Required. The name of the environment to retrieve history for.
|
231
|
+
# Supported formats:
|
232
|
+
# - `projects/<Project ID>/agent/environments/<Environment ID>`
|
233
|
+
# - `projects/<Project ID>/locations/<Location
|
234
|
+
# ID>/agent/environments/<Environment ID>`
|
235
|
+
# @!attribute [rw] page_size
|
236
|
+
# @return [::Integer]
|
237
|
+
# Optional. The maximum number of items to return in a single page. By default 100 and
|
238
|
+
# at most 1000.
|
239
|
+
# @!attribute [rw] page_token
|
240
|
+
# @return [::String]
|
241
|
+
# Optional. The next_page_token value returned from a previous list request.
|
242
|
+
class GetEnvironmentHistoryRequest
|
243
|
+
include ::Google::Protobuf::MessageExts
|
244
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
|
+
end
|
246
|
+
|
247
|
+
# The response message for {::Google::Cloud::Dialogflow::V2::Environments::Client#get_environment_history Environments.GetEnvironmentHistory}.
|
248
|
+
# @!attribute [r] parent
|
249
|
+
# @return [::String]
|
250
|
+
# Output only. The name of the environment this history is for.
|
251
|
+
# Supported formats:
|
252
|
+
# - `projects/<Project ID>/agent/environments/<Environment ID>`
|
253
|
+
# - `projects/<Project ID>/locations/<Location
|
254
|
+
# ID>/agent/environments/<Environment ID>`
|
255
|
+
# @!attribute [r] entries
|
256
|
+
# @return [::Array<::Google::Cloud::Dialogflow::V2::EnvironmentHistory::Entry>]
|
257
|
+
# Output only. The list of agent environments. There will be a maximum number of items
|
258
|
+
# returned based on the page_size field in the request.
|
259
|
+
# @!attribute [r] next_page_token
|
260
|
+
# @return [::String]
|
261
|
+
# Output only. Token to retrieve the next page of results, or empty if there are no
|
262
|
+
# more results in the list.
|
263
|
+
class EnvironmentHistory
|
264
|
+
include ::Google::Protobuf::MessageExts
|
265
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
266
|
+
|
267
|
+
# Represents an environment history entry.
|
268
|
+
# @!attribute [rw] agent_version
|
269
|
+
# @return [::String]
|
270
|
+
# The agent version loaded into this environment history entry.
|
271
|
+
# @!attribute [rw] description
|
272
|
+
# @return [::String]
|
273
|
+
# The developer-provided description for this environment history entry.
|
274
|
+
# @!attribute [rw] create_time
|
275
|
+
# @return [::Google::Protobuf::Timestamp]
|
276
|
+
# The creation time of this environment history entry.
|
277
|
+
class Entry
|
278
|
+
include ::Google::Protobuf::MessageExts
|
279
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
280
|
+
end
|
281
|
+
end
|
117
282
|
end
|
118
283
|
end
|
119
284
|
end
|