EntityTypes

google.cloud.dialogflow.v2. 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

batchCreateEntities(request, callback) → {undefined}

Calls BatchCreateEntities.

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

BatchCreateEntitiesRequest message or plain object

callback google.cloud.dialogflow.v2.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.v2.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.v2.IBatchDeleteEntitiesRequest

BatchDeleteEntitiesRequest message or plain object

callback google.cloud.dialogflow.v2.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.v2.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.v2.IBatchDeleteEntityTypesRequest

BatchDeleteEntityTypesRequest message or plain object

callback google.cloud.dialogflow.v2.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.v2.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.v2.IBatchUpdateEntitiesRequest

BatchUpdateEntitiesRequest message or plain object

callback google.cloud.dialogflow.v2.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.v2.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.v2.IBatchUpdateEntityTypesRequest

BatchUpdateEntityTypesRequest message or plain object

callback google.cloud.dialogflow.v2.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.v2.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.v2.ICreateEntityTypeRequest

CreateEntityTypeRequest message or plain object

callback google.cloud.dialogflow.v2.EntityTypes.CreateEntityTypeCallback

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

Returns:
Type Description
undefined

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

Calls CreateEntityType.

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

CreateEntityTypeRequest message or plain object

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

Promise

deleteEntityType(request, callback) → {undefined}

Calls DeleteEntityType.

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

DeleteEntityTypeRequest message or plain object

callback google.cloud.dialogflow.v2.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.v2.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.v2.IGetEntityTypeRequest

GetEntityTypeRequest message or plain object

callback google.cloud.dialogflow.v2.EntityTypes.GetEntityTypeCallback

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

Returns:
Type Description
undefined

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

Calls GetEntityType.

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

GetEntityTypeRequest message or plain object

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

Promise

listEntityTypes(request, callback) → {undefined}

Calls ListEntityTypes.

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

ListEntityTypesRequest message or plain object

callback google.cloud.dialogflow.v2.EntityTypes.ListEntityTypesCallback

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

Returns:
Type Description
undefined

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

Calls ListEntityTypes.

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

ListEntityTypesRequest message or plain object

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

Promise

updateEntityType(request, callback) → {undefined}

Calls UpdateEntityType.

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

UpdateEntityTypeRequest message or plain object

callback google.cloud.dialogflow.v2.EntityTypes.UpdateEntityTypeCallback

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

Returns:
Type Description
undefined

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

Calls UpdateEntityType.

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

UpdateEntityTypeRequest message or plain object

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

Promise

(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.

Type Definitions

BatchCreateEntitiesCallback(error, responseopt)

Callback as used by 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 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 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 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 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 createEntityType.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

EntityType

DeleteEntityTypeCallback(error, responseopt)

Callback as used by 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 getEntityType.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

EntityType

ListEntityTypesCallback(error, responseopt)

Callback as used by listEntityTypes.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ListEntityTypesResponse

UpdateEntityTypeCallback(error, responseopt)

Callback as used by updateEntityType.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

EntityType