Class GrpcDataLabelingServiceStub
- java.lang.Object
-
- com.google.cloud.datalabeling.v1beta1.stub.DataLabelingServiceStub
-
- com.google.cloud.datalabeling.v1beta1.stub.GrpcDataLabelingServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcDataLabelingServiceStub(DataLabelingServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcDataLabelingServiceStub, using the given settings.protected
GrpcDataLabelingServiceStub(DataLabelingServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcDataLabelingServiceStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
GrpcDataLabelingServiceStub
protected GrpcDataLabelingServiceStub(DataLabelingServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
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.- Throws:
IOException
-
GrpcDataLabelingServiceStub
protected GrpcDataLabelingServiceStub(DataLabelingServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
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.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcDataLabelingServiceStub create(DataLabelingServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcDataLabelingServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcDataLabelingServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStub
in classDataLabelingServiceStub
-
createDatasetCallable
public com.google.api.gax.rpc.UnaryCallable<CreateDatasetRequest,Dataset> createDatasetCallable()
- Overrides:
createDatasetCallable
in classDataLabelingServiceStub
-
getDatasetCallable
public com.google.api.gax.rpc.UnaryCallable<GetDatasetRequest,Dataset> getDatasetCallable()
- Overrides:
getDatasetCallable
in classDataLabelingServiceStub
-
listDatasetsCallable
public com.google.api.gax.rpc.UnaryCallable<ListDatasetsRequest,ListDatasetsResponse> listDatasetsCallable()
- Overrides:
listDatasetsCallable
in classDataLabelingServiceStub
-
listDatasetsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListDatasetsRequest,DataLabelingServiceClient.ListDatasetsPagedResponse> listDatasetsPagedCallable()
- Overrides:
listDatasetsPagedCallable
in classDataLabelingServiceStub
-
deleteDatasetCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteDatasetRequest,com.google.protobuf.Empty> deleteDatasetCallable()
- Overrides:
deleteDatasetCallable
in classDataLabelingServiceStub
-
importDataCallable
public com.google.api.gax.rpc.UnaryCallable<ImportDataRequest,com.google.longrunning.Operation> importDataCallable()
- Overrides:
importDataCallable
in classDataLabelingServiceStub
-
importDataOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportDataRequest,ImportDataOperationResponse,ImportDataOperationMetadata> importDataOperationCallable()
- Overrides:
importDataOperationCallable
in classDataLabelingServiceStub
-
exportDataCallable
public com.google.api.gax.rpc.UnaryCallable<ExportDataRequest,com.google.longrunning.Operation> exportDataCallable()
- Overrides:
exportDataCallable
in classDataLabelingServiceStub
-
exportDataOperationCallable
public com.google.api.gax.rpc.OperationCallable<ExportDataRequest,ExportDataOperationResponse,ExportDataOperationMetadata> exportDataOperationCallable()
- Overrides:
exportDataOperationCallable
in classDataLabelingServiceStub
-
getDataItemCallable
public com.google.api.gax.rpc.UnaryCallable<GetDataItemRequest,DataItem> getDataItemCallable()
- Overrides:
getDataItemCallable
in classDataLabelingServiceStub
-
listDataItemsCallable
public com.google.api.gax.rpc.UnaryCallable<ListDataItemsRequest,ListDataItemsResponse> listDataItemsCallable()
- Overrides:
listDataItemsCallable
in classDataLabelingServiceStub
-
listDataItemsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListDataItemsRequest,DataLabelingServiceClient.ListDataItemsPagedResponse> listDataItemsPagedCallable()
- Overrides:
listDataItemsPagedCallable
in classDataLabelingServiceStub
-
getAnnotatedDatasetCallable
public com.google.api.gax.rpc.UnaryCallable<GetAnnotatedDatasetRequest,AnnotatedDataset> getAnnotatedDatasetCallable()
- Overrides:
getAnnotatedDatasetCallable
in classDataLabelingServiceStub
-
listAnnotatedDatasetsCallable
public com.google.api.gax.rpc.UnaryCallable<ListAnnotatedDatasetsRequest,ListAnnotatedDatasetsResponse> listAnnotatedDatasetsCallable()
- Overrides:
listAnnotatedDatasetsCallable
in classDataLabelingServiceStub
-
listAnnotatedDatasetsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListAnnotatedDatasetsRequest,DataLabelingServiceClient.ListAnnotatedDatasetsPagedResponse> listAnnotatedDatasetsPagedCallable()
- Overrides:
listAnnotatedDatasetsPagedCallable
in classDataLabelingServiceStub
-
deleteAnnotatedDatasetCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteAnnotatedDatasetRequest,com.google.protobuf.Empty> deleteAnnotatedDatasetCallable()
- Overrides:
deleteAnnotatedDatasetCallable
in classDataLabelingServiceStub
-
labelImageCallable
public com.google.api.gax.rpc.UnaryCallable<LabelImageRequest,com.google.longrunning.Operation> labelImageCallable()
- Overrides:
labelImageCallable
in classDataLabelingServiceStub
-
labelImageOperationCallable
public com.google.api.gax.rpc.OperationCallable<LabelImageRequest,AnnotatedDataset,LabelOperationMetadata> labelImageOperationCallable()
- Overrides:
labelImageOperationCallable
in classDataLabelingServiceStub
-
labelVideoCallable
public com.google.api.gax.rpc.UnaryCallable<LabelVideoRequest,com.google.longrunning.Operation> labelVideoCallable()
- Overrides:
labelVideoCallable
in classDataLabelingServiceStub
-
labelVideoOperationCallable
public com.google.api.gax.rpc.OperationCallable<LabelVideoRequest,AnnotatedDataset,LabelOperationMetadata> labelVideoOperationCallable()
- Overrides:
labelVideoOperationCallable
in classDataLabelingServiceStub
-
labelTextCallable
public com.google.api.gax.rpc.UnaryCallable<LabelTextRequest,com.google.longrunning.Operation> labelTextCallable()
- Overrides:
labelTextCallable
in classDataLabelingServiceStub
-
labelTextOperationCallable
public com.google.api.gax.rpc.OperationCallable<LabelTextRequest,AnnotatedDataset,LabelOperationMetadata> labelTextOperationCallable()
- Overrides:
labelTextOperationCallable
in classDataLabelingServiceStub
-
getExampleCallable
public com.google.api.gax.rpc.UnaryCallable<GetExampleRequest,Example> getExampleCallable()
- Overrides:
getExampleCallable
in classDataLabelingServiceStub
-
listExamplesCallable
public com.google.api.gax.rpc.UnaryCallable<ListExamplesRequest,ListExamplesResponse> listExamplesCallable()
- Overrides:
listExamplesCallable
in classDataLabelingServiceStub
-
listExamplesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListExamplesRequest,DataLabelingServiceClient.ListExamplesPagedResponse> listExamplesPagedCallable()
- Overrides:
listExamplesPagedCallable
in classDataLabelingServiceStub
-
createAnnotationSpecSetCallable
public com.google.api.gax.rpc.UnaryCallable<CreateAnnotationSpecSetRequest,AnnotationSpecSet> createAnnotationSpecSetCallable()
- Overrides:
createAnnotationSpecSetCallable
in classDataLabelingServiceStub
-
getAnnotationSpecSetCallable
public com.google.api.gax.rpc.UnaryCallable<GetAnnotationSpecSetRequest,AnnotationSpecSet> getAnnotationSpecSetCallable()
- Overrides:
getAnnotationSpecSetCallable
in classDataLabelingServiceStub
-
listAnnotationSpecSetsCallable
public com.google.api.gax.rpc.UnaryCallable<ListAnnotationSpecSetsRequest,ListAnnotationSpecSetsResponse> listAnnotationSpecSetsCallable()
- Overrides:
listAnnotationSpecSetsCallable
in classDataLabelingServiceStub
-
listAnnotationSpecSetsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListAnnotationSpecSetsRequest,DataLabelingServiceClient.ListAnnotationSpecSetsPagedResponse> listAnnotationSpecSetsPagedCallable()
- Overrides:
listAnnotationSpecSetsPagedCallable
in classDataLabelingServiceStub
-
deleteAnnotationSpecSetCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteAnnotationSpecSetRequest,com.google.protobuf.Empty> deleteAnnotationSpecSetCallable()
- Overrides:
deleteAnnotationSpecSetCallable
in classDataLabelingServiceStub
-
createInstructionCallable
public com.google.api.gax.rpc.UnaryCallable<CreateInstructionRequest,com.google.longrunning.Operation> createInstructionCallable()
- Overrides:
createInstructionCallable
in classDataLabelingServiceStub
-
createInstructionOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateInstructionRequest,Instruction,CreateInstructionMetadata> createInstructionOperationCallable()
- Overrides:
createInstructionOperationCallable
in classDataLabelingServiceStub
-
getInstructionCallable
public com.google.api.gax.rpc.UnaryCallable<GetInstructionRequest,Instruction> getInstructionCallable()
- Overrides:
getInstructionCallable
in classDataLabelingServiceStub
-
listInstructionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstructionsRequest,ListInstructionsResponse> listInstructionsCallable()
- Overrides:
listInstructionsCallable
in classDataLabelingServiceStub
-
listInstructionsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListInstructionsRequest,DataLabelingServiceClient.ListInstructionsPagedResponse> listInstructionsPagedCallable()
- Overrides:
listInstructionsPagedCallable
in classDataLabelingServiceStub
-
deleteInstructionCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteInstructionRequest,com.google.protobuf.Empty> deleteInstructionCallable()
- Overrides:
deleteInstructionCallable
in classDataLabelingServiceStub
-
getEvaluationCallable
public com.google.api.gax.rpc.UnaryCallable<GetEvaluationRequest,Evaluation> getEvaluationCallable()
- Overrides:
getEvaluationCallable
in classDataLabelingServiceStub
-
searchEvaluationsCallable
public com.google.api.gax.rpc.UnaryCallable<SearchEvaluationsRequest,SearchEvaluationsResponse> searchEvaluationsCallable()
- Overrides:
searchEvaluationsCallable
in classDataLabelingServiceStub
-
searchEvaluationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<SearchEvaluationsRequest,DataLabelingServiceClient.SearchEvaluationsPagedResponse> searchEvaluationsPagedCallable()
- Overrides:
searchEvaluationsPagedCallable
in classDataLabelingServiceStub
-
searchExampleComparisonsCallable
public com.google.api.gax.rpc.UnaryCallable<SearchExampleComparisonsRequest,SearchExampleComparisonsResponse> searchExampleComparisonsCallable()
- Overrides:
searchExampleComparisonsCallable
in classDataLabelingServiceStub
-
searchExampleComparisonsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<SearchExampleComparisonsRequest,DataLabelingServiceClient.SearchExampleComparisonsPagedResponse> searchExampleComparisonsPagedCallable()
- Overrides:
searchExampleComparisonsPagedCallable
in classDataLabelingServiceStub
-
createEvaluationJobCallable
public com.google.api.gax.rpc.UnaryCallable<CreateEvaluationJobRequest,EvaluationJob> createEvaluationJobCallable()
- Overrides:
createEvaluationJobCallable
in classDataLabelingServiceStub
-
updateEvaluationJobCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateEvaluationJobRequest,EvaluationJob> updateEvaluationJobCallable()
- Overrides:
updateEvaluationJobCallable
in classDataLabelingServiceStub
-
getEvaluationJobCallable
public com.google.api.gax.rpc.UnaryCallable<GetEvaluationJobRequest,EvaluationJob> getEvaluationJobCallable()
- Overrides:
getEvaluationJobCallable
in classDataLabelingServiceStub
-
pauseEvaluationJobCallable
public com.google.api.gax.rpc.UnaryCallable<PauseEvaluationJobRequest,com.google.protobuf.Empty> pauseEvaluationJobCallable()
- Overrides:
pauseEvaluationJobCallable
in classDataLabelingServiceStub
-
resumeEvaluationJobCallable
public com.google.api.gax.rpc.UnaryCallable<ResumeEvaluationJobRequest,com.google.protobuf.Empty> resumeEvaluationJobCallable()
- Overrides:
resumeEvaluationJobCallable
in classDataLabelingServiceStub
-
deleteEvaluationJobCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteEvaluationJobRequest,com.google.protobuf.Empty> deleteEvaluationJobCallable()
- Overrides:
deleteEvaluationJobCallable
in classDataLabelingServiceStub
-
listEvaluationJobsCallable
public com.google.api.gax.rpc.UnaryCallable<ListEvaluationJobsRequest,ListEvaluationJobsResponse> listEvaluationJobsCallable()
- Overrides:
listEvaluationJobsCallable
in classDataLabelingServiceStub
-
listEvaluationJobsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListEvaluationJobsRequest,DataLabelingServiceClient.ListEvaluationJobsPagedResponse> listEvaluationJobsPagedCallable()
- Overrides:
listEvaluationJobsPagedCallable
in classDataLabelingServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classDataLabelingServiceStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-