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

(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

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

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

Calls BatchCreateEntities.

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

BatchCreateEntitiesRequest message or plain object

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

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

Calls BatchDeleteEntities.

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

BatchDeleteEntitiesRequest message or plain object

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

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

Calls BatchDeleteEntityTypes.

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

BatchDeleteEntityTypesRequest message or plain object

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

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

Calls BatchUpdateEntities.

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

BatchUpdateEntitiesRequest message or plain object

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

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

Calls BatchUpdateEntityTypes.

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

BatchUpdateEntityTypesRequest message or plain object

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

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

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

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

Calls DeleteEntityType.

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

DeleteEntityTypeRequest message or plain object

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

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

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

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

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

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

Type Definitions

BatchCreateEntitiesCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.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.v2.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.v2.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.v2.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.v2.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.v2.EntityTypes#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 google.cloud.dialogflow.v2.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.v2.EntityTypes#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 google.cloud.dialogflow.v2.EntityTypes#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 google.cloud.dialogflow.v2.EntityTypes#updateEntityType.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

EntityType