Class DataLabelingServiceStubSettings (0.154.0)

public class DataLabelingServiceStubSettings extends StubSettings<DataLabelingServiceStubSettings>

Settings class to configure an instance of DataLabelingServiceStub.

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();
 

Inheritance

java.lang.Object > StubSettings > DataLabelingServiceStubSettings

Static Methods

defaultApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns
TypeDescription
Builder

defaultCredentialsProviderBuilder()

public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()

Returns a builder for the default credentials for this service.

Returns
TypeDescription
Builder

defaultExecutorProviderBuilder()

public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()

Returns a builder for the default ExecutorProvider for this service.

Returns
TypeDescription
Builder

defaultGrpcTransportProviderBuilder()

public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()

Returns a builder for the default ChannelProvider for this service.

Returns
TypeDescription
Builder

defaultTransportChannelProvider()

public static TransportChannelProvider defaultTransportChannelProvider()
Returns
TypeDescription
TransportChannelProvider

getDefaultEndpoint()

public static String getDefaultEndpoint()

Returns the default service endpoint.

Returns
TypeDescription
String

getDefaultMtlsEndpoint()

public static String getDefaultMtlsEndpoint()

Returns the default mTLS service endpoint.

Returns
TypeDescription
String

getDefaultServiceScopes()

public static List<String> getDefaultServiceScopes()

Returns the default service scopes.

Returns
TypeDescription
List<String>

newBuilder()

public static DataLabelingServiceStubSettings.Builder newBuilder()

Returns a new builder for this class.

newBuilder(ClientContext clientContext)

public static DataLabelingServiceStubSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
NameDescription
clientContextClientContext

Constructors

DataLabelingServiceStubSettings(DataLabelingServiceStubSettings.Builder settingsBuilder)

protected DataLabelingServiceStubSettings(DataLabelingServiceStubSettings.Builder settingsBuilder)
Parameter
NameDescription
settingsBuilderDataLabelingServiceStubSettings.Builder

Methods

createAnnotationSpecSetSettings()

public UnaryCallSettings<CreateAnnotationSpecSetRequest,AnnotationSpecSet> createAnnotationSpecSetSettings()

Returns the object with the settings used for calls to createAnnotationSpecSet.

createDatasetSettings()

public UnaryCallSettings<CreateDatasetRequest,Dataset> createDatasetSettings()

Returns the object with the settings used for calls to createDataset.

createEvaluationJobSettings()

public UnaryCallSettings<CreateEvaluationJobRequest,EvaluationJob> createEvaluationJobSettings()

Returns the object with the settings used for calls to createEvaluationJob.

createInstructionOperationSettings()

public OperationCallSettings<CreateInstructionRequest,Instruction,CreateInstructionMetadata> createInstructionOperationSettings()

Returns the object with the settings used for calls to createInstruction.

createInstructionSettings()

public UnaryCallSettings<CreateInstructionRequest,Operation> createInstructionSettings()

Returns the object with the settings used for calls to createInstruction.

createStub()

public DataLabelingServiceStub createStub()
Returns
TypeDescription
DataLabelingServiceStub
Exceptions
TypeDescription
IOException

deleteAnnotatedDatasetSettings()

public UnaryCallSettings<DeleteAnnotatedDatasetRequest,Empty> deleteAnnotatedDatasetSettings()

Returns the object with the settings used for calls to deleteAnnotatedDataset.

deleteAnnotationSpecSetSettings()

public UnaryCallSettings<DeleteAnnotationSpecSetRequest,Empty> deleteAnnotationSpecSetSettings()

Returns the object with the settings used for calls to deleteAnnotationSpecSet.

deleteDatasetSettings()

public UnaryCallSettings<DeleteDatasetRequest,Empty> deleteDatasetSettings()

Returns the object with the settings used for calls to deleteDataset.

deleteEvaluationJobSettings()

public UnaryCallSettings<DeleteEvaluationJobRequest,Empty> deleteEvaluationJobSettings()

Returns the object with the settings used for calls to deleteEvaluationJob.

deleteInstructionSettings()

public UnaryCallSettings<DeleteInstructionRequest,Empty> deleteInstructionSettings()

Returns the object with the settings used for calls to deleteInstruction.

exportDataOperationSettings()

public OperationCallSettings<ExportDataRequest,ExportDataOperationResponse,ExportDataOperationMetadata> exportDataOperationSettings()

Returns the object with the settings used for calls to exportData.

exportDataSettings()

public UnaryCallSettings<ExportDataRequest,Operation> exportDataSettings()

Returns the object with the settings used for calls to exportData.

getAnnotatedDatasetSettings()

public UnaryCallSettings<GetAnnotatedDatasetRequest,AnnotatedDataset> getAnnotatedDatasetSettings()

Returns the object with the settings used for calls to getAnnotatedDataset.

getAnnotationSpecSetSettings()

public UnaryCallSettings<GetAnnotationSpecSetRequest,AnnotationSpecSet> getAnnotationSpecSetSettings()

Returns the object with the settings used for calls to getAnnotationSpecSet.

getDataItemSettings()

public UnaryCallSettings<GetDataItemRequest,DataItem> getDataItemSettings()

Returns the object with the settings used for calls to getDataItem.

getDatasetSettings()

public UnaryCallSettings<GetDatasetRequest,Dataset> getDatasetSettings()

Returns the object with the settings used for calls to getDataset.

getEndpoint()

public String getEndpoint()

Returns the endpoint set by the user or the the service's default endpoint.

Returns
TypeDescription
String
Overrides

getEvaluationJobSettings()

