[BindServiceMethod(typeof(ConversationModels), "BindService")]
public abstract class ConversationModels.ConversationModelsBase
Reference documentation and code samples for the Google Cloud Dialogflow v2 API class ConversationModels.ConversationModelsBase.
Base class for server-side implementations of ConversationModels
Namespace
Google.Cloud.Dialogflow.V2Assembly
Google.Cloud.Dialogflow.V2.dll
Methods
CreateConversationModel(CreateConversationModelRequest, ServerCallContext)
public virtual Task<Operation> CreateConversationModel(CreateConversationModelRequest request, ServerCallContext context)
Creates a model.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: [CreateConversationModelOperationMetadata][google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata]response
: [ConversationModel][google.cloud.dialogflow.v2.ConversationModel]
Parameters | |
---|---|
Name | Description |
request | CreateConversationModelRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskOperation | The response to send back to the client (wrapped by a task). |
CreateConversationModelEvaluation(CreateConversationModelEvaluationRequest, ServerCallContext)
public virtual Task<Operation> CreateConversationModelEvaluation(CreateConversationModelEvaluationRequest request, ServerCallContext context)
Creates evaluation of a conversation model.
Parameters | |
---|---|
Name | Description |
request | CreateConversationModelEvaluationRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskOperation | The response to send back to the client (wrapped by a task). |
DeleteConversationModel(DeleteConversationModelRequest, ServerCallContext)
public virtual Task<Operation> DeleteConversationModel(DeleteConversationModelRequest request, ServerCallContext context)
Deletes a model.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: [DeleteConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationModelOperationMetadata]response
: An Empty message
Parameters | |
---|---|
Name | Description |
request | DeleteConversationModelRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskOperation | The response to send back to the client (wrapped by a task). |
DeployConversationModel(DeployConversationModelRequest, ServerCallContext)
public virtual Task<Operation> DeployConversationModel(DeployConversationModelRequest request, ServerCallContext context)
Deploys a model. If a model is already deployed, deploying it has no effect. A model can only serve prediction requests after it gets deployed. For article suggestion, custom model will not be used unless it is deployed.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: [DeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeployConversationModelOperationMetadata]response
: An Empty message
Parameters | |
---|---|
Name | Description |
request | DeployConversationModelRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskOperation | The response to send back to the client (wrapped by a task). |
GetConversationModel(GetConversationModelRequest, ServerCallContext)
public virtual Task<ConversationModel> GetConversationModel(GetConversationModelRequest request, ServerCallContext context)
Gets conversation model.
Parameters | |
---|---|
Name | Description |
request | GetConversationModelRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskConversationModel | The response to send back to the client (wrapped by a task). |
GetConversationModelEvaluation(GetConversationModelEvaluationRequest, ServerCallContext)
public virtual Task<ConversationModelEvaluation> GetConversationModelEvaluation(GetConversationModelEvaluationRequest request, ServerCallContext context)
Gets an evaluation of conversation model.
Parameters | |
---|---|
Name | Description |
request | GetConversationModelEvaluationRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskConversationModelEvaluation | The response to send back to the client (wrapped by a task). |
ListConversationModelEvaluations(ListConversationModelEvaluationsRequest, ServerCallContext)
public virtual Task<ListConversationModelEvaluationsResponse> ListConversationModelEvaluations(ListConversationModelEvaluationsRequest request, ServerCallContext context)
Lists evaluations of a conversation model.
Parameters | |
---|---|
Name | Description |
request | ListConversationModelEvaluationsRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskListConversationModelEvaluationsResponse | The response to send back to the client (wrapped by a task). |
ListConversationModels(ListConversationModelsRequest, ServerCallContext)
public virtual Task<ListConversationModelsResponse> ListConversationModels(ListConversationModelsRequest request, ServerCallContext context)
Lists conversation models.
Parameters | |
---|---|
Name | Description |
request | ListConversationModelsRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskListConversationModelsResponse | The response to send back to the client (wrapped by a task). |
UndeployConversationModel(UndeployConversationModelRequest, ServerCallContext)
public virtual Task<Operation> UndeployConversationModel(UndeployConversationModelRequest request, ServerCallContext context)
Undeploys a model. If the model is not deployed this method has no effect. If the model is currently being used:
- For article suggestion, article suggestion will fallback to the default model if model is undeployed.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
: [UndeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.UndeployConversationModelOperationMetadata]response
: An Empty message
Parameters | |
---|---|
Name | Description |
request | UndeployConversationModelRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
TaskOperation | The response to send back to the client (wrapped by a task). |