Class GrpcDataLabelingServiceStub (0.140.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
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcDataLabelingServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcDataLabelingServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcDataLabelingServiceStub
Exceptions
TypeDescription
IOException

create(DataLabelingServiceStubSettings settings)

public static final GrpcDataLabelingServiceStub create(DataLabelingServiceStubSettings settings)
Parameter
NameDescription
settingsDataLabelingServiceStubSettings
Returns
TypeDescription
GrpcDataLabelingServiceStub
Exceptions
TypeDescription
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
NameDescription
settingsDataLabelingServiceStubSettings
clientContextClientContext

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
NameDescription
settingsDataLabelingServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createAnnotationSpecSetCallable()

public UnaryCallable<CreateAnnotationSpecSetRequest,AnnotationSpecSet> createAnnotationSpecSetCallable()
Overrides

createDatasetCallable()

public UnaryCallable<CreateDatasetRequest,Dataset> createDatasetCallable()
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()
Overrides

deleteEvaluationJobCallable()

public UnaryCallable<DeleteEvaluationJobRequest,Empty> deleteEvaluationJobCallable()
Overrides

deleteInstructionCallable()

public UnaryCallable<DeleteInstructionRequest,Empty> deleteInstructionCallable()
Overrides

exportDataCallable()

public UnaryCallable<ExportDataRequest,Operation> exportDataCallable()
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()
Overrides

getDatasetCallable()

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

getEvaluationCallable()

public UnaryCallable<GetEvaluationRequest,Evaluation> getEvaluationCallable()
Overrides

getEvaluationJobCallable()

public UnaryCallable<GetEvaluationJobRequest,EvaluationJob> getEvaluationJobCallable()
Overrides

getExampleCallable()

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

getInstructionCallable()

public UnaryCallable<GetInstructionRequest,Instruction> getInstructionCallable()
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

importDataCallable()

public UnaryCallable<ImportDataRequest,Operation> importDataCallable()
Overrides

importDataOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

labelImageCallable()

public UnaryCallable<LabelImageRequest,Operation> labelImageCallable()
Overrides

labelImageOperationCallable()

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

labelTextCallable()

public UnaryCallable<LabelTextRequest,Operation> labelTextCallable()
Overrides

labelTextOperationCallable()

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

labelVideoCallable()

public UnaryCallable<LabelVideoRequest,Operation> labelVideoCallable()
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()
Overrides

resumeEvaluationJobCallable()

public UnaryCallable<ResumeEvaluationJobRequest,Empty> resumeEvaluationJobCallable()
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