Class DataLabelingServiceGrpc.DataLabelingServiceBlockingStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<DataLabelingServiceGrpc.DataLabelingServiceBlockingStub>
-
- com.google.cloud.datalabeling.v1beta1.DataLabelingServiceGrpc.DataLabelingServiceBlockingStub
-
- Enclosing class:
- DataLabelingServiceGrpc
public static final class DataLabelingServiceGrpc.DataLabelingServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<DataLabelingServiceGrpc.DataLabelingServiceBlockingStub>
A stub to allow clients to do synchronous rpc calls to service DataLabelingService.Service for the AI Platform Data Labeling API.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DataLabelingServiceGrpc.DataLabelingServiceBlockingStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
AnnotationSpecSet
createAnnotationSpecSet(CreateAnnotationSpecSetRequest request)
Creates an annotation spec set by providing a set of labels.Dataset
createDataset(CreateDatasetRequest request)
Creates dataset.EvaluationJob
createEvaluationJob(CreateEvaluationJobRequest request)
Creates an evaluation job.com.google.longrunning.Operation
createInstruction(CreateInstructionRequest request)
Creates an instruction for how data should be labeled.com.google.protobuf.Empty
deleteAnnotatedDataset(DeleteAnnotatedDatasetRequest request)
Deletes an annotated dataset by resource name.com.google.protobuf.Empty
deleteAnnotationSpecSet(DeleteAnnotationSpecSetRequest request)
Deletes an annotation spec set by resource name.com.google.protobuf.Empty
deleteDataset(DeleteDatasetRequest request)
Deletes a dataset by resource name.com.google.protobuf.Empty
deleteEvaluationJob(DeleteEvaluationJobRequest request)
Stops and deletes an evaluation job.com.google.protobuf.Empty
deleteInstruction(DeleteInstructionRequest request)
Deletes an instruction object by resource name.com.google.longrunning.Operation
exportData(ExportDataRequest request)
Exports data and annotations from dataset.AnnotatedDataset
getAnnotatedDataset(GetAnnotatedDatasetRequest request)
Gets an annotated dataset by resource name.AnnotationSpecSet
getAnnotationSpecSet(GetAnnotationSpecSetRequest request)
Gets an annotation spec set by resource name.DataItem
getDataItem(GetDataItemRequest request)
Gets a data item in a dataset by resource name.Dataset
getDataset(GetDatasetRequest request)
Gets dataset by resource name.Evaluation
getEvaluation(GetEvaluationRequest request)
Gets an evaluation by resource name (to search, use [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).EvaluationJob
getEvaluationJob(GetEvaluationJobRequest request)
Gets an evaluation job by resource name.Example
getExample(GetExampleRequest request)
Gets an example by resource name, including both data and annotation.Instruction
getInstruction(GetInstructionRequest request)
Gets an instruction by resource name.com.google.longrunning.Operation
importData(ImportDataRequest request)
Imports data into dataset based on source locations defined in request.com.google.longrunning.Operation
labelImage(LabelImageRequest request)
Starts a labeling task for image.com.google.longrunning.Operation
labelText(LabelTextRequest request)
Starts a labeling task for text.com.google.longrunning.Operation
labelVideo(LabelVideoRequest request)
Starts a labeling task for video.ListAnnotatedDatasetsResponse
listAnnotatedDatasets(ListAnnotatedDatasetsRequest request)
Lists annotated datasets for a dataset.ListAnnotationSpecSetsResponse
listAnnotationSpecSets(ListAnnotationSpecSetsRequest request)
Lists annotation spec sets for a project.ListDataItemsResponse
listDataItems(ListDataItemsRequest request)
Lists data items in a dataset.ListDatasetsResponse
listDatasets(ListDatasetsRequest request)
Lists datasets under a project.ListEvaluationJobsResponse
listEvaluationJobs(ListEvaluationJobsRequest request)
Lists all evaluation jobs within a project with possible filters.ListExamplesResponse
listExamples(ListExamplesRequest request)
Lists examples in an annotated dataset.ListInstructionsResponse
listInstructions(ListInstructionsRequest request)
Lists instructions for a project.com.google.protobuf.Empty
pauseEvaluationJob(PauseEvaluationJobRequest request)
Pauses an evaluation job.com.google.protobuf.Empty
resumeEvaluationJob(ResumeEvaluationJobRequest request)
Resumes a paused evaluation job.SearchEvaluationsResponse
searchEvaluations(SearchEvaluationsRequest request)
Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.SearchExampleComparisonsResponse
searchExampleComparisons(SearchExampleComparisonsRequest request)
Searches example comparisons from an evaluation.EvaluationJob
updateEvaluationJob(UpdateEvaluationJobRequest request)
Updates an evaluation job.
-
-
-
Method Detail
-
build
protected DataLabelingServiceGrpc.DataLabelingServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<DataLabelingServiceGrpc.DataLabelingServiceBlockingStub>
-
createDataset
public Dataset createDataset(CreateDatasetRequest request)
Creates dataset. If success return a Dataset resource.
-
getDataset
public Dataset getDataset(GetDatasetRequest request)
Gets dataset by resource name.
-
listDatasets
public ListDatasetsResponse listDatasets(ListDatasetsRequest request)
Lists datasets under a project. Pagination is supported.
-
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.
-
getAnnotatedDataset
public AnnotatedDataset getAnnotatedDataset(GetAnnotatedDatasetRequest request)
Gets an annotated dataset by resource name.
-
listAnnotatedDatasets
public ListAnnotatedDatasetsResponse listAnnotatedDatasets(ListAnnotatedDatasetsRequest request)
Lists annotated datasets for a 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.
-
listExamples
public ListExamplesResponse listExamples(ListExamplesRequest request)
Lists examples in an annotated dataset. Pagination is supported.
-
createAnnotationSpecSet
public AnnotationSpecSet createAnnotationSpecSet(CreateAnnotationSpecSetRequest request)
Creates an annotation spec set by providing a set of labels.
-
getAnnotationSpecSet
public AnnotationSpecSet getAnnotationSpecSet(GetAnnotationSpecSetRequest request)
Gets an annotation spec set by resource name.
-
listAnnotationSpecSets
public ListAnnotationSpecSetsResponse listAnnotationSpecSets(ListAnnotationSpecSetsRequest request)
Lists annotation spec sets for a project. Pagination is supported.
-
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.
-
getInstruction
public Instruction getInstruction(GetInstructionRequest request)
Gets an instruction by resource name.
-
listInstructions
public ListInstructionsResponse listInstructions(ListInstructionsRequest request)
Lists instructions for a project. Pagination is supported.
-
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]).
-
searchEvaluations
public SearchEvaluationsResponse searchEvaluations(SearchEvaluationsRequest request)
Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
-
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.
-
createEvaluationJob
public EvaluationJob createEvaluationJob(CreateEvaluationJobRequest request)
Creates an evaluation job.
-
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.
-
getEvaluationJob
public EvaluationJob getEvaluationJob(GetEvaluationJobRequest request)
Gets an evaluation job by resource name.
-
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.
-
listEvaluationJobs
public ListEvaluationJobsResponse listEvaluationJobs(ListEvaluationJobsRequest request)
Lists all evaluation jobs within a project with possible filters. Pagination is supported.
-
-