[][src]Struct gcp_client::google::cloud::datalabeling::v1beta1::data_labeling_service_client::DataLabelingServiceClient

pub struct DataLabelingServiceClient<T> { /* fields omitted */ }

Implementations

impl<T> DataLabelingServiceClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn create_dataset<'_>(
    &'_ mut self,
    request: impl IntoRequest<CreateDatasetRequest>
) -> Result<Response<Dataset>, Status>
[src]

Creates dataset. If success return a Dataset resource.

pub async fn get_dataset<'_>(
    &'_ mut self,
    request: impl IntoRequest<GetDatasetRequest>
) -> Result<Response<Dataset>, Status>
[src]

Gets dataset by resource name.

pub async fn list_datasets<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListDatasetsRequest>
) -> Result<Response<ListDatasetsResponse>, Status>
[src]

Lists datasets under a project. Pagination is supported.

pub async fn delete_dataset<'_>(
    &'_ mut self,
    request: impl IntoRequest<DeleteDatasetRequest>
) -> Result<Response<()>, Status>
[src]

Deletes a dataset by resource name.

pub async fn import_data<'_>(
    &'_ mut self,
    request: impl IntoRequest<ImportDataRequest>
) -> Result<Response<Operation>, Status>
[src]

Imports data into dataset based on source locations defined in request. It can be called multiple times for the same dataset. Each dataset can only have one long running operation running on it. For example, no labeling task (also long running operation) can be started while importing is still ongoing. Vice versa.

pub async fn export_data<'_>(
    &'_ mut self,
    request: impl IntoRequest<ExportDataRequest>
) -> Result<Response<Operation>, Status>
[src]

Exports data and annotations from dataset.

pub async fn get_data_item<'_>(
    &'_ mut self,
    request: impl IntoRequest<GetDataItemRequest>
) -> Result<Response<DataItem>, Status>
[src]

Gets a data item in a dataset by resource name. This API can be called after data are imported into dataset.

pub async fn list_data_items<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListDataItemsRequest>
) -> Result<Response<ListDataItemsResponse>, Status>
[src]

Lists data items in a dataset. This API can be called after data are imported into dataset. Pagination is supported.

pub async fn get_annotated_dataset<'_>(
    &'_ mut self,
    request: impl IntoRequest<GetAnnotatedDatasetRequest>
) -> Result<Response<AnnotatedDataset>, Status>
[src]

Gets an annotated dataset by resource name.

pub async fn list_annotated_datasets<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListAnnotatedDatasetsRequest>
) -> Result<Response<ListAnnotatedDatasetsResponse>, Status>
[src]

Lists annotated datasets for a dataset. Pagination is supported.

pub async fn delete_annotated_dataset<'_>(
    &'_ mut self,
    request: impl IntoRequest<DeleteAnnotatedDatasetRequest>
) -> Result<Response<()>, Status>
[src]

Deletes an annotated dataset by resource name.

pub async fn label_image<'_>(
    &'_ mut self,
    request: impl IntoRequest<LabelImageRequest>
) -> Result<Response<Operation>, Status>
[src]

Starts a labeling task for image. The type of image labeling task is configured by feature in the request.

pub async fn label_video<'_>(
    &'_ mut self,
    request: impl IntoRequest<LabelVideoRequest>
) -> Result<Response<Operation>, Status>
[src]

Starts a labeling task for video. The type of video labeling task is configured by feature in the request.

pub async fn label_text<'_>(
    &'_ mut self,
    request: impl IntoRequest<LabelTextRequest>
) -> Result<Response<Operation>, Status>
[src]

Starts a labeling task for text. The type of text labeling task is configured by feature in the request.

pub async fn get_example<'_>(
    &'_ mut self,
    request: impl IntoRequest<GetExampleRequest>
) -> Result<Response<Example>, Status>
[src]

Gets an example by resource name, including both data and annotation.

pub async fn list_examples<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListExamplesRequest>
) -> Result<Response<ListExamplesResponse>, Status>
[src]

Lists examples in an annotated dataset. Pagination is supported.

pub async fn create_annotation_spec_set<'_>(
    &'_ mut self,
    request: impl IntoRequest<CreateAnnotationSpecSetRequest>
) -> Result<Response<AnnotationSpecSet>, Status>
[src]

Creates an annotation spec set by providing a set of labels.

pub async fn get_annotation_spec_set<'_>(
    &'_ mut self,
    request: impl IntoRequest<GetAnnotationSpecSetRequest>
) -> Result<Response<AnnotationSpecSet>, Status>
[src]

Gets an annotation spec set by resource name.

