google-cloud-dialogflow-cx-v3 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +32 -0
- data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +122 -0
- data/lib/google/cloud/dialogflow/cx/v3/agent_services_pb.rb +82 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +1051 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +666 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/paths.rb +151 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents.rb +52 -0
- data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +94 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +92 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_type_services_pb.rb +67 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +766 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/paths.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_types.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +117 -0
- data/lib/google/cloud/dialogflow/cx/v3/environment_services_pb.rb +61 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +950 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +666 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/paths.rb +98 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments.rb +52 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +177 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiment_services_pb.rb +61 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +851 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiments/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiments/paths.rb +102 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiments.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +145 -0
- data/lib/google/cloud/dialogflow/cx/v3/flow_services_pb.rb +88 -0
- data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +1200 -0
- data/lib/google/cloud/dialogflow/cx/v3/flows/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +666 -0
- data/lib/google/cloud/dialogflow/cx/v3/flows/paths.rb +184 -0
- data/lib/google/cloud/dialogflow/cx/v3/flows.rb +52 -0
- data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +55 -0
- data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +97 -0
- data/lib/google/cloud/dialogflow/cx/v3/intent_services_pb.rb +67 -0
- data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +750 -0
- data/lib/google/cloud/dialogflow/cx/v3/intents/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/intents/paths.rb +96 -0
- data/lib/google/cloud/dialogflow/cx/v3/intents.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +113 -0
- data/lib/google/cloud/dialogflow/cx/v3/page_services_pb.rb +67 -0
- data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +805 -0
- data/lib/google/cloud/dialogflow/cx/v3/pages/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/pages/paths.rb +165 -0
- data/lib/google/cloud/dialogflow/cx/v3/pages.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +77 -0
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +89 -0
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +696 -0
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/paths.rb +157 -0
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_services_pb.rb +56 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb +68 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_services_pb.rb +55 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +715 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/paths.rb +137 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +209 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_services_pb.rb +71 -0
- data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +654 -0
- data/lib/google/cloud/dialogflow/cx/v3/sessions/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/sessions/paths.rb +225 -0
- data/lib/google/cloud/dialogflow/cx/v3/sessions.rb +53 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +302 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_case_services_pb.rb +73 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +1324 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +666 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/paths.rb +249 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases.rb +53 -0
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +67 -0
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_services_pb.rb +67 -0
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +766 -0
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/paths.rb +144 -0
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +59 -0
- data/lib/google/cloud/dialogflow/cx/v3/version.rb +30 -0
- data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +88 -0
- data/lib/google/cloud/dialogflow/cx/v3/version_services_pb.rb +57 -0
- data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +792 -0
- data/lib/google/cloud/dialogflow/cx/v3/versions/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +666 -0
- data/lib/google/cloud/dialogflow/cx/v3/versions/paths.rb +79 -0
- data/lib/google/cloud/dialogflow/cx/v3/versions.rb +52 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +172 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhook_services_pb.rb +55 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +704 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/paths.rb +96 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhooks.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3.rb +53 -0
- data/lib/google-cloud-dialogflow-cx-v3.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/advanced_settings.rb +57 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +301 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/audio_config.rb +322 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/entity_type.rb +306 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +279 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/experiment.rb +438 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +438 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/fulfillment.rb +126 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/intent.rb +318 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/page.rb +478 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +220 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +222 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +798 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/session_entity_type.rb +184 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +757 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/transition_route_group.rb +195 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/validation_message.rb +121 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/version.rb +182 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +496 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/struct.rb +96 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- data/proto_docs/google/type/latlng.rb +38 -0
- metadata +326 -0
@@ -0,0 +1,126 @@
|
|
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 CX
|
24
|
+
module V3
|
25
|
+
# A fulfillment can do one or more of the following actions at the same time:
|
26
|
+
#
|
27
|
+
# * Generate rich message responses.
|
28
|
+
# * Set parameter values.
|
29
|
+
# * Call the webhook.
|
30
|
+
#
|
31
|
+
# Fulfillments can be called at various stages in the {::Google::Cloud::Dialogflow::CX::V3::Page Page} or
|
32
|
+
# {::Google::Cloud::Dialogflow::CX::V3::Form Form} lifecycle. For example, when a {::Google::Cloud::Dialogflow::CX::V3::DetectIntentRequest DetectIntentRequest} drives a
|
33
|
+
# session to enter a new page, the page's entry fulfillment can add a static
|
34
|
+
# response to the {::Google::Cloud::Dialogflow::CX::V3::QueryResult QueryResult} in the returning {::Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse DetectIntentResponse},
|
35
|
+
# call the webhook (for example, to load user data from a database), or both.
|
36
|
+
# @!attribute [rw] messages
|
37
|
+
# @return [::Array<::Google::Cloud::Dialogflow::CX::V3::ResponseMessage>]
|
38
|
+
# The list of rich message responses to present to the user.
|
39
|
+
# @!attribute [rw] webhook
|
40
|
+
# @return [::String]
|
41
|
+
# The webhook to call.
|
42
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
43
|
+
# ID>/webhooks/<Webhook ID>`.
|
44
|
+
# @!attribute [rw] return_partial_responses
|
45
|
+
# @return [::Boolean]
|
46
|
+
# Whether Dialogflow should return currently queued fulfillment response
|
47
|
+
# messages in streaming APIs. If a webhook is specified, it happens before
|
48
|
+
# Dialogflow invokes webhook.
|
49
|
+
# Warning:
|
50
|
+
# 1) This flag only affects streaming API. Responses are still queued
|
51
|
+
# and returned once in non-streaming API.
|
52
|
+
# 2) The flag can be enabled in any fulfillment but only the first 3 partial
|
53
|
+
# responses will be returned. You may only want to apply it to fulfillments
|
54
|
+
# that have slow webhooks.
|
55
|
+
# @!attribute [rw] tag
|
56
|
+
# @return [::String]
|
57
|
+
# The tag used by the webhook to identify which fulfillment is being called.
|
58
|
+
# This field is required if `webhook` is specified.
|
59
|
+
# @!attribute [rw] set_parameter_actions
|
60
|
+
# @return [::Array<::Google::Cloud::Dialogflow::CX::V3::Fulfillment::SetParameterAction>]
|
61
|
+
# Set parameter values before executing the webhook.
|
62
|
+
# @!attribute [rw] conditional_cases
|
63
|
+
# @return [::Array<::Google::Cloud::Dialogflow::CX::V3::Fulfillment::ConditionalCases>]
|
64
|
+
# Conditional cases for this fulfillment.
|
65
|
+
class Fulfillment
|
66
|
+
include ::Google::Protobuf::MessageExts
|
67
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
68
|
+
|
69
|
+
# Setting a parameter value.
|
70
|
+
# @!attribute [rw] parameter
|
71
|
+
# @return [::String]
|
72
|
+
# Display name of the parameter.
|
73
|
+
# @!attribute [rw] value
|
74
|
+
# @return [::Google::Protobuf::Value]
|
75
|
+
# The new value of the parameter. A null value clears the parameter.
|
76
|
+
class SetParameterAction
|
77
|
+
include ::Google::Protobuf::MessageExts
|
78
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
79
|
+
end
|
80
|
+
|
81
|
+
# A list of cascading if-else conditions. Cases are mutually exclusive.
|
82
|
+
# The first one with a matching condition is selected, all the rest ignored.
|
83
|
+
# @!attribute [rw] cases
|
84
|
+
# @return [::Array<::Google::Cloud::Dialogflow::CX::V3::Fulfillment::ConditionalCases::Case>]
|
85
|
+
# A list of cascading if-else conditions.
|
86
|
+
class ConditionalCases
|
87
|
+
include ::Google::Protobuf::MessageExts
|
88
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
89
|
+
|
90
|
+
# Each case has a Boolean condition. When it is evaluated to be True, the
|
91
|
+
# corresponding messages will be selected and evaluated recursively.
|
92
|
+
# @!attribute [rw] condition
|
93
|
+
# @return [::String]
|
94
|
+
# The condition to activate and select this case. Empty means the
|
95
|
+
# condition is always true. The condition is evaluated against [form
|
96
|
+
# parameters][Form.parameters] or [session
|
97
|
+
# parameters][SessionInfo.parameters].
|
98
|
+
#
|
99
|
+
# See the [conditions
|
100
|
+
# reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
|
101
|
+
# @!attribute [rw] case_content
|
102
|
+
# @return [::Array<::Google::Cloud::Dialogflow::CX::V3::Fulfillment::ConditionalCases::Case::CaseContent>]
|
103
|
+
# A list of case content.
|
104
|
+
class Case
|
105
|
+
include ::Google::Protobuf::MessageExts
|
106
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
107
|
+
|
108
|
+
# The list of messages or conditional cases to activate for this case.
|
109
|
+
# @!attribute [rw] message
|
110
|
+
# @return [::Google::Cloud::Dialogflow::CX::V3::ResponseMessage]
|
111
|
+
# Returned message.
|
112
|
+
# @!attribute [rw] additional_cases
|
113
|
+
# @return [::Google::Cloud::Dialogflow::CX::V3::Fulfillment::ConditionalCases]
|
114
|
+
# Additional cases to be evaluated.
|
115
|
+
class CaseContent
|
116
|
+
include ::Google::Protobuf::MessageExts
|
117
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
126
|
+
end
|
@@ -0,0 +1,318 @@
|
|
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 CX
|
24
|
+
module V3
|
25
|
+
# An intent represents a user's intent to interact with a conversational agent.
|
26
|
+
#
|
27
|
+
# You can provide information for the Dialogflow API to use to match user input
|
28
|
+
# to an intent by adding training phrases (i.e., examples of user input) to
|
29
|
+
# your intent.
|
30
|
+
# @!attribute [rw] name
|
31
|
+
# @return [::String]
|
32
|
+
# The unique identifier of the intent.
|
33
|
+
# Required for the {::Google::Cloud::Dialogflow::CX::V3::Intents::Client#update_intent Intents.UpdateIntent} method. {::Google::Cloud::Dialogflow::CX::V3::Intents::Client#create_intent Intents.CreateIntent}
|
34
|
+
# populates the name automatically.
|
35
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
36
|
+
# ID>/intents/<Intent ID>`.
|
37
|
+
# @!attribute [rw] display_name
|
38
|
+
# @return [::String]
|
39
|
+
# Required. The human-readable name of the intent, unique within the agent.
|
40
|
+
# @!attribute [rw] training_phrases
|
41
|
+
# @return [::Array<::Google::Cloud::Dialogflow::CX::V3::Intent::TrainingPhrase>]
|
42
|
+
# The collection of training phrases the agent is trained on to identify the
|
43
|
+
# intent.
|
44
|
+
# @!attribute [rw] parameters
|
45
|
+
# @return [::Array<::Google::Cloud::Dialogflow::CX::V3::Intent::Parameter>]
|
46
|
+
# The collection of parameters associated with the intent.
|
47
|
+
# @!attribute [rw] priority
|
48
|
+
# @return [::Integer]
|
49
|
+
# The priority of this intent. Higher numbers represent higher
|
50
|
+
# priorities.
|
51
|
+
#
|
52
|
+
# - If the supplied value is unspecified or 0, the service
|
53
|
+
# translates the value to 500,000, which corresponds to the
|
54
|
+
# `Normal` priority in the console.
|
55
|
+
# - If the supplied value is negative, the intent is ignored
|
56
|
+
# in runtime detect intent requests.
|
57
|
+
# @!attribute [rw] is_fallback
|
58
|
+
# @return [::Boolean]
|
59
|
+
# Indicates whether this is a fallback intent. Currently only default
|
60
|
+
# fallback intent is allowed in the agent, which is added upon agent
|
61
|
+
# creation.
|
62
|
+
# Adding training phrases to fallback intent is useful in the case of
|
63
|
+
# requests that are mistakenly matched, since training phrases assigned to
|
64
|
+
# fallback intents act as negative examples that triggers no-match event.
|
65
|
+
# @!attribute [rw] labels
|
66
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
67
|
+
# The key/value metadata to label an intent. Labels can contain
|
68
|
+
# lowercase letters, digits and the symbols '-' and '_'. International
|
69
|
+
# characters are allowed, including letters from unicase alphabets. Keys must
|
70
|
+
# start with a letter. Keys and values can be no longer than 63 characters
|
71
|
+
# and no more than 128 bytes.
|
72
|
+
#
|
73
|
+
# Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed
|
74
|
+
# Dialogflow defined labels include:
|
75
|
+
# * sys-head
|
76
|
+
# * sys-contextual
|
77
|
+
# The above labels do not require value. "sys-head" means the intent is a
|
78
|
+
# head intent. "sys.contextual" means the intent is a contextual intent.
|
79
|
+
# @!attribute [rw] description
|
80
|
+
# @return [::String]
|
81
|
+
# Human readable description for better understanding an intent like its
|
82
|
+
# scope, content, result etc. Maximum character limit: 140 characters.
|
83
|
+
class Intent
|
84
|
+
include ::Google::Protobuf::MessageExts
|
85
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
86
|
+
|
87
|
+
# Represents an example that the agent is trained on to identify the intent.
|
88
|
+
# @!attribute [rw] id
|
89
|
+
# @return [::String]
|
90
|
+
# Output only. The unique identifier of the training phrase.
|
91
|
+
# @!attribute [rw] parts
|
92
|
+
# @return [::Array<::Google::Cloud::Dialogflow::CX::V3::Intent::TrainingPhrase::Part>]
|
93
|
+
# Required. The ordered list of training phrase parts.
|
94
|
+
# The parts are concatenated in order to form the training phrase.
|
95
|
+
#
|
96
|
+
# Note: The API does not automatically annotate training phrases like the
|
97
|
+
# Dialogflow Console does.
|
98
|
+
#
|
99
|
+
# Note: Do not forget to include whitespace at part boundaries, so the
|
100
|
+
# training phrase is well formatted when the parts are concatenated.
|
101
|
+
#
|
102
|
+
# If the training phrase does not need to be annotated with parameters,
|
103
|
+
# you just need a single part with only the {::Google::Cloud::Dialogflow::CX::V3::Intent::TrainingPhrase::Part#text Part.text} field set.
|
104
|
+
#
|
105
|
+
# If you want to annotate the training phrase, you must create multiple
|
106
|
+
# parts, where the fields of each part are populated in one of two ways:
|
107
|
+
#
|
108
|
+
# - `Part.text` is set to a part of the phrase that has no parameters.
|
109
|
+
# - `Part.text` is set to a part of the phrase that you want to annotate,
|
110
|
+
# and the `parameter_id` field is set.
|
111
|
+
# @!attribute [rw] repeat_count
|
112
|
+
# @return [::Integer]
|
113
|
+
# Indicates how many times this example was added to the intent.
|
114
|
+
class TrainingPhrase
|
115
|
+
include ::Google::Protobuf::MessageExts
|
116
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
117
|
+
|
118
|
+
# Represents a part of a training phrase.
|
119
|
+
# @!attribute [rw] text
|
120
|
+
# @return [::String]
|
121
|
+
# Required. The text for this part.
|
122
|
+
# @!attribute [rw] parameter_id
|
123
|
+
# @return [::String]
|
124
|
+
# The {::Google::Cloud::Dialogflow::CX::V3::Intent::Parameter parameter} used to annotate this part of the
|
125
|
+
# training phrase. This field is required for annotated parts of the
|
126
|
+
# training phrase.
|
127
|
+
class Part
|
128
|
+
include ::Google::Protobuf::MessageExts
|
129
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
# Represents an intent parameter.
|
134
|
+
# @!attribute [rw] id
|
135
|
+
# @return [::String]
|
136
|
+
# Required. The unique identifier of the parameter. This field
|
137
|
+
# is used by {::Google::Cloud::Dialogflow::CX::V3::Intent::TrainingPhrase training phrases} to annotate their
|
138
|
+
# {::Google::Cloud::Dialogflow::CX::V3::Intent::TrainingPhrase::Part parts}.
|
139
|
+
# @!attribute [rw] entity_type
|
140
|
+
# @return [::String]
|
141
|
+
# Required. The entity type of the parameter.
|
142
|
+
# Format: `projects/-/locations/-/agents/-/entityTypes/<System Entity Type
|
143
|
+
# ID>` for system entity types (for example,
|
144
|
+
# `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
|
145
|
+
# `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
146
|
+
# ID>/entityTypes/<Entity Type ID>` for developer entity types.
|
147
|
+
# @!attribute [rw] is_list
|
148
|
+
# @return [::Boolean]
|
149
|
+
# Indicates whether the parameter represents a list of values.
|
150
|
+
# @!attribute [rw] redact
|
151
|
+
# @return [::Boolean]
|
152
|
+
# Indicates whether the parameter content should be redacted in log. If
|
153
|
+
# redaction is enabled, the parameter content will be replaced by parameter
|
154
|
+
# name during logging.
|
155
|
+
# Note: the parameter content is subject to redaction if either parameter
|
156
|
+
# level redaction or {::Google::Cloud::Dialogflow::CX::V3::EntityType#redact entity type level redaction} is
|
157
|
+
# enabled.
|
158
|
+
class Parameter
|
159
|
+
include ::Google::Protobuf::MessageExts
|
160
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
161
|
+
end
|
162
|
+
|
163
|
+
# @!attribute [rw] key
|
164
|
+
# @return [::String]
|
165
|
+
# @!attribute [rw] value
|
166
|
+
# @return [::String]
|
167
|
+
class LabelsEntry
|
168
|
+
include ::Google::Protobuf::MessageExts
|
169
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
# The request message for {::Google::Cloud::Dialogflow::CX::V3::Intents::Client#list_intents Intents.ListIntents}.
|
174
|
+
# @!attribute [rw] parent
|
175
|
+
# @return [::String]
|
176
|
+
# Required. The agent to list all intents for.
|
177
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
|
178
|
+
# @!attribute [rw] language_code
|
179
|
+
# @return [::String]
|
180
|
+
# The language to list intents for. The following fields are language
|
181
|
+
# dependent:
|
182
|
+
#
|
183
|
+
# * `Intent.training_phrases.parts.text`
|
184
|
+
#
|
185
|
+
# If not specified, the agent's default language is used.
|
186
|
+
# [Many
|
187
|
+
# languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
|
188
|
+
# are supported.
|
189
|
+
# Note: languages must be enabled in the agent before they can be used.
|
190
|
+
# @!attribute [rw] intent_view
|
191
|
+
# @return [::Google::Cloud::Dialogflow::CX::V3::IntentView]
|
192
|
+
# The resource view to apply to the returned intent.
|
193
|
+
# @!attribute [rw] page_size
|
194
|
+
# @return [::Integer]
|
195
|
+
# The maximum number of items to return in a single page. By default 100 and
|
196
|
+
# at most 1000.
|
197
|
+
# @!attribute [rw] page_token
|
198
|
+
# @return [::String]
|
199
|
+
# The next_page_token value returned from a previous list request.
|
200
|
+
class ListIntentsRequest
|
201
|
+
include ::Google::Protobuf::MessageExts
|
202
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
203
|
+
end
|
204
|
+
|
205
|
+
# The response message for {::Google::Cloud::Dialogflow::CX::V3::Intents::Client#list_intents Intents.ListIntents}.
|
206
|
+
# @!attribute [rw] intents
|
207
|
+
# @return [::Array<::Google::Cloud::Dialogflow::CX::V3::Intent>]
|
208
|
+
# The list of intents. There will be a maximum number of items returned based
|
209
|
+
# on the page_size field in the request.
|
210
|
+
# @!attribute [rw] next_page_token
|
211
|
+
# @return [::String]
|
212
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
213
|
+
# results in the list.
|
214
|
+
class ListIntentsResponse
|
215
|
+
include ::Google::Protobuf::MessageExts
|
216
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
217
|
+
end
|
218
|
+
|
219
|
+
# The request message for {::Google::Cloud::Dialogflow::CX::V3::Intents::Client#get_intent Intents.GetIntent}.
|
220
|
+
# @!attribute [rw] name
|
221
|
+
# @return [::String]
|
222
|
+
# Required. The name of the intent.
|
223
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
224
|
+
# ID>/intents/<Intent ID>`.
|
225
|
+
# @!attribute [rw] language_code
|
226
|
+
# @return [::String]
|
227
|
+
# The language to retrieve the intent for. The following fields are language
|
228
|
+
# dependent:
|
229
|
+
#
|
230
|
+
# * `Intent.training_phrases.parts.text`
|
231
|
+
#
|
232
|
+
# If not specified, the agent's default language is used.
|
233
|
+
# [Many
|
234
|
+
# languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
|
235
|
+
# are supported.
|
236
|
+
# Note: languages must be enabled in the agent before they can be used.
|
237
|
+
class GetIntentRequest
|
238
|
+
include ::Google::Protobuf::MessageExts
|
239
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
240
|
+
end
|
241
|
+
|
242
|
+
# The request message for {::Google::Cloud::Dialogflow::CX::V3::Intents::Client#create_intent Intents.CreateIntent}.
|
243
|
+
# @!attribute [rw] parent
|
244
|
+
# @return [::String]
|
245
|
+
# Required. The agent to create an intent for.
|
246
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
|
247
|
+
# @!attribute [rw] intent
|
248
|
+
# @return [::Google::Cloud::Dialogflow::CX::V3::Intent]
|
249
|
+
# Required. The intent to create.
|
250
|
+
# @!attribute [rw] language_code
|
251
|
+
# @return [::String]
|
252
|
+
# The language of the following fields in `intent`:
|
253
|
+
#
|
254
|
+
# * `Intent.training_phrases.parts.text`
|
255
|
+
#
|
256
|
+
# If not specified, the agent's default language is used.
|
257
|
+
# [Many
|
258
|
+
# languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
|
259
|
+
# are supported.
|
260
|
+
# Note: languages must be enabled in the agent before they can be used.
|
261
|
+
class CreateIntentRequest
|
262
|
+
include ::Google::Protobuf::MessageExts
|
263
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
264
|
+
end
|
265
|
+
|
266
|
+
# The request message for {::Google::Cloud::Dialogflow::CX::V3::Intents::Client#update_intent Intents.UpdateIntent}.
|
267
|
+
# @!attribute [rw] intent
|
268
|
+
# @return [::Google::Cloud::Dialogflow::CX::V3::Intent]
|
269
|
+
# Required. The intent to update.
|
270
|
+
# @!attribute [rw] language_code
|
271
|
+
# @return [::String]
|
272
|
+
# The language of the following fields in `intent`:
|
273
|
+
#
|
274
|
+
# * `Intent.training_phrases.parts.text`
|
275
|
+
#
|
276
|
+
# If not specified, the agent's default language is used.
|
277
|
+
# [Many
|
278
|
+
# languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
|
279
|
+
# are supported.
|
280
|
+
# Note: languages must be enabled in the agent before they can be used.
|
281
|
+
# @!attribute [rw] update_mask
|
282
|
+
# @return [::Google::Protobuf::FieldMask]
|
283
|
+
# The mask to control which fields get updated. If the mask is not present,
|
284
|
+
# all fields will be updated.
|
285
|
+
class UpdateIntentRequest
|
286
|
+
include ::Google::Protobuf::MessageExts
|
287
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
288
|
+
end
|
289
|
+
|
290
|
+
# The request message for {::Google::Cloud::Dialogflow::CX::V3::Intents::Client#delete_intent Intents.DeleteIntent}.
|
291
|
+
# @!attribute [rw] name
|
292
|
+
# @return [::String]
|
293
|
+
# Required. The name of the intent to delete.
|
294
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
295
|
+
# ID>/intents/<Intent ID>`.
|
296
|
+
class DeleteIntentRequest
|
297
|
+
include ::Google::Protobuf::MessageExts
|
298
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
299
|
+
end
|
300
|
+
|
301
|
+
# Represents the options for views of an intent.
|
302
|
+
# An intent can be a sizable object. Therefore, we provide a resource view that
|
303
|
+
# does not return training phrases in the response.
|
304
|
+
module IntentView
|
305
|
+
# Not specified. Treated as INTENT_VIEW_FULL.
|
306
|
+
INTENT_VIEW_UNSPECIFIED = 0
|
307
|
+
|
308
|
+
# Training phrases field is not populated in the response.
|
309
|
+
INTENT_VIEW_PARTIAL = 1
|
310
|
+
|
311
|
+
# All fields are populated.
|
312
|
+
INTENT_VIEW_FULL = 2
|
313
|
+
end
|
314
|
+
end
|
315
|
+
end
|
316
|
+
end
|
317
|
+
end
|
318
|
+
end
|
@@ -0,0 +1,478 @@
|
|
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 CX
|
24
|
+
module V3
|
25
|
+
# A Dialogflow CX conversation (session) can be described and visualized as a
|
26
|
+
# state machine. The states of a CX session are represented by pages.
|
27
|
+
#
|
28
|
+
# For each flow, you define many pages, where your combined pages can handle a
|
29
|
+
# complete conversation on the topics the flow is designed for. At any given
|
30
|
+
# moment, exactly one page is the current page, the current page is considered
|
31
|
+
# active, and the flow associated with that page is considered active. Every
|
32
|
+
# flow has a special start page. When a flow initially becomes active, the
|
33
|
+
# start page page becomes the current page. For each conversational turn, the
|
34
|
+
# current page will either stay the same or transition to another page.
|
35
|
+
#
|
36
|
+
# You configure each page to collect information from the end-user that is
|
37
|
+
# relevant for the conversational state represented by the page.
|
38
|
+
#
|
39
|
+
# For more information, see the
|
40
|
+
# [Page guide](https://cloud.google.com/dialogflow/cx/docs/concept/page).
|
41
|
+
# @!attribute [rw] name
|
42
|
+
# @return [::String]
|
43
|
+
# The unique identifier of the page.
|
44
|
+
# Required for the {::Google::Cloud::Dialogflow::CX::V3::Pages::Client#update_page Pages.UpdatePage} method. {::Google::Cloud::Dialogflow::CX::V3::Pages::Client#create_page Pages.CreatePage}
|
45
|
+
# populates the name automatically.
|
46
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
47
|
+
# ID>/flows/<Flow ID>/pages/<Page ID>`.
|
48
|
+
# @!attribute [rw] display_name
|
49
|
+
# @return [::String]
|
50
|
+
# Required. The human-readable name of the page, unique within the agent.
|
51
|
+
# @!attribute [rw] entry_fulfillment
|
52
|
+
# @return [::Google::Cloud::Dialogflow::CX::V3::Fulfillment]
|
53
|
+
# The fulfillment to call when the session is entering the page.
|
54
|
+
# @!attribute [rw] form
|
55
|
+
# @return [::Google::Cloud::Dialogflow::CX::V3::Form]
|
56
|
+
# The form associated with the page, used for collecting parameters
|
57
|
+
# relevant to the page.
|
58
|
+
# @!attribute [rw] transition_route_groups
|
59
|
+
# @return [::Array<::String>]
|
60
|
+
# Ordered list of {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup `TransitionRouteGroups`} associated
|
61
|
+
# with the page. Transition route groups must be unique within a page.
|
62
|
+
#
|
63
|
+
# * If multiple transition routes within a page scope refer to the same
|
64
|
+
# intent, then the precedence order is: page's transition route -> page's
|
65
|
+
# transition route group -> flow's transition routes.
|
66
|
+
#
|
67
|
+
# * If multiple transition route groups within a page contain the same
|
68
|
+
# intent, then the first group in the ordered list takes precedence.
|
69
|
+
#
|
70
|
+
# Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
71
|
+
# ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`.
|
72
|
+
# @!attribute [rw] transition_routes
|
73
|
+
# @return [::Array<::Google::Cloud::Dialogflow::CX::V3::TransitionRoute>]
|
74
|
+
# A list of transitions for the transition rules of this page.
|
75
|
+
# They route the conversation to another page in the same flow, or another
|
76
|
+
# flow.
|
77
|
+
#
|
78
|
+
# When we are in a certain page, the TransitionRoutes are evalauted in the
|
79
|
+
# following order:
|
80
|
+
#
|
81
|
+
# * TransitionRoutes defined in the page with intent specified.
|
82
|
+
# * TransitionRoutes defined in the
|
83
|
+
# {::Google::Cloud::Dialogflow::CX::V3::Page#transition_route_groups transition route groups} with intent
|
84
|
+
# specified.
|
85
|
+
# * TransitionRoutes defined in flow with intent specified.
|
86
|
+
# * TransitionRoutes defined in the
|
87
|
+
# {::Google::Cloud::Dialogflow::CX::V3::Flow#transition_route_groups transition route groups} with intent
|
88
|
+
# specified.
|
89
|
+
# * TransitionRoutes defined in the page with only condition specified.
|
90
|
+
# * TransitionRoutes defined in the
|
91
|
+
# {::Google::Cloud::Dialogflow::CX::V3::Page#transition_route_groups transition route groups} with only
|
92
|
+
# condition specified.
|
93
|
+
# @!attribute [rw] event_handlers
|
94
|
+
# @return [::Array<::Google::Cloud::Dialogflow::CX::V3::EventHandler>]
|
95
|
+
# Handlers associated with the page to handle events such as webhook errors,
|
96
|
+
# no match or no input.
|
97
|
+
class Page
|
98
|
+
include ::Google::Protobuf::MessageExts
|
99
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
100
|
+
end
|
101
|
+
|
102
|
+
# A form is a data model that groups related parameters that can be collected
|
103
|
+
# from the user. The process in which the agent prompts the user and collects
|
104
|
+
# parameter values from the user is called form filling. A form can be added to
|
105
|
+
# a {::Google::Cloud::Dialogflow::CX::V3::Page page}. When form filling is done, the filled parameters will be
|
106
|
+
# written to the {::Google::Cloud::Dialogflow::CX::V3::SessionInfo#parameters session}.
|
107
|
+
# @!attribute [rw] parameters
|
108
|
+
# @return [::Array<::Google::Cloud::Dialogflow::CX::V3::Form::Parameter>]
|
109
|
+
# Parameters to collect from the user.
|
110
|
+
class Form
|
111
|
+
include ::Google::Protobuf::MessageExts
|
112
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
113
|
+
|
114
|
+
# Represents a form parameter.
|
115
|
+
# @!attribute [rw] display_name
|
116
|
+
# @return [::String]
|
117
|
+
# Required. The human-readable name of the parameter, unique within the
|
118
|
+
# form.
|
119
|
+
# @!attribute [rw] required
|
120
|
+
# @return [::Boolean]
|
121
|
+
# Indicates whether the parameter is required. Optional parameters will not
|
122
|
+
# trigger prompts; however, they are filled if the user specifies them.
|
123
|
+
# Required parameters must be filled before form filling concludes.
|
124
|
+
# @!attribute [rw] entity_type
|
125
|
+
# @return [::String]
|
126
|
+
# Required. The entity type of the parameter.
|
127
|
+
# Format: `projects/-/locations/-/agents/-/entityTypes/<System Entity Type
|
128
|
+
# ID>` for system entity types (for example,
|
129
|
+
# `projects/-/locations/-/agents/-/entityTypes/sys.date`), or
|
130
|
+
# `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
131
|
+
# ID>/entityTypes/<Entity Type ID>` for developer entity types.
|
132
|
+
# @!attribute [rw] is_list
|
133
|
+
# @return [::Boolean]
|
134
|
+
# Indicates whether the parameter represents a list of values.
|
135
|
+
# @!attribute [rw] fill_behavior
|
136
|
+
# @return [::Google::Cloud::Dialogflow::CX::V3::Form::Parameter::FillBehavior]
|
137
|
+
# Required. Defines fill behavior for the parameter.
|
138
|
+
# @!attribute [rw] default_value
|
139
|
+
# @return [::Google::Protobuf::Value]
|
140
|
+
# The default value of an optional parameter. If the parameter is required,
|
141
|
+
# the default value will be ignored.
|
142
|
+
# @!attribute [rw] redact
|
143
|
+
# @return [::Boolean]
|
144
|
+
# Indicates whether the parameter content should be redacted in log. If
|
145
|
+
# redaction is enabled, the parameter content will be replaced by parameter
|
146
|
+
# name during logging.
|
147
|
+
# Note: the parameter content is subject to redaction if either parameter
|
148
|
+
# level redaction or {::Google::Cloud::Dialogflow::CX::V3::EntityType#redact entity type level redaction} is
|
149
|
+
# enabled.
|
150
|
+
class Parameter
|
151
|
+
include ::Google::Protobuf::MessageExts
|
152
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
153
|
+
|
154
|
+
# Configuration for how the filling of a parameter should be handled.
|
155
|
+
# @!attribute [rw] initial_prompt_fulfillment
|
156
|
+
# @return [::Google::Cloud::Dialogflow::CX::V3::Fulfillment]
|
157
|
+
# Required. The fulfillment to provide the initial prompt that the agent
|
158
|
+
# can present to the user in order to fill the parameter.
|
159
|
+
# @!attribute [rw] reprompt_event_handlers
|
160
|
+
# @return [::Array<::Google::Cloud::Dialogflow::CX::V3::EventHandler>]
|
161
|
+
# The handlers for parameter-level events, used to provide reprompt for
|
162
|
+
# the parameter or transition to a different page/flow. The supported
|
163
|
+
# events are:
|
164
|
+
# * `sys.no-match-<N>`, where N can be from 1 to 6
|
165
|
+
# * `sys.no-match-default`
|
166
|
+
# * `sys.no-input-<N>`, where N can be from 1 to 6
|
167
|
+
# * `sys.no-input-default`
|
168
|
+
# * `sys.invalid-parameter`
|
169
|
+
#
|
170
|
+
# `initial_prompt_fulfillment` provides the first prompt for the
|
171
|
+
# parameter.
|
172
|
+
#
|
173
|
+
# If the user's response does not fill the parameter, a
|
174
|
+
# no-match/no-input event will be triggered, and the fulfillment
|
175
|
+
# associated with the `sys.no-match-1`/`sys.no-input-1` handler (if
|
176
|
+
# defined) will be called to provide a prompt. The
|
177
|
+
# `sys.no-match-2`/`sys.no-input-2` handler (if defined) will respond to
|
178
|
+
# the next no-match/no-input event, and so on.
|
179
|
+
#
|
180
|
+
# A `sys.no-match-default` or `sys.no-input-default` handler will be used
|
181
|
+
# to handle all following no-match/no-input events after all numbered
|
182
|
+
# no-match/no-input handlers for the parameter are consumed.
|
183
|
+
#
|
184
|
+
# A `sys.invalid-parameter` handler can be defined to handle the case
|
185
|
+
# where the parameter values have been `invalidated` by webhook. For
|
186
|
+
# example, if the user's response fill the parameter, however the
|
187
|
+
# parameter was invalidated by webhook, the fulfillment associated with
|
188
|
+
# the `sys.invalid-parameter` handler (if defined) will be called to
|
189
|
+
# provide a prompt.
|
190
|
+
#
|
191
|
+
# If the event handler for the corresponding event can't be found on the
|
192
|
+
# parameter, `initial_prompt_fulfillment` will be re-prompted.
|
193
|
+
class FillBehavior
|
194
|
+
include ::Google::Protobuf::MessageExts
|
195
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
196
|
+
end
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
# An event handler specifies an {::Google::Cloud::Dialogflow::CX::V3::EventHandler#event event} that can be handled
|
201
|
+
# during a session. When the specified event happens, the following actions are
|
202
|
+
# taken in order:
|
203
|
+
#
|
204
|
+
# * If there is a
|
205
|
+
# {::Google::Cloud::Dialogflow::CX::V3::EventHandler#trigger_fulfillment `trigger_fulfillment`} associated with
|
206
|
+
# the event, it will be called.
|
207
|
+
# * If there is a {::Google::Cloud::Dialogflow::CX::V3::EventHandler#target_page `target_page`} associated
|
208
|
+
# with the event, the session will transition into the specified page.
|
209
|
+
# * If there is a {::Google::Cloud::Dialogflow::CX::V3::EventHandler#target_flow `target_flow`} associated
|
210
|
+
# with the event, the session will transition into the specified flow.
|
211
|
+
# @!attribute [r] name
|
212
|
+
# @return [::String]
|
213
|
+
# Output only. The unique identifier of this event handler.
|
214
|
+
# @!attribute [rw] event
|
215
|
+
# @return [::String]
|
216
|
+
# Required. The name of the event to handle.
|
217
|
+
# @!attribute [rw] trigger_fulfillment
|
218
|
+
# @return [::Google::Cloud::Dialogflow::CX::V3::Fulfillment]
|
219
|
+
# The fulfillment to call when the event occurs.
|
220
|
+
# Handling webhook errors with a fulfillment enabled with webhook could
|
221
|
+
# cause infinite loop. It is invalid to specify such fulfillment for a
|
222
|
+
# handler handling webhooks.
|
223
|
+
# @!attribute [rw] target_page
|
224
|
+
# @return [::String]
|
225
|
+
# The target page to transition to.
|
226
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
227
|
+
# ID>/flows/<Flow ID>/pages/<Page ID>`.
|
228
|
+
# @!attribute [rw] target_flow
|
229
|
+
# @return [::String]
|
230
|
+
# The target flow to transition to.
|
231
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
232
|
+
# ID>/flows/<Flow ID>`.
|
233
|
+
class EventHandler
|
234
|
+
include ::Google::Protobuf::MessageExts
|
235
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
236
|
+
end
|
237
|
+
|
238
|
+
# A transition route specifies a {::Google::Cloud::Dialogflow::CX::V3::Intent intent} that can be matched and/or a
|
239
|
+
# data condition that can be evaluated during a session. When a specified
|
240
|
+
# transition is matched, the following actions are taken in order:
|
241
|
+
#
|
242
|
+
# * If there is a
|
243
|
+
# {::Google::Cloud::Dialogflow::CX::V3::TransitionRoute#trigger_fulfillment `trigger_fulfillment`} associated with
|
244
|
+
# the transition, it will be called.
|
245
|
+
# * If there is a {::Google::Cloud::Dialogflow::CX::V3::TransitionRoute#target_page `target_page`} associated
|
246
|
+
# with the transition, the session will transition into the specified page.
|
247
|
+
# * If there is a {::Google::Cloud::Dialogflow::CX::V3::TransitionRoute#target_flow `target_flow`} associated
|
248
|
+
# with the transition, the session will transition into the specified flow.
|
249
|
+
# @!attribute [r] name
|
250
|
+
# @return [::String]
|
251
|
+
# Output only. The unique identifier of this transition route.
|
252
|
+
# @!attribute [rw] intent
|
253
|
+
# @return [::String]
|
254
|
+
# The unique identifier of an {::Google::Cloud::Dialogflow::CX::V3::Intent Intent}.
|
255
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
256
|
+
# ID>/intents/<Intent ID>`.
|
257
|
+
# Indicates that the transition can only happen when the given intent is
|
258
|
+
# matched.
|
259
|
+
# At least one of `intent` or `condition` must be specified. When both
|
260
|
+
# `intent` and `condition` are specified, the transition can only happen
|
261
|
+
# when both are fulfilled.
|
262
|
+
# @!attribute [rw] condition
|
263
|
+
# @return [::String]
|
264
|
+
# The condition to evaluate against {::Google::Cloud::Dialogflow::CX::V3::Form#parameters form parameters} or
|
265
|
+
# {::Google::Cloud::Dialogflow::CX::V3::SessionInfo#parameters session parameters}.
|
266
|
+
#
|
267
|
+
# See the [conditions
|
268
|
+
# reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
|
269
|
+
# At least one of `intent` or `condition` must be specified. When both
|
270
|
+
# `intent` and `condition` are specified, the transition can only happen
|
271
|
+
# when both are fulfilled.
|
272
|
+
# @!attribute [rw] trigger_fulfillment
|
273
|
+
# @return [::Google::Cloud::Dialogflow::CX::V3::Fulfillment]
|
274
|
+
# The fulfillment to call when the condition is satisfied. At least one of
|
275
|
+
# `trigger_fulfillment` and `target` must be specified. When both are
|
276
|
+
# defined, `trigger_fulfillment` is executed first.
|
277
|
+
# @!attribute [rw] target_page
|
278
|
+
# @return [::String]
|
279
|
+
# The target page to transition to.
|
280
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
281
|
+
# ID>/flows/<Flow ID>/pages/<Page ID>`.
|
282
|
+
# @!attribute [rw] target_flow
|
283
|
+
# @return [::String]
|
284
|
+
# The target flow to transition to.
|
285
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
286
|
+
# ID>/flows/<Flow ID>`.
|
287
|
+
class TransitionRoute
|
288
|
+
include ::Google::Protobuf::MessageExts
|
289
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
290
|
+
end
|
291
|
+
|
292
|
+
# The request message for {::Google::Cloud::Dialogflow::CX::V3::Pages::Client#list_pages Pages.ListPages}.
|
293
|
+
# @!attribute [rw] parent
|
294
|
+
# @return [::String]
|
295
|
+
# Required. The flow to list all pages for.
|
296
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
297
|
+
# ID>/flows/<Flow ID>`.
|
298
|
+
# @!attribute [rw] language_code
|
299
|
+
# @return [::String]
|
300
|
+
# The language to list pages for. The following fields are language
|
301
|
+
# dependent:
|
302
|
+
#
|
303
|
+
# * `Page.entry_fulfillment.messages`
|
304
|
+
# * `Page.entry_fulfillment.conditional_cases`
|
305
|
+
# * `Page.event_handlers.trigger_fulfillment.messages`
|
306
|
+
# * `Page.event_handlers.trigger_fulfillment.conditional_cases`
|
307
|
+
# * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages`
|
308
|
+
# *
|
309
|
+
# `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.conditional_cases`
|
310
|
+
# * `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages`
|
311
|
+
# *
|
312
|
+
# `Page.form.parameters.fill_behavior.reprompt_event_handlers.conditional_cases`
|
313
|
+
# * `Page.transition_routes.trigger_fulfillment.messages`
|
314
|
+
# * `Page.transition_routes.trigger_fulfillment.conditional_cases`
|
315
|
+
#
|
316
|
+
# If not specified, the agent's default language is used.
|
317
|
+
# [Many
|
318
|
+
# languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
|
319
|
+
# are supported.
|
320
|
+
# Note: languages must be enabled in the agent before they can be used.
|
321
|
+
# @!attribute [rw] page_size
|
322
|
+
# @return [::Integer]
|
323
|
+
# The maximum number of items to return in a single page. By default 100 and
|
324
|
+
# at most 1000.
|
325
|
+
# @!attribute [rw] page_token
|
326
|
+
# @return [::String]
|
327
|
+
# The next_page_token value returned from a previous list request.
|
328
|
+
class ListPagesRequest
|
329
|
+
include ::Google::Protobuf::MessageExts
|
330
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
331
|
+
end
|
332
|
+
|
333
|
+
# The response message for {::Google::Cloud::Dialogflow::CX::V3::Pages::Client#list_pages Pages.ListPages}.
|
334
|
+
# @!attribute [rw] pages
|
335
|
+
# @return [::Array<::Google::Cloud::Dialogflow::CX::V3::Page>]
|
336
|
+
# The list of pages. There will be a maximum number of items returned based
|
337
|
+
# on the page_size field in the request.
|
338
|
+
# @!attribute [rw] next_page_token
|
339
|
+
# @return [::String]
|
340
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
341
|
+
# results in the list.
|
342
|
+
class ListPagesResponse
|
343
|
+
include ::Google::Protobuf::MessageExts
|
344
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
345
|
+
end
|
346
|
+
|
347
|
+
# The request message for {::Google::Cloud::Dialogflow::CX::V3::Pages::Client#get_page Pages.GetPage}.
|
348
|
+
# @!attribute [rw] name
|
349
|
+
# @return [::String]
|
350
|
+
# Required. The name of the page.
|
351
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
352
|
+
# ID>/flows/<Flow ID>/pages/<Page ID>`.
|
353
|
+
# @!attribute [rw] language_code
|
354
|
+
# @return [::String]
|
355
|
+
# The language to retrieve the page for. The following fields are language
|
356
|
+
# dependent:
|
357
|
+
#
|
358
|
+
# * `Page.entry_fulfillment.messages`
|
359
|
+
# * `Page.entry_fulfillment.conditional_cases`
|
360
|
+
# * `Page.event_handlers.trigger_fulfillment.messages`
|
361
|
+
# * `Page.event_handlers.trigger_fulfillment.conditional_cases`
|
362
|
+
# * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages`
|
363
|
+
# *
|
364
|
+
# `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.conditional_cases`
|
365
|
+
# * `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages`
|
366
|
+
# *
|
367
|
+
# `Page.form.parameters.fill_behavior.reprompt_event_handlers.conditional_cases`
|
368
|
+
# * `Page.transition_routes.trigger_fulfillment.messages`
|
369
|
+
# * `Page.transition_routes.trigger_fulfillment.conditional_cases`
|
370
|
+
#
|
371
|
+
# If not specified, the agent's default language is used.
|
372
|
+
# [Many
|
373
|
+
# languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
|
374
|
+
# are supported.
|
375
|
+
# Note: languages must be enabled in the agent before they can be used.
|
376
|
+
class GetPageRequest
|
377
|
+
include ::Google::Protobuf::MessageExts
|
378
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
379
|
+
end
|
380
|
+
|
381
|
+
# The request message for {::Google::Cloud::Dialogflow::CX::V3::Pages::Client#create_page Pages.CreatePage}.
|
382
|
+
# @!attribute [rw] parent
|
383
|
+
# @return [::String]
|
384
|
+
# Required. The flow to create a page for.
|
385
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
386
|
+
# ID>/flows/<Flow ID>`.
|
387
|
+
# @!attribute [rw] page
|
388
|
+
# @return [::Google::Cloud::Dialogflow::CX::V3::Page]
|
389
|
+
# Required. The page to create.
|
390
|
+
# @!attribute [rw] language_code
|
391
|
+
# @return [::String]
|
392
|
+
# The language of the following fields in `page`:
|
393
|
+
#
|
394
|
+
# * `Page.entry_fulfillment.messages`
|
395
|
+
# * `Page.entry_fulfillment.conditional_cases`
|
396
|
+
# * `Page.event_handlers.trigger_fulfillment.messages`
|
397
|
+
# * `Page.event_handlers.trigger_fulfillment.conditional_cases`
|
398
|
+
# * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages`
|
399
|
+
# *
|
400
|
+
# `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.conditional_cases`
|
401
|
+
# * `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages`
|
402
|
+
# *
|
403
|
+
# `Page.form.parameters.fill_behavior.reprompt_event_handlers.conditional_cases`
|
404
|
+
# * `Page.transition_routes.trigger_fulfillment.messages`
|
405
|
+
# * `Page.transition_routes.trigger_fulfillment.conditional_cases`
|
406
|
+
#
|
407
|
+
# If not specified, the agent's default language is used.
|
408
|
+
# [Many
|
409
|
+
# languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
|
410
|
+
# are supported.
|
411
|
+
# Note: languages must be enabled in the agent before they can be used.
|
412
|
+
class CreatePageRequest
|
413
|
+
include ::Google::Protobuf::MessageExts
|
414
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
415
|
+
end
|
416
|
+
|
417
|
+
# The request message for {::Google::Cloud::Dialogflow::CX::V3::Pages::Client#update_page Pages.UpdatePage}.
|
418
|
+
# @!attribute [rw] page
|
419
|
+
# @return [::Google::Cloud::Dialogflow::CX::V3::Page]
|
420
|
+
# Required. The page to update.
|
421
|
+
# @!attribute [rw] language_code
|
422
|
+
# @return [::String]
|
423
|
+
# The language of the following fields in `page`:
|
424
|
+
#
|
425
|
+
# * `Page.entry_fulfillment.messages`
|
426
|
+
# * `Page.entry_fulfillment.conditional_cases`
|
427
|
+
# * `Page.event_handlers.trigger_fulfillment.messages`
|
428
|
+
# * `Page.event_handlers.trigger_fulfillment.conditional_cases`
|
429
|
+
# * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages`
|
430
|
+
# *
|
431
|
+
# `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.conditional_cases`
|
432
|
+
# * `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages`
|
433
|
+
# *
|
434
|
+
# `Page.form.parameters.fill_behavior.reprompt_event_handlers.conditional_cases`
|
435
|
+
# * `Page.transition_routes.trigger_fulfillment.messages`
|
436
|
+
# * `Page.transition_routes.trigger_fulfillment.conditional_cases`
|
437
|
+
#
|
438
|
+
# If not specified, the agent's default language is used.
|
439
|
+
# [Many
|
440
|
+
# languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
|
441
|
+
# are supported.
|
442
|
+
# Note: languages must be enabled in the agent before they can be used.
|
443
|
+
# @!attribute [rw] update_mask
|
444
|
+
# @return [::Google::Protobuf::FieldMask]
|
445
|
+
# The mask to control which fields get updated. If the mask is not present,
|
446
|
+
# all fields will be updated.
|
447
|
+
class UpdatePageRequest
|
448
|
+
include ::Google::Protobuf::MessageExts
|
449
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
450
|
+
end
|
451
|
+
|
452
|
+
# The request message for {::Google::Cloud::Dialogflow::CX::V3::Pages::Client#delete_page Pages.DeletePage}.
|
453
|
+
# @!attribute [rw] name
|
454
|
+
# @return [::String]
|
455
|
+
# Required. The name of the page to delete.
|
456
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
457
|
+
# ID>/Flows/<flow ID>/pages/<Page ID>`.
|
458
|
+
# @!attribute [rw] force
|
459
|
+
# @return [::Boolean]
|
460
|
+
# This field has no effect for pages with no incoming transitions.
|
461
|
+
# For pages with incoming transitions:
|
462
|
+
#
|
463
|
+
# * If `force` is set to false, an error will be returned with message
|
464
|
+
# indicating the incoming transitions.
|
465
|
+
# * If `force` is set to true, Dialogflow will remove the page, as well as
|
466
|
+
# any transitions to the page (i.e. [Target
|
467
|
+
# page][EventHandler.target_page] in event handlers or [Target
|
468
|
+
# page][TransitionRoute.target_page] in transition routes that point to
|
469
|
+
# this page will be cleared).
|
470
|
+
class DeletePageRequest
|
471
|
+
include ::Google::Protobuf::MessageExts
|
472
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
473
|
+
end
|
474
|
+
end
|
475
|
+
end
|
476
|
+
end
|
477
|
+
end
|
478
|
+
end
|