Struct googapis::google::cloud::aiplatform::v1beta1::vizier_service_client::VizierServiceClient [−][src]
pub struct VizierServiceClient<T> { /* fields omitted */ }
Expand description
Vertex Vizier API.
Vizier service is a GCP service to solve blackbox optimization problems, such as tuning machine learning hyperparameters and searching over deep learning architectures.
Implementations
impl<T> VizierServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> VizierServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> VizierServiceClient<InterceptedService<T, F>> where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub async fn create_study(
&mut self,
request: impl IntoRequest<CreateStudyRequest>
) -> Result<Response<Study>, Status>
pub async fn create_study(
&mut self,
request: impl IntoRequest<CreateStudyRequest>
) -> Result<Response<Study>, Status>
Creates a Study. A resource name will be generated after creation of the Study.
pub async fn get_study(
&mut self,
request: impl IntoRequest<GetStudyRequest>
) -> Result<Response<Study>, Status>
pub async fn get_study(
&mut self,
request: impl IntoRequest<GetStudyRequest>
) -> Result<Response<Study>, Status>
Gets a Study by name.
pub async fn list_studies(
&mut self,
request: impl IntoRequest<ListStudiesRequest>
) -> Result<Response<ListStudiesResponse>, Status>
pub async fn list_studies(
&mut self,
request: impl IntoRequest<ListStudiesRequest>
) -> Result<Response<ListStudiesResponse>, Status>
Lists all the studies in a region for an associated project.
pub async fn delete_study(
&mut self,
request: impl IntoRequest<DeleteStudyRequest>
) -> Result<Response<()>, Status>
pub async fn delete_study(
&mut self,
request: impl IntoRequest<DeleteStudyRequest>
) -> Result<Response<()>, Status>
Deletes a Study.
pub async fn lookup_study(
&mut self,
request: impl IntoRequest<LookupStudyRequest>
) -> Result<Response<Study>, Status>
pub async fn lookup_study(
&mut self,
request: impl IntoRequest<LookupStudyRequest>
) -> Result<Response<Study>, Status>
Looks a study up using the user-defined display_name field instead of the fully qualified resource name.
pub async fn suggest_trials(
&mut self,
request: impl IntoRequest<SuggestTrialsRequest>
) -> Result<Response<Operation>, Status>
pub async fn suggest_trials(
&mut self,
request: impl IntoRequest<SuggestTrialsRequest>
) -> Result<Response<Operation>, Status>
Adds one or more Trials to a Study, with parameter values suggested by Vertex Vizier. Returns a long-running operation associated with the generation of Trial suggestions. When this long-running operation succeeds, it will contain a [SuggestTrialsResponse][google.cloud.ml.v1.SuggestTrialsResponse].
pub async fn create_trial(
&mut self,
request: impl IntoRequest<CreateTrialRequest>
) -> Result<Response<Trial>, Status>
pub async fn create_trial(
&mut self,
request: impl IntoRequest<CreateTrialRequest>
) -> Result<Response<Trial>, Status>
Adds a user provided Trial to a Study.
pub async fn get_trial(
&mut self,
request: impl IntoRequest<GetTrialRequest>
) -> Result<Response<Trial>, Status>
pub async fn get_trial(
&mut self,
request: impl IntoRequest<GetTrialRequest>
) -> Result<Response<Trial>, Status>
Gets a Trial.
pub async fn list_trials(
&mut self,
request: impl IntoRequest<ListTrialsRequest>
) -> Result<Response<ListTrialsResponse>, Status>
pub async fn list_trials(
&mut self,
request: impl IntoRequest<ListTrialsRequest>
) -> Result<Response<ListTrialsResponse>, Status>
Lists the Trials associated with a Study.
pub async fn add_trial_measurement(
&mut self,
request: impl IntoRequest<AddTrialMeasurementRequest>
) -> Result<Response<Trial>, Status>
pub async fn add_trial_measurement(
&mut self,
request: impl IntoRequest<AddTrialMeasurementRequest>
) -> Result<Response<Trial>, Status>
Adds a measurement of the objective metrics to a Trial. This measurement is assumed to have been taken before the Trial is complete.
pub async fn complete_trial(
&mut self,
request: impl IntoRequest<CompleteTrialRequest>
) -> Result<Response<Trial>, Status>
pub async fn complete_trial(
&mut self,
request: impl IntoRequest<CompleteTrialRequest>
) -> Result<Response<Trial>, Status>
Marks a Trial as complete.
pub async fn delete_trial(
&mut self,
request: impl IntoRequest<DeleteTrialRequest>
) -> Result<Response<()>, Status>
pub async fn delete_trial(
&mut self,
request: impl IntoRequest<DeleteTrialRequest>
) -> Result<Response<()>, Status>
Deletes a Trial.
pub async fn check_trial_early_stopping_state(
&mut self,
request: impl IntoRequest<CheckTrialEarlyStoppingStateRequest>
) -> Result<Response<Operation>, Status>
pub async fn check_trial_early_stopping_state(
&mut self,
request: impl IntoRequest<CheckTrialEarlyStoppingStateRequest>
) -> Result<Response<Operation>, Status>
Checks whether a Trial should stop or not. Returns a long-running operation. When the operation is successful, it will contain a [CheckTrialEarlyStoppingStateResponse][google.cloud.ml.v1.CheckTrialEarlyStoppingStateResponse].
pub async fn stop_trial(
&mut self,
request: impl IntoRequest<StopTrialRequest>
) -> Result<Response<Trial>, Status>
pub async fn stop_trial(
&mut self,
request: impl IntoRequest<StopTrialRequest>
) -> Result<Response<Trial>, Status>
Stops a Trial.
pub async fn list_optimal_trials(
&mut self,
request: impl IntoRequest<ListOptimalTrialsRequest>
) -> Result<Response<ListOptimalTrialsResponse>, Status>
pub async fn list_optimal_trials(
&mut self,
request: impl IntoRequest<ListOptimalTrialsRequest>
) -> Result<Response<ListOptimalTrialsResponse>, Status>
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
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for VizierServiceClient<T> where
T: RefUnwindSafe,
impl<T> Send for VizierServiceClient<T> where
T: Send,
impl<T> Sync for VizierServiceClient<T> where
T: Sync,
impl<T> Unpin for VizierServiceClient<T> where
T: Unpin,
impl<T> UnwindSafe for VizierServiceClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more