pub async fn list_annotation_spec_sets<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListAnnotationSpecSetsRequest>
) -> Result<Response<ListAnnotationSpecSetsResponse>, Status>
[src]

Lists annotation spec sets for a project. Pagination is supported.

pub async fn delete_annotation_spec_set<'_>(
    &'_ mut self,
    request: impl IntoRequest<DeleteAnnotationSpecSetRequest>
) -> Result<Response<()>, Status>
[src]

Deletes an annotation spec set by resource name.

pub async fn create_instruction<'_>(
    &'_ mut self,
    request: impl IntoRequest<CreateInstructionRequest>
) -> Result<Response<Operation>, Status>
[src]

Creates an instruction for how data should be labeled.

pub async fn get_instruction<'_>(
    &'_ mut self,
    request: impl IntoRequest<GetInstructionRequest>
) -> Result<Response<Instruction>, Status>
[src]

Gets an instruction by resource name.

pub async fn list_instructions<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListInstructionsRequest>
) -> Result<Response<ListInstructionsResponse>, Status>
[src]

Lists instructions for a project. Pagination is supported.

pub async fn delete_instruction<'_>(
    &'_ mut self,
    request: impl IntoRequest<DeleteInstructionRequest>
) -> Result<Response<()>, Status>
[src]

Deletes an instruction object by resource name.

pub async fn get_evaluation<'_>(
    &'_ mut self,
    request: impl IntoRequest<GetEvaluationRequest>
) -> Result<Response<Evaluation>, Status>
[src]

Gets an evaluation by resource name (to search, use [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).

pub async fn search_evaluations<'_>(
    &'_ mut self,
    request: impl IntoRequest<SearchEvaluationsRequest>
) -> Result<Response<SearchEvaluationsResponse>, Status>
[src]

Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.

pub async fn search_example_comparisons<'_>(
    &'_ mut self,
    request: impl IntoRequest<SearchExampleComparisonsRequest>
) -> Result<Response<SearchExampleComparisonsResponse>, Status>
[src]

Searches example comparisons from an evaluation. The return format is a list of example comparisons that show ground truth and prediction(s) for a single input. Search by providing an evaluation ID.

pub async fn create_evaluation_job<'_>(
    &'_ mut self,
    request: impl IntoRequest<CreateEvaluationJobRequest>
) -> Result<Response<EvaluationJob>, Status>
[src]

Creates an evaluation job.

pub async fn update_evaluation_job<'_>(
    &'_ mut self,
    request: impl IntoRequest<UpdateEvaluationJobRequest>
) -> Result<Response<EvaluationJob>, Status>
[src]

Updates an evaluation job. You can only update certain fields of the job's [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: humanAnnotationConfig.instruction, exampleCount, and exampleSamplePercentage.

If you want to change any other aspect of the evaluation job, you must delete the job and create a new one.

pub async fn get_evaluation_job<'_>(
    &'_ mut self,
    request: impl IntoRequest<GetEvaluationJobRequest>
) -> Result<Response<EvaluationJob>, Status>
[src]

Gets an evaluation job by resource name.

pub async fn pause_evaluation_job<'_>(
    &'_ mut self,
    request: impl IntoRequest<PauseEvaluationJobRequest>
) -> Result<Response<()>, Status>
[src]

Pauses an evaluation job. Pausing an evaluation job that is already in a PAUSED state is a no-op.

pub async fn resume_evaluation_job<'_>(
    &'_ mut self,
    request: impl IntoRequest<ResumeEvaluationJobRequest>
) -> Result<Response<()>, Status>
[src]

Resumes a paused evaluation job. A deleted evaluation job can't be resumed. Resuming a running or scheduled evaluation job is a no-op.

pub async fn delete_evaluation_job<'_>(
    &'_ mut self,
    request: impl IntoRequest<DeleteEvaluationJobRequest>
) -> Result<Response<()>, Status>
[src]

Stops and deletes an evaluation job.

pub async fn list_evaluation_jobs<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListEvaluationJobsRequest>
) -> Result<Response<ListEvaluationJobsResponse>, Status>
[src]

Lists all evaluation jobs within a project with possible filters. Pagination is supported.

Trait Implementations

impl<T: Clone> Clone for DataLabelingServiceClient<T>[src]

impl<T> Debug for DataLabelingServiceClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for DataLabelingServiceClient<T>

impl<T> Send for DataLabelingServiceClient<T> where
    T: Send

impl<T> Sync for DataLabelingServiceClient<T> where
    T: Sync

impl<T> Unpin for DataLabelingServiceClient<T> where
    T: Unpin

impl<T> !UnwindSafe for DataLabelingServiceClient<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]