You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="firstline">Deletes the specified entity type. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).</p>
parent: string, Required. The name of the parent agent to export entity types. Format: `projects//locations//agents/`. (required)
198
+
body: object, The request body.
199
+
The object takes the form of:
200
+
201
+
{ # The request message for EntityTypes.ExportEntityTypes.
202
+
"dataFormat": "A String", # Optional. The data format of the exported entity types. If not specified, `BLOB` is assumed.
203
+
"entityTypes": [ # Required. The name of the entity types to export. Format: `projects//locations//agents//entityTypes/`.
204
+
"A String",
205
+
],
206
+
"entityTypesContentInline": True or False, # Optional. The option to return the serialized entity types inline.
207
+
"entityTypesUri": "A String", # Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the entity types to. The format of this URI must be `gs:///`. Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
208
+
"languageCode": "A String", # Optional. The language to retrieve the entity type for. The following fields are language dependent: * `EntityType.entities.value` * `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value` If not specified, all language dependent fields will be retrieved. [Many languages](https://cloud.google.com/dialogflow/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.
209
+
}
210
+
211
+
x__xgafv: string, V1 error format.
212
+
Allowed values
213
+
1 - v1 error format
214
+
2 - v2 error format
215
+
216
+
Returns:
217
+
An object of the form:
218
+
219
+
{ # This resource represents a long-running operation that is the result of a network API call.
220
+
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
221
+
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
222
+
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
223
+
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
224
+
{
225
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
226
+
},
227
+
],
228
+
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
229
+
},
230
+
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
231
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
232
+
},
233
+
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
234
+
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
235
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
<pre>Imports the specified entitytypes into the agent.
281
+
282
+
Args:
283
+
parent: string, Required. The agent to import the entity types into. Format: `projects//locations//agents/`. (required)
284
+
body: object, The request body.
285
+
The object takes the form of:
286
+
287
+
{ # The request message for EntityTypes.ImportEntityTypes.
288
+
"entityTypesContent": { # Inline source for a Dialogflow operation that reads or imports objects (e.g. intents) into Dialogflow. # Uncompressed byte content of entity types.
289
+
"content": "A String", # The uncompressed byte content for the objects.
290
+
},
291
+
"entityTypesUri": "A String", # The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to import entity types from. The format of this URI must be `gs:///`. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
"targetEntityType": "A String", # Optional. The target entity type to import into. Format: `projects//locations//agents//entity_types/`. If set, there should be only one entity type included in entity_types, of which the type should match the type of the target entity type. All entities in the imported entity type will be added to the target entity type.
294
+
}
295
+
296
+
x__xgafv: string, V1 error format.
297
+
Allowed values
298
+
1 - v1 error format
299
+
2 - v2 error format
300
+
301
+
Returns:
302
+
An object of the form:
303
+
304
+
{ # This resource represents a long-running operation that is the result of a network API call.
305
+
"done": True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
306
+
"error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
307
+
"code": 42, # The status code, which should be an enum value of google.rpc.Code.
308
+
"details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
309
+
{
310
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
311
+
},
312
+
],
313
+
"message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
314
+
},
315
+
"metadata": { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
316
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
317
+
},
318
+
"name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
319
+
"response": { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
320
+
"a_key": "", # Properties of the object. Contains field @type with type URL.
0 commit comments