Class GrpcDataLabelingServiceStub (0.133.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()
Returns
TypeDescription
UnaryCallable<CreateAnnotationSpecSetRequest,AnnotationSpecSet>
Overrides

createDatasetCallable()

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

createEvaluationJobCallable()

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

createInstructionCallable()

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

createInstructionOperationCallable()

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

deleteAnnotatedDatasetCallable()

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

deleteAnnotationSpecSetCallable()

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

deleteDatasetCallable()

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

deleteEvaluationJobCallable()

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

deleteInstructionCallable()

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

exportDataCallable()

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

exportDataOperationCallable()

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

getAnnotatedDatasetCallable()

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

getAnnotationSpecSetCallable()

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

getDataItemCallable()

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

getDatasetCallable()

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

getEvaluationCallable()

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

getEvaluationJobCallable()

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

getExampleCallable()

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

getInstructionCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

importDataCallable()

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

importDataOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

labelImageCallable()

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

labelImageOperationCallable()

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

labelTextCallable()

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

labelTextOperationCallable()

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

labelVideoCallable()

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

labelVideoOperationCallable()

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

listAnnotatedDatasetsCallable()

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

listAnnotatedDatasetsPagedCallable()

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

listAnnotationSpecSetsCallable()

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

listAnnotationSpecSetsPagedCallable()

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

listDataItemsCallable()

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

listDataItemsPagedCallable()

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

listDatasetsCallable()

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

listDatasetsPagedCallable()

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

listEvaluationJobsCallable()

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

listEvaluationJobsPagedCallable()

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

listExamplesCallable()

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

listExamplesPagedCallable()

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

listInstructionsCallable()

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

listInstructionsPagedCallable()

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

pauseEvaluationJobCallable()

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

resumeEvaluationJobCallable()

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

searchEvaluationsCallable()

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

searchEvaluationsPagedCallable()

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

searchExampleComparisonsCallable()

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

searchExampleComparisonsPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateEvaluationJobCallable()

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