Class GrpcDataLabelingServiceStub (0.178.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()
Overrides

createDatasetCallable()

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

createEvaluationJobCallable()

public UnaryCallable<CreateEvaluationJobRequest,EvaluationJob> createEvaluationJobCallable()
Overrides

createInstructionCallable()

public UnaryCallable<CreateInstructionRequest,Operation> createInstructionCallable()
Overrides

createInstructionOperationCallable()

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

deleteAnnotatedDatasetCallable()

public UnaryCallable<DeleteAnnotatedDatasetRequest,Empty> deleteAnnotatedDatasetCallable()
Overrides

deleteAnnotationSpecSetCallable()

public UnaryCallable<DeleteAnnotationSpecSetRequest,Empty> deleteAnnotationSpecSetCallable()
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()
Overrides

getAnnotatedDatasetCallable()

public UnaryCallable<GetAnnotatedDatasetRequest,AnnotatedDataset> getAnnotatedDatasetCallable()
Overrides

getAnnotationSpecSetCallable()

public UnaryCallable<GetAnnotationSpecSetRequest,AnnotationSpecSet> getAnnotationSpecSetCallable()
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()
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()
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()
Overrides

labelTextCallable()

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

labelTextOperationCallable()

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

labelVideoCallable()

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

labelVideoOperationCallable()

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

listAnnotatedDatasetsCallable()

public UnaryCallable<ListAnnotatedDatasetsRequest,ListAnnotatedDatasetsResponse> listAnnotatedDatasetsCallable()
Overrides

listAnnotatedDatasetsPagedCallable()

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

listAnnotationSpecSetsCallable()

public UnaryCallable<ListAnnotationSpecSetsRequest,ListAnnotationSpecSetsResponse> listAnnotationSpecSetsCallable()
Overrides

listAnnotationSpecSetsPagedCallable()

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

listDataItemsCallable()

public UnaryCallable<ListDataItemsRequest,ListDataItemsResponse> listDataItemsCallable()
Overrides

listDataItemsPagedCallable()

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

listDatasetsCallable()

public UnaryCallable<ListDatasetsRequest,ListDatasetsResponse> listDatasetsCallable()
Overrides

listDatasetsPagedCallable()

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

listEvaluationJobsCallable()

public UnaryCallable<ListEvaluationJobsRequest,ListEvaluationJobsResponse> listEvaluationJobsCallable()
Overrides

listEvaluationJobsPagedCallable()

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

listExamplesCallable()

public UnaryCallable<ListExamplesRequest,ListExamplesResponse> listExamplesCallable()
Overrides

listExamplesPagedCallable()

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

listInstructionsCallable()

public UnaryCallable<ListInstructionsRequest,ListInstructionsResponse> listInstructionsCallable()
Overrides

listInstructionsPagedCallable()

public UnaryCallable<ListInstructionsRequest,DataLabelingServiceClient.ListInstructionsPagedResponse> listInstructionsPagedCallable()
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()
Overrides

searchEvaluationsPagedCallable()

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

searchExampleComparisonsCallable()

public UnaryCallable<SearchExampleComparisonsRequest,SearchExampleComparisonsResponse> searchExampleComparisonsCallable()
Overrides

searchExampleComparisonsPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateEvaluationJobCallable()

public UnaryCallable<UpdateEvaluationJobRequest,EvaluationJob> updateEvaluationJobCallable()
Overrides