public static final class DataLabelingServiceGrpc.DataLabelingServiceBlockingStub extends AbstractBlockingStub<DataLabelingServiceGrpc.DataLabelingServiceBlockingStub>
Service for the AI Platform Data Labeling API.
Inheritance
java.lang.Object >
io.grpc.stub.AbstractStub >
io.grpc.stub.AbstractBlockingStub >
DataLabelingServiceGrpc.DataLabelingServiceBlockingStub
Inherited Members
io.grpc.stub.AbstractBlockingStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractBlockingStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withWaitForReady()
Methods
build(Channel channel, CallOptions callOptions)
protected DataLabelingServiceGrpc.DataLabelingServiceBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
Name | Description |
channel | io.grpc.Channel
|
callOptions | io.grpc.CallOptions
|
Returns
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
createAnnotationSpecSet(CreateAnnotationSpecSetRequest request)
public AnnotationSpecSet createAnnotationSpecSet(CreateAnnotationSpecSetRequest request)
Creates an annotation spec set by providing a set of labels.
Parameter
Returns
createDataset(CreateDatasetRequest request)
public Dataset createDataset(CreateDatasetRequest request)
Creates dataset. If success return a Dataset resource.
Parameter
Returns
createEvaluationJob(CreateEvaluationJobRequest request)
public EvaluationJob createEvaluationJob(CreateEvaluationJobRequest request)
Creates an evaluation job.
Parameter
Returns
createInstruction(CreateInstructionRequest request)
public Operation createInstruction(CreateInstructionRequest request)
Creates an instruction for how data should be labeled.
Parameter
Returns
deleteAnnotatedDataset(DeleteAnnotatedDatasetRequest request)
public Empty deleteAnnotatedDataset(DeleteAnnotatedDatasetRequest request)
Deletes an annotated dataset by resource name.
Parameter
Returns
deleteAnnotationSpecSet(DeleteAnnotationSpecSetRequest request)
public Empty deleteAnnotationSpecSet(DeleteAnnotationSpecSetRequest request)
Deletes an annotation spec set by resource name.
Parameter
Returns
deleteDataset(DeleteDatasetRequest request)
public Empty deleteDataset(DeleteDatasetRequest request)
Deletes a dataset by resource name.
Parameter
Returns
deleteEvaluationJob(DeleteEvaluationJobRequest request)
public Empty deleteEvaluationJob(DeleteEvaluationJobRequest request)
Stops and deletes an evaluation job.
Parameter
Returns
deleteInstruction(DeleteInstructionRequest request)
public Empty deleteInstruction(DeleteInstructionRequest request)
Deletes an instruction object by resource name.
Parameter
Returns
exportData(ExportDataRequest request)
public Operation exportData(ExportDataRequest request)
Exports data and annotations from dataset.
Parameter
Returns
getAnnotatedDataset(GetAnnotatedDatasetRequest request)
public AnnotatedDataset getAnnotatedDataset(GetAnnotatedDatasetRequest request)
Gets an annotated dataset by resource name.
Parameter
Returns
getAnnotationSpecSet(GetAnnotationSpecSetRequest request)
public AnnotationSpecSet getAnnotationSpecSet(GetAnnotationSpecSetRequest request)
Gets an annotation spec set by resource name.
Parameter
Returns
getDataItem(GetDataItemRequest request)
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.
Parameter
Returns
getDataset(GetDatasetRequest request)
public Dataset getDataset(GetDatasetRequest request)
Gets dataset by resource name.
Parameter
Returns
getEvaluation(GetEvaluationRequest request)
public Evaluation getEvaluation(GetEvaluationRequest request)
Gets an evaluation by resource name (to search, use
projects.evaluations.search).
Parameter
Returns
getEvaluationJob(GetEvaluationJobRequest request)
public EvaluationJob getEvaluationJob(GetEvaluationJobRequest request)
Gets an evaluation job by resource name.
Parameter
Returns
getExample(GetExampleRequest request)
public Example getExample(GetExampleRequest request)
Gets an example by resource name, including both data and annotation.
Parameter
Returns
getInstruction(GetInstructionRequest request)
public Instruction getInstruction(GetInstructionRequest request)
Gets an instruction by resource name.
Parameter
Returns
importData(ImportDataRequest request)
public 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.
Parameter
Returns
labelImage(LabelImageRequest request)
public Operation labelImage(LabelImageRequest request)
Starts a labeling task for image. The type of image labeling task is
configured by feature in the request.
Parameter
Returns
labelText(LabelTextRequest request)
public Operation labelText(LabelTextRequest request)
Starts a labeling task for text. The type of text labeling task is
configured by feature in the request.
Parameter
Returns
labelVideo(LabelVideoRequest request)
public Operation labelVideo(LabelVideoRequest request)
Starts a labeling task for video. The type of video labeling task is
configured by feature in the request.
Parameter
Returns
listAnnotatedDatasets(ListAnnotatedDatasetsRequest request)
public ListAnnotatedDatasetsResponse listAnnotatedDatasets(ListAnnotatedDatasetsRequest request)
Lists annotated datasets for a dataset. Pagination is supported.
Parameter
Returns
listAnnotationSpecSets(ListAnnotationSpecSetsRequest request)
public ListAnnotationSpecSetsResponse listAnnotationSpecSets(ListAnnotationSpecSetsRequest request)
Lists annotation spec sets for a project. Pagination is supported.
Parameter
Returns
listDataItems(ListDataItemsRequest request)
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.
Parameter
Returns
listDatasets(ListDatasetsRequest request)
public ListDatasetsResponse listDatasets(ListDatasetsRequest request)
Lists datasets under a project. Pagination is supported.
Parameter
Returns
listEvaluationJobs(ListEvaluationJobsRequest request)
public ListEvaluationJobsResponse listEvaluationJobs(ListEvaluationJobsRequest request)
Lists all evaluation jobs within a project with possible filters.
Pagination is supported.
Parameter
Returns
listExamples(ListExamplesRequest request)
public ListExamplesResponse listExamples(ListExamplesRequest request)
Lists examples in an annotated dataset. Pagination is supported.
Parameter
Returns
listInstructions(ListInstructionsRequest request)
public ListInstructionsResponse listInstructions(ListInstructionsRequest request)
Lists instructions for a project. Pagination is supported.
Parameter
Returns
pauseEvaluationJob(PauseEvaluationJobRequest request)
public Empty pauseEvaluationJob(PauseEvaluationJobRequest request)
Pauses an evaluation job. Pausing an evaluation job that is already in a
PAUSED
state is a no-op.
Parameter
Returns
resumeEvaluationJob(ResumeEvaluationJobRequest request)
public 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.
Parameter
Returns
searchEvaluations(SearchEvaluationsRequest request)
public SearchEvaluationsResponse searchEvaluations(SearchEvaluationsRequest request)
Searches evaluations within a project.
Parameter
Returns
searchExampleComparisons(SearchExampleComparisonsRequest request)
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.
Parameter
Returns
updateEvaluationJob(UpdateEvaluationJobRequest request)
public EvaluationJob updateEvaluationJob(UpdateEvaluationJobRequest request)
Updates an evaluation job. You can only update certain fields of the job's
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.
Parameter
Returns