Class ConversationModelsGrpc.ConversationModelsFutureStub (4.7.3)

public static final class ConversationModelsGrpc.ConversationModelsFutureStub extends AbstractFutureStub<ConversationModelsGrpc.ConversationModelsFutureStub>

Manages a collection of models for human agent assistant.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > ConversationModelsGrpc.ConversationModelsFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected ConversationModelsGrpc.ConversationModelsFutureStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
ConversationModelsGrpc.ConversationModelsFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createConversationModel(CreateConversationModelRequest request)

public ListenableFuture<Operation> createConversationModel(CreateConversationModelRequest request)

Creates a model. This method is a long-running operation. The returned Operation type has the following method-specific fields:

  • metadata: CreateConversationModelOperationMetadata
  • response: ConversationModel
Parameter
NameDescription
requestCreateConversationModelRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

createConversationModelEvaluation(CreateConversationModelEvaluationRequest request)

public ListenableFuture<Operation> createConversationModelEvaluation(CreateConversationModelEvaluationRequest request)

Creates evaluation of a conversation model.

Parameter
NameDescription
requestCreateConversationModelEvaluationRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteConversationModel(DeleteConversationModelRequest request)

public ListenableFuture<Operation> deleteConversationModel(DeleteConversationModelRequest request)

Deletes a model. This method is a long-running operation. The returned Operation type has the following method-specific fields:

  • metadata: DeleteConversationModelOperationMetadata
  • response: An Empty message
Parameter
NameDescription
requestDeleteConversationModelRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

deployConversationModel(DeployConversationModelRequest request)

public ListenableFuture<Operation> deployConversationModel(DeployConversationModelRequest request)

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
  • response: An Empty message
Parameter
NameDescription
requestDeployConversationModelRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>

getConversationModel(GetConversationModelRequest request)

public ListenableFuture<ConversationModel> getConversationModel(GetConversationModelRequest request)

Gets conversation model.

Parameter
NameDescription
requestGetConversationModelRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ConversationModel>

getConversationModelEvaluation(GetConversationModelEvaluationRequest request)

public ListenableFuture<ConversationModelEvaluation> getConversationModelEvaluation(GetConversationModelEvaluationRequest request)

Gets an evaluation of conversation model.

Parameter
NameDescription
requestGetConversationModelEvaluationRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ConversationModelEvaluation>

listConversationModelEvaluations(ListConversationModelEvaluationsRequest request)

public ListenableFuture<ListConversationModelEvaluationsResponse> listConversationModelEvaluations(ListConversationModelEvaluationsRequest request)

Lists evaluations of a conversation model.

Parameter
NameDescription
requestListConversationModelEvaluationsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListConversationModelEvaluationsResponse>

listConversationModels(ListConversationModelsRequest request)

public ListenableFuture<ListConversationModelsResponse> listConversationModels(ListConversationModelsRequest request)

Lists conversation models.

Parameter
NameDescription
requestListConversationModelsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListConversationModelsResponse>

undeployConversationModel(UndeployConversationModelRequest request)

public ListenableFuture<Operation> undeployConversationModel(UndeployConversationModelRequest request)

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
    • response: An Empty message
Parameter
NameDescription
requestUndeployConversationModelRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Operation>