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

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

streamingAnalyzeContent(request, callback) → {undefined}

Calls StreamingAnalyzeContent.

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

StreamingAnalyzeContentRequest message or plain object

callback google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContentCallback

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

Returns:
Type Description
undefined

streamingAnalyzeContent(request) → {Promise.<google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse>}

Calls StreamingAnalyzeContent.

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

StreamingAnalyzeContentRequest message or plain object

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

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

suggestKnowledgeAssist(request, callback) → {undefined}

Calls SuggestKnowledgeAssist.

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

SuggestKnowledgeAssistRequest message or plain object

callback google.cloud.dialogflow.v2.Participants.SuggestKnowledgeAssistCallback

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

Returns:
Type Description
undefined

suggestKnowledgeAssist(request) → {Promise.<google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse>}

Calls SuggestKnowledgeAssist.

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

SuggestKnowledgeAssistRequest message or plain object

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

Promise

suggestSmartReplies(request, callback) → {undefined}

Calls SuggestSmartReplies.

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

SuggestSmartRepliesRequest message or plain object

callback google.cloud.dialogflow.v2.Participants.SuggestSmartRepliesCallback

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

Returns:
Type Description
undefined

suggestSmartReplies(request) → {Promise.<google.cloud.dialogflow.v2.SuggestSmartRepliesResponse>}

Calls SuggestSmartReplies.

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

SuggestSmartRepliesRequest message or plain object

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

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

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

Type Definitions

AnalyzeContentCallback(error, responseopt)

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

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

ListParticipantsResponse

StreamingAnalyzeContentCallback(error, responseopt)

Callback as used by streamingAnalyzeContent.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

StreamingAnalyzeContentResponse

SuggestArticlesCallback(error, responseopt)

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

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

SuggestFaqAnswersResponse

SuggestKnowledgeAssistCallback(error, responseopt)

Callback as used by suggestKnowledgeAssist.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

SuggestKnowledgeAssistResponse

SuggestSmartRepliesCallback(error, responseopt)

Callback as used by suggestSmartReplies.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

SuggestSmartRepliesResponse

UpdateParticipantCallback(error, responseopt)

Callback as used by updateParticipant.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

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

Participant