SessionEntityTypes

google.cloud.dialogflow.v2. SessionEntityTypes

Represents a SessionEntityTypes

Constructor

new SessionEntityTypes(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new SessionEntityTypes 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) → {SessionEntityTypes}

Creates new SessionEntityTypes 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
SessionEntityTypes

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

createSessionEntityType(request, callback) → {undefined}

Calls CreateSessionEntityType.

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

CreateSessionEntityTypeRequest message or plain object

callback google.cloud.dialogflow.v2.SessionEntityTypes.CreateSessionEntityTypeCallback

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

Returns:
Type Description
undefined

createSessionEntityType(request) → {Promise.<google.cloud.dialogflow.v2.SessionEntityType>}

Calls CreateSessionEntityType.

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

CreateSessionEntityTypeRequest message or plain object

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

Promise

deleteSessionEntityType(request, callback) → {undefined}

Calls DeleteSessionEntityType.

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

DeleteSessionEntityTypeRequest message or plain object

callback google.cloud.dialogflow.v2.SessionEntityTypes.DeleteSessionEntityTypeCallback

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

Returns:
Type Description
undefined

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

Calls DeleteSessionEntityType.

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

DeleteSessionEntityTypeRequest message or plain object

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

Promise

getSessionEntityType(request, callback) → {undefined}

Calls GetSessionEntityType.

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

GetSessionEntityTypeRequest message or plain object

callback google.cloud.dialogflow.v2.SessionEntityTypes.GetSessionEntityTypeCallback

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

Returns:
Type Description
undefined

getSessionEntityType(request) → {Promise.<google.cloud.dialogflow.v2.SessionEntityType>}

Calls GetSessionEntityType.

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

GetSessionEntityTypeRequest message or plain object

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

Promise

listSessionEntityTypes(request, callback) → {undefined}

Calls ListSessionEntityTypes.

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

ListSessionEntityTypesRequest message or plain object

callback google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypesCallback

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

Returns:
Type Description
undefined

listSessionEntityTypes(request) → {Promise.<google.cloud.dialogflow.v2.ListSessionEntityTypesResponse>}

Calls ListSessionEntityTypes.

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

ListSessionEntityTypesRequest message or plain object

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

Promise

updateSessionEntityType(request, callback) → {undefined}

Calls UpdateSessionEntityType.

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

UpdateSessionEntityTypeRequest message or plain object

callback google.cloud.dialogflow.v2.SessionEntityTypes.UpdateSessionEntityTypeCallback

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

Returns:
Type Description
undefined

updateSessionEntityType(request) → {Promise.<google.cloud.dialogflow.v2.SessionEntityType>}

Calls UpdateSessionEntityType.

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

UpdateSessionEntityTypeRequest message or plain object

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

Promise

Type Definitions

CreateSessionEntityTypeCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.SessionEntityTypes#createSessionEntityType.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

SessionEntityType

DeleteSessionEntityTypeCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.SessionEntityTypes#deleteSessionEntityType.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

GetSessionEntityTypeCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.SessionEntityTypes#getSessionEntityType.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

SessionEntityType

ListSessionEntityTypesCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.SessionEntityTypes#listSessionEntityTypes.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ListSessionEntityTypesResponse

UpdateSessionEntityTypeCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.SessionEntityTypes#updateSessionEntityType.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

SessionEntityType