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.v2beta1.IAnalyzeContentRequest |
AnalyzeContentRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Participants.AnalyzeContentCallback |
Node-style callback called with the error, if any, and AnalyzeContentResponse |
Returns:
Type | Description |
---|---|
undefined |
analyzeContent(request) → {Promise.<google.cloud.dialogflow.v2beta1.AnalyzeContentResponse>}
Calls AnalyzeContent.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IAnalyzeContentRequest |
AnalyzeContentRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.v2beta1.AnalyzeContentResponse> |
Promise |
compileSuggestion(request, callback) → {undefined}
Calls CompileSuggestion.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.ICompileSuggestionRequest |
CompileSuggestionRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Participants.CompileSuggestionCallback |
Node-style callback called with the error, if any, and CompileSuggestionResponse |
Returns:
Type | Description |
---|---|
undefined |
compileSuggestion(request) → {Promise.<google.cloud.dialogflow.v2beta1.CompileSuggestionResponse>}
Calls CompileSuggestion.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.ICompileSuggestionRequest |
CompileSuggestionRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.v2beta1.CompileSuggestionResponse> |
Promise |
createParticipant(request, callback) → {undefined}
Calls CreateParticipant.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.ICreateParticipantRequest |
CreateParticipantRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Participants.CreateParticipantCallback |
Node-style callback called with the error, if any, and Participant |
Returns:
Type | Description |
---|---|
undefined |
createParticipant(request) → {Promise.<google.cloud.dialogflow.v2beta1.Participant>}
Calls CreateParticipant.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.ICreateParticipantRequest |
CreateParticipantRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.v2beta1.Participant> |
Promise |
getParticipant(request, callback) → {undefined}
Calls GetParticipant.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IGetParticipantRequest |
GetParticipantRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Participants.GetParticipantCallback |
Node-style callback called with the error, if any, and Participant |
Returns:
Type | Description |
---|---|
undefined |
getParticipant(request) → {Promise.<google.cloud.dialogflow.v2beta1.Participant>}
Calls GetParticipant.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IGetParticipantRequest |
GetParticipantRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.v2beta1.Participant> |
Promise |
listParticipants(request, callback) → {undefined}
Calls ListParticipants.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IListParticipantsRequest |
ListParticipantsRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Participants.ListParticipantsCallback |
Node-style callback called with the error, if any, and ListParticipantsResponse |
Returns:
Type | Description |
---|---|
undefined |
listParticipants(request) → {Promise.<google.cloud.dialogflow.v2beta1.ListParticipantsResponse>}
Calls ListParticipants.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IListParticipantsRequest |
ListParticipantsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.v2beta1.ListParticipantsResponse> |
Promise |
listSuggestions(request, callback) → {undefined}
Calls ListSuggestions.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IListSuggestionsRequest |
ListSuggestionsRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Participants.ListSuggestionsCallback |
Node-style callback called with the error, if any, and ListSuggestionsResponse |
Returns:
Type | Description |
---|---|
undefined |
listSuggestions(request) → {Promise.<google.cloud.dialogflow.v2beta1.ListSuggestionsResponse>}
Calls ListSuggestions.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IListSuggestionsRequest |
ListSuggestionsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.v2beta1.ListSuggestionsResponse> |
Promise |
suggestArticles(request, callback) → {undefined}
Calls SuggestArticles.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.ISuggestArticlesRequest |
SuggestArticlesRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Participants.SuggestArticlesCallback |
Node-style callback called with the error, if any, and SuggestArticlesResponse |
Returns:
Type | Description |
---|---|
undefined |
suggestArticles(request) → {Promise.<google.cloud.dialogflow.v2beta1.SuggestArticlesResponse>}
Calls SuggestArticles.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.ISuggestArticlesRequest |
SuggestArticlesRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.v2beta1.SuggestArticlesResponse> |
Promise |
suggestFaqAnswers(request, callback) → {undefined}
Calls SuggestFaqAnswers.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.ISuggestFaqAnswersRequest |
SuggestFaqAnswersRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswersCallback |
Node-style callback called with the error, if any, and SuggestFaqAnswersResponse |
Returns:
Type | Description |
---|---|
undefined |
suggestFaqAnswers(request) → {Promise.<google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse>}
Calls SuggestFaqAnswers.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.ISuggestFaqAnswersRequest |
SuggestFaqAnswersRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse> |
Promise |
suggestSmartReplies(request, callback) → {undefined}
Calls SuggestSmartReplies.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.ISuggestSmartRepliesRequest |
SuggestSmartRepliesRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Participants.SuggestSmartRepliesCallback |
Node-style callback called with the error, if any, and SuggestSmartRepliesResponse |
Returns:
Type | Description |
---|---|
undefined |
suggestSmartReplies(request) → {Promise.<google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse>}
Calls SuggestSmartReplies.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.ISuggestSmartRepliesRequest |
SuggestSmartRepliesRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse> |
Promise |
updateParticipant(request, callback) → {undefined}
Calls UpdateParticipant.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IUpdateParticipantRequest |
UpdateParticipantRequest message or plain object |
callback |
google.cloud.dialogflow.v2beta1.Participants.UpdateParticipantCallback |
Node-style callback called with the error, if any, and Participant |
Returns:
Type | Description |
---|---|
undefined |
updateParticipant(request) → {Promise.<google.cloud.dialogflow.v2beta1.Participant>}
Calls UpdateParticipant.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.dialogflow.v2beta1.IUpdateParticipantRequest |
UpdateParticipantRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.dialogflow.v2beta1.Participant> |
Promise |
Type Definitions
AnalyzeContentCallback(error, responseopt)
Callback as used by google.cloud.dialogflow.v2beta1.Participants#analyzeContent.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.v2beta1.AnalyzeContentResponse |
<optional> |
AnalyzeContentResponse |
CompileSuggestionCallback(error, responseopt)
Callback as used by google.cloud.dialogflow.v2beta1.Participants#compileSuggestion.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.v2beta1.CompileSuggestionResponse |
<optional> |
CompileSuggestionResponse |
CreateParticipantCallback(error, responseopt)
Callback as used by google.cloud.dialogflow.v2beta1.Participants#createParticipant.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.v2beta1.Participant |
<optional> |
Participant |
GetParticipantCallback(error, responseopt)
Callback as used by google.cloud.dialogflow.v2beta1.Participants#getParticipant.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.v2beta1.Participant |
<optional> |
Participant |
ListParticipantsCallback(error, responseopt)
Callback as used by google.cloud.dialogflow.v2beta1.Participants#listParticipants.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.v2beta1.ListParticipantsResponse |
<optional> |
ListParticipantsResponse |
ListSuggestionsCallback(error, responseopt)
Callback as used by google.cloud.dialogflow.v2beta1.Participants#listSuggestions.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.v2beta1.ListSuggestionsResponse |
<optional> |
ListSuggestionsResponse |
SuggestArticlesCallback(error, responseopt)
Callback as used by google.cloud.dialogflow.v2beta1.Participants#suggestArticles.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.v2beta1.SuggestArticlesResponse |
<optional> |
SuggestArticlesResponse |
SuggestFaqAnswersCallback(error, responseopt)
Callback as used by google.cloud.dialogflow.v2beta1.Participants#suggestFaqAnswers.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse |
<optional> |
SuggestFaqAnswersResponse |
SuggestSmartRepliesCallback(error, responseopt)
Callback as used by google.cloud.dialogflow.v2beta1.Participants#suggestSmartReplies.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse |
<optional> |
SuggestSmartRepliesResponse |
UpdateParticipantCallback(error, responseopt)
Callback as used by google.cloud.dialogflow.v2beta1.Participants#updateParticipant.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.dialogflow.v2beta1.Participant |
<optional> |
Participant |