public UnaryCallSettings<GetEvaluationJobRequest,EvaluationJob> getEvaluationJobSettings()

Returns the object with the settings used for calls to getEvaluationJob.

getEvaluationSettings()

public UnaryCallSettings<GetEvaluationRequest,Evaluation> getEvaluationSettings()

Returns the object with the settings used for calls to getEvaluation.

getExampleSettings()

public UnaryCallSettings<GetExampleRequest,Example> getExampleSettings()

Returns the object with the settings used for calls to getExample.

getInstructionSettings()

public UnaryCallSettings<GetInstructionRequest,Instruction> getInstructionSettings()

Returns the object with the settings used for calls to getInstruction.

getServiceName()

public String getServiceName()

Returns the default service name.

Returns
TypeDescription
String
Overrides

importDataOperationSettings()

public OperationCallSettings<ImportDataRequest,ImportDataOperationResponse,ImportDataOperationMetadata> importDataOperationSettings()

Returns the object with the settings used for calls to importData.

importDataSettings()

public UnaryCallSettings<ImportDataRequest,Operation> importDataSettings()

Returns the object with the settings used for calls to importData.

labelImageOperationSettings()

public OperationCallSettings<LabelImageRequest,AnnotatedDataset,LabelOperationMetadata> labelImageOperationSettings()

Returns the object with the settings used for calls to labelImage.

labelImageSettings()

public UnaryCallSettings<LabelImageRequest,Operation> labelImageSettings()

Returns the object with the settings used for calls to labelImage.

labelTextOperationSettings()

public OperationCallSettings<LabelTextRequest,AnnotatedDataset,LabelOperationMetadata> labelTextOperationSettings()

Returns the object with the settings used for calls to labelText.

labelTextSettings()

public UnaryCallSettings<LabelTextRequest,Operation> labelTextSettings()

Returns the object with the settings used for calls to labelText.

labelVideoOperationSettings()

public OperationCallSettings<LabelVideoRequest,AnnotatedDataset,LabelOperationMetadata> labelVideoOperationSettings()

Returns the object with the settings used for calls to labelVideo.

labelVideoSettings()

public UnaryCallSettings<LabelVideoRequest,Operation> labelVideoSettings()

Returns the object with the settings used for calls to labelVideo.

listAnnotatedDatasetsSettings()

public PagedCallSettings<ListAnnotatedDatasetsRequest,ListAnnotatedDatasetsResponse,DataLabelingServiceClient.ListAnnotatedDatasetsPagedResponse> listAnnotatedDatasetsSettings()

Returns the object with the settings used for calls to listAnnotatedDatasets.

listAnnotationSpecSetsSettings()

public PagedCallSettings<ListAnnotationSpecSetsRequest,ListAnnotationSpecSetsResponse,DataLabelingServiceClient.ListAnnotationSpecSetsPagedResponse> listAnnotationSpecSetsSettings()

Returns the object with the settings used for calls to listAnnotationSpecSets.

listDataItemsSettings()

public PagedCallSettings<ListDataItemsRequest,ListDataItemsResponse,DataLabelingServiceClient.ListDataItemsPagedResponse> listDataItemsSettings()

Returns the object with the settings used for calls to listDataItems.

listDatasetsSettings()

public PagedCallSettings<ListDatasetsRequest,ListDatasetsResponse,DataLabelingServiceClient.ListDatasetsPagedResponse> listDatasetsSettings()

Returns the object with the settings used for calls to listDatasets.

listEvaluationJobsSettings()

public PagedCallSettings<ListEvaluationJobsRequest,ListEvaluationJobsResponse,DataLabelingServiceClient.ListEvaluationJobsPagedResponse> listEvaluationJobsSettings()

Returns the object with the settings used for calls to listEvaluationJobs.

listExamplesSettings()

public PagedCallSettings<ListExamplesRequest,ListExamplesResponse,DataLabelingServiceClient.ListExamplesPagedResponse> listExamplesSettings()

Returns the object with the settings used for calls to listExamples.

listInstructionsSettings()

public PagedCallSettings<ListInstructionsRequest,ListInstructionsResponse,DataLabelingServiceClient.ListInstructionsPagedResponse> listInstructionsSettings()

Returns the object with the settings used for calls to listInstructions.

pauseEvaluationJobSettings()

public UnaryCallSettings<PauseEvaluationJobRequest,Empty> pauseEvaluationJobSettings()

Returns the object with the settings used for calls to pauseEvaluationJob.

resumeEvaluationJobSettings()

public UnaryCallSettings<ResumeEvaluationJobRequest,Empty> resumeEvaluationJobSettings()

Returns the object with the settings used for calls to resumeEvaluationJob.

searchEvaluationsSettings()

public PagedCallSettings<SearchEvaluationsRequest,SearchEvaluationsResponse,DataLabelingServiceClient.SearchEvaluationsPagedResponse> searchEvaluationsSettings()

Returns the object with the settings used for calls to searchEvaluations.

searchExampleComparisonsSettings()

public PagedCallSettings<SearchExampleComparisonsRequest,SearchExampleComparisonsResponse,DataLabelingServiceClient.SearchExampleComparisonsPagedResponse> searchExampleComparisonsSettings()

Returns the object with the settings used for calls to searchExampleComparisons.

toBuilder()

public DataLabelingServiceStubSettings.Builder toBuilder()

Returns a builder containing all the values of this settings class.

Overrides

updateEvaluationJobSettings()

public UnaryCallSettings<UpdateEvaluationJobRequest,EvaluationJob> updateEvaluationJobSettings()

Returns the object with the settings used for calls to updateEvaluationJob.