ConversationProfiles

google.cloud.dialogflow.v2. ConversationProfiles

Represents a ConversationProfiles

Constructor

new ConversationProfiles(rpcImpl, requestDelimitedopt, responseDelimitedopt)

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

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

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

createConversationProfile(request, callback) → {undefined}

Calls CreateConversationProfile.

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

CreateConversationProfileRequest message or plain object

callback google.cloud.dialogflow.v2.ConversationProfiles.CreateConversationProfileCallback

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

Returns:
Type Description
undefined

createConversationProfile(request) → {Promise.<google.cloud.dialogflow.v2.ConversationProfile>}

Calls CreateConversationProfile.

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

CreateConversationProfileRequest message or plain object

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

Promise

deleteConversationProfile(request, callback) → {undefined}

Calls DeleteConversationProfile.

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

DeleteConversationProfileRequest message or plain object

callback google.cloud.dialogflow.v2.ConversationProfiles.DeleteConversationProfileCallback

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

Returns:
Type Description
undefined

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

Calls DeleteConversationProfile.

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

DeleteConversationProfileRequest message or plain object

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

Promise

getConversationProfile(request, callback) → {undefined}

Calls GetConversationProfile.

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

GetConversationProfileRequest message or plain object

callback google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfileCallback

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

Returns:
Type Description
undefined

getConversationProfile(request) → {Promise.<google.cloud.dialogflow.v2.ConversationProfile>}

Calls GetConversationProfile.

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

GetConversationProfileRequest message or plain object

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

Promise

listConversationProfiles(request, callback) → {undefined}

Calls ListConversationProfiles.

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

ListConversationProfilesRequest message or plain object

callback google.cloud.dialogflow.v2.ConversationProfiles.ListConversationProfilesCallback

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

Returns:
Type Description
undefined

listConversationProfiles(request) → {Promise.<google.cloud.dialogflow.v2.ListConversationProfilesResponse>}

Calls ListConversationProfiles.

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

ListConversationProfilesRequest message or plain object

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

Promise

updateConversationProfile(request, callback) → {undefined}

Calls UpdateConversationProfile.

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

UpdateConversationProfileRequest message or plain object

callback google.cloud.dialogflow.v2.ConversationProfiles.UpdateConversationProfileCallback

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

Returns:
Type Description
undefined

updateConversationProfile(request) → {Promise.<google.cloud.dialogflow.v2.ConversationProfile>}

Calls UpdateConversationProfile.

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

UpdateConversationProfileRequest message or plain object

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

Promise

Type Definitions

CreateConversationProfileCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.ConversationProfiles#createConversationProfile.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ConversationProfile

DeleteConversationProfileCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.ConversationProfiles#deleteConversationProfile.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

GetConversationProfileCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.ConversationProfiles#getConversationProfile.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ConversationProfile

ListConversationProfilesCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.ConversationProfiles#listConversationProfiles.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ListConversationProfilesResponse

UpdateConversationProfileCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.ConversationProfiles#updateConversationProfile.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ConversationProfile