Class DataLabelingServiceStubSettings
- java.lang.Object
-
- com.google.api.gax.rpc.StubSettings<DataLabelingServiceStubSettings>
-
- com.google.cloud.datalabeling.v1beta1.stub.DataLabelingServiceStubSettings
-
@BetaApi @Generated("by gapic-generator-java") public class DataLabelingServiceStubSettings extends com.google.api.gax.rpc.StubSettings<DataLabelingServiceStubSettings>
Settings class to configure an instance ofDataLabelingServiceStub
.The default instance has everything set to sensible defaults:
- The default service address (datalabeling.googleapis.com) and default port (443) are used.
- Credentials are acquired automatically through Application Default Credentials.
- Retries are configured for idempotent methods but not for non-idempotent methods.
The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.
For example, to set the total timeout of createDataset to 30 seconds:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library DataLabelingServiceStubSettings.Builder dataLabelingServiceSettingsBuilder = DataLabelingServiceStubSettings.newBuilder(); dataLabelingServiceSettingsBuilder .createDatasetSettings() .setRetrySettings( dataLabelingServiceSettingsBuilder .createDatasetSettings() .getRetrySettings() .toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); DataLabelingServiceStubSettings dataLabelingServiceSettings = dataLabelingServiceSettingsBuilder.build();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataLabelingServiceStubSettings.Builder
Builder for DataLabelingServiceStubSettings.
-
Constructor Summary
Constructors Modifier Constructor Description protected
DataLabelingServiceStubSettings(DataLabelingServiceStubSettings.Builder settingsBuilder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.gax.rpc.UnaryCallSettings<CreateAnnotationSpecSetRequest,AnnotationSpecSet>
createAnnotationSpecSetSettings()
Returns the object with the settings used for calls to createAnnotationSpecSet.com.google.api.gax.rpc.UnaryCallSettings<CreateDatasetRequest,Dataset>
createDatasetSettings()
Returns the object with the settings used for calls to createDataset.com.google.api.gax.rpc.UnaryCallSettings<CreateEvaluationJobRequest,EvaluationJob>
createEvaluationJobSettings()
Returns the object with the settings used for calls to createEvaluationJob.com.google.api.gax.rpc.OperationCallSettings<CreateInstructionRequest,Instruction,CreateInstructionMetadata>
createInstructionOperationSettings()
Returns the object with the settings used for calls to createInstruction.com.google.api.gax.rpc.UnaryCallSettings<CreateInstructionRequest,com.google.longrunning.Operation>
createInstructionSettings()
Returns the object with the settings used for calls to createInstruction.DataLabelingServiceStub
createStub()
static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder
defaultApiClientHeaderProviderBuilder()
static com.google.api.gax.core.GoogleCredentialsProvider.Builder
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.static com.google.api.gax.core.InstantiatingExecutorProvider.Builder
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder
defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.static com.google.api.gax.rpc.TransportChannelProvider
defaultTransportChannelProvider()
com.google.api.gax.rpc.UnaryCallSettings<DeleteAnnotatedDatasetRequest,com.google.protobuf.Empty>
deleteAnnotatedDatasetSettings()
Returns the object with the settings used for calls to deleteAnnotatedDataset.com.google.api.gax.rpc.UnaryCallSettings<DeleteAnnotationSpecSetRequest,com.google.protobuf.Empty>
deleteAnnotationSpecSetSettings()
Returns the object with the settings used for calls to deleteAnnotationSpecSet.com.google.api.gax.rpc.UnaryCallSettings<DeleteDatasetRequest,com.google.protobuf.Empty>
deleteDatasetSettings()
Returns the object with the settings used for calls to deleteDataset.com.google.api.gax.rpc.UnaryCallSettings<DeleteEvaluationJobRequest,com.google.protobuf.Empty>
deleteEvaluationJobSettings()
Returns the object with the settings used for calls to deleteEvaluationJob.com.google.api.gax.rpc.UnaryCallSettings<DeleteInstructionRequest,com.google.protobuf.Empty>
deleteInstructionSettings()
Returns the object with the settings used for calls to deleteInstruction.com.google.api.gax.rpc.OperationCallSettings<ExportDataRequest,ExportDataOperationResponse,ExportDataOperationMetadata>
exportDataOperationSettings()
Returns the object with the settings used for calls to exportData.com.google.api.gax.rpc.UnaryCallSettings<ExportDataRequest,com.google.longrunning.Operation>
exportDataSettings()
Returns the object with the settings used for calls to exportData.com.google.api.gax.rpc.UnaryCallSettings<GetAnnotatedDatasetRequest,AnnotatedDataset>
getAnnotatedDatasetSettings()
Returns the object with the settings used for calls to getAnnotatedDataset.com.google.api.gax.rpc.UnaryCallSettings<GetAnnotationSpecSetRequest,AnnotationSpecSet>
getAnnotationSpecSetSettings()
Returns the object with the settings used for calls to getAnnotationSpecSet.com.google.api.gax.rpc.UnaryCallSettings<GetDataItemRequest,DataItem>
getDataItemSettings()
Returns the object with the settings used for calls to getDataItem.com.google.api.gax.rpc.UnaryCallSettings<GetDatasetRequest,Dataset>
getDatasetSettings()
Returns the object with the settings used for calls to getDataset.static String
getDefaultEndpoint()
Returns the default service endpoint.static String
getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.static List<String>
getDefaultServiceScopes()
Returns the default service scopes.com.google.api.gax.rpc.UnaryCallSettings<GetEvaluationJobRequest,EvaluationJob>
getEvaluationJobSettings()
Returns the object with the settings used for calls to getEvaluationJob.com.google.api.gax.rpc.UnaryCallSettings<GetEvaluationRequest,Evaluation>
getEvaluationSettings()
Returns the object with the settings used for calls to getEvaluation.com.google.api.gax.rpc.UnaryCallSettings<GetExampleRequest,Example>
getExampleSettings()
Returns the object with the settings used for calls to getExample.com.google.api.gax.rpc.UnaryCallSettings<GetInstructionRequest,Instruction>
getInstructionSettings()
Returns the object with the settings used for calls to getInstruction.com.google.api.gax.rpc.OperationCallSettings<ImportDataRequest,ImportDataOperationResponse,ImportDataOperationMetadata>
importDataOperationSettings()
Returns the object with the settings used for calls to importData.com.google.api.gax.rpc.UnaryCallSettings<ImportDataRequest,com.google.longrunning.Operation>
importDataSettings()
Returns the object with the settings used for calls to importData.com.google.api.gax.rpc.OperationCallSettings<LabelImageRequest,AnnotatedDataset,LabelOperationMetadata>
labelImageOperationSettings()
Returns the object with the settings used for calls to labelImage.com.google.api.gax.rpc.UnaryCallSettings<LabelImageRequest,com.google.longrunning.Operation>
labelImageSettings()
Returns the object with the settings used for calls to labelImage.com.google.api.gax.rpc.OperationCallSettings<LabelTextRequest,AnnotatedDataset,LabelOperationMetadata>
labelTextOperationSettings()
Returns the object with the settings used for calls to labelText.com.google.api.gax.rpc.UnaryCallSettings<LabelTextRequest,com.google.longrunning.Operation>
labelTextSettings()
Returns the object with the settings used for calls to labelText.com.google.api.gax.rpc.OperationCallSettings<LabelVideoRequest,AnnotatedDataset,LabelOperationMetadata>
labelVideoOperationSettings()
Returns the object with the settings used for calls to labelVideo.com.google.api.gax.rpc.UnaryCallSettings<LabelVideoRequest,com.google.longrunning.Operation>
labelVideoSettings()
Returns the object with the settings used for calls to labelVideo.com.google.api.gax.rpc.PagedCallSettings<ListAnnotatedDatasetsRequest,ListAnnotatedDatasetsResponse,DataLabelingServiceClient.ListAnnotatedDatasetsPagedResponse>
listAnnotatedDatasetsSettings()
Returns the object with the settings used for calls to listAnnotatedDatasets.com.google.api.gax.rpc.PagedCallSettings<ListAnnotationSpecSetsRequest,ListAnnotationSpecSetsResponse,DataLabelingServiceClient.ListAnnotationSpecSetsPagedResponse>
listAnnotationSpecSetsSettings()
Returns the object with the settings used for calls to listAnnotationSpecSets.com.google.api.gax.rpc.PagedCallSettings<ListDataItemsRequest,ListDataItemsResponse,DataLabelingServiceClient.ListDataItemsPagedResponse>
listDataItemsSettings()
Returns the object with the settings used for calls to listDataItems.com.google.api.gax.rpc.PagedCallSettings<ListDatasetsRequest,ListDatasetsResponse,DataLabelingServiceClient.ListDatasetsPagedResponse>
listDatasetsSettings()
Returns the object with the settings used for calls to listDatasets.com.google.api.gax.rpc.PagedCallSettings<ListEvaluationJobsRequest,ListEvaluationJobsResponse,DataLabelingServiceClient.ListEvaluationJobsPagedResponse>
listEvaluationJobsSettings()
Returns the object with the settings used for calls to listEvaluationJobs.com.google.api.gax.rpc.PagedCallSettings<ListExamplesRequest,ListExamplesResponse,DataLabelingServiceClient.ListExamplesPagedResponse>
listExamplesSettings()
Returns the object with the settings used for calls to listExamples.com.google.api.gax.rpc.PagedCallSettings<ListInstructionsRequest,ListInstructionsResponse,DataLabelingServiceClient.ListInstructionsPagedResponse>
listInstructionsSettings()
Returns the object with the settings used for calls to listInstructions.static DataLabelingServiceStubSettings.Builder
newBuilder()
Returns a new builder for this class.static DataLabelingServiceStubSettings.Builder
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.com.google.api.gax.rpc.UnaryCallSettings<PauseEvaluationJobRequest,com.google.protobuf.Empty>
pauseEvaluationJobSettings()
Returns the object with the settings used for calls to pauseEvaluationJob.com.google.api.gax.rpc.UnaryCallSettings<ResumeEvaluationJobRequest,com.google.protobuf.Empty>
resumeEvaluationJobSettings()
Returns the object with the settings used for calls to resumeEvaluationJob.com.google.api.gax.rpc.PagedCallSettings<SearchEvaluationsRequest,SearchEvaluationsResponse,DataLabelingServiceClient.SearchEvaluationsPagedResponse>
searchEvaluationsSettings()
Returns the object with the settings used for calls to searchEvaluations.com.google.api.gax.rpc.PagedCallSettings<SearchExampleComparisonsRequest,SearchExampleComparisonsResponse,DataLabelingServiceClient.SearchExampleComparisonsPagedResponse>
searchExampleComparisonsSettings()
Returns the object with the settings used for calls to searchExampleComparisons.DataLabelingServiceStubSettings.Builder
toBuilder()
Returns a builder containing all the values of this settings class.com.google.api.gax.rpc.UnaryCallSettings<UpdateEvaluationJobRequest,EvaluationJob>
updateEvaluationJobSettings()
Returns the object with the settings used for calls to updateEvaluationJob.-
Methods inherited from class com.google.api.gax.rpc.StubSettings
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, toString
-
-
-
-
Constructor Detail
-
DataLabelingServiceStubSettings
protected DataLabelingServiceStubSettings(DataLabelingServiceStubSettings.Builder settingsBuilder) throws IOException
- Throws:
IOException
-
-
Method Detail
-
createDatasetSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateDatasetRequest,Dataset> createDatasetSettings()
Returns the object with the settings used for calls to createDataset.
-
getDatasetSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetDatasetRequest,Dataset> getDatasetSettings()
Returns the object with the settings used for calls to getDataset.
-
listDatasetsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListDatasetsRequest,ListDatasetsResponse,DataLabelingServiceClient.ListDatasetsPagedResponse> listDatasetsSettings()
Returns the object with the settings used for calls to listDatasets.
-
deleteDatasetSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteDatasetRequest,com.google.protobuf.Empty> deleteDatasetSettings()
Returns the object with the settings used for calls to deleteDataset.
-
importDataSettings
public com.google.api.gax.rpc.UnaryCallSettings<ImportDataRequest,com.google.longrunning.Operation> importDataSettings()
Returns the object with the settings used for calls to importData.
-
importDataOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<ImportDataRequest,ImportDataOperationResponse,ImportDataOperationMetadata> importDataOperationSettings()
Returns the object with the settings used for calls to importData.
-
exportDataSettings
public com.google.api.gax.rpc.UnaryCallSettings<ExportDataRequest,com.google.longrunning.Operation> exportDataSettings()
Returns the object with the settings used for calls to exportData.
-
exportDataOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<ExportDataRequest,ExportDataOperationResponse,ExportDataOperationMetadata> exportDataOperationSettings()
Returns the object with the settings used for calls to exportData.
-
getDataItemSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetDataItemRequest,DataItem> getDataItemSettings()
Returns the object with the settings used for calls to getDataItem.
-
listDataItemsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListDataItemsRequest,ListDataItemsResponse,DataLabelingServiceClient.ListDataItemsPagedResponse> listDataItemsSettings()
Returns the object with the settings used for calls to listDataItems.
-
getAnnotatedDatasetSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetAnnotatedDatasetRequest,AnnotatedDataset> getAnnotatedDatasetSettings()
Returns the object with the settings used for calls to getAnnotatedDataset.
-
listAnnotatedDatasetsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListAnnotatedDatasetsRequest,ListAnnotatedDatasetsResponse,DataLabelingServiceClient.ListAnnotatedDatasetsPagedResponse> listAnnotatedDatasetsSettings()
Returns the object with the settings used for calls to listAnnotatedDatasets.
-
deleteAnnotatedDatasetSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteAnnotatedDatasetRequest,com.google.protobuf.Empty> deleteAnnotatedDatasetSettings()
Returns the object with the settings used for calls to deleteAnnotatedDataset.
-
labelImageSettings
public com.google.api.gax.rpc.UnaryCallSettings<LabelImageRequest,com.google.longrunning.Operation> labelImageSettings()
Returns the object with the settings used for calls to labelImage.
-
labelImageOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<LabelImageRequest,AnnotatedDataset,LabelOperationMetadata> labelImageOperationSettings()
Returns the object with the settings used for calls to labelImage.
-
labelVideoSettings
public com.google.api.gax.rpc.UnaryCallSettings<LabelVideoRequest,com.google.longrunning.Operation> labelVideoSettings()
Returns the object with the settings used for calls to labelVideo.
-
labelVideoOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<LabelVideoRequest,AnnotatedDataset,LabelOperationMetadata> labelVideoOperationSettings()
Returns the object with the settings used for calls to labelVideo.
-
labelTextSettings
public com.google.api.gax.rpc.UnaryCallSettings<LabelTextRequest,com.google.longrunning.Operation> labelTextSettings()
Returns the object with the settings used for calls to labelText.
-
labelTextOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<LabelTextRequest,AnnotatedDataset,LabelOperationMetadata> labelTextOperationSettings()
Returns the object with the settings used for calls to labelText.
-
getExampleSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetExampleRequest,Example> getExampleSettings()
Returns the object with the settings used for calls to getExample.
-
listExamplesSettings
public com.google.api.gax.rpc.PagedCallSettings<ListExamplesRequest,ListExamplesResponse,DataLabelingServiceClient.ListExamplesPagedResponse> listExamplesSettings()
Returns the object with the settings used for calls to listExamples.
-
createAnnotationSpecSetSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateAnnotationSpecSetRequest,AnnotationSpecSet> createAnnotationSpecSetSettings()
Returns the object with the settings used for calls to createAnnotationSpecSet.
-
getAnnotationSpecSetSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetAnnotationSpecSetRequest,AnnotationSpecSet> getAnnotationSpecSetSettings()
Returns the object with the settings used for calls to getAnnotationSpecSet.
-
listAnnotationSpecSetsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListAnnotationSpecSetsRequest,ListAnnotationSpecSetsResponse,DataLabelingServiceClient.ListAnnotationSpecSetsPagedResponse> listAnnotationSpecSetsSettings()
Returns the object with the settings used for calls to listAnnotationSpecSets.
-
deleteAnnotationSpecSetSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteAnnotationSpecSetRequest,com.google.protobuf.Empty> deleteAnnotationSpecSetSettings()
Returns the object with the settings used for calls to deleteAnnotationSpecSet.
-
createInstructionSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateInstructionRequest,com.google.longrunning.Operation> createInstructionSettings()
Returns the object with the settings used for calls to createInstruction.
-
createInstructionOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateInstructionRequest,Instruction,CreateInstructionMetadata> createInstructionOperationSettings()
Returns the object with the settings used for calls to createInstruction.
-
getInstructionSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetInstructionRequest,Instruction> getInstructionSettings()
Returns the object with the settings used for calls to getInstruction.
-
listInstructionsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListInstructionsRequest,ListInstructionsResponse,DataLabelingServiceClient.ListInstructionsPagedResponse> listInstructionsSettings()
Returns the object with the settings used for calls to listInstructions.
-
deleteInstructionSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteInstructionRequest,com.google.protobuf.Empty> deleteInstructionSettings()
Returns the object with the settings used for calls to deleteInstruction.
-
getEvaluationSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetEvaluationRequest,Evaluation> getEvaluationSettings()
Returns the object with the settings used for calls to getEvaluation.
-
searchEvaluationsSettings
public com.google.api.gax.rpc.PagedCallSettings<SearchEvaluationsRequest,SearchEvaluationsResponse,DataLabelingServiceClient.SearchEvaluationsPagedResponse> searchEvaluationsSettings()
Returns the object with the settings used for calls to searchEvaluations.
-
searchExampleComparisonsSettings
public com.google.api.gax.rpc.PagedCallSettings<SearchExampleComparisonsRequest,SearchExampleComparisonsResponse,DataLabelingServiceClient.SearchExampleComparisonsPagedResponse> searchExampleComparisonsSettings()
Returns the object with the settings used for calls to searchExampleComparisons.
-
createEvaluationJobSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateEvaluationJobRequest,EvaluationJob> createEvaluationJobSettings()
Returns the object with the settings used for calls to createEvaluationJob.
-
updateEvaluationJobSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateEvaluationJobRequest,EvaluationJob> updateEvaluationJobSettings()
Returns the object with the settings used for calls to updateEvaluationJob.
-
getEvaluationJobSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetEvaluationJobRequest,EvaluationJob> getEvaluationJobSettings()
Returns the object with the settings used for calls to getEvaluationJob.
-
pauseEvaluationJobSettings
public com.google.api.gax.rpc.UnaryCallSettings<PauseEvaluationJobRequest,com.google.protobuf.Empty> pauseEvaluationJobSettings()
Returns the object with the settings used for calls to pauseEvaluationJob.
-
resumeEvaluationJobSettings
public com.google.api.gax.rpc.UnaryCallSettings<ResumeEvaluationJobRequest,com.google.protobuf.Empty> resumeEvaluationJobSettings()
Returns the object with the settings used for calls to resumeEvaluationJob.
-
deleteEvaluationJobSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteEvaluationJobRequest,com.google.protobuf.Empty> deleteEvaluationJobSettings()
Returns the object with the settings used for calls to deleteEvaluationJob.
-
listEvaluationJobsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListEvaluationJobsRequest,ListEvaluationJobsResponse,DataLabelingServiceClient.ListEvaluationJobsPagedResponse> listEvaluationJobsSettings()
Returns the object with the settings used for calls to listEvaluationJobs.
-
createStub
public DataLabelingServiceStub createStub() throws IOException
- Throws:
IOException
-
defaultExecutorProviderBuilder
public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
-
getDefaultEndpoint
public static String getDefaultEndpoint()
Returns the default service endpoint.
-
getDefaultMtlsEndpoint
public static String getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
-
getDefaultServiceScopes
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
-
defaultCredentialsProviderBuilder
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
-
defaultGrpcTransportProviderBuilder
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
-
defaultTransportChannelProvider
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
-
defaultApiClientHeaderProviderBuilder
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
-
newBuilder
public static DataLabelingServiceStubSettings.Builder newBuilder()
Returns a new builder for this class.
-
newBuilder
public static DataLabelingServiceStubSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
-
toBuilder
public DataLabelingServiceStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.- Specified by:
toBuilder
in classcom.google.api.gax.rpc.StubSettings<DataLabelingServiceStubSettings>
-
-