public static final class ConversationModelsGrpc.ConversationModelsStub extends AbstractAsyncStub<ConversationModelsGrpc.ConversationModelsStub>
Manages a collection of models for human agent assistant.
Inheritance
java.lang.Object >
io.grpc.stub.AbstractStub >
io.grpc.stub.AbstractAsyncStub >
ConversationModelsGrpc.ConversationModelsStub
Inherited Members
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withWaitForReady()
Methods
build(Channel channel, CallOptions callOptions)
protected ConversationModelsGrpc.ConversationModelsStub build(Channel channel, CallOptions callOptions)
Parameters
Name |
Description |
channel |
io.grpc.Channel
|
callOptions |
io.grpc.CallOptions
|
Returns
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
createConversationModel(CreateConversationModelRequest request, StreamObserver<Operation> responseObserver)
public void createConversationModel(CreateConversationModelRequest request, StreamObserver<Operation> responseObserver)
Creates a model.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
metadata
:
CreateConversationModelOperationMetadata
response
:
ConversationModel
Parameters
createConversationModelEvaluation(CreateConversationModelEvaluationRequest request, StreamObserver<Operation> responseObserver)
public void createConversationModelEvaluation(CreateConversationModelEvaluationRequest request, StreamObserver<Operation> responseObserver)
Creates evaluation of a conversation model.
Parameters
deleteConversationModel(DeleteConversationModelRequest request, StreamObserver<Operation> responseObserver)
public void deleteConversationModel(DeleteConversationModelRequest request, StreamObserver<Operation> responseObserver)
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
Parameters
deployConversationModel(DeployConversationModelRequest request, StreamObserver<Operation> responseObserver)
public void deployConversationModel(DeployConversationModelRequest request, StreamObserver<Operation> responseObserver)
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
Parameters
getConversationModel(GetConversationModelRequest request, StreamObserver<ConversationModel> responseObserver)
public void getConversationModel(GetConversationModelRequest request, StreamObserver<ConversationModel> responseObserver)
Parameters
getConversationModelEvaluation(GetConversationModelEvaluationRequest request, StreamObserver<ConversationModelEvaluation> responseObserver)
public void getConversationModelEvaluation(GetConversationModelEvaluationRequest request, StreamObserver<ConversationModelEvaluation> responseObserver)
Gets an evaluation of conversation model.
Parameters
listConversationModelEvaluations(ListConversationModelEvaluationsRequest request, StreamObserver<ListConversationModelEvaluationsResponse> responseObserver)
public void listConversationModelEvaluations(ListConversationModelEvaluationsRequest request, StreamObserver<ListConversationModelEvaluationsResponse> responseObserver)
Lists evaluations of a conversation model.
Parameters
listConversationModels(ListConversationModelsRequest request, StreamObserver<ListConversationModelsResponse> responseObserver)
public void listConversationModels(ListConversationModelsRequest request, StreamObserver<ListConversationModelsResponse> responseObserver)
Lists conversation models.
Parameters
undeployConversationModel(UndeployConversationModelRequest request, StreamObserver<Operation> responseObserver)
public void undeployConversationModel(UndeployConversationModelRequest request, StreamObserver<Operation> responseObserver)
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
Parameters