Participants

google.cloud.dialogflow.v2. Participants

Represents a Participants

Constructor

new Participants(rpcImpl, requestDelimitedopt, responseDelimitedopt)

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

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

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

analyzeContent(request, callback) → {undefined}

Calls AnalyzeContent.

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

AnalyzeContentRequest message or plain object

callback google.cloud.dialogflow.v2.Participants.AnalyzeContentCallback

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

Returns:
Type Description
undefined

analyzeContent(request) → {Promise.<google.cloud.dialogflow.v2.AnalyzeContentResponse>}

Calls AnalyzeContent.

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

AnalyzeContentRequest message or plain object

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

Promise

createParticipant(request, callback) → {undefined}

Calls CreateParticipant.

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

CreateParticipantRequest message or plain object

callback google.cloud.dialogflow.v2.Participants.CreateParticipantCallback

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

Returns:
Type Description
undefined

createParticipant(request) → {Promise.<google.cloud.dialogflow.v2.Participant>}

Calls CreateParticipant.

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

CreateParticipantRequest message or plain object

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

Promise

getParticipant(request, callback) → {undefined}

Calls GetParticipant.

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

GetParticipantRequest message or plain object

callback google.cloud.dialogflow.v2.Participants.GetParticipantCallback

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

Returns:
Type Description
undefined

getParticipant(request) → {Promise.<google.cloud.dialogflow.v2.Participant>}

Calls GetParticipant.

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

GetParticipantRequest message or plain object

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

Promise

listParticipants(request, callback) → {undefined}

Calls ListParticipants.

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

ListParticipantsRequest message or plain object

callback google.cloud.dialogflow.v2.Participants.ListParticipantsCallback

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

Returns:
Type Description
undefined

listParticipants(request) → {Promise.<google.cloud.dialogflow.v2.ListParticipantsResponse>}

Calls ListParticipants.

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

ListParticipantsRequest message or plain object

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

Promise

suggestArticles(request, callback) → {undefined}

Calls SuggestArticles.

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

SuggestArticlesRequest message or plain object

callback google.cloud.dialogflow.v2.Participants.SuggestArticlesCallback

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

Returns:
Type Description
undefined

suggestArticles(request) → {Promise.<google.cloud.dialogflow.v2.SuggestArticlesResponse>}

Calls SuggestArticles.

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

SuggestArticlesRequest message or plain object

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

Promise

suggestFaqAnswers(request, callback) → {undefined}

Calls SuggestFaqAnswers.

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

SuggestFaqAnswersRequest message or plain object

callback google.cloud.dialogflow.v2.Participants.SuggestFaqAnswersCallback

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

Returns:
Type Description
undefined

suggestFaqAnswers(request) → {Promise.<google.cloud.dialogflow.v2.SuggestFaqAnswersResponse>}

Calls SuggestFaqAnswers.

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

SuggestFaqAnswersRequest message or plain object

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

Promise

updateParticipant(request, callback) → {undefined}

Calls UpdateParticipant.

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

UpdateParticipantRequest message or plain object

callback google.cloud.dialogflow.v2.Participants.UpdateParticipantCallback

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

Returns:
Type Description
undefined

updateParticipant(request) → {Promise.<google.cloud.dialogflow.v2.Participant>}

Calls UpdateParticipant.

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

UpdateParticipantRequest message or plain object

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

Promise

Type Definitions

AnalyzeContentCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Participants#analyzeContent.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

AnalyzeContentResponse

CreateParticipantCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Participants#createParticipant.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Participant

GetParticipantCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Participants#getParticipant.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Participant

ListParticipantsCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Participants#listParticipants.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ListParticipantsResponse

SuggestArticlesCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Participants#suggestArticles.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

SuggestArticlesResponse

SuggestFaqAnswersCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Participants#suggestFaqAnswers.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

SuggestFaqAnswersResponse

UpdateParticipantCallback(error, responseopt)

Callback as used by google.cloud.dialogflow.v2.Participants#updateParticipant.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Participant