public static final class PredictionServiceGrpc.PredictionServiceFutureStub extends AbstractFutureStub<PredictionServiceGrpc.PredictionServiceFutureStub>
Uno stub per consentire ai clienti di effettuare chiamate RPC in stile AscoltaableFuture al servizio PredictionService.
Un servizio per previsioni e spiegazioni online.
Ereditarietà
java.lang.Object >
io.grpc.stub.AbstractStub >
io.grpc.stub.AbstractFutureStub >
PredictionServiceGrpc.PredictionServiceFutureStub
Membri ereditati
io.grpc.stub.AbstractFutureStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractFutureStub.<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()
Metodi
build(Canale canale, CallOptions callOptions)
protected PredictionServiceGrpc.PredictionServiceFutureStub build(Channel channel, CallOptions callOptions)
Parametri |
Nome |
Description |
channel |
io.grpc.Channel
|
callOptions |
io.grpc.CallOptions
|
Sostituzioni
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
directPredict(DirectPredictRequest request)
public ListenableFuture<DirectPredictResponse> directPredict(DirectPredictRequest request)
Esegui una richiesta di previsione online unaria a un server del modello gRPC per i prodotti e i framework proprietari di Vertex.
directRawPredict(DirectRawPredictRequest request)
public ListenableFuture<DirectRawPredictResponse> directRawPredict(DirectRawPredictRequest request)
Eseguire una richiesta di previsione online unaria a un server del modello gRPC per i container personalizzati.
spiegare(richiesta ExplainRequest)
public ListenableFuture<ExplainResponse> explain(ExplainRequest request)
Eseguire una spiegazione online.
Se viene specificato deployed_model_id, per il modello DeployModel corrispondente deve essere compilato
explanation_spec. Se deployed_model_id non è specificato, per tutti i DeployedModel deve essere compilato
explanation_spec.
Restituisce |
Tipo |
Description |
com.google.common.util.concurrent.ListenableFuture<ExplainResponse> |
|
generateContent(GenerateContentRequest request)
public ListenableFuture<GenerateContentResponse> generateContent(GenerateContentRequest request)
Genera contenuti con input multimodali.
predicted(richiesta PredictRequest)
public ListenableFuture<PredictResponse> predict(PredictRequest request)
Eseguire una previsione online.
Restituisce |
Tipo |
Description |
com.google.common.util.concurrent.ListenableFuture<PredictResponse> |
|
rawPredict(RawPredictRequest request)
public ListenableFuture<HttpBody> rawPredict(RawPredictRequest request)
Eseguire una previsione online con un payload HTTP arbitrario.
La risposta include le seguenti intestazioni HTTP:
X-Vertex-AI-Endpoint-Id
: ID dell'endpoint che ha fornito questa previsione.
X-Vertex-AI-Deployed-Model-Id
: ID del modello DeployedModel dell'endpoint che ha fornito questa previsione.
Restituisce |
Tipo |
Description |
com.google.common.util.concurrent.ListenableFuture<com.google.api.HttpBody> |
|