1 // Copyright 2019 Google LLC
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // https://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 // Note: this file is purely for documentation. Any contents are not expected
16 // to be loaded as the JS file.
19 * Represents an entity type.
20 * Entity types serve as a tool for extracting parameter values from natural
23 * @property {string} name
24 * Required for all methods except `create` (`create` populates the name
26 * The unique identifier of the entity type. Format:
27 * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
29 * @property {string} displayName
30 * Required. The name of the entity.
32 * @property {number} kind
33 * Required. Indicates the kind of entity type.
35 * The number should be among the values of [Kind]{@link google.cloud.dialogflow.v2beta1.Kind}
37 * @property {number} autoExpansionMode
38 * Optional. Indicates whether the entity type can be automatically
41 * The number should be among the values of [AutoExpansionMode]{@link google.cloud.dialogflow.v2beta1.AutoExpansionMode}
43 * @property {Object[]} entities
44 * Optional. The collection of entities associated with the entity type.
46 * This object should have the same structure as [Entity]{@link google.cloud.dialogflow.v2beta1.Entity}
49 * @memberof google.cloud.dialogflow.v2beta1
50 * @see [google.cloud.dialogflow.v2beta1.EntityType definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/dialogflow/v2beta1/entity_type.proto}
53 // This is for documentation. Actual contents will be loaded by gRPC.
56 * Optional. Represents an entity.
58 * @property {string} value
60 * For `KIND_MAP` entity types:
61 * A canonical name to be used in place of synonyms.
62 * For `KIND_LIST` entity types:
63 * A string that can contain references to other entity types (with or
66 * @property {string[]} synonyms
67 * Required. A collection of synonyms. For `KIND_LIST` entity types this
68 * must contain exactly one synonym equal to `value`.
71 * @memberof google.cloud.dialogflow.v2beta1
72 * @see [google.cloud.dialogflow.v2beta1.EntityType.Entity definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/dialogflow/v2beta1/entity_type.proto}
75 // This is for documentation. Actual contents will be loaded by gRPC.
79 * Represents different entity type expansion modes. Automated expansion
80 * allows an agent to recognize values that have not been explicitly listed in
81 * the entity (for example, new kinds of shopping list items).
84 * @memberof google.cloud.dialogflow.v2beta1
89 * Auto expansion disabled for the entity.
91 AUTO_EXPANSION_MODE_UNSPECIFIED: 0,
94 * Allows an agent to recognize values that have not been explicitly
95 * listed in the entity.
97 AUTO_EXPANSION_MODE_DEFAULT: 1
101 * Represents kinds of entities.
104 * @memberof google.cloud.dialogflow.v2beta1
109 * Not specified. This value should be never used.
114 * Map entity types allow mapping of a group of synonyms to a canonical
120 * List entity types contain a set of entries that do not map to canonical
121 * values. However, list entity types can contain references to other entity
122 * types (with or without aliases).
129 * The request message for
130 * EntityTypes.ListEntityTypes.
132 * @property {string} parent
133 * Required. The agent to list all entity types from.
134 * Format: `projects/<Project ID>/agent`.
136 * @property {string} languageCode
137 * Optional. The language to list entity synonyms for. If not specified,
138 * the agent's default language is used.
140 * languages](https://dialogflow.com/docs/reference/language) are supported.
141 * Note: languages must be enabled in the agent, before they can be used.
143 * @property {number} pageSize
144 * Optional. The maximum number of items to return in a single page. By
145 * default 100 and at most 1000.
147 * @property {string} pageToken
148 * Optional. The next_page_token value returned from a previous list request.
150 * @typedef ListEntityTypesRequest
151 * @memberof google.cloud.dialogflow.v2beta1
152 * @see [google.cloud.dialogflow.v2beta1.ListEntityTypesRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/dialogflow/v2beta1/entity_type.proto}
154 const ListEntityTypesRequest = {
155 // This is for documentation. Actual contents will be loaded by gRPC.
159 * The response message for
160 * EntityTypes.ListEntityTypes.
162 * @property {Object[]} entityTypes
163 * The list of agent entity types. There will be a maximum number of items
164 * returned based on the page_size field in the request.
166 * This object should have the same structure as [EntityType]{@link google.cloud.dialogflow.v2beta1.EntityType}
168 * @property {string} nextPageToken
169 * Token to retrieve the next page of results, or empty if there are no
170 * more results in the list.
172 * @typedef ListEntityTypesResponse
173 * @memberof google.cloud.dialogflow.v2beta1
174 * @see [google.cloud.dialogflow.v2beta1.ListEntityTypesResponse definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/dialogflow/v2beta1/entity_type.proto}
176 const ListEntityTypesResponse = {
177 // This is for documentation. Actual contents will be loaded by gRPC.
181 * The request message for
182 * EntityTypes.GetEntityType.
184 * @property {string} name
185 * Required. The name of the entity type.
186 * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
188 * @property {string} languageCode
189 * Optional. The language to retrieve entity synonyms for. If not specified,
190 * the agent's default language is used.
192 * languages](https://dialogflow.com/docs/reference/language) are supported.
193 * Note: languages must be enabled in the agent, before they can be used.
195 * @typedef GetEntityTypeRequest
196 * @memberof google.cloud.dialogflow.v2beta1
197 * @see [google.cloud.dialogflow.v2beta1.GetEntityTypeRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/dialogflow/v2beta1/entity_type.proto}
199 const GetEntityTypeRequest = {
200 // This is for documentation. Actual contents will be loaded by gRPC.
204 * The request message for
205 * EntityTypes.CreateEntityType.
207 * @property {string} parent
208 * Required. The agent to create a entity type for.
209 * Format: `projects/<Project ID>/agent`.
211 * @property {Object} entityType
212 * Required. The entity type to create.
214 * This object should have the same structure as [EntityType]{@link google.cloud.dialogflow.v2beta1.EntityType}
216 * @property {string} languageCode
217 * Optional. The language of entity synonyms defined in `entity_type`. If not
218 * specified, the agent's default language is used.
220 * languages](https://dialogflow.com/docs/reference/language) are supported.
221 * Note: languages must be enabled in the agent, before they can be used.
223 * @typedef CreateEntityTypeRequest
224 * @memberof google.cloud.dialogflow.v2beta1
225 * @see [google.cloud.dialogflow.v2beta1.CreateEntityTypeRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/dialogflow/v2beta1/entity_type.proto}
227 const CreateEntityTypeRequest = {
228 // This is for documentation. Actual contents will be loaded by gRPC.
232 * The request message for
233 * EntityTypes.UpdateEntityType.
235 * @property {Object} entityType
236 * Required. The entity type to update.
237 * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
239 * This object should have the same structure as [EntityType]{@link google.cloud.dialogflow.v2beta1.EntityType}
241 * @property {string} languageCode
242 * Optional. The language of entity synonyms defined in `entity_type`. If not
243 * specified, the agent's default language is used.
245 * languages](https://dialogflow.com/docs/reference/language) are supported.
246 * Note: languages must be enabled in the agent, before they can be used.
248 * @property {Object} updateMask
249 * Optional. The mask to control which fields get updated.
251 * This object should have the same structure as [FieldMask]{@link google.protobuf.FieldMask}
253 * @typedef UpdateEntityTypeRequest
254 * @memberof google.cloud.dialogflow.v2beta1
255 * @see [google.cloud.dialogflow.v2beta1.UpdateEntityTypeRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/dialogflow/v2beta1/entity_type.proto}
257 const UpdateEntityTypeRequest = {
258 // This is for documentation. Actual contents will be loaded by gRPC.
262 * The request message for
263 * EntityTypes.DeleteEntityType.
265 * @property {string} name
266 * Required. The name of the entity type to delete.
267 * Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
269 * @typedef DeleteEntityTypeRequest
270 * @memberof google.cloud.dialogflow.v2beta1
271 * @see [google.cloud.dialogflow.v2beta1.DeleteEntityTypeRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/dialogflow/v2beta1/entity_type.proto}
273 const DeleteEntityTypeRequest = {
274 // This is for documentation. Actual contents will be loaded by gRPC.
278 * The request message for
279 * EntityTypes.BatchUpdateEntityTypes.
281 * @property {string} parent
282 * Required. The name of the agent to update or create entity types in.
283 * Format: `projects/<Project ID>/agent`.
285 * @property {string} entityTypeBatchUri
286 * The URI to a Google Cloud Storage file containing entity types to update
287 * or create. The file format can either be a serialized proto (of
288 * EntityBatch type) or a JSON object. Note: The URI must start with
291 * @property {Object} entityTypeBatchInline
292 * The collection of entity type to update or create.
294 * This object should have the same structure as [EntityTypeBatch]{@link google.cloud.dialogflow.v2beta1.EntityTypeBatch}
296 * @property {string} languageCode
297 * Optional. The language of entity synonyms defined in `entity_types`. If not
298 * specified, the agent's default language is used.
300 * languages](https://dialogflow.com/docs/reference/language) are supported.
301 * Note: languages must be enabled in the agent, before they can be used.
303 * @property {Object} updateMask
304 * Optional. The mask to control which fields get updated.
306 * This object should have the same structure as [FieldMask]{@link google.protobuf.FieldMask}
308 * @typedef BatchUpdateEntityTypesRequest
309 * @memberof google.cloud.dialogflow.v2beta1
310 * @see [google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/dialogflow/v2beta1/entity_type.proto}
312 const BatchUpdateEntityTypesRequest = {
313 // This is for documentation. Actual contents will be loaded by gRPC.
317 * The response message for
318 * EntityTypes.BatchUpdateEntityTypes.
320 * @property {Object[]} entityTypes
321 * The collection of updated or created entity types.
323 * This object should have the same structure as [EntityType]{@link google.cloud.dialogflow.v2beta1.EntityType}
325 * @typedef BatchUpdateEntityTypesResponse
326 * @memberof google.cloud.dialogflow.v2beta1
327 * @see [google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/dialogflow/v2beta1/entity_type.proto}
329 const BatchUpdateEntityTypesResponse = {
330 // This is for documentation. Actual contents will be loaded by gRPC.
334 * The request message for
335 * EntityTypes.BatchDeleteEntityTypes.
337 * @property {string} parent
338 * Required. The name of the agent to delete all entities types for. Format:
339 * `projects/<Project ID>/agent`.
341 * @property {string[]} entityTypeNames
342 * Required. The names entity types to delete. All names must point to the
343 * same agent as `parent`.
345 * @typedef BatchDeleteEntityTypesRequest
346 * @memberof google.cloud.dialogflow.v2beta1
347 * @see [google.cloud.dialogflow.v2beta1.BatchDeleteEntityTypesRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/dialogflow/v2beta1/entity_type.proto}
349 const BatchDeleteEntityTypesRequest = {
350 // This is for documentation. Actual contents will be loaded by gRPC.
354 * The request message for
355 * EntityTypes.BatchCreateEntities.
357 * @property {string} parent
358 * Required. The name of the entity type to create entities in. Format:
359 * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
361 * @property {Object[]} entities
362 * Required. The collection of entities to create.
364 * This object should have the same structure as [Entity]{@link google.cloud.dialogflow.v2beta1.Entity}
366 * @property {string} languageCode
367 * Optional. The language of entity synonyms defined in `entities`. If not
368 * specified, the agent's default language is used.
370 * languages](https://dialogflow.com/docs/reference/language) are supported.
371 * Note: languages must be enabled in the agent, before they can be used.
373 * @typedef BatchCreateEntitiesRequest
374 * @memberof google.cloud.dialogflow.v2beta1
375 * @see [google.cloud.dialogflow.v2beta1.BatchCreateEntitiesRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/dialogflow/v2beta1/entity_type.proto}
377 const BatchCreateEntitiesRequest = {
378 // This is for documentation. Actual contents will be loaded by gRPC.
382 * The response message for
383 * EntityTypes.BatchCreateEntities.
385 * @property {string} parent
386 * Required. The name of the entity type to update the entities in. Format:
387 * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
389 * @property {Object[]} entities
390 * Required. The collection of new entities to replace the existing entities.
392 * This object should have the same structure as [Entity]{@link google.cloud.dialogflow.v2beta1.Entity}
394 * @property {string} languageCode
395 * Optional. The language of entity synonyms defined in `entities`. If not
396 * specified, the agent's default language is used.
398 * languages](https://dialogflow.com/docs/reference/language) are supported.
399 * Note: languages must be enabled in the agent, before they can be used.
401 * @property {Object} updateMask
402 * Optional. The mask to control which fields get updated.
404 * This object should have the same structure as [FieldMask]{@link google.protobuf.FieldMask}
406 * @typedef BatchUpdateEntitiesRequest
407 * @memberof google.cloud.dialogflow.v2beta1
408 * @see [google.cloud.dialogflow.v2beta1.BatchUpdateEntitiesRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/dialogflow/v2beta1/entity_type.proto}
410 const BatchUpdateEntitiesRequest = {
411 // This is for documentation. Actual contents will be loaded by gRPC.
415 * The request message for
416 * EntityTypes.BatchDeleteEntities.
418 * @property {string} parent
419 * Required. The name of the entity type to delete entries for. Format:
420 * `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
422 * @property {string[]} entityValues
423 * Required. The canonical `values` of the entities to delete. Note that
424 * these are not fully-qualified names, i.e. they don't start with
425 * `projects/<Project ID>`.
427 * @property {string} languageCode
428 * Optional. The language of entity synonyms defined in `entities`. If not
429 * specified, the agent's default language is used.
431 * languages](https://dialogflow.com/docs/reference/language) are supported.
432 * Note: languages must be enabled in the agent, before they can be used.
434 * @typedef BatchDeleteEntitiesRequest
435 * @memberof google.cloud.dialogflow.v2beta1
436 * @see [google.cloud.dialogflow.v2beta1.BatchDeleteEntitiesRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/dialogflow/v2beta1/entity_type.proto}
438 const BatchDeleteEntitiesRequest = {
439 // This is for documentation. Actual contents will be loaded by gRPC.
443 * This message is a wrapper around a collection of entity types.
445 * @property {Object[]} entityTypes
446 * A collection of entity types.
448 * This object should have the same structure as [EntityType]{@link google.cloud.dialogflow.v2beta1.EntityType}
450 * @typedef EntityTypeBatch
451 * @memberof google.cloud.dialogflow.v2beta1
452 * @see [google.cloud.dialogflow.v2beta1.EntityTypeBatch definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/dialogflow/v2beta1/entity_type.proto}
454 const EntityTypeBatch = {
455 // This is for documentation. Actual contents will be loaded by gRPC.