google-cloud-dialogflow 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow.rb +31 -7
- data/lib/google/cloud/dialogflow/v2.rb +55 -7
- data/lib/google/cloud/dialogflow/v2/agent_pb.rb +26 -1
- data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +7 -3
- data/lib/google/cloud/dialogflow/v2/agents_client.rb +101 -5
- data/lib/google/cloud/dialogflow/v2/agents_client_config.json +10 -0
- data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/context_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/context_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/contexts_client.rb +9 -3
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/agent.rb +57 -2
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/audio_config.rb +7 -7
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/context.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/entity_type.rb +8 -8
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/intent.rb +6 -6
- data/lib/google/cloud/dialogflow/v2/doc/google/cloud/dialogflow/v2/session.rb +16 -13
- data/lib/google/cloud/dialogflow/v2/entity_type_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/entity_types_client.rb +20 -11
- data/lib/google/cloud/dialogflow/v2/intent_pb.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/intents_client.rb +17 -8
- data/lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_types_client.rb +9 -3
- data/lib/google/cloud/dialogflow/v2/session_pb.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/sessions_client.rb +8 -2
- data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/version.rb +1 -1
- metadata +4 -4
@@ -48,7 +48,7 @@ module Google
|
|
48
48
|
# You can create an agent using both Dialogflow Standard Edition and
|
49
49
|
# Dialogflow Enterprise Edition. For details, see
|
50
50
|
# [Dialogflow
|
51
|
-
# Editions](https://cloud.google.com/dialogflow
|
51
|
+
# Editions](https://cloud.google.com/dialogflow/docs/editions).
|
52
52
|
#
|
53
53
|
# You can save your agent for backup or versioning by exporting the agent by
|
54
54
|
# using the {Google::Cloud::Dialogflow::V2::Agents::ExportAgent ExportAgent} method. You can import a saved
|
@@ -56,13 +56,13 @@ module Google
|
|
56
56
|
#
|
57
57
|
# Dialogflow provides several
|
58
58
|
# [prebuilt
|
59
|
-
# agents](https://cloud.google.com/dialogflow
|
59
|
+
# agents](https://cloud.google.com/dialogflow/docs/agents-prebuilt)
|
60
60
|
# for common conversation scenarios such as determining a date and time,
|
61
61
|
# converting currency, and so on.
|
62
62
|
#
|
63
63
|
# For more information about agents, see the
|
64
64
|
# [Dialogflow
|
65
|
-
# documentation](https://cloud.google.com/dialogflow
|
65
|
+
# documentation](https://cloud.google.com/dialogflow/docs/agents-overview).
|
66
66
|
#
|
67
67
|
# @!attribute [r] agents_stub
|
68
68
|
# @return [Google::Cloud::Dialogflow::V2::Agents::Stub]
|
@@ -144,6 +144,10 @@ module Google
|
|
144
144
|
# The default timeout, in seconds, for calls made through this client.
|
145
145
|
# @param metadata [Hash]
|
146
146
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
147
|
+
# @param service_address [String]
|
148
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
149
|
+
# @param service_port [Integer]
|
150
|
+
# Override for the service port, or `nil` to leave as the default.
|
147
151
|
# @param exception_transformer [Proc]
|
148
152
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
149
153
|
# custom error handling.
|
@@ -153,6 +157,8 @@ module Google
|
|
153
157
|
client_config: {},
|
154
158
|
timeout: DEFAULT_TIMEOUT,
|
155
159
|
metadata: nil,
|
160
|
+
service_address: nil,
|
161
|
+
service_port: nil,
|
156
162
|
exception_transformer: nil,
|
157
163
|
lib_name: nil,
|
158
164
|
lib_version: ""
|
@@ -170,7 +176,10 @@ module Google
|
|
170
176
|
client_config: client_config,
|
171
177
|
timeout: timeout,
|
172
178
|
lib_name: lib_name,
|
179
|
+
service_address: service_address,
|
180
|
+
service_port: service_port,
|
173
181
|
lib_version: lib_version,
|
182
|
+
metadata: metadata,
|
174
183
|
)
|
175
184
|
|
176
185
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
@@ -216,8 +225,8 @@ module Google
|
|
216
225
|
end
|
217
226
|
|
218
227
|
# Allow overriding the service path/port in subclasses.
|
219
|
-
service_path = self.class::SERVICE_ADDRESS
|
220
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
228
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
229
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
221
230
|
interceptors = self.class::GRPC_INTERCEPTORS
|
222
231
|
@agents_stub = Google::Gax::Grpc.create_stub(
|
223
232
|
service_path,
|
@@ -230,6 +239,22 @@ module Google
|
|
230
239
|
&Google::Cloud::Dialogflow::V2::Agents::Stub.method(:new)
|
231
240
|
)
|
232
241
|
|
242
|
+
@set_agent = Google::Gax.create_api_call(
|
243
|
+
@agents_stub.method(:set_agent),
|
244
|
+
defaults["set_agent"],
|
245
|
+
exception_transformer: exception_transformer,
|
246
|
+
params_extractor: proc do |request|
|
247
|
+
{'agent.parent' => request.agent.parent}
|
248
|
+
end
|
249
|
+
)
|
250
|
+
@delete_agent = Google::Gax.create_api_call(
|
251
|
+
@agents_stub.method(:delete_agent),
|
252
|
+
defaults["delete_agent"],
|
253
|
+
exception_transformer: exception_transformer,
|
254
|
+
params_extractor: proc do |request|
|
255
|
+
{'parent' => request.parent}
|
256
|
+
end
|
257
|
+
)
|
233
258
|
@get_agent = Google::Gax.create_api_call(
|
234
259
|
@agents_stub.method(:get_agent),
|
235
260
|
defaults["get_agent"],
|
@@ -282,6 +307,77 @@ module Google
|
|
282
307
|
|
283
308
|
# Service calls
|
284
309
|
|
310
|
+
# Creates/updates the specified agent.
|
311
|
+
#
|
312
|
+
# @param agent [Google::Cloud::Dialogflow::V2::Agent | Hash]
|
313
|
+
# Required. The agent to update.
|
314
|
+
# A hash of the same form as `Google::Cloud::Dialogflow::V2::Agent`
|
315
|
+
# can also be provided.
|
316
|
+
# @param update_mask [Google::Protobuf::FieldMask | Hash]
|
317
|
+
# Optional. The mask to control which fields get updated.
|
318
|
+
# A hash of the same form as `Google::Protobuf::FieldMask`
|
319
|
+
# can also be provided.
|
320
|
+
# @param options [Google::Gax::CallOptions]
|
321
|
+
# Overrides the default settings for this call, e.g, timeout,
|
322
|
+
# retries, etc.
|
323
|
+
# @yield [result, operation] Access the result along with the RPC operation
|
324
|
+
# @yieldparam result [Google::Cloud::Dialogflow::V2::Agent]
|
325
|
+
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
326
|
+
# @return [Google::Cloud::Dialogflow::V2::Agent]
|
327
|
+
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
328
|
+
# @example
|
329
|
+
# require "google/cloud/dialogflow"
|
330
|
+
#
|
331
|
+
# agents_client = Google::Cloud::Dialogflow::Agents.new(version: :v2)
|
332
|
+
#
|
333
|
+
# # TODO: Initialize `agent`:
|
334
|
+
# agent = {}
|
335
|
+
# response = agents_client.set_agent(agent)
|
336
|
+
|
337
|
+
def set_agent \
|
338
|
+
agent,
|
339
|
+
update_mask: nil,
|
340
|
+
options: nil,
|
341
|
+
&block
|
342
|
+
req = {
|
343
|
+
agent: agent,
|
344
|
+
update_mask: update_mask
|
345
|
+
}.delete_if { |_, v| v.nil? }
|
346
|
+
req = Google::Gax::to_proto(req, Google::Cloud::Dialogflow::V2::SetAgentRequest)
|
347
|
+
@set_agent.call(req, options, &block)
|
348
|
+
end
|
349
|
+
|
350
|
+
# Deletes the specified agent.
|
351
|
+
#
|
352
|
+
# @param parent [String]
|
353
|
+
# Required. The project that the agent to delete is associated with.
|
354
|
+
# Format: `projects/<Project ID>`.
|
355
|
+
# @param options [Google::Gax::CallOptions]
|
356
|
+
# Overrides the default settings for this call, e.g, timeout,
|
357
|
+
# retries, etc.
|
358
|
+
# @yield [result, operation] Access the result along with the RPC operation
|
359
|
+
# @yieldparam result []
|
360
|
+
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
361
|
+
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
362
|
+
# @example
|
363
|
+
# require "google/cloud/dialogflow"
|
364
|
+
#
|
365
|
+
# agents_client = Google::Cloud::Dialogflow::Agents.new(version: :v2)
|
366
|
+
# formatted_parent = Google::Cloud::Dialogflow::V2::AgentsClient.project_path("[PROJECT]")
|
367
|
+
# agents_client.delete_agent(formatted_parent)
|
368
|
+
|
369
|
+
def delete_agent \
|
370
|
+
parent,
|
371
|
+
options: nil,
|
372
|
+
&block
|
373
|
+
req = {
|
374
|
+
parent: parent
|
375
|
+
}.delete_if { |_, v| v.nil? }
|
376
|
+
req = Google::Gax::to_proto(req, Google::Cloud::Dialogflow::V2::DeleteAgentRequest)
|
377
|
+
@delete_agent.call(req, options, &block)
|
378
|
+
nil
|
379
|
+
end
|
380
|
+
|
285
381
|
# Retrieves the specified agent.
|
286
382
|
#
|
287
383
|
# @param parent [String]
|
@@ -20,6 +20,16 @@
|
|
20
20
|
}
|
21
21
|
},
|
22
22
|
"methods": {
|
23
|
+
"SetAgent": {
|
24
|
+
"timeout_millis": 60000,
|
25
|
+
"retry_codes_name": "idempotent",
|
26
|
+
"retry_params_name": "default"
|
27
|
+
},
|
28
|
+
"DeleteAgent": {
|
29
|
+
"timeout_millis": 60000,
|
30
|
+
"retry_codes_name": "idempotent",
|
31
|
+
"retry_params_name": "default"
|
32
|
+
},
|
23
33
|
"GetAgent": {
|
24
34
|
"timeout_millis": 60000,
|
25
35
|
"retry_codes_name": "idempotent",
|
@@ -8,6 +8,7 @@ require 'google/api/annotations_pb'
|
|
8
8
|
require 'google/protobuf/empty_pb'
|
9
9
|
require 'google/protobuf/field_mask_pb'
|
10
10
|
require 'google/protobuf/struct_pb'
|
11
|
+
require 'google/api/client_pb'
|
11
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
13
|
add_message "google.cloud.dialogflow.v2.Context" do
|
13
14
|
optional :name, :string, 1
|
@@ -43,7 +43,7 @@ module Google
|
|
43
43
|
#
|
44
44
|
# For more information about contexts, see the
|
45
45
|
# [Dialogflow
|
46
|
-
# documentation](https://cloud.google.com/dialogflow
|
46
|
+
# documentation](https://cloud.google.com/dialogflow/docs/contexts-overview).
|
47
47
|
class Service
|
48
48
|
|
49
49
|
include GRPC::GenericService
|
@@ -50,7 +50,7 @@ module Google
|
|
50
50
|
#
|
51
51
|
# For more information about contexts, see the
|
52
52
|
# [Dialogflow
|
53
|
-
# documentation](https://cloud.google.com/dialogflow
|
53
|
+
# documentation](https://cloud.google.com/dialogflow/docs/contexts-overview).
|
54
54
|
#
|
55
55
|
# @!attribute [r] contexts_stub
|
56
56
|
# @return [Google::Cloud::Dialogflow::V2::Contexts::Stub]
|
@@ -148,6 +148,10 @@ module Google
|
|
148
148
|
# The default timeout, in seconds, for calls made through this client.
|
149
149
|
# @param metadata [Hash]
|
150
150
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
151
|
+
# @param service_address [String]
|
152
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
153
|
+
# @param service_port [Integer]
|
154
|
+
# Override for the service port, or `nil` to leave as the default.
|
151
155
|
# @param exception_transformer [Proc]
|
152
156
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
153
157
|
# custom error handling.
|
@@ -157,6 +161,8 @@ module Google
|
|
157
161
|
client_config: {},
|
158
162
|
timeout: DEFAULT_TIMEOUT,
|
159
163
|
metadata: nil,
|
164
|
+
service_address: nil,
|
165
|
+
service_port: nil,
|
160
166
|
exception_transformer: nil,
|
161
167
|
lib_name: nil,
|
162
168
|
lib_version: ""
|
@@ -211,8 +217,8 @@ module Google
|
|
211
217
|
end
|
212
218
|
|
213
219
|
# Allow overriding the service path/port in subclasses.
|
214
|
-
service_path = self.class::SERVICE_ADDRESS
|
215
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
220
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
221
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
216
222
|
interceptors = self.class::GRPC_INTERCEPTORS
|
217
223
|
@contexts_stub = Google::Gax::Grpc.create_stub(
|
218
224
|
service_path,
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# @return [String]
|
30
30
|
# Required. The default language of the agent as a language tag. See
|
31
31
|
# [Language
|
32
|
-
# Support](https://cloud.google.com/dialogflow
|
32
|
+
# Support](https://cloud.google.com/dialogflow/docs/reference/language)
|
33
33
|
# for a list of the currently supported language codes. This field cannot be
|
34
34
|
# set by the `Update` method.
|
35
35
|
# @!attribute [rw] supported_language_codes
|
@@ -50,7 +50,7 @@ module Google
|
|
50
50
|
# Optional. The URI of the agent's avatar.
|
51
51
|
# Avatars are used throughout the Dialogflow console and in the self-hosted
|
52
52
|
# [Web
|
53
|
-
# Demo](https://cloud.google.com/dialogflow
|
53
|
+
# Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo)
|
54
54
|
# integration.
|
55
55
|
# @!attribute [rw] enable_logging
|
56
56
|
# @return [true, false]
|
@@ -67,7 +67,31 @@ module Google
|
|
67
67
|
# are no fallback intents defined, no intent will be triggered. The score
|
68
68
|
# values range from 0.0 (completely uncertain) to 1.0 (completely certain).
|
69
69
|
# If set to 0.0, the default of 0.3 is used.
|
70
|
+
# @!attribute [rw] api_version
|
71
|
+
# @return [Google::Cloud::Dialogflow::V2::Agent::ApiVersion]
|
72
|
+
# Optional. API version displayed in Dialogflow console. If not specified,
|
73
|
+
# V2 API is assumed. Clients are free to query different service endpoints
|
74
|
+
# for different API versions. However, bots connectors and webhook calls will
|
75
|
+
# follow the specified API version.
|
76
|
+
# @!attribute [rw] tier
|
77
|
+
# @return [Google::Cloud::Dialogflow::V2::Agent::Tier]
|
78
|
+
# Optional. The agent tier. If not specified, TIER_STANDARD is assumed.
|
70
79
|
class Agent
|
80
|
+
# API version for the agent.
|
81
|
+
module ApiVersion
|
82
|
+
# Not specified.
|
83
|
+
API_VERSION_UNSPECIFIED = 0
|
84
|
+
|
85
|
+
# Legacy V1 API.
|
86
|
+
API_VERSION_V1 = 1
|
87
|
+
|
88
|
+
# V2 API.
|
89
|
+
API_VERSION_V2 = 2
|
90
|
+
|
91
|
+
# V2beta1 API.
|
92
|
+
API_VERSION_V2_BETA_1 = 3
|
93
|
+
end
|
94
|
+
|
71
95
|
# Match mode determines how intents are detected from user queries.
|
72
96
|
module MatchMode
|
73
97
|
# Not specified.
|
@@ -81,6 +105,21 @@ module Google
|
|
81
105
|
# especially the ones using @sys.any or very large developer entities.
|
82
106
|
MATCH_MODE_ML_ONLY = 2
|
83
107
|
end
|
108
|
+
|
109
|
+
# Represents the agent tier.
|
110
|
+
module Tier
|
111
|
+
# Not specified. This value should never be used.
|
112
|
+
TIER_UNSPECIFIED = 0
|
113
|
+
|
114
|
+
# Standard tier.
|
115
|
+
TIER_STANDARD = 1
|
116
|
+
|
117
|
+
# Enterprise tier (Essentials).
|
118
|
+
TIER_ENTERPRISE = 2
|
119
|
+
|
120
|
+
# Enterprise tier (Plus).
|
121
|
+
TIER_ENTERPRISE_PLUS = 3
|
122
|
+
end
|
84
123
|
end
|
85
124
|
|
86
125
|
# The request message for {Google::Cloud::Dialogflow::V2::Agents::GetAgent Agents::GetAgent}.
|
@@ -90,6 +129,22 @@ module Google
|
|
90
129
|
# Format: `projects/<Project ID>`.
|
91
130
|
class GetAgentRequest; end
|
92
131
|
|
132
|
+
# The request message for {Google::Cloud::Dialogflow::V2::Agents::SetAgent Agents::SetAgent}.
|
133
|
+
# @!attribute [rw] agent
|
134
|
+
# @return [Google::Cloud::Dialogflow::V2::Agent]
|
135
|
+
# Required. The agent to update.
|
136
|
+
# @!attribute [rw] update_mask
|
137
|
+
# @return [Google::Protobuf::FieldMask]
|
138
|
+
# Optional. The mask to control which fields get updated.
|
139
|
+
class SetAgentRequest; end
|
140
|
+
|
141
|
+
# The request message for {Google::Cloud::Dialogflow::V2::Agents::DeleteAgent Agents::DeleteAgent}.
|
142
|
+
# @!attribute [rw] parent
|
143
|
+
# @return [String]
|
144
|
+
# Required. The project that the agent to delete is associated with.
|
145
|
+
# Format: `projects/<Project ID>`.
|
146
|
+
class DeleteAgentRequest; end
|
147
|
+
|
93
148
|
# The request message for {Google::Cloud::Dialogflow::V2::Agents::SearchAgents Agents::SearchAgents}.
|
94
149
|
# @!attribute [rw] parent
|
95
150
|
# @return [String]
|
@@ -32,15 +32,15 @@ module Google
|
|
32
32
|
# @return [String]
|
33
33
|
# Required. The language of the supplied audio. Dialogflow does not do
|
34
34
|
# translations. See [Language
|
35
|
-
# Support](https://cloud.google.com/dialogflow
|
35
|
+
# Support](https://cloud.google.com/dialogflow/docs/reference/language)
|
36
36
|
# for a list of the currently supported language codes. Note that queries in
|
37
37
|
# the same session do not necessarily need to specify the same language.
|
38
38
|
# @!attribute [rw] phrase_hints
|
39
39
|
# @return [Array<String>]
|
40
|
-
# Optional.
|
41
|
-
#
|
42
|
-
#
|
43
|
-
# [Cloud Speech
|
40
|
+
# Optional. A list of strings containing words and phrases that the speech
|
41
|
+
# recognizer should recognize with higher likelihood.
|
42
|
+
#
|
43
|
+
# See [the Cloud Speech
|
44
44
|
# documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints)
|
45
45
|
# for more details.
|
46
46
|
# @!attribute [rw] model_variant
|
@@ -194,7 +194,7 @@ module Google
|
|
194
194
|
# model][InputAudioConfig.model] that the caller is eligible for.
|
195
195
|
#
|
196
196
|
# Please see the [Dialogflow
|
197
|
-
# docs](https://cloud.google.com/dialogflow
|
197
|
+
# docs](https://cloud.google.com/dialogflow/docs/data-logging) for
|
198
198
|
# how to make your project eligible for enhanced models.
|
199
199
|
USE_BEST_AVAILABLE = 1
|
200
200
|
|
@@ -216,7 +216,7 @@ module Google
|
|
216
216
|
#
|
217
217
|
# * If the API caller isn't eligible for enhanced models, Dialogflow returns
|
218
218
|
# an error. Please see the [Dialogflow
|
219
|
-
# docs](https://cloud.google.com/dialogflow
|
219
|
+
# docs](https://cloud.google.com/dialogflow/docs/data-logging)
|
220
220
|
# for how to make your project eligible.
|
221
221
|
USE_ENHANCED = 3
|
222
222
|
end
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# @return [Google::Protobuf::Struct]
|
36
36
|
# Optional. The collection of parameters associated with this context.
|
37
37
|
# Refer to [this
|
38
|
-
# doc](https://cloud.google.com/dialogflow
|
38
|
+
# doc](https://cloud.google.com/dialogflow/docs/intents-actions-parameters)
|
39
39
|
# for syntax.
|
40
40
|
class Context; end
|
41
41
|
|
@@ -104,7 +104,7 @@ module Google
|
|
104
104
|
# Optional. The language to list entity synonyms for. If not specified,
|
105
105
|
# the agent's default language is used.
|
106
106
|
# [Many
|
107
|
-
# languages](https://cloud.google.com/dialogflow
|
107
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
108
108
|
# are supported. Note: languages must be enabled in the agent before they can
|
109
109
|
# be used.
|
110
110
|
# @!attribute [rw] page_size
|
@@ -137,7 +137,7 @@ module Google
|
|
137
137
|
# Optional. The language to retrieve entity synonyms for. If not specified,
|
138
138
|
# the agent's default language is used.
|
139
139
|
# [Many
|
140
|
-
# languages](https://cloud.google.com/dialogflow
|
140
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
141
141
|
# are supported. Note: languages must be enabled in the agent before they can
|
142
142
|
# be used.
|
143
143
|
class GetEntityTypeRequest; end
|
@@ -155,7 +155,7 @@ module Google
|
|
155
155
|
# Optional. The language of entity synonyms defined in `entity_type`. If not
|
156
156
|
# specified, the agent's default language is used.
|
157
157
|
# [Many
|
158
|
-
# languages](https://cloud.google.com/dialogflow
|
158
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
159
159
|
# are supported. Note: languages must be enabled in the agent before they can
|
160
160
|
# be used.
|
161
161
|
class CreateEntityTypeRequest; end
|
@@ -169,7 +169,7 @@ module Google
|
|
169
169
|
# Optional. The language of entity synonyms defined in `entity_type`. If not
|
170
170
|
# specified, the agent's default language is used.
|
171
171
|
# [Many
|
172
|
-
# languages](https://cloud.google.com/dialogflow
|
172
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
173
173
|
# are supported. Note: languages must be enabled in the agent before they can
|
174
174
|
# be used.
|
175
175
|
# @!attribute [rw] update_mask
|
@@ -203,7 +203,7 @@ module Google
|
|
203
203
|
# Optional. The language of entity synonyms defined in `entity_types`. If not
|
204
204
|
# specified, the agent's default language is used.
|
205
205
|
# [Many
|
206
|
-
# languages](https://cloud.google.com/dialogflow
|
206
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
207
207
|
# are supported. Note: languages must be enabled in the agent before they can
|
208
208
|
# be used.
|
209
209
|
# @!attribute [rw] update_mask
|
@@ -241,7 +241,7 @@ module Google
|
|
241
241
|
# Optional. The language of entity synonyms defined in `entities`. If not
|
242
242
|
# specified, the agent's default language is used.
|
243
243
|
# [Many
|
244
|
-
# languages](https://cloud.google.com/dialogflow
|
244
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
245
245
|
# are supported. Note: languages must be enabled in the agent before they can
|
246
246
|
# be used.
|
247
247
|
class BatchCreateEntitiesRequest; end
|
@@ -259,7 +259,7 @@ module Google
|
|
259
259
|
# Optional. The language of entity synonyms defined in `entities`. If not
|
260
260
|
# specified, the agent's default language is used.
|
261
261
|
# [Many
|
262
|
-
# languages](https://cloud.google.com/dialogflow
|
262
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
263
263
|
# are supported. Note: languages must be enabled in the agent before they can
|
264
264
|
# be used.
|
265
265
|
# @!attribute [rw] update_mask
|
@@ -282,7 +282,7 @@ module Google
|
|
282
282
|
# Optional. The language of entity synonyms defined in `entities`. If not
|
283
283
|
# specified, the agent's default language is used.
|
284
284
|
# [Many
|
285
|
-
# languages](https://cloud.google.com/dialogflow
|
285
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
286
286
|
# are supported. Note: languages must be enabled in the agent before they can
|
287
287
|
# be used.
|
288
288
|
class BatchDeleteEntitiesRequest; end
|