- 0.175.0 (latest)
- 0.174.0
- 0.173.0
- 0.172.0
- 0.171.0
- 0.169.0
- 0.168.0
- 0.167.0
- 0.166.0
- 0.165.0
- 0.164.0
- 0.163.0
- 0.162.0
- 0.161.0
- 0.160.0
- 0.159.0
- 0.157.0
- 0.156.0
- 0.155.0
- 0.154.0
- 0.153.0
- 0.152.0
- 0.151.0
- 0.150.0
- 0.149.0
- 0.148.0
- 0.147.0
- 0.144.0
- 0.143.0
- 0.142.0
- 0.141.0
- 0.140.0
- 0.139.0
- 0.138.0
- 0.137.0
- 0.136.0
- 0.135.0
- 0.134.0
- 0.133.0
- 0.132.0
- 0.131.0
- 0.129.0
- 0.128.0
- 0.127.0
- 0.126.0
- 0.125.0
- 0.124.0
- 0.123.7
- 0.122.11
public class DataLabelingServiceSettings extends ClientSettings<DataLabelingServiceSettings>
Settings class to configure an instance of DataLabelingServiceClient.
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:
DataLabelingServiceSettings.Builder dataLabelingServiceSettingsBuilder =
DataLabelingServiceSettings.newBuilder();
dataLabelingServiceSettingsBuilder
.createDatasetSettings()
.setRetrySettings(
dataLabelingServiceSettingsBuilder
.createDatasetSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
DataLabelingServiceSettings dataLabelingServiceSettings =
dataLabelingServiceSettingsBuilder.build();
Static Methods
create(DataLabelingServiceStubSettings stub)
public static final DataLabelingServiceSettings create(DataLabelingServiceStubSettings stub)
Name | Description |
stub | DataLabelingServiceStubSettings |
Type | Description |
DataLabelingServiceSettings |
Type | Description |
IOException |
defaultApiClientHeaderProviderBuilder()
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Type | Description |
Builder |
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
Type | Description |
Builder |
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
Type | Description |
Builder |
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
Type | Description |
Builder |
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider()
Type | Description |
TransportChannelProvider |
getDefaultEndpoint()
public static String getDefaultEndpoint()
Returns the default service endpoint.
Type | Description |
String |
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
Type | Description |
List<String> |
newBuilder()
public static DataLabelingServiceSettings.Builder newBuilder()
Returns a new builder for this class.
Type | Description |
DataLabelingServiceSettings.Builder |
newBuilder(ClientContext clientContext)
public static DataLabelingServiceSettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
Name | Description |
clientContext | ClientContext |
Type | Description |
DataLabelingServiceSettings.Builder |
Constructors
DataLabelingServiceSettings(DataLabelingServiceSettings.Builder settingsBuilder)
protected DataLabelingServiceSettings(DataLabelingServiceSettings.Builder settingsBuilder)
Name | Description |
settingsBuilder | DataLabelingServiceSettings.Builder |
Methods
createAnnotationSpecSetSettings()
public UnaryCallSettings<CreateAnnotationSpecSetRequest,AnnotationSpecSet> createAnnotationSpecSetSettings()
Returns the object with the settings used for calls to createAnnotationSpecSet.
Type | Description |
UnaryCallSettings<CreateAnnotationSpecSetRequest,AnnotationSpecSet> |
createDatasetSettings()
public UnaryCallSettings<CreateDatasetRequest,Dataset> createDatasetSettings()
Returns the object with the settings used for calls to createDataset.
Type | Description |
UnaryCallSettings<CreateDatasetRequest,Dataset> |
createEvaluationJobSettings()
public UnaryCallSettings<CreateEvaluationJobRequest,EvaluationJob> createEvaluationJobSettings()
Returns the object with the settings used for calls to createEvaluationJob.
Type | Description |
UnaryCallSettings<CreateEvaluationJobRequest,EvaluationJob> |
createInstructionOperationSettings()
public OperationCallSettings<CreateInstructionRequest,Instruction,CreateInstructionMetadata> createInstructionOperationSettings()
Returns the object with the settings used for calls to createInstruction.
Type | Description |
OperationCallSettings<CreateInstructionRequest,Instruction,CreateInstructionMetadata> |
createInstructionSettings()
public UnaryCallSettings<CreateInstructionRequest,Operation> createInstructionSettings()
Returns the object with the settings used for calls to createInstruction.
Type | Description |
UnaryCallSettings<CreateInstructionRequest,Operation> |
deleteAnnotatedDatasetSettings()
public UnaryCallSettings<DeleteAnnotatedDatasetRequest,Empty> deleteAnnotatedDatasetSettings()
Returns the object with the settings used for calls to deleteAnnotatedDataset.
Type | Description |
UnaryCallSettings<DeleteAnnotatedDatasetRequest,Empty> |
deleteAnnotationSpecSetSettings()
public UnaryCallSettings<DeleteAnnotationSpecSetRequest,Empty> deleteAnnotationSpecSetSettings()
Returns the object with the settings used for calls to deleteAnnotationSpecSet.
Type | Description |
UnaryCallSettings<DeleteAnnotationSpecSetRequest,Empty> |
deleteDatasetSettings()
public UnaryCallSettings<DeleteDatasetRequest,Empty> deleteDatasetSettings()
Returns the object with the settings used for calls to deleteDataset.
Type | Description |
UnaryCallSettings<DeleteDatasetRequest,Empty> |
deleteEvaluationJobSettings()
public UnaryCallSettings<DeleteEvaluationJobRequest,Empty> deleteEvaluationJobSettings()
Returns the object with the settings used for calls to deleteEvaluationJob.
Type | Description |
UnaryCallSettings<DeleteEvaluationJobRequest,Empty> |
deleteInstructionSettings()
public UnaryCallSettings<DeleteInstructionRequest,Empty> deleteInstructionSettings()
Returns the object with the settings used for calls to deleteInstruction.
Type | Description |
UnaryCallSettings<DeleteInstructionRequest,Empty> |
exportDataOperationSettings()
public OperationCallSettings<ExportDataRequest,ExportDataOperationResponse,ExportDataOperationMetadata> exportDataOperationSettings()
Returns the object with the settings used for calls to exportData.
Type | Description |
OperationCallSettings<ExportDataRequest,ExportDataOperationResponse,ExportDataOperationMetadata> |
exportDataSettings()
public UnaryCallSettings<ExportDataRequest,Operation> exportDataSettings()
Returns the object with the settings used for calls to exportData.
Type | Description |
UnaryCallSettings<ExportDataRequest,Operation> |
getAnnotatedDatasetSettings()
public UnaryCallSettings<GetAnnotatedDatasetRequest,AnnotatedDataset> getAnnotatedDatasetSettings()
Returns the object with the settings used for calls to getAnnotatedDataset.
Type | Description |
UnaryCallSettings<GetAnnotatedDatasetRequest,AnnotatedDataset> |
getAnnotationSpecSetSettings()
public UnaryCallSettings<GetAnnotationSpecSetRequest,AnnotationSpecSet> getAnnotationSpecSetSettings()
Returns the object with the settings used for calls to getAnnotationSpecSet.
Type | Description |
UnaryCallSettings<GetAnnotationSpecSetRequest,AnnotationSpecSet> |
getDataItemSettings()
public UnaryCallSettings<GetDataItemRequest,DataItem> getDataItemSettings()
Returns the object with the settings used for calls to getDataItem.
Type | Description |
UnaryCallSettings<GetDataItemRequest,DataItem> |
getDatasetSettings()
public UnaryCallSettings<GetDatasetRequest,Dataset> getDatasetSettings()
Returns the object with the settings used for calls to getDataset.
Type | Description |
UnaryCallSettings<GetDatasetRequest,Dataset> |
getEvaluationJobSettings()
public UnaryCallSettings<GetEvaluationJobRequest,EvaluationJob> getEvaluationJobSettings()
Returns the object with the settings used for calls to getEvaluationJob.
Type | Description |
UnaryCallSettings<GetEvaluationJobRequest,EvaluationJob> |
getEvaluationSettings()
public UnaryCallSettings<GetEvaluationRequest,Evaluation> getEvaluationSettings()
Returns the object with the settings used for calls to getEvaluation.
Type | Description |
UnaryCallSettings<GetEvaluationRequest,Evaluation> |
getExampleSettings()
public UnaryCallSettings<GetExampleRequest,Example> getExampleSettings()
Returns the object with the settings used for calls to getExample.
Type | Description |
UnaryCallSettings<GetExampleRequest,Example> |
getInstructionSettings()
public UnaryCallSettings<GetInstructionRequest,Instruction> getInstructionSettings()
Returns the object with the settings used for calls to getInstruction.
Type | Description |
UnaryCallSettings<GetInstructionRequest,Instruction> |
importDataOperationSettings()
public OperationCallSettings<ImportDataRequest,ImportDataOperationResponse,ImportDataOperationMetadata> importDataOperationSettings()
Returns the object with the settings used for calls to importData.
Type | Description |
OperationCallSettings<ImportDataRequest,ImportDataOperationResponse,ImportDataOperationMetadata> |
importDataSettings()
public UnaryCallSettings<ImportDataRequest,Operation> importDataSettings()
Returns the object with the settings used for calls to importData.
Type | Description |
UnaryCallSettings<ImportDataRequest,Operation> |
labelImageOperationSettings()
public OperationCallSettings<LabelImageRequest,AnnotatedDataset,LabelOperationMetadata> labelImageOperationSettings()
Returns the object with the settings used for calls to labelImage.
Type | Description |
OperationCallSettings<LabelImageRequest,AnnotatedDataset,LabelOperationMetadata> |
labelImageSettings()
public UnaryCallSettings<LabelImageRequest,Operation> labelImageSettings()
Returns the object with the settings used for calls to labelImage.
Type | Description |
UnaryCallSettings<LabelImageRequest,Operation> |
labelTextOperationSettings()
public OperationCallSettings<LabelTextRequest,AnnotatedDataset,LabelOperationMetadata> labelTextOperationSettings()
Returns the object with the settings used for calls to labelText.
Type | Description |
OperationCallSettings<LabelTextRequest,AnnotatedDataset,LabelOperationMetadata> |
labelTextSettings()
public UnaryCallSettings<LabelTextRequest,Operation> labelTextSettings()
Returns the object with the settings used for calls to labelText.
Type | Description |
UnaryCallSettings<LabelTextRequest,Operation> |
labelVideoOperationSettings()
public OperationCallSettings<LabelVideoRequest,AnnotatedDataset,LabelOperationMetadata> labelVideoOperationSettings()
Returns the object with the settings used for calls to labelVideo.
Type | Description |
OperationCallSettings<LabelVideoRequest,AnnotatedDataset,LabelOperationMetadata> |
labelVideoSettings()
public UnaryCallSettings<LabelVideoRequest,Operation> labelVideoSettings()
Returns the object with the settings used for calls to labelVideo.
Type | Description |
UnaryCallSettings<LabelVideoRequest,Operation> |
listAnnotatedDatasetsSettings()
public PagedCallSettings<ListAnnotatedDatasetsRequest,ListAnnotatedDatasetsResponse,DataLabelingServiceClient.ListAnnotatedDatasetsPagedResponse> listAnnotatedDatasetsSettings()
Returns the object with the settings used for calls to listAnnotatedDatasets.
Type | Description |
PagedCallSettings<ListAnnotatedDatasetsRequest,ListAnnotatedDatasetsResponse,ListAnnotatedDatasetsPagedResponse> |
listAnnotationSpecSetsSettings()
public PagedCallSettings<ListAnnotationSpecSetsRequest,ListAnnotationSpecSetsResponse,DataLabelingServiceClient.ListAnnotationSpecSetsPagedResponse> listAnnotationSpecSetsSettings()
Returns the object with the settings used for calls to listAnnotationSpecSets.
Type | Description |
PagedCallSettings<ListAnnotationSpecSetsRequest,ListAnnotationSpecSetsResponse,ListAnnotationSpecSetsPagedResponse> |
listDataItemsSettings()
public PagedCallSettings<ListDataItemsRequest,ListDataItemsResponse,DataLabelingServiceClient.ListDataItemsPagedResponse> listDataItemsSettings()
Returns the object with the settings used for calls to listDataItems.
Type | Description |
PagedCallSettings<ListDataItemsRequest,ListDataItemsResponse,ListDataItemsPagedResponse> |
listDatasetsSettings()
public PagedCallSettings<ListDatasetsRequest,ListDatasetsResponse,DataLabelingServiceClient.ListDatasetsPagedResponse> listDatasetsSettings()
Returns the object with the settings used for calls to listDatasets.
Type | Description |
PagedCallSettings<ListDatasetsRequest,ListDatasetsResponse,ListDatasetsPagedResponse> |
listEvaluationJobsSettings()
public PagedCallSettings<ListEvaluationJobsRequest,ListEvaluationJobsResponse,DataLabelingServiceClient.ListEvaluationJobsPagedResponse> listEvaluationJobsSettings()
Returns the object with the settings used for calls to listEvaluationJobs.
Type | Description |
PagedCallSettings<ListEvaluationJobsRequest,ListEvaluationJobsResponse,ListEvaluationJobsPagedResponse> |
listExamplesSettings()
public PagedCallSettings<ListExamplesRequest,ListExamplesResponse,DataLabelingServiceClient.ListExamplesPagedResponse> listExamplesSettings()
Returns the object with the settings used for calls to listExamples.
Type | Description |
PagedCallSettings<ListExamplesRequest,ListExamplesResponse,ListExamplesPagedResponse> |
listInstructionsSettings()
public PagedCallSettings<ListInstructionsRequest,ListInstructionsResponse,DataLabelingServiceClient.ListInstructionsPagedResponse> listInstructionsSettings()
Returns the object with the settings used for calls to listInstructions.
Type | Description |
PagedCallSettings<ListInstructionsRequest,ListInstructionsResponse,ListInstructionsPagedResponse> |
pauseEvaluationJobSettings()
public UnaryCallSettings<PauseEvaluationJobRequest,Empty> pauseEvaluationJobSettings()
Returns the object with the settings used for calls to pauseEvaluationJob.
Type | Description |
UnaryCallSettings<PauseEvaluationJobRequest,Empty> |
resumeEvaluationJobSettings()
public UnaryCallSettings<ResumeEvaluationJobRequest,Empty> resumeEvaluationJobSettings()
Returns the object with the settings used for calls to resumeEvaluationJob.
Type | Description |
UnaryCallSettings<ResumeEvaluationJobRequest,Empty> |
searchEvaluationsSettings()
public PagedCallSettings<SearchEvaluationsRequest,SearchEvaluationsResponse,DataLabelingServiceClient.SearchEvaluationsPagedResponse> searchEvaluationsSettings()
Returns the object with the settings used for calls to searchEvaluations.
Type | Description |
PagedCallSettings<SearchEvaluationsRequest,SearchEvaluationsResponse,SearchEvaluationsPagedResponse> |
searchExampleComparisonsSettings()
public PagedCallSettings<SearchExampleComparisonsRequest,SearchExampleComparisonsResponse,DataLabelingServiceClient.SearchExampleComparisonsPagedResponse> searchExampleComparisonsSettings()
Returns the object with the settings used for calls to searchExampleComparisons.
Type | Description |
PagedCallSettings<SearchExampleComparisonsRequest,SearchExampleComparisonsResponse,SearchExampleComparisonsPagedResponse> |
toBuilder()
public DataLabelingServiceSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.
Type | Description |
DataLabelingServiceSettings.Builder |
updateEvaluationJobSettings()
public UnaryCallSettings<UpdateEvaluationJobRequest,EvaluationJob> updateEvaluationJobSettings()
Returns the object with the settings used for calls to updateEvaluationJob.
Type | Description |
UnaryCallSettings<UpdateEvaluationJobRequest,EvaluationJob> |