Class ConversationModelsGrpc.ConversationModelsBlockingStub (4.36.0)

See more code actions.
public static final class ConversationModelsGrpc.ConversationModelsBlockingStub extends AbstractBlockingStub<ConversationModelsGrpc.ConversationModelsBlockingStub>

A stub to allow clients to do synchronous rpc calls to service ConversationModels.

Manages a collection of models for human agent assistant.

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > ConversationModelsGrpc.ConversationModelsBlockingStub
io.grpc.stub.AbstractBlockingStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractBlockingStub.<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.ConversationModelsBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createConversationModel(CreateConversationModelRequest request)

public 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
Name Description
request CreateConversationModelRequest
Returns
Type Description
Operation

createConversationModelEvaluation(CreateConversationModelEvaluationRequest request)

public Operation createConversationModelEvaluation(CreateConversationModelEvaluationRequest request)

Creates evaluation of a conversation model.

Parameter
Name Description
request CreateConversationModelEvaluationRequest
Returns
Type Description
Operation

deleteConversationModel(DeleteConversationModelRequest request)

public 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
Name Description
request DeleteConversationModelRequest
Returns
Type Description
Operation

deployConversationModel(DeployConversationModelRequest request)

public 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
Name Description
request DeployConversationModelRequest
Returns
Type Description
Operation

getConversationModel(GetConversationModelRequest request)

public ConversationModel getConversationModel(GetConversationModelRequest request)

Gets conversation model.

Parameter
Name Description
request GetConversationModelRequest
Returns
Type Description
ConversationModel

getConversationModelEvaluation(GetConversationModelEvaluationRequest request)

public ConversationModelEvaluation getConversationModelEvaluation(GetConversationModelEvaluationRequest request)

Gets an evaluation of conversation model.

Parameter
Name Description
request GetConversationModelEvaluationRequest
Returns
Type Description
ConversationModelEvaluation

listConversationModelEvaluations(ListConversationModelEvaluationsRequest request)

public ListConversationModelEvaluationsResponse listConversationModelEvaluations(ListConversationModelEvaluationsRequest request)

Lists evaluations of a conversation model.

Parameter
Name Description
request ListConversationModelEvaluationsRequest
Returns
Type Description
ListConversationModelEvaluationsResponse

listConversationModels(ListConversationModelsRequest request)

public ListConversationModelsResponse listConversationModels(ListConversationModelsRequest request)

Lists conversation models.

Parameter
Name Description
request ListConversationModelsRequest
Returns
Type Description
ListConversationModelsResponse

undeployConversationModel(UndeployConversationModelRequest request)

public 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
Name Description
request UndeployConversationModelRequest
Returns
Type Description
Operation