EntityTypes

google.cloud.dialogflow.v2beta1. EntityTypes

Represents an EntityTypes

Constructor

new EntityTypes(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new EntityTypes service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {EntityTypes}

Creates new EntityTypes service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
EntityTypes

RPC service. Useful where requests and/or responses are streamed.

batchCreateEntities(request, callback) → {undefined}

Calls BatchCreateEntities.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IBatchCreateEntitiesRequest

BatchCreateEntitiesRequest message or plain object

callback google.cloud.dialogflow.v2beta1.EntityTypes.BatchCreateEntitiesCallback

Node-style callback called with the error, if any, and Operation

Returns:
Type Description
undefined

batchCreateEntities(request) → {Promise.<google.longrunning.Operation>}

Calls BatchCreateEntities.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IBatchCreateEntitiesRequest

BatchCreateEntitiesRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

batchDeleteEntities(request, callback) → {undefined}

Calls BatchDeleteEntities.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IBatchDeleteEntitiesRequest

BatchDeleteEntitiesRequest message or plain object

callback google.cloud.dialogflow.v2beta1.EntityTypes.BatchDeleteEntitiesCallback

Node-style callback called with the error, if any, and Operation

Returns:
Type Description
undefined

batchDeleteEntities(request) → {Promise.<google.longrunning.Operation>}

Calls BatchDeleteEntities.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IBatchDeleteEntitiesRequest

BatchDeleteEntitiesRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

batchDeleteEntityTypes(request, callback) → {undefined}

Calls BatchDeleteEntityTypes.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IBatchDeleteEntityTypesRequest

BatchDeleteEntityTypesRequest message or plain object

callback google.cloud.dialogflow.v2beta1.EntityTypes.BatchDeleteEntityTypesCallback

Node-style callback called with the error, if any, and Operation

Returns:
Type Description
undefined

batchDeleteEntityTypes(request) → {Promise.<google.longrunning.Operation>}

Calls BatchDeleteEntityTypes.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IBatchDeleteEntityTypesRequest

BatchDeleteEntityTypesRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

batchUpdateEntities(request, callback) → {undefined}

Calls BatchUpdateEntities.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IBatchUpdateEntitiesRequest

BatchUpdateEntitiesRequest message or plain object

callback google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntitiesCallback

Node-style callback called with the error, if any, and Operation

Returns:
Type Description
undefined

batchUpdateEntities(request) → {Promise.<google.longrunning.Operation>}

Calls BatchUpdateEntities.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IBatchUpdateEntitiesRequest

BatchUpdateEntitiesRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

batchUpdateEntityTypes(request, callback) → {undefined}

Calls BatchUpdateEntityTypes.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IBatchUpdateEntityTypesRequest

BatchUpdateEntityTypesRequest message or plain object

callback google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntityTypesCallback

Node-style callback called with the error, if any, and Operation

Returns:
Type Description
undefined

batchUpdateEntityTypes(request) → {Promise.<google.longrunning.Operation>}

Calls BatchUpdateEntityTypes.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IBatchUpdateEntityTypesRequest

BatchUpdateEntityTypesRequest message or plain object

Returns:
Type Description
Promise.<google.longrunning.Operation>

Promise

createEntityType(request, callback) → {undefined}

Calls CreateEntityType.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.ICreateEntityTypeRequest

CreateEntityTypeRequest message or plain object

callback google.cloud.dialogflow.v2beta1.EntityTypes.CreateEntityTypeCallback

Node-style callback called with the error, if any, and EntityType

Returns:
Type Description
undefined

createEntityType(request) → {Promise.<google.cloud.dialogflow.v2beta1.EntityType>}

Calls CreateEntityType.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.ICreateEntityTypeRequest

CreateEntityTypeRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.v2beta1.EntityType>

Promise

deleteEntityType(request, callback) → {undefined}

Calls DeleteEntityType.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IDeleteEntityTypeRequest

DeleteEntityTypeRequest message or plain object

callback google.cloud.dialogflow.v2beta1.EntityTypes.DeleteEntityTypeCallback

Node-style callback called with the error, if any, and Empty

Returns:
Type Description
undefined

deleteEntityType(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteEntityType.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IDeleteEntityTypeRequest

DeleteEntityTypeRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

getEntityType(request, callback) → {undefined}

Calls GetEntityType.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IGetEntityTypeRequest

GetEntityTypeRequest message or plain object

callback google.cloud.dialogflow.v2beta1.EntityTypes.GetEntityTypeCallback

Node-style callback called with the error, if any, and EntityType

Returns:
Type Description
undefined

getEntityType(request) → {Promise.<google.cloud.dialogflow.v2beta1.EntityType>}

Calls GetEntityType.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IGetEntityTypeRequest

GetEntityTypeRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.v2beta1.EntityType>

Promise

listEntityTypes(request, callback) → {undefined}

Calls ListEntityTypes.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IListEntityTypesRequest

ListEntityTypesRequest message or plain object

callback google.cloud.dialogflow.v2beta1.EntityTypes.ListEntityTypesCallback

Node-style callback called with the error, if any, and ListEntityTypesResponse

Returns:
Type Description
undefined

listEntityTypes(request) → {Promise.<google.cloud.dialogflow.v2beta1.ListEntityTypesResponse>}

Calls ListEntityTypes.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IListEntityTypesRequest

ListEntityTypesRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.v2beta1.ListEntityTypesResponse>

Promise

updateEntityType(request, callback) → {undefined}

Calls UpdateEntityType.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IUpdateEntityTypeRequest

UpdateEntityTypeRequest message or plain object

callback google.cloud.dialogflow.v2beta1.EntityTypes.UpdateEntityTypeCallback

Node-style callback called with the error, if any, and EntityType

Returns:
Type Description
undefined

updateEntityType(request) → {Promise.<google.cloud.dialogflow.v2beta1.EntityType>}

Calls UpdateEntityType.

Parameters:
Name Type Description
request google.cloud.dialogflow.v2beta1.IUpdateEntityTypeRequest

UpdateEntityTypeRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.dialogflow.v2beta1.EntityType>

Promise

Type Definitions

BatchCreateEntitiesCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.EntityTypes#batchCreateEntities.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

BatchDeleteEntitiesCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.EntityTypes#batchDeleteEntities.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

BatchDeleteEntityTypesCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.EntityTypes#batchDeleteEntityTypes.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

BatchUpdateEntitiesCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.EntityTypes#batchUpdateEntities.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

BatchUpdateEntityTypesCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.EntityTypes#batchUpdateEntityTypes.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

CreateEntityTypeCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.EntityTypes#createEntityType.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2beta1.EntityType <optional>

EntityType

DeleteEntityTypeCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.EntityTypes#deleteEntityType.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

GetEntityTypeCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.EntityTypes#getEntityType.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2beta1.EntityType <optional>

EntityType

ListEntityTypesCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.EntityTypes#listEntityTypes.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2beta1.ListEntityTypesResponse <optional>

ListEntityTypesResponse

UpdateEntityTypeCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2beta1.EntityTypes#updateEntityType.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.dialogflow.v2beta1.EntityType <optional>

EntityType