Class DataLabelingServiceGrpc.DataLabelingServiceBlockingStub

    • Method Detail

      • createDataset

        public Dataset createDataset​(CreateDatasetRequest request)
         Creates dataset. If success return a Dataset resource.
         
      • deleteDataset

        public com.google.protobuf.Empty deleteDataset​(DeleteDatasetRequest request)
         Deletes a dataset by resource name.
         
      • importData

        public com.google.longrunning.Operation importData​(ImportDataRequest request)
         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.
         
      • exportData

        public com.google.longrunning.Operation exportData​(ExportDataRequest request)
         Exports data and annotations from dataset.
         
      • getDataItem

        public DataItem getDataItem​(GetDataItemRequest request)
         Gets a data item in a dataset by resource name. This API can be
         called after data are imported into dataset.
         
      • listDataItems

        public ListDataItemsResponse listDataItems​(ListDataItemsRequest request)
         Lists data items in a dataset. This API can be called after data
         are imported into dataset. Pagination is supported.
         
      • deleteAnnotatedDataset

        public com.google.protobuf.Empty deleteAnnotatedDataset​(DeleteAnnotatedDatasetRequest request)
         Deletes an annotated dataset by resource name.
         
      • labelImage

        public com.google.longrunning.Operation labelImage​(LabelImageRequest request)
         Starts a labeling task for image. The type of image labeling task is
         configured by feature in the request.
         
      • labelVideo

        public com.google.longrunning.Operation labelVideo​(LabelVideoRequest request)
         Starts a labeling task for video. The type of video labeling task is
         configured by feature in the request.
         
      • labelText

        public com.google.longrunning.Operation labelText​(LabelTextRequest request)
         Starts a labeling task for text. The type of text labeling task is
         configured by feature in the request.
         
      • getExample

        public Example getExample​(GetExampleRequest request)
         Gets an example by resource name, including both data and annotation.
         
      • deleteAnnotationSpecSet

        public com.google.protobuf.Empty deleteAnnotationSpecSet​(DeleteAnnotationSpecSetRequest request)
         Deletes an annotation spec set by resource name.
         
      • createInstruction

        public com.google.longrunning.Operation createInstruction​(CreateInstructionRequest request)
         Creates an instruction for how data should be labeled.
         
      • deleteInstruction

        public com.google.protobuf.Empty deleteInstruction​(DeleteInstructionRequest request)
         Deletes an instruction object by resource name.
         
      • getEvaluation

        public Evaluation getEvaluation​(GetEvaluationRequest request)
         Gets an evaluation by resource name (to search, use
         [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
         
      • searchExampleComparisons

        public SearchExampleComparisonsResponse searchExampleComparisons​(SearchExampleComparisonsRequest request)
         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.
         
      • updateEvaluationJob

        public EvaluationJob updateEvaluationJob​(UpdateEvaluationJobRequest request)
         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.
         
      • pauseEvaluationJob

        public com.google.protobuf.Empty pauseEvaluationJob​(PauseEvaluationJobRequest request)
         Pauses an evaluation job. Pausing an evaluation job that is already in a
         `PAUSED` state is a no-op.
         
      • resumeEvaluationJob

        public com.google.protobuf.Empty resumeEvaluationJob​(ResumeEvaluationJobRequest request)
         Resumes a paused evaluation job. A deleted evaluation job can't be resumed.
         Resuming a running or scheduled evaluation job is a no-op.
         
      • deleteEvaluationJob

        public com.google.protobuf.Empty deleteEvaluationJob​(DeleteEvaluationJobRequest request)
         Stops and deletes an evaluation job.