Class GrpcDataLabelingServiceStub (0.167.0)

public class GrpcDataLabelingServiceStub extends DataLabelingServiceStub

gRPC stub implementation for the DataLabelingService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > DataLabelingServiceStub > GrpcDataLabelingServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcDataLabelingServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcDataLabelingServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcDataLabelingServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcDataLabelingServiceStub
Exceptions
Type Description
IOException

create(DataLabelingServiceStubSettings settings)

public static final GrpcDataLabelingServiceStub create(DataLabelingServiceStubSettings settings)
Parameter
Name Description
settings DataLabelingServiceStubSettings
Returns
Type Description
GrpcDataLabelingServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcDataLabelingServiceStub(DataLabelingServiceStubSettings settings, ClientContext clientContext)

protected GrpcDataLabelingServiceStub(DataLabelingServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcDataLabelingServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings DataLabelingServiceStubSettings
clientContext ClientContext

GrpcDataLabelingServiceStub(DataLabelingServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcDataLabelingServiceStub(DataLabelingServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcDataLabelingServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings DataLabelingServiceStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createAnnotationSpecSetCallable()

public UnaryCallable<CreateAnnotationSpecSetRequest,AnnotationSpecSet> createAnnotationSpecSetCallable()
Returns
Type Description
UnaryCallable<CreateAnnotationSpecSetRequest,AnnotationSpecSet>
Overrides

createDatasetCallable()

public UnaryCallable<CreateDatasetRequest,Dataset> createDatasetCallable()
Returns
Type Description
UnaryCallable<CreateDatasetRequest,Dataset>
Overrides

createEvaluationJobCallable()

public UnaryCallable<CreateEvaluationJobRequest,EvaluationJob> createEvaluationJobCallable()
Returns
Type Description
UnaryCallable<CreateEvaluationJobRequest,EvaluationJob>
Overrides

createInstructionCallable()

public UnaryCallable<CreateInstructionRequest,Operation> createInstructionCallable()
Returns
Type Description
UnaryCallable<CreateInstructionRequest,Operation>
Overrides

createInstructionOperationCallable()

public OperationCallable<CreateInstructionRequest,Instruction,CreateInstructionMetadata> createInstructionOperationCallable()
Returns
Type Description
OperationCallable<CreateInstructionRequest,Instruction,CreateInstructionMetadata>
Overrides

deleteAnnotatedDatasetCallable()

public UnaryCallable<DeleteAnnotatedDatasetRequest,Empty> deleteAnnotatedDatasetCallable()
Returns
Type Description
UnaryCallable<DeleteAnnotatedDatasetRequest,Empty>
Overrides

deleteAnnotationSpecSetCallable()

public UnaryCallable<DeleteAnnotationSpecSetRequest,Empty> deleteAnnotationSpecSetCallable()
Returns
Type Description
UnaryCallable<DeleteAnnotationSpecSetRequest,Empty>
Overrides

deleteDatasetCallable()

public UnaryCallable<DeleteDatasetRequest,Empty> deleteDatasetCallable()
Returns
Type Description
UnaryCallable<DeleteDatasetRequest,Empty>
Overrides

deleteEvaluationJobCallable()

public UnaryCallable<DeleteEvaluationJobRequest,Empty> deleteEvaluationJobCallable()
Returns
Type Description
UnaryCallable<DeleteEvaluationJobRequest,Empty>
Overrides

deleteInstructionCallable()

public UnaryCallable<DeleteInstructionRequest,Empty> deleteInstructionCallable()
Returns
Type Description
UnaryCallable<DeleteInstructionRequest,Empty>
Overrides

exportDataCallable()

public UnaryCallable<ExportDataRequest,Operation> exportDataCallable()
Returns
Type Description
UnaryCallable<ExportDataRequest,Operation>
Overrides

exportDataOperationCallable()

public OperationCallable<ExportDataRequest,ExportDataOperationResponse,ExportDataOperationMetadata> exportDataOperationCallable()
Returns
Type Description
OperationCallable<ExportDataRequest,ExportDataOperationResponse,ExportDataOperationMetadata>
Overrides

getAnnotatedDatasetCallable()

public UnaryCallable<GetAnnotatedDatasetRequest,AnnotatedDataset> getAnnotatedDatasetCallable()
Returns
Type Description
UnaryCallable<GetAnnotatedDatasetRequest,AnnotatedDataset>
Overrides

getAnnotationSpecSetCallable()

public UnaryCallable<GetAnnotationSpecSetRequest,AnnotationSpecSet> getAnnotationSpecSetCallable()
Returns
Type Description
UnaryCallable<GetAnnotationSpecSetRequest,AnnotationSpecSet>
Overrides

getDataItemCallable()

public UnaryCallable<GetDataItemRequest,DataItem> getDataItemCallable()
Returns
Type Description
UnaryCallable<GetDataItemRequest,DataItem>
Overrides

getDatasetCallable()

public UnaryCallable<GetDatasetRequest,Dataset> getDatasetCallable()
Returns
Type Description
UnaryCallable<GetDatasetRequest,Dataset>
Overrides

getEvaluationCallable()

public UnaryCallable<GetEvaluationRequest,Evaluation> getEvaluationCallable()
Returns
Type Description
UnaryCallable<GetEvaluationRequest,Evaluation>
Overrides

getEvaluationJobCallable()

public UnaryCallable<GetEvaluationJobRequest,EvaluationJob> getEvaluationJobCallable()
Returns
Type Description
UnaryCallable<GetEvaluationJobRequest,EvaluationJob>
Overrides

getExampleCallable()

public UnaryCallable<GetExampleRequest,Example> getExampleCallable()
Returns
Type Description
UnaryCallable<GetExampleRequest,Example>
Overrides

getInstructionCallable()

public UnaryCallable<GetInstructionRequest,Instruction> getInstructionCallable()
Returns
Type Description
UnaryCallable<GetInstructionRequest,Instruction>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

importDataCallable()

public UnaryCallable<ImportDataRequest,Operation> importDataCallable()
Returns
Type Description
UnaryCallable<ImportDataRequest,Operation>
Overrides

importDataOperationCallable()

public OperationCallable<ImportDataRequest,ImportDataOperationResponse,ImportDataOperationMetadata> importDataOperationCallable()
Returns
Type Description
OperationCallable<ImportDataRequest,ImportDataOperationResponse,ImportDataOperationMetadata>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

labelImageCallable()

public UnaryCallable<LabelImageRequest,Operation> labelImageCallable()
Returns
Type Description
UnaryCallable<LabelImageRequest,Operation>
Overrides

labelImageOperationCallable()

public OperationCallable<LabelImageRequest,AnnotatedDataset,LabelOperationMetadata> labelImageOperationCallable()
Returns
Type Description
OperationCallable<LabelImageRequest,AnnotatedDataset,LabelOperationMetadata>
Overrides

labelTextCallable()

public UnaryCallable<LabelTextRequest,Operation> labelTextCallable()
Returns
Type Description
UnaryCallable<LabelTextRequest,Operation>
Overrides

labelTextOperationCallable()

public OperationCallable<LabelTextRequest,AnnotatedDataset,LabelOperationMetadata> labelTextOperationCallable()
Returns
Type Description
OperationCallable<LabelTextRequest,AnnotatedDataset,LabelOperationMetadata>
Overrides

labelVideoCallable()

public UnaryCallable<LabelVideoRequest,Operation> labelVideoCallable()
Returns
Type Description
UnaryCallable<LabelVideoRequest,Operation>
Overrides

labelVideoOperationCallable()

public OperationCallable<LabelVideoRequest,AnnotatedDataset,LabelOperationMetadata> labelVideoOperationCallable()
Returns
Type Description
OperationCallable<LabelVideoRequest,AnnotatedDataset,LabelOperationMetadata>
Overrides

listAnnotatedDatasetsCallable()

public UnaryCallable<ListAnnotatedDatasetsRequest,ListAnnotatedDatasetsResponse> listAnnotatedDatasetsCallable()
Returns
Type Description
UnaryCallable<ListAnnotatedDatasetsRequest,ListAnnotatedDatasetsResponse>
Overrides

listAnnotatedDatasetsPagedCallable()

public UnaryCallable<ListAnnotatedDatasetsRequest,DataLabelingServiceClient.ListAnnotatedDatasetsPagedResponse> listAnnotatedDatasetsPagedCallable()
Returns
Type Description
UnaryCallable<ListAnnotatedDatasetsRequest,ListAnnotatedDatasetsPagedResponse>
Overrides

listAnnotationSpecSetsCallable()

public UnaryCallable<ListAnnotationSpecSetsRequest,ListAnnotationSpecSetsResponse> listAnnotationSpecSetsCallable()
Returns
Type Description
UnaryCallable<ListAnnotationSpecSetsRequest,ListAnnotationSpecSetsResponse>
Overrides

listAnnotationSpecSetsPagedCallable()

public UnaryCallable<ListAnnotationSpecSetsRequest,DataLabelingServiceClient.ListAnnotationSpecSetsPagedResponse> listAnnotationSpecSetsPagedCallable()
Returns
Type Description
UnaryCallable<ListAnnotationSpecSetsRequest,ListAnnotationSpecSetsPagedResponse>
Overrides

listDataItemsCallable()

public UnaryCallable<ListDataItemsRequest,ListDataItemsResponse> listDataItemsCallable()
Returns
Type Description
UnaryCallable<ListDataItemsRequest,ListDataItemsResponse>
Overrides

listDataItemsPagedCallable()

public UnaryCallable<ListDataItemsRequest,DataLabelingServiceClient.ListDataItemsPagedResponse> listDataItemsPagedCallable()
Returns
Type Description
UnaryCallable<ListDataItemsRequest,ListDataItemsPagedResponse>
Overrides

listDatasetsCallable()

public UnaryCallable<ListDatasetsRequest,ListDatasetsResponse> listDatasetsCallable()
Returns
Type Description
UnaryCallable<ListDatasetsRequest,ListDatasetsResponse>
Overrides

listDatasetsPagedCallable()

public UnaryCallable<ListDatasetsRequest,DataLabelingServiceClient.ListDatasetsPagedResponse> listDatasetsPagedCallable()
Returns
Type Description
UnaryCallable<ListDatasetsRequest,ListDatasetsPagedResponse>
Overrides

listEvaluationJobsCallable()

public UnaryCallable<ListEvaluationJobsRequest,ListEvaluationJobsResponse> listEvaluationJobsCallable()
Returns
Type Description
UnaryCallable<ListEvaluationJobsRequest,ListEvaluationJobsResponse>
Overrides

listEvaluationJobsPagedCallable()

public UnaryCallable<ListEvaluationJobsRequest,DataLabelingServiceClient.ListEvaluationJobsPagedResponse> listEvaluationJobsPagedCallable()
Returns
Type Description
UnaryCallable<ListEvaluationJobsRequest,ListEvaluationJobsPagedResponse>
Overrides

listExamplesCallable()

public UnaryCallable<ListExamplesRequest,ListExamplesResponse> listExamplesCallable()
Returns
Type Description
UnaryCallable<ListExamplesRequest,ListExamplesResponse>
Overrides

listExamplesPagedCallable()

public UnaryCallable<ListExamplesRequest,DataLabelingServiceClient.ListExamplesPagedResponse> listExamplesPagedCallable()
Returns
Type Description
UnaryCallable<ListExamplesRequest,ListExamplesPagedResponse>
Overrides

listInstructionsCallable()

public UnaryCallable<ListInstructionsRequest,ListInstructionsResponse> listInstructionsCallable()
Returns
Type Description
UnaryCallable<ListInstructionsRequest,ListInstructionsResponse>
Overrides

listInstructionsPagedCallable()

public UnaryCallable<ListInstructionsRequest,DataLabelingServiceClient.ListInstructionsPagedResponse> listInstructionsPagedCallable()
Returns
Type Description
UnaryCallable<ListInstructionsRequest,ListInstructionsPagedResponse>
Overrides

pauseEvaluationJobCallable()

public UnaryCallable<PauseEvaluationJobRequest,Empty> pauseEvaluationJobCallable()
Returns
Type Description
UnaryCallable<PauseEvaluationJobRequest,Empty>
Overrides

resumeEvaluationJobCallable()

public UnaryCallable<ResumeEvaluationJobRequest,Empty> resumeEvaluationJobCallable()
Returns
Type Description
UnaryCallable<ResumeEvaluationJobRequest,Empty>
Overrides

searchEvaluationsCallable()

public UnaryCallable<SearchEvaluationsRequest,SearchEvaluationsResponse> searchEvaluationsCallable()
Returns
Type Description
UnaryCallable<SearchEvaluationsRequest,SearchEvaluationsResponse>
Overrides

searchEvaluationsPagedCallable()

public UnaryCallable<SearchEvaluationsRequest,DataLabelingServiceClient.SearchEvaluationsPagedResponse> searchEvaluationsPagedCallable()
Returns
Type Description
UnaryCallable<SearchEvaluationsRequest,SearchEvaluationsPagedResponse>
Overrides

searchExampleComparisonsCallable()

public UnaryCallable<SearchExampleComparisonsRequest,SearchExampleComparisonsResponse> searchExampleComparisonsCallable()
Returns
Type Description
UnaryCallable<SearchExampleComparisonsRequest,SearchExampleComparisonsResponse>
Overrides

searchExampleComparisonsPagedCallable()

public UnaryCallable<SearchExampleComparisonsRequest,DataLabelingServiceClient.SearchExampleComparisonsPagedResponse> searchExampleComparisonsPagedCallable()
Returns
Type Description
UnaryCallable<SearchExampleComparisonsRequest,SearchExampleComparisonsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateEvaluationJobCallable()

public UnaryCallable<UpdateEvaluationJobRequest,EvaluationJob> updateEvaluationJobCallable()
Returns
Type Description
UnaryCallable<UpdateEvaluationJobRequest,EvaluationJob>
Overrides