google-cloud-dialogflow-v2 0.4.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +1 -1
- data/lib/google/cloud/dialogflow/v2.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/agents.rb +5 -5
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +212 -207
- data/lib/google/cloud/dialogflow/v2/agents/credentials.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +109 -103
- data/lib/google/cloud/dialogflow/v2/agents/paths.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/contexts.rb +3 -3
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +148 -143
- data/lib/google/cloud/dialogflow/v2/contexts/credentials.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/contexts/paths.rb +14 -14
- data/lib/google/cloud/dialogflow/v2/entity_types.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +238 -233
- data/lib/google/cloud/dialogflow/v2/entity_types/credentials.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +109 -103
- data/lib/google/cloud/dialogflow/v2/entity_types/paths.rb +3 -3
- data/lib/google/cloud/dialogflow/v2/environment_pb.rb +51 -0
- data/lib/google/cloud/dialogflow/v2/environment_services_pb.rb +45 -0
- data/lib/google/cloud/dialogflow/v2/environments.rb +49 -0
- data/lib/google/cloud/dialogflow/v2/environments/client.rb +384 -0
- data/lib/google/cloud/dialogflow/v2/environments/credentials.rb +52 -0
- data/lib/google/cloud/dialogflow/v2/environments/paths.rb +47 -0
- data/lib/google/cloud/dialogflow/v2/intents.rb +3 -3
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +183 -178
- data/lib/google/cloud/dialogflow/v2/intents/credentials.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +109 -103
- data/lib/google/cloud/dialogflow/v2/intents/paths.rb +11 -11
- data/lib/google/cloud/dialogflow/v2/session_entity_types.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +130 -125
- data/lib/google/cloud/dialogflow/v2/session_entity_types/credentials.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_types/paths.rb +14 -14
- data/lib/google/cloud/dialogflow/v2/sessions.rb +3 -3
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +86 -81
- data/lib/google/cloud/dialogflow/v2/sessions/credentials.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/sessions/paths.rb +22 -22
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/dialogflow/v2/agent.rb +69 -69
- data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +45 -44
- data/proto_docs/google/cloud/dialogflow/v2/context.rb +38 -38
- data/proto_docs/google/cloud/dialogflow/v2/entity_type.rb +86 -86
- data/proto_docs/google/cloud/dialogflow/v2/environment.rb +103 -0
- data/proto_docs/google/cloud/dialogflow/v2/intent.rb +251 -250
- data/proto_docs/google/cloud/dialogflow/v2/session.rb +114 -106
- data/proto_docs/google/cloud/dialogflow/v2/session_entity_type.rb +35 -35
- data/proto_docs/google/cloud/dialogflow/v2/validation_result.rb +8 -8
- data/proto_docs/google/cloud/dialogflow/v2/webhook.rb +43 -36
- data/proto_docs/google/longrunning/operations.rb +30 -30
- data/proto_docs/google/protobuf/any.rb +4 -4
- data/proto_docs/google/protobuf/duration.rb +4 -4
- data/proto_docs/google/protobuf/empty.rb +2 -2
- data/proto_docs/google/protobuf/field_mask.rb +3 -3
- data/proto_docs/google/protobuf/struct.rb +18 -18
- data/proto_docs/google/protobuf/timestamp.rb +120 -0
- data/proto_docs/google/rpc/status.rb +6 -6
- data/proto_docs/google/type/latlng.rb +4 -4
- metadata +41 -6
- data/lib/google/cloud/common_resources_pb.rb +0 -15
@@ -24,7 +24,7 @@ module Google
|
|
24
24
|
# Hints for the speech recognizer to help with recognition in a specific
|
25
25
|
# conversation state.
|
26
26
|
# @!attribute [rw] phrases
|
27
|
-
# @return [Array
|
27
|
+
# @return [::Array<::String>]
|
28
28
|
# Optional. A list of strings containing words and phrases that the speech
|
29
29
|
# recognizer should recognize with higher likelihood.
|
30
30
|
#
|
@@ -38,8 +38,9 @@ module Google
|
|
38
38
|
# documentation](https://cloud.google.com/speech-to-text/quotas) for usage
|
39
39
|
# limits.
|
40
40
|
# @!attribute [rw] boost
|
41
|
-
# @return [Float]
|
41
|
+
# @return [::Float]
|
42
42
|
# Optional. Boost for this context compared to other contexts:
|
43
|
+
#
|
43
44
|
# * If the boost is positive, Dialogflow will increase the probability that
|
44
45
|
# the phrases in this context are recognized over similar sounding phrases.
|
45
46
|
# * If the boost is unspecified or non-positive, Dialogflow will not apply
|
@@ -48,26 +49,26 @@ module Google
|
|
48
49
|
# Dialogflow recommends that you use boosts in the range (0, 20] and that you
|
49
50
|
# find a value that fits your use case with binary search.
|
50
51
|
class SpeechContext
|
51
|
-
include Google::Protobuf::MessageExts
|
52
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
52
|
+
include ::Google::Protobuf::MessageExts
|
53
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
53
54
|
end
|
54
55
|
|
55
56
|
# Information for a word recognized by the speech recognizer.
|
56
57
|
# @!attribute [rw] word
|
57
|
-
# @return [String]
|
58
|
+
# @return [::String]
|
58
59
|
# The word this info is for.
|
59
60
|
# @!attribute [rw] start_offset
|
60
|
-
# @return [Google::Protobuf::Duration]
|
61
|
+
# @return [::Google::Protobuf::Duration]
|
61
62
|
# Time offset relative to the beginning of the audio that corresponds to the
|
62
63
|
# start of the spoken word. This is an experimental feature and the accuracy
|
63
64
|
# of the time offset can vary.
|
64
65
|
# @!attribute [rw] end_offset
|
65
|
-
# @return [Google::Protobuf::Duration]
|
66
|
+
# @return [::Google::Protobuf::Duration]
|
66
67
|
# Time offset relative to the beginning of the audio that corresponds to the
|
67
68
|
# end of the spoken word. This is an experimental feature and the accuracy of
|
68
69
|
# the time offset can vary.
|
69
70
|
# @!attribute [rw] confidence
|
70
|
-
# @return [Float]
|
71
|
+
# @return [::Float]
|
71
72
|
# The Speech confidence between 0.0 and 1.0 for this word. A higher number
|
72
73
|
# indicates an estimated greater likelihood that the recognized word is
|
73
74
|
# correct. The default of 0.0 is a sentinel value indicating that confidence
|
@@ -76,36 +77,36 @@ module Google
|
|
76
77
|
# This field is not guaranteed to be fully stable over time for the same
|
77
78
|
# audio input. Users should also not rely on it to always be provided.
|
78
79
|
class SpeechWordInfo
|
79
|
-
include Google::Protobuf::MessageExts
|
80
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
80
|
+
include ::Google::Protobuf::MessageExts
|
81
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
81
82
|
end
|
82
83
|
|
83
84
|
# Instructs the speech recognizer how to process the audio content.
|
84
85
|
# @!attribute [rw] audio_encoding
|
85
|
-
# @return [Google::Cloud::Dialogflow::V2::AudioEncoding]
|
86
|
+
# @return [::Google::Cloud::Dialogflow::V2::AudioEncoding]
|
86
87
|
# Required. Audio encoding of the audio content to process.
|
87
88
|
# @!attribute [rw] sample_rate_hertz
|
88
|
-
# @return [Integer]
|
89
|
+
# @return [::Integer]
|
89
90
|
# Required. Sample rate (in Hertz) of the audio content sent in the query.
|
90
91
|
# Refer to
|
91
92
|
# [Cloud Speech API
|
92
93
|
# documentation](https://cloud.google.com/speech-to-text/docs/basics) for
|
93
94
|
# more details.
|
94
95
|
# @!attribute [rw] language_code
|
95
|
-
# @return [String]
|
96
|
+
# @return [::String]
|
96
97
|
# Required. The language of the supplied audio. Dialogflow does not do
|
97
98
|
# translations. See [Language
|
98
99
|
# Support](https://cloud.google.com/dialogflow/docs/reference/language)
|
99
100
|
# for a list of the currently supported language codes. Note that queries in
|
100
101
|
# the same session do not necessarily need to specify the same language.
|
101
102
|
# @!attribute [rw] enable_word_info
|
102
|
-
# @return [Boolean]
|
103
|
-
# If `true`, Dialogflow returns {Google::Cloud::Dialogflow::V2::SpeechWordInfo SpeechWordInfo} in
|
104
|
-
# {Google::Cloud::Dialogflow::V2::StreamingRecognitionResult StreamingRecognitionResult} with information about the recognized speech
|
103
|
+
# @return [::Boolean]
|
104
|
+
# If `true`, Dialogflow returns {::Google::Cloud::Dialogflow::V2::SpeechWordInfo SpeechWordInfo} in
|
105
|
+
# {::Google::Cloud::Dialogflow::V2::StreamingRecognitionResult StreamingRecognitionResult} with information about the recognized speech
|
105
106
|
# words, e.g. start and end time offsets. If false or unspecified, Speech
|
106
107
|
# doesn't return any word-level information.
|
107
108
|
# @!attribute [rw] phrase_hints
|
108
|
-
# @return [Array
|
109
|
+
# @return [::Array<::String>]
|
109
110
|
# A list of strings containing words and phrases that the speech
|
110
111
|
# recognizer should recognize with higher likelihood.
|
111
112
|
#
|
@@ -117,14 +118,14 @@ module Google
|
|
117
118
|
# specify both [phrase_hints]() and [speech_contexts](), Dialogflow will
|
118
119
|
# treat the [phrase_hints]() as a single additional [SpeechContext]().
|
119
120
|
# @!attribute [rw] speech_contexts
|
120
|
-
# @return [Array
|
121
|
+
# @return [::Array<::Google::Cloud::Dialogflow::V2::SpeechContext>]
|
121
122
|
# Context information to assist speech recognition.
|
122
123
|
#
|
123
124
|
# See [the Cloud Speech
|
124
125
|
# documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
|
125
126
|
# for more details.
|
126
127
|
# @!attribute [rw] model
|
127
|
-
# @return [String]
|
128
|
+
# @return [::String]
|
128
129
|
# Which Speech model to select for the given request. Select the
|
129
130
|
# model best suited to your domain to get best results. If a model is not
|
130
131
|
# explicitly specified, then we auto-select a model based on the parameters
|
@@ -137,10 +138,10 @@ module Google
|
|
137
138
|
# documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model)
|
138
139
|
# for more details.
|
139
140
|
# @!attribute [rw] model_variant
|
140
|
-
# @return [Google::Cloud::Dialogflow::V2::SpeechModelVariant]
|
141
|
-
# Which variant of the {Google::Cloud::Dialogflow::V2::InputAudioConfig#model Speech model} to use.
|
141
|
+
# @return [::Google::Cloud::Dialogflow::V2::SpeechModelVariant]
|
142
|
+
# Which variant of the {::Google::Cloud::Dialogflow::V2::InputAudioConfig#model Speech model} to use.
|
142
143
|
# @!attribute [rw] single_utterance
|
143
|
-
# @return [Boolean]
|
144
|
+
# @return [::Boolean]
|
144
145
|
# If `false` (default), recognition does not cease until the
|
145
146
|
# client closes the stream.
|
146
147
|
# If `true`, the recognizer will detect a single spoken utterance in input
|
@@ -152,42 +153,42 @@ module Google
|
|
152
153
|
# Note: When specified, InputAudioConfig.single_utterance takes precedence
|
153
154
|
# over StreamingDetectIntentRequest.single_utterance.
|
154
155
|
class InputAudioConfig
|
155
|
-
include Google::Protobuf::MessageExts
|
156
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
156
|
+
include ::Google::Protobuf::MessageExts
|
157
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
157
158
|
end
|
158
159
|
|
159
160
|
# Description of which voice to use for speech synthesis.
|
160
161
|
# @!attribute [rw] name
|
161
|
-
# @return [String]
|
162
|
+
# @return [::String]
|
162
163
|
# Optional. The name of the voice. If not set, the service will choose a
|
163
164
|
# voice based on the other parameters such as language_code and
|
164
|
-
# {Google::Cloud::Dialogflow::V2::VoiceSelectionParams#ssml_gender ssml_gender}.
|
165
|
+
# {::Google::Cloud::Dialogflow::V2::VoiceSelectionParams#ssml_gender ssml_gender}.
|
165
166
|
# @!attribute [rw] ssml_gender
|
166
|
-
# @return [Google::Cloud::Dialogflow::V2::SsmlVoiceGender]
|
167
|
+
# @return [::Google::Cloud::Dialogflow::V2::SsmlVoiceGender]
|
167
168
|
# Optional. The preferred gender of the voice. If not set, the service will
|
168
169
|
# choose a voice based on the other parameters such as language_code and
|
169
|
-
# {Google::Cloud::Dialogflow::V2::VoiceSelectionParams#name name}. Note that this is only a preference, not requirement. If a
|
170
|
+
# {::Google::Cloud::Dialogflow::V2::VoiceSelectionParams#name name}. Note that this is only a preference, not requirement. If a
|
170
171
|
# voice of the appropriate gender is not available, the synthesizer should
|
171
172
|
# substitute a voice with a different gender rather than failing the request.
|
172
173
|
class VoiceSelectionParams
|
173
|
-
include Google::Protobuf::MessageExts
|
174
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
174
|
+
include ::Google::Protobuf::MessageExts
|
175
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
175
176
|
end
|
176
177
|
|
177
178
|
# Configuration of how speech should be synthesized.
|
178
179
|
# @!attribute [rw] speaking_rate
|
179
|
-
# @return [Float]
|
180
|
+
# @return [::Float]
|
180
181
|
# Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal
|
181
182
|
# native speed supported by the specific voice. 2.0 is twice as fast, and
|
182
183
|
# 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any
|
183
184
|
# other values < 0.25 or > 4.0 will return an error.
|
184
185
|
# @!attribute [rw] pitch
|
185
|
-
# @return [Float]
|
186
|
+
# @return [::Float]
|
186
187
|
# Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20
|
187
188
|
# semitones from the original pitch. -20 means decrease 20 semitones from the
|
188
189
|
# original pitch.
|
189
190
|
# @!attribute [rw] volume_gain_db
|
190
|
-
# @return [Float]
|
191
|
+
# @return [::Float]
|
191
192
|
# Optional. Volume gain (in dB) of the normal native volume supported by the
|
192
193
|
# specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of
|
193
194
|
# 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
|
@@ -197,37 +198,37 @@ module Google
|
|
197
198
|
# to exceed +10 (dB) as there's usually no effective increase in loudness for
|
198
199
|
# any value greater than that.
|
199
200
|
# @!attribute [rw] effects_profile_id
|
200
|
-
# @return [Array
|
201
|
+
# @return [::Array<::String>]
|
201
202
|
# Optional. An identifier which selects 'audio effects' profiles that are
|
202
203
|
# applied on (post synthesized) text to speech. Effects are applied on top of
|
203
204
|
# each other in the order they are given.
|
204
205
|
# @!attribute [rw] voice
|
205
|
-
# @return [Google::Cloud::Dialogflow::V2::VoiceSelectionParams]
|
206
|
+
# @return [::Google::Cloud::Dialogflow::V2::VoiceSelectionParams]
|
206
207
|
# Optional. The desired voice of the synthesized audio.
|
207
208
|
class SynthesizeSpeechConfig
|
208
|
-
include Google::Protobuf::MessageExts
|
209
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
209
|
+
include ::Google::Protobuf::MessageExts
|
210
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
210
211
|
end
|
211
212
|
|
212
213
|
# Instructs the speech synthesizer on how to generate the output audio content.
|
213
214
|
# If this audio config is supplied in a request, it overrides all existing
|
214
215
|
# text-to-speech settings applied to the agent.
|
215
216
|
# @!attribute [rw] audio_encoding
|
216
|
-
# @return [Google::Cloud::Dialogflow::V2::OutputAudioEncoding]
|
217
|
+
# @return [::Google::Cloud::Dialogflow::V2::OutputAudioEncoding]
|
217
218
|
# Required. Audio encoding of the synthesized audio content.
|
218
219
|
# @!attribute [rw] sample_rate_hertz
|
219
|
-
# @return [Integer]
|
220
|
+
# @return [::Integer]
|
220
221
|
# The synthesis sample rate (in hertz) for this audio. If not
|
221
222
|
# provided, then the synthesizer will use the default sample rate based on
|
222
223
|
# the audio encoding. If this is different from the voice's natural sample
|
223
224
|
# rate, then the synthesizer will honor this request by converting to the
|
224
225
|
# desired sample rate (which might result in worse audio quality).
|
225
226
|
# @!attribute [rw] synthesize_speech_config
|
226
|
-
# @return [Google::Cloud::Dialogflow::V2::SynthesizeSpeechConfig]
|
227
|
+
# @return [::Google::Cloud::Dialogflow::V2::SynthesizeSpeechConfig]
|
227
228
|
# Configuration of how speech should be synthesized.
|
228
229
|
class OutputAudioConfig
|
229
|
-
include Google::Protobuf::MessageExts
|
230
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
230
|
+
include ::Google::Protobuf::MessageExts
|
231
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
231
232
|
end
|
232
233
|
|
233
234
|
# Audio encoding of the audio content sent in the conversational query request.
|
@@ -279,7 +280,7 @@ module Google
|
|
279
280
|
AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7
|
280
281
|
end
|
281
282
|
|
282
|
-
# Variant of the specified {Google::Cloud::Dialogflow::V2::InputAudioConfig#model Speech model} to use.
|
283
|
+
# Variant of the specified {::Google::Cloud::Dialogflow::V2::InputAudioConfig#model Speech model} to use.
|
283
284
|
#
|
284
285
|
# See the [Cloud Speech
|
285
286
|
# documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
|
@@ -308,7 +309,7 @@ module Google
|
|
308
309
|
# Use an enhanced model variant:
|
309
310
|
#
|
310
311
|
# * If an enhanced variant does not exist for the given
|
311
|
-
# {Google::Cloud::Dialogflow::V2::InputAudioConfig#model model} and request language, Dialogflow falls
|
312
|
+
# {::Google::Cloud::Dialogflow::V2::InputAudioConfig#model model} and request language, Dialogflow falls
|
312
313
|
# back to the standard variant.
|
313
314
|
#
|
314
315
|
# The [Cloud Speech
|
@@ -23,7 +23,7 @@ module Google
|
|
23
23
|
module V2
|
24
24
|
# Represents a context.
|
25
25
|
# @!attribute [rw] name
|
26
|
-
# @return [String]
|
26
|
+
# @return [::String]
|
27
27
|
# Required. The unique identifier of the context. Format:
|
28
28
|
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
|
29
29
|
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
@@ -42,13 +42,13 @@ module Google
|
|
42
42
|
# * `*_id_dialog_context`
|
43
43
|
# * `*_dialog_params_size`
|
44
44
|
# @!attribute [rw] lifespan_count
|
45
|
-
# @return [Integer]
|
45
|
+
# @return [::Integer]
|
46
46
|
# Optional. The number of conversational query requests after which the
|
47
47
|
# context expires. The default is `0`. If set to `0`, the context expires
|
48
48
|
# immediately. Contexts expire automatically after 20 minutes if there
|
49
49
|
# are no matching queries.
|
50
50
|
# @!attribute [rw] parameters
|
51
|
-
# @return [Google::Protobuf::Struct]
|
51
|
+
# @return [::Google::Protobuf::Struct]
|
52
52
|
# Optional. The collection of parameters associated with this context.
|
53
53
|
#
|
54
54
|
# Depending on your protocol or client library language, this is a
|
@@ -65,13 +65,13 @@ module Google
|
|
65
65
|
# map from composite entity property names to property values
|
66
66
|
# - Else: parameter value
|
67
67
|
class Context
|
68
|
-
include Google::Protobuf::MessageExts
|
69
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
68
|
+
include ::Google::Protobuf::MessageExts
|
69
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
70
70
|
end
|
71
71
|
|
72
|
-
# The request message for {Google::Cloud::Dialogflow::V2::Contexts::Client#list_contexts Contexts.ListContexts}.
|
72
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::Contexts::Client#list_contexts Contexts.ListContexts}.
|
73
73
|
# @!attribute [rw] parent
|
74
|
-
# @return [String]
|
74
|
+
# @return [::String]
|
75
75
|
# Required. The session to list all contexts from.
|
76
76
|
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
77
77
|
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
@@ -79,34 +79,34 @@ module Google
|
|
79
79
|
# If `Environment ID` is not specified, we assume default 'draft'
|
80
80
|
# environment. If `User ID` is not specified, we assume default '-' user.
|
81
81
|
# @!attribute [rw] page_size
|
82
|
-
# @return [Integer]
|
82
|
+
# @return [::Integer]
|
83
83
|
# Optional. The maximum number of items to return in a single page. By
|
84
84
|
# default 100 and at most 1000.
|
85
85
|
# @!attribute [rw] page_token
|
86
|
-
# @return [String]
|
86
|
+
# @return [::String]
|
87
87
|
# Optional. The next_page_token value returned from a previous list request.
|
88
88
|
class ListContextsRequest
|
89
|
-
include Google::Protobuf::MessageExts
|
90
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
89
|
+
include ::Google::Protobuf::MessageExts
|
90
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
91
91
|
end
|
92
92
|
|
93
|
-
# The response message for {Google::Cloud::Dialogflow::V2::Contexts::Client#list_contexts Contexts.ListContexts}.
|
93
|
+
# The response message for {::Google::Cloud::Dialogflow::V2::Contexts::Client#list_contexts Contexts.ListContexts}.
|
94
94
|
# @!attribute [rw] contexts
|
95
|
-
# @return [Array
|
95
|
+
# @return [::Array<::Google::Cloud::Dialogflow::V2::Context>]
|
96
96
|
# The list of contexts. There will be a maximum number of items
|
97
97
|
# returned based on the page_size field in the request.
|
98
98
|
# @!attribute [rw] next_page_token
|
99
|
-
# @return [String]
|
99
|
+
# @return [::String]
|
100
100
|
# Token to retrieve the next page of results, or empty if there are no
|
101
101
|
# more results in the list.
|
102
102
|
class ListContextsResponse
|
103
|
-
include Google::Protobuf::MessageExts
|
104
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
103
|
+
include ::Google::Protobuf::MessageExts
|
104
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
105
105
|
end
|
106
106
|
|
107
|
-
# The request message for {Google::Cloud::Dialogflow::V2::Contexts::Client#get_context Contexts.GetContext}.
|
107
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::Contexts::Client#get_context Contexts.GetContext}.
|
108
108
|
# @!attribute [rw] name
|
109
|
-
# @return [String]
|
109
|
+
# @return [::String]
|
110
110
|
# Required. The name of the context. Format:
|
111
111
|
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
|
112
112
|
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
@@ -114,13 +114,13 @@ module Google
|
|
114
114
|
# If `Environment ID` is not specified, we assume default 'draft'
|
115
115
|
# environment. If `User ID` is not specified, we assume default '-' user.
|
116
116
|
class GetContextRequest
|
117
|
-
include Google::Protobuf::MessageExts
|
118
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
117
|
+
include ::Google::Protobuf::MessageExts
|
118
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
119
119
|
end
|
120
120
|
|
121
|
-
# The request message for {Google::Cloud::Dialogflow::V2::Contexts::Client#create_context Contexts.CreateContext}.
|
121
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::Contexts::Client#create_context Contexts.CreateContext}.
|
122
122
|
# @!attribute [rw] parent
|
123
|
-
# @return [String]
|
123
|
+
# @return [::String]
|
124
124
|
# Required. The session to create a context for.
|
125
125
|
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
126
126
|
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
@@ -128,28 +128,28 @@ module Google
|
|
128
128
|
# If `Environment ID` is not specified, we assume default 'draft'
|
129
129
|
# environment. If `User ID` is not specified, we assume default '-' user.
|
130
130
|
# @!attribute [rw] context
|
131
|
-
# @return [Google::Cloud::Dialogflow::V2::Context]
|
131
|
+
# @return [::Google::Cloud::Dialogflow::V2::Context]
|
132
132
|
# Required. The context to create.
|
133
133
|
class CreateContextRequest
|
134
|
-
include Google::Protobuf::MessageExts
|
135
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
134
|
+
include ::Google::Protobuf::MessageExts
|
135
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
136
136
|
end
|
137
137
|
|
138
|
-
# The request message for {Google::Cloud::Dialogflow::V2::Contexts::Client#update_context Contexts.UpdateContext}.
|
138
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::Contexts::Client#update_context Contexts.UpdateContext}.
|
139
139
|
# @!attribute [rw] context
|
140
|
-
# @return [Google::Cloud::Dialogflow::V2::Context]
|
140
|
+
# @return [::Google::Cloud::Dialogflow::V2::Context]
|
141
141
|
# Required. The context to update.
|
142
142
|
# @!attribute [rw] update_mask
|
143
|
-
# @return [Google::Protobuf::FieldMask]
|
143
|
+
# @return [::Google::Protobuf::FieldMask]
|
144
144
|
# Optional. The mask to control which fields get updated.
|
145
145
|
class UpdateContextRequest
|
146
|
-
include Google::Protobuf::MessageExts
|
147
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
146
|
+
include ::Google::Protobuf::MessageExts
|
147
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
148
148
|
end
|
149
149
|
|
150
|
-
# The request message for {Google::Cloud::Dialogflow::V2::Contexts::Client#delete_context Contexts.DeleteContext}.
|
150
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::Contexts::Client#delete_context Contexts.DeleteContext}.
|
151
151
|
# @!attribute [rw] name
|
152
|
-
# @return [String]
|
152
|
+
# @return [::String]
|
153
153
|
# Required. The name of the context to delete. Format:
|
154
154
|
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
|
155
155
|
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
@@ -157,13 +157,13 @@ module Google
|
|
157
157
|
# If `Environment ID` is not specified, we assume default 'draft'
|
158
158
|
# environment. If `User ID` is not specified, we assume default '-' user.
|
159
159
|
class DeleteContextRequest
|
160
|
-
include Google::Protobuf::MessageExts
|
161
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
160
|
+
include ::Google::Protobuf::MessageExts
|
161
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
162
162
|
end
|
163
163
|
|
164
|
-
# The request message for {Google::Cloud::Dialogflow::V2::Contexts::Client#delete_all_contexts Contexts.DeleteAllContexts}.
|
164
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::Contexts::Client#delete_all_contexts Contexts.DeleteAllContexts}.
|
165
165
|
# @!attribute [rw] parent
|
166
|
-
# @return [String]
|
166
|
+
# @return [::String]
|
167
167
|
# Required. The name of the session to delete all contexts from. Format:
|
168
168
|
# `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
|
169
169
|
# ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
|
@@ -171,8 +171,8 @@ module Google
|
|
171
171
|
# If `Environment ID` is not specified we assume default 'draft' environment.
|
172
172
|
# If `User ID` is not specified, we assume default '-' user.
|
173
173
|
class DeleteAllContextsRequest
|
174
|
-
include Google::Protobuf::MessageExts
|
175
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
174
|
+
include ::Google::Protobuf::MessageExts
|
175
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
176
176
|
end
|
177
177
|
end
|
178
178
|
end
|
@@ -25,34 +25,34 @@ module Google
|
|
25
25
|
# Entity types serve as a tool for extracting parameter values from natural
|
26
26
|
# language queries.
|
27
27
|
# @!attribute [rw] name
|
28
|
-
# @return [String]
|
28
|
+
# @return [::String]
|
29
29
|
# The unique identifier of the entity type.
|
30
|
-
# Required for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#update_entity_type EntityTypes.UpdateEntityType} and
|
31
|
-
# {Google::Cloud::Dialogflow::V2::EntityTypes::Client#batch_update_entity_types EntityTypes.BatchUpdateEntityTypes} methods.
|
30
|
+
# Required for {::Google::Cloud::Dialogflow::V2::EntityTypes::Client#update_entity_type EntityTypes.UpdateEntityType} and
|
31
|
+
# {::Google::Cloud::Dialogflow::V2::EntityTypes::Client#batch_update_entity_types EntityTypes.BatchUpdateEntityTypes} methods.
|
32
32
|
# Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
|
33
33
|
# @!attribute [rw] display_name
|
34
|
-
# @return [String]
|
34
|
+
# @return [::String]
|
35
35
|
# Required. The name of the entity type.
|
36
36
|
# @!attribute [rw] kind
|
37
|
-
# @return [Google::Cloud::Dialogflow::V2::EntityType::Kind]
|
37
|
+
# @return [::Google::Cloud::Dialogflow::V2::EntityType::Kind]
|
38
38
|
# Required. Indicates the kind of entity type.
|
39
39
|
# @!attribute [rw] auto_expansion_mode
|
40
|
-
# @return [Google::Cloud::Dialogflow::V2::EntityType::AutoExpansionMode]
|
40
|
+
# @return [::Google::Cloud::Dialogflow::V2::EntityType::AutoExpansionMode]
|
41
41
|
# Optional. Indicates whether the entity type can be automatically
|
42
42
|
# expanded.
|
43
43
|
# @!attribute [rw] entities
|
44
|
-
# @return [Array
|
44
|
+
# @return [::Array<::Google::Cloud::Dialogflow::V2::EntityType::Entity>]
|
45
45
|
# Optional. The collection of entity entries associated with the entity type.
|
46
46
|
# @!attribute [rw] enable_fuzzy_extraction
|
47
|
-
# @return [Boolean]
|
47
|
+
# @return [::Boolean]
|
48
48
|
# Optional. Enables fuzzy entity extraction during classification.
|
49
49
|
class EntityType
|
50
|
-
include Google::Protobuf::MessageExts
|
51
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
50
|
+
include ::Google::Protobuf::MessageExts
|
51
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
52
52
|
|
53
53
|
# An **entity entry** for an associated entity type.
|
54
54
|
# @!attribute [rw] value
|
55
|
-
# @return [String]
|
55
|
+
# @return [::String]
|
56
56
|
# Required. The primary value associated with this entity entry.
|
57
57
|
# For example, if the entity type is *vegetable*, the value could be
|
58
58
|
# *scallions*.
|
@@ -66,7 +66,7 @@ module Google
|
|
66
66
|
# * A string that can contain references to other entity types (with or
|
67
67
|
# without aliases).
|
68
68
|
# @!attribute [rw] synonyms
|
69
|
-
# @return [Array
|
69
|
+
# @return [::Array<::String>]
|
70
70
|
# Required. A collection of value synonyms. For example, if the entity type
|
71
71
|
# is *vegetable*, and `value` is *scallions*, a synonym could be *green
|
72
72
|
# onions*.
|
@@ -75,8 +75,8 @@ module Google
|
|
75
75
|
#
|
76
76
|
# * This collection must contain exactly one synonym equal to `value`.
|
77
77
|
class Entity
|
78
|
-
include Google::Protobuf::MessageExts
|
79
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
78
|
+
include ::Google::Protobuf::MessageExts
|
79
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
80
80
|
end
|
81
81
|
|
82
82
|
# Represents kinds of entities.
|
@@ -111,234 +111,234 @@ module Google
|
|
111
111
|
end
|
112
112
|
end
|
113
113
|
|
114
|
-
# The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#list_entity_types EntityTypes.ListEntityTypes}.
|
114
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::EntityTypes::Client#list_entity_types EntityTypes.ListEntityTypes}.
|
115
115
|
# @!attribute [rw] parent
|
116
|
-
# @return [String]
|
116
|
+
# @return [::String]
|
117
117
|
# Required. The agent to list all entity types from.
|
118
118
|
# Format: `projects/<Project ID>/agent`.
|
119
119
|
# @!attribute [rw] language_code
|
120
|
-
# @return [String]
|
120
|
+
# @return [::String]
|
121
121
|
# Optional. The language used to access language-specific data.
|
122
122
|
# If not specified, the agent's default language is used.
|
123
123
|
# For more information, see
|
124
124
|
# [Multilingual intent and entity
|
125
125
|
# data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
|
126
126
|
# @!attribute [rw] page_size
|
127
|
-
# @return [Integer]
|
127
|
+
# @return [::Integer]
|
128
128
|
# Optional. The maximum number of items to return in a single page. By
|
129
129
|
# default 100 and at most 1000.
|
130
130
|
# @!attribute [rw] page_token
|
131
|
-
# @return [String]
|
131
|
+
# @return [::String]
|
132
132
|
# Optional. The next_page_token value returned from a previous list request.
|
133
133
|
class ListEntityTypesRequest
|
134
|
-
include Google::Protobuf::MessageExts
|
135
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
134
|
+
include ::Google::Protobuf::MessageExts
|
135
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
136
136
|
end
|
137
137
|
|
138
|
-
# The response message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#list_entity_types EntityTypes.ListEntityTypes}.
|
138
|
+
# The response message for {::Google::Cloud::Dialogflow::V2::EntityTypes::Client#list_entity_types EntityTypes.ListEntityTypes}.
|
139
139
|
# @!attribute [rw] entity_types
|
140
|
-
# @return [Array
|
140
|
+
# @return [::Array<::Google::Cloud::Dialogflow::V2::EntityType>]
|
141
141
|
# The list of agent entity types. There will be a maximum number of items
|
142
142
|
# returned based on the page_size field in the request.
|
143
143
|
# @!attribute [rw] next_page_token
|
144
|
-
# @return [String]
|
144
|
+
# @return [::String]
|
145
145
|
# Token to retrieve the next page of results, or empty if there are no
|
146
146
|
# more results in the list.
|
147
147
|
class ListEntityTypesResponse
|
148
|
-
include Google::Protobuf::MessageExts
|
149
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
148
|
+
include ::Google::Protobuf::MessageExts
|
149
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
150
150
|
end
|
151
151
|
|
152
|
-
# The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#get_entity_type EntityTypes.GetEntityType}.
|
152
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::EntityTypes::Client#get_entity_type EntityTypes.GetEntityType}.
|
153
153
|
# @!attribute [rw] name
|
154
|
-
# @return [String]
|
154
|
+
# @return [::String]
|
155
155
|
# Required. The name of the entity type.
|
156
156
|
# Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
|
157
157
|
# @!attribute [rw] language_code
|
158
|
-
# @return [String]
|
158
|
+
# @return [::String]
|
159
159
|
# Optional. The language used to access language-specific data.
|
160
160
|
# If not specified, the agent's default language is used.
|
161
161
|
# For more information, see
|
162
162
|
# [Multilingual intent and entity
|
163
163
|
# data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
|
164
164
|
class GetEntityTypeRequest
|
165
|
-
include Google::Protobuf::MessageExts
|
166
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
165
|
+
include ::Google::Protobuf::MessageExts
|
166
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
167
167
|
end
|
168
168
|
|
169
|
-
# The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#create_entity_type EntityTypes.CreateEntityType}.
|
169
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::EntityTypes::Client#create_entity_type EntityTypes.CreateEntityType}.
|
170
170
|
# @!attribute [rw] parent
|
171
|
-
# @return [String]
|
171
|
+
# @return [::String]
|
172
172
|
# Required. The agent to create a entity type for.
|
173
173
|
# Format: `projects/<Project ID>/agent`.
|
174
174
|
# @!attribute [rw] entity_type
|
175
|
-
# @return [Google::Cloud::Dialogflow::V2::EntityType]
|
175
|
+
# @return [::Google::Cloud::Dialogflow::V2::EntityType]
|
176
176
|
# Required. The entity type to create.
|
177
177
|
# @!attribute [rw] language_code
|
178
|
-
# @return [String]
|
178
|
+
# @return [::String]
|
179
179
|
# Optional. The language used to access language-specific data.
|
180
180
|
# If not specified, the agent's default language is used.
|
181
181
|
# For more information, see
|
182
182
|
# [Multilingual intent and entity
|
183
183
|
# data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
|
184
184
|
class CreateEntityTypeRequest
|
185
|
-
include Google::Protobuf::MessageExts
|
186
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
185
|
+
include ::Google::Protobuf::MessageExts
|
186
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
187
187
|
end
|
188
188
|
|
189
|
-
# The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#update_entity_type EntityTypes.UpdateEntityType}.
|
189
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::EntityTypes::Client#update_entity_type EntityTypes.UpdateEntityType}.
|
190
190
|
# @!attribute [rw] entity_type
|
191
|
-
# @return [Google::Cloud::Dialogflow::V2::EntityType]
|
191
|
+
# @return [::Google::Cloud::Dialogflow::V2::EntityType]
|
192
192
|
# Required. The entity type to update.
|
193
193
|
# @!attribute [rw] language_code
|
194
|
-
# @return [String]
|
194
|
+
# @return [::String]
|
195
195
|
# Optional. The language used to access language-specific data.
|
196
196
|
# If not specified, the agent's default language is used.
|
197
197
|
# For more information, see
|
198
198
|
# [Multilingual intent and entity
|
199
199
|
# data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
|
200
200
|
# @!attribute [rw] update_mask
|
201
|
-
# @return [Google::Protobuf::FieldMask]
|
201
|
+
# @return [::Google::Protobuf::FieldMask]
|
202
202
|
# Optional. The mask to control which fields get updated.
|
203
203
|
class UpdateEntityTypeRequest
|
204
|
-
include Google::Protobuf::MessageExts
|
205
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
204
|
+
include ::Google::Protobuf::MessageExts
|
205
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
206
206
|
end
|
207
207
|
|
208
|
-
# The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#delete_entity_type EntityTypes.DeleteEntityType}.
|
208
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::EntityTypes::Client#delete_entity_type EntityTypes.DeleteEntityType}.
|
209
209
|
# @!attribute [rw] name
|
210
|
-
# @return [String]
|
210
|
+
# @return [::String]
|
211
211
|
# Required. The name of the entity type to delete.
|
212
212
|
# Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
|
213
213
|
class DeleteEntityTypeRequest
|
214
|
-
include Google::Protobuf::MessageExts
|
215
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
214
|
+
include ::Google::Protobuf::MessageExts
|
215
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
216
216
|
end
|
217
217
|
|
218
|
-
# The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#batch_update_entity_types EntityTypes.BatchUpdateEntityTypes}.
|
218
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::EntityTypes::Client#batch_update_entity_types EntityTypes.BatchUpdateEntityTypes}.
|
219
219
|
# @!attribute [rw] parent
|
220
|
-
# @return [String]
|
220
|
+
# @return [::String]
|
221
221
|
# Required. The name of the agent to update or create entity types in.
|
222
222
|
# Format: `projects/<Project ID>/agent`.
|
223
223
|
# @!attribute [rw] entity_type_batch_uri
|
224
|
-
# @return [String]
|
224
|
+
# @return [::String]
|
225
225
|
# The URI to a Google Cloud Storage file containing entity types to update
|
226
226
|
# or create. The file format can either be a serialized proto (of
|
227
227
|
# EntityBatch type) or a JSON object. Note: The URI must start with
|
228
228
|
# "gs://".
|
229
229
|
# @!attribute [rw] entity_type_batch_inline
|
230
|
-
# @return [Google::Cloud::Dialogflow::V2::EntityTypeBatch]
|
230
|
+
# @return [::Google::Cloud::Dialogflow::V2::EntityTypeBatch]
|
231
231
|
# The collection of entity types to update or create.
|
232
232
|
# @!attribute [rw] language_code
|
233
|
-
# @return [String]
|
233
|
+
# @return [::String]
|
234
234
|
# Optional. The language used to access language-specific data.
|
235
235
|
# If not specified, the agent's default language is used.
|
236
236
|
# For more information, see
|
237
237
|
# [Multilingual intent and entity
|
238
238
|
# data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
|
239
239
|
# @!attribute [rw] update_mask
|
240
|
-
# @return [Google::Protobuf::FieldMask]
|
240
|
+
# @return [::Google::Protobuf::FieldMask]
|
241
241
|
# Optional. The mask to control which fields get updated.
|
242
242
|
class BatchUpdateEntityTypesRequest
|
243
|
-
include Google::Protobuf::MessageExts
|
244
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
243
|
+
include ::Google::Protobuf::MessageExts
|
244
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
245
|
end
|
246
246
|
|
247
|
-
# The response message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#batch_update_entity_types EntityTypes.BatchUpdateEntityTypes}.
|
247
|
+
# The response message for {::Google::Cloud::Dialogflow::V2::EntityTypes::Client#batch_update_entity_types EntityTypes.BatchUpdateEntityTypes}.
|
248
248
|
# @!attribute [rw] entity_types
|
249
|
-
# @return [Array
|
249
|
+
# @return [::Array<::Google::Cloud::Dialogflow::V2::EntityType>]
|
250
250
|
# The collection of updated or created entity types.
|
251
251
|
class BatchUpdateEntityTypesResponse
|
252
|
-
include Google::Protobuf::MessageExts
|
253
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
252
|
+
include ::Google::Protobuf::MessageExts
|
253
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
254
254
|
end
|
255
255
|
|
256
|
-
# The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#batch_delete_entity_types EntityTypes.BatchDeleteEntityTypes}.
|
256
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::EntityTypes::Client#batch_delete_entity_types EntityTypes.BatchDeleteEntityTypes}.
|
257
257
|
# @!attribute [rw] parent
|
258
|
-
# @return [String]
|
258
|
+
# @return [::String]
|
259
259
|
# Required. The name of the agent to delete all entities types for. Format:
|
260
260
|
# `projects/<Project ID>/agent`.
|
261
261
|
# @!attribute [rw] entity_type_names
|
262
|
-
# @return [Array
|
262
|
+
# @return [::Array<::String>]
|
263
263
|
# Required. The names entity types to delete. All names must point to the
|
264
264
|
# same agent as `parent`.
|
265
265
|
class BatchDeleteEntityTypesRequest
|
266
|
-
include Google::Protobuf::MessageExts
|
267
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
266
|
+
include ::Google::Protobuf::MessageExts
|
267
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
268
268
|
end
|
269
269
|
|
270
|
-
# The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#batch_create_entities EntityTypes.BatchCreateEntities}.
|
270
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::EntityTypes::Client#batch_create_entities EntityTypes.BatchCreateEntities}.
|
271
271
|
# @!attribute [rw] parent
|
272
|
-
# @return [String]
|
272
|
+
# @return [::String]
|
273
273
|
# Required. The name of the entity type to create entities in. Format:
|
274
274
|
# `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
|
275
275
|
# @!attribute [rw] entities
|
276
|
-
# @return [Array
|
276
|
+
# @return [::Array<::Google::Cloud::Dialogflow::V2::EntityType::Entity>]
|
277
277
|
# Required. The entities to create.
|
278
278
|
# @!attribute [rw] language_code
|
279
|
-
# @return [String]
|
279
|
+
# @return [::String]
|
280
280
|
# Optional. The language used to access language-specific data.
|
281
281
|
# If not specified, the agent's default language is used.
|
282
282
|
# For more information, see
|
283
283
|
# [Multilingual intent and entity
|
284
284
|
# data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
|
285
285
|
class BatchCreateEntitiesRequest
|
286
|
-
include Google::Protobuf::MessageExts
|
287
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
286
|
+
include ::Google::Protobuf::MessageExts
|
287
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
288
288
|
end
|
289
289
|
|
290
|
-
# The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#batch_update_entities EntityTypes.BatchUpdateEntities}.
|
290
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::EntityTypes::Client#batch_update_entities EntityTypes.BatchUpdateEntities}.
|
291
291
|
# @!attribute [rw] parent
|
292
|
-
# @return [String]
|
292
|
+
# @return [::String]
|
293
293
|
# Required. The name of the entity type to update or create entities in.
|
294
294
|
# Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
|
295
295
|
# @!attribute [rw] entities
|
296
|
-
# @return [Array
|
296
|
+
# @return [::Array<::Google::Cloud::Dialogflow::V2::EntityType::Entity>]
|
297
297
|
# Required. The entities to update or create.
|
298
298
|
# @!attribute [rw] language_code
|
299
|
-
# @return [String]
|
299
|
+
# @return [::String]
|
300
300
|
# Optional. The language used to access language-specific data.
|
301
301
|
# If not specified, the agent's default language is used.
|
302
302
|
# For more information, see
|
303
303
|
# [Multilingual intent and entity
|
304
304
|
# data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
|
305
305
|
# @!attribute [rw] update_mask
|
306
|
-
# @return [Google::Protobuf::FieldMask]
|
306
|
+
# @return [::Google::Protobuf::FieldMask]
|
307
307
|
# Optional. The mask to control which fields get updated.
|
308
308
|
class BatchUpdateEntitiesRequest
|
309
|
-
include Google::Protobuf::MessageExts
|
310
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
309
|
+
include ::Google::Protobuf::MessageExts
|
310
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
311
311
|
end
|
312
312
|
|
313
|
-
# The request message for {Google::Cloud::Dialogflow::V2::EntityTypes::Client#batch_delete_entities EntityTypes.BatchDeleteEntities}.
|
313
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::EntityTypes::Client#batch_delete_entities EntityTypes.BatchDeleteEntities}.
|
314
314
|
# @!attribute [rw] parent
|
315
|
-
# @return [String]
|
315
|
+
# @return [::String]
|
316
316
|
# Required. The name of the entity type to delete entries for. Format:
|
317
317
|
# `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
|
318
318
|
# @!attribute [rw] entity_values
|
319
|
-
# @return [Array
|
319
|
+
# @return [::Array<::String>]
|
320
320
|
# Required. The reference `values` of the entities to delete. Note that
|
321
321
|
# these are not fully-qualified names, i.e. they don't start with
|
322
322
|
# `projects/<Project ID>`.
|
323
323
|
# @!attribute [rw] language_code
|
324
|
-
# @return [String]
|
324
|
+
# @return [::String]
|
325
325
|
# Optional. The language used to access language-specific data.
|
326
326
|
# If not specified, the agent's default language is used.
|
327
327
|
# For more information, see
|
328
328
|
# [Multilingual intent and entity
|
329
329
|
# data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
|
330
330
|
class BatchDeleteEntitiesRequest
|
331
|
-
include Google::Protobuf::MessageExts
|
332
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
331
|
+
include ::Google::Protobuf::MessageExts
|
332
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
333
333
|
end
|
334
334
|
|
335
335
|
# This message is a wrapper around a collection of entity types.
|
336
336
|
# @!attribute [rw] entity_types
|
337
|
-
# @return [Array
|
337
|
+
# @return [::Array<::Google::Cloud::Dialogflow::V2::EntityType>]
|
338
338
|
# A collection of entity types.
|
339
339
|
class EntityTypeBatch
|
340
|
-
include Google::Protobuf::MessageExts
|
341
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
340
|
+
include ::Google::Protobuf::MessageExts
|
341
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
342
342
|
end
|
343
343
|
end
|
344
344
|
end
|