Class VizierServiceGrpc.VizierServiceImplBase (3.0.0)

public abstract static class VizierServiceGrpc.VizierServiceImplBase implements BindableService

Vertex AI Vizier API. Vertex AI Vizier is a service to solve blackbox optimization problems, such as tuning machine learning hyperparameters and searching over deep learning architectures.

Inheritance

java.lang.Object > VizierServiceGrpc.VizierServiceImplBase

Implements

io.grpc.BindableService

Constructors

VizierServiceImplBase()

public VizierServiceImplBase()

Methods

addTrialMeasurement(AddTrialMeasurementRequest request, StreamObserver<Trial> responseObserver)

public void addTrialMeasurement(AddTrialMeasurementRequest request, StreamObserver<Trial> responseObserver)

Adds a measurement of the objective metrics to a Trial. This measurement is assumed to have been taken before the Trial is complete.

Parameters
NameDescription
requestAddTrialMeasurementRequest
responseObserverio.grpc.stub.StreamObserver<Trial>

bindService()

public final ServerServiceDefinition bindService()
Returns
TypeDescription
io.grpc.ServerServiceDefinition

checkTrialEarlyStoppingState(CheckTrialEarlyStoppingStateRequest request, StreamObserver<Operation> responseObserver)

public void checkTrialEarlyStoppingState(CheckTrialEarlyStoppingStateRequest request, StreamObserver<Operation> responseObserver)

Checks whether a Trial should stop or not. Returns a long-running operation. When the operation is successful, it will contain a CheckTrialEarlyStoppingStateResponse.

Parameters
NameDescription
requestCheckTrialEarlyStoppingStateRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

completeTrial(CompleteTrialRequest request, StreamObserver<Trial> responseObserver)

public void completeTrial(CompleteTrialRequest request, StreamObserver<Trial> responseObserver)

Marks a Trial as complete.

Parameters
NameDescription
requestCompleteTrialRequest
responseObserverio.grpc.stub.StreamObserver<Trial>

createStudy(CreateStudyRequest request, StreamObserver<Study> responseObserver)

public void createStudy(CreateStudyRequest request, StreamObserver<Study> responseObserver)

Creates a Study. A resource name will be generated after creation of the Study.

Parameters
NameDescription
requestCreateStudyRequest
responseObserverio.grpc.stub.StreamObserver<Study>

createTrial(CreateTrialRequest request, StreamObserver<Trial> responseObserver)

public void createTrial(CreateTrialRequest request, StreamObserver<Trial> responseObserver)

Adds a user provided Trial to a Study.

Parameters
NameDescription
requestCreateTrialRequest
responseObserverio.grpc.stub.StreamObserver<Trial>

deleteStudy(DeleteStudyRequest request, StreamObserver<Empty> responseObserver)

public void deleteStudy(DeleteStudyRequest request, StreamObserver<Empty> responseObserver)

Deletes a Study.

Parameters
NameDescription
requestDeleteStudyRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

deleteTrial(DeleteTrialRequest request, StreamObserver<Empty> responseObserver)

public void deleteTrial(DeleteTrialRequest request, StreamObserver<Empty> responseObserver)

Deletes a Trial.

Parameters
NameDescription
requestDeleteTrialRequest
responseObserverio.grpc.stub.StreamObserver<Empty>

getStudy(GetStudyRequest request, StreamObserver<Study> responseObserver)

public void getStudy(GetStudyRequest request, StreamObserver<Study> responseObserver)

Gets a Study by name.

Parameters
NameDescription
requestGetStudyRequest
responseObserverio.grpc.stub.StreamObserver<Study>

getTrial(GetTrialRequest request, StreamObserver<Trial> responseObserver)

public void getTrial(GetTrialRequest request, StreamObserver<Trial> responseObserver)

Gets a Trial.

Parameters
NameDescription
requestGetTrialRequest
responseObserverio.grpc.stub.StreamObserver<Trial>

listOptimalTrials(ListOptimalTrialsRequest request, StreamObserver<ListOptimalTrialsResponse> responseObserver)

public void listOptimalTrials(ListOptimalTrialsRequest request, StreamObserver<ListOptimalTrialsResponse> responseObserver)

Lists the pareto-optimal Trials for multi-objective Study or the optimal Trials for single-objective Study. The definition of pareto-optimal can be checked in wiki page. https://en.wikipedia.org/wiki/Pareto_efficiency

Parameters
NameDescription
requestListOptimalTrialsRequest
responseObserverio.grpc.stub.StreamObserver<ListOptimalTrialsResponse>

listStudies(ListStudiesRequest request, StreamObserver<ListStudiesResponse> responseObserver)

public void listStudies(ListStudiesRequest request, StreamObserver<ListStudiesResponse> responseObserver)

Lists all the studies in a region for an associated project.

Parameters
NameDescription
requestListStudiesRequest
responseObserverio.grpc.stub.StreamObserver<ListStudiesResponse>

listTrials(ListTrialsRequest request, StreamObserver<ListTrialsResponse> responseObserver)

public void listTrials(ListTrialsRequest request, StreamObserver<ListTrialsResponse> responseObserver)

Lists the Trials associated with a Study.

Parameters
NameDescription
requestListTrialsRequest
responseObserverio.grpc.stub.StreamObserver<ListTrialsResponse>

lookupStudy(LookupStudyRequest request, StreamObserver<Study> responseObserver)

public void lookupStudy(LookupStudyRequest request, StreamObserver<Study> responseObserver)

Looks a study up using the user-defined display_name field instead of the fully qualified resource name.

Parameters
NameDescription
requestLookupStudyRequest
responseObserverio.grpc.stub.StreamObserver<Study>

stopTrial(StopTrialRequest request, StreamObserver<Trial> responseObserver)

public void stopTrial(StopTrialRequest request, StreamObserver<Trial> responseObserver)

Stops a Trial.

Parameters
NameDescription
requestStopTrialRequest
responseObserverio.grpc.stub.StreamObserver<Trial>

suggestTrials(SuggestTrialsRequest request, StreamObserver<Operation> responseObserver)

public void suggestTrials(SuggestTrialsRequest request, StreamObserver<Operation> responseObserver)

Adds one or more Trials to a Study, with parameter values suggested by Vertex AI Vizier. Returns a long-running operation associated with the generation of Trial suggestions. When this long-running operation succeeds, it will contain a SuggestTrialsResponse.

Parameters
NameDescription
requestSuggestTrialsRequest
responseObserverio.grpc.stub.StreamObserver<Operation>