public static final class DataLabelingServiceGrpc.DataLabelingServiceStub extends AbstractAsyncStub<DataLabelingServiceGrpc.DataLabelingServiceStub>
Service for the AI Platform Data Labeling API.
Inheritance
java.lang.Object >
io.grpc.stub.AbstractStub >
io.grpc.stub.AbstractAsyncStub >
DataLabelingServiceGrpc.DataLabelingServiceStub
Inherited Members
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractAsyncStub.<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.DataLabelingServiceStub 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, StreamObserver<AnnotationSpecSet> responseObserver)
public void createAnnotationSpecSet(CreateAnnotationSpecSetRequest request, StreamObserver<AnnotationSpecSet> responseObserver)
Creates an annotation spec set by providing a set of labels.
Parameters
createDataset(CreateDatasetRequest request, StreamObserver<Dataset> responseObserver)
public void createDataset(CreateDatasetRequest request, StreamObserver<Dataset> responseObserver)
Creates dataset. If success return a Dataset resource.
Parameters
createEvaluationJob(CreateEvaluationJobRequest request, StreamObserver<EvaluationJob> responseObserver)
public void createEvaluationJob(CreateEvaluationJobRequest request, StreamObserver<EvaluationJob> responseObserver)
Creates an evaluation job.
Parameters
createInstruction(CreateInstructionRequest request, StreamObserver<Operation> responseObserver)
public void createInstruction(CreateInstructionRequest request, StreamObserver<Operation> responseObserver)
Creates an instruction for how data should be labeled.
Parameters
deleteAnnotatedDataset(DeleteAnnotatedDatasetRequest request, StreamObserver<Empty> responseObserver)
public void deleteAnnotatedDataset(DeleteAnnotatedDatasetRequest request, StreamObserver<Empty> responseObserver)
Deletes an annotated dataset by resource name.
Parameters
deleteAnnotationSpecSet(DeleteAnnotationSpecSetRequest request, StreamObserver<Empty> responseObserver)
public void deleteAnnotationSpecSet(DeleteAnnotationSpecSetRequest request, StreamObserver<Empty> responseObserver)
Deletes an annotation spec set by resource name.
Parameters
deleteDataset(DeleteDatasetRequest request, StreamObserver<Empty> responseObserver)
public void deleteDataset(DeleteDatasetRequest request, StreamObserver<Empty> responseObserver)
Deletes a dataset by resource name.
Parameters
deleteEvaluationJob(DeleteEvaluationJobRequest request, StreamObserver<Empty> responseObserver)
public void deleteEvaluationJob(DeleteEvaluationJobRequest request, StreamObserver<Empty> responseObserver)
Stops and deletes an evaluation job.
Parameters
deleteInstruction(DeleteInstructionRequest request, StreamObserver<Empty> responseObserver)
public void deleteInstruction(DeleteInstructionRequest request, StreamObserver<Empty> responseObserver)
Deletes an instruction object by resource name.
Parameters
exportData(ExportDataRequest request, StreamObserver<Operation> responseObserver)
public void exportData(ExportDataRequest request, StreamObserver<Operation> responseObserver)
Exports data and annotations from dataset.
Parameters
getAnnotatedDataset(GetAnnotatedDatasetRequest request, StreamObserver<AnnotatedDataset> responseObserver)
public void getAnnotatedDataset(GetAnnotatedDatasetRequest request, StreamObserver<AnnotatedDataset> responseObserver)
Gets an annotated dataset by resource name.
Parameters
getAnnotationSpecSet(GetAnnotationSpecSetRequest request, StreamObserver<AnnotationSpecSet> responseObserver)
public void getAnnotationSpecSet(GetAnnotationSpecSetRequest request, StreamObserver<AnnotationSpecSet> responseObserver)
Gets an annotation spec set by resource name.
Parameters
getDataItem(GetDataItemRequest request, StreamObserver<DataItem> responseObserver)
public void getDataItem(GetDataItemRequest request, StreamObserver<DataItem> responseObserver)
Gets a data item in a dataset by resource name. This API can be
called after data are imported into dataset.
Parameters
getDataset(GetDatasetRequest request, StreamObserver<Dataset> responseObserver)
public void getDataset(GetDatasetRequest request, StreamObserver<Dataset> responseObserver)
Gets dataset by resource name.
Parameters
getEvaluation(GetEvaluationRequest request, StreamObserver<Evaluation> responseObserver)
public void getEvaluation(GetEvaluationRequest request, StreamObserver<Evaluation> responseObserver)
Gets an evaluation by resource name (to search, use
projects.evaluations.search).
Parameters
getEvaluationJob(GetEvaluationJobRequest request, StreamObserver<EvaluationJob> responseObserver)
public void getEvaluationJob(GetEvaluationJobRequest request, StreamObserver<EvaluationJob> responseObserver)
Gets an evaluation job by resource name.
Parameters
getExample(GetExampleRequest request, StreamObserver<Example> responseObserver)
public void getExample(GetExampleRequest request, StreamObserver<Example> responseObserver)
Gets an example by resource name, including both data and annotation.
Parameters
getInstruction(GetInstructionRequest request, StreamObserver<Instruction> responseObserver)
public void getInstruction(GetInstructionRequest request, StreamObserver<Instruction> responseObserver)
Gets an instruction by resource name.
Parameters
importData(ImportDataRequest request, StreamObserver<Operation> responseObserver)
public void importData(ImportDataRequest request, StreamObserver<Operation> responseObserver)
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.
Parameters
labelImage(LabelImageRequest request, StreamObserver<Operation> responseObserver)
public void labelImage(LabelImageRequest request, StreamObserver<Operation> responseObserver)
Starts a labeling task for image. The type of image labeling task is
configured by feature in the request.
Parameters
labelText(LabelTextRequest request, StreamObserver<Operation> responseObserver)
public void labelText(LabelTextRequest request, StreamObserver<Operation> responseObserver)
Starts a labeling task for text. The type of text labeling task is
configured by feature in the request.
Parameters
labelVideo(LabelVideoRequest request, StreamObserver<Operation> responseObserver)
public void labelVideo(LabelVideoRequest request, StreamObserver<Operation> responseObserver)
Starts a labeling task for video. The type of video labeling task is
configured by feature in the request.
Parameters
listAnnotatedDatasets(ListAnnotatedDatasetsRequest request, StreamObserver<ListAnnotatedDatasetsResponse> responseObserver)
public void listAnnotatedDatasets(ListAnnotatedDatasetsRequest request, StreamObserver<ListAnnotatedDatasetsResponse> responseObserver)
Lists annotated datasets for a dataset. Pagination is supported.
Parameters
listAnnotationSpecSets(ListAnnotationSpecSetsRequest request, StreamObserver<ListAnnotationSpecSetsResponse> responseObserver)
public void listAnnotationSpecSets(ListAnnotationSpecSetsRequest request, StreamObserver<ListAnnotationSpecSetsResponse> responseObserver)
Lists annotation spec sets for a project. Pagination is supported.
Parameters
listDataItems(ListDataItemsRequest request, StreamObserver<ListDataItemsResponse> responseObserver)
public void listDataItems(ListDataItemsRequest request, StreamObserver<ListDataItemsResponse> responseObserver)
Lists data items in a dataset. This API can be called after data
are imported into dataset. Pagination is supported.
Parameters
listDatasets(ListDatasetsRequest request, StreamObserver<ListDatasetsResponse> responseObserver)
public void listDatasets(ListDatasetsRequest request, StreamObserver<ListDatasetsResponse> responseObserver)
Lists datasets under a project. Pagination is supported.
Parameters
listEvaluationJobs(ListEvaluationJobsRequest request, StreamObserver<ListEvaluationJobsResponse> responseObserver)
public void listEvaluationJobs(ListEvaluationJobsRequest request, StreamObserver<ListEvaluationJobsResponse> responseObserver)
Lists all evaluation jobs within a project with possible filters.
Pagination is supported.
Parameters
listExamples(ListExamplesRequest request, StreamObserver<ListExamplesResponse> responseObserver)
public void listExamples(ListExamplesRequest request, StreamObserver<ListExamplesResponse> responseObserver)
Lists examples in an annotated dataset. Pagination is supported.
Parameters
listInstructions(ListInstructionsRequest request, StreamObserver<ListInstructionsResponse> responseObserver)
public void listInstructions(ListInstructionsRequest request, StreamObserver<ListInstructionsResponse> responseObserver)
Lists instructions for a project. Pagination is supported.
Parameters
pauseEvaluationJob(PauseEvaluationJobRequest request, StreamObserver<Empty> responseObserver)
public void pauseEvaluationJob(PauseEvaluationJobRequest request, StreamObserver<Empty> responseObserver)
Pauses an evaluation job. Pausing an evaluation job that is already in a
PAUSED
state is a no-op.
Parameters
resumeEvaluationJob(ResumeEvaluationJobRequest request, StreamObserver<Empty> responseObserver)
public void resumeEvaluationJob(ResumeEvaluationJobRequest request, StreamObserver<Empty> responseObserver)
Resumes a paused evaluation job. A deleted evaluation job can't be resumed.
Resuming a running or scheduled evaluation job is a no-op.
Parameters
searchEvaluations(SearchEvaluationsRequest request, StreamObserver<SearchEvaluationsResponse> responseObserver)
public void searchEvaluations(SearchEvaluationsRequest request, StreamObserver<SearchEvaluationsResponse> responseObserver)
Searches evaluations within a project.
Parameters
searchExampleComparisons(SearchExampleComparisonsRequest request, StreamObserver<SearchExampleComparisonsResponse> responseObserver)
public void searchExampleComparisons(SearchExampleComparisonsRequest request, StreamObserver<SearchExampleComparisonsResponse> responseObserver)
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.
Parameters
updateEvaluationJob(UpdateEvaluationJobRequest request, StreamObserver<EvaluationJob> responseObserver)
public void updateEvaluationJob(UpdateEvaluationJobRequest request, StreamObserver<EvaluationJob> responseObserver)
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.
Parameters