com.google.cloud.datalabeling.v1beta1.DataLabelingServiceSettings Maven / Gradle / Ivy
Show all versions of google-cloud-datalabeling Show documentation
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.cloud.datalabeling.v1beta1;
import static com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListAnnotatedDatasetsPagedResponse;
import static com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListAnnotationSpecSetsPagedResponse;
import static com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListDataItemsPagedResponse;
import static com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListDatasetsPagedResponse;
import static com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListEvaluationJobsPagedResponse;
import static com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListExamplesPagedResponse;
import static com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListInstructionsPagedResponse;
import static com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.SearchEvaluationsPagedResponse;
import static com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.SearchExampleComparisonsPagedResponse;
import com.google.api.core.ApiFunction;
import com.google.api.core.BetaApi;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
import com.google.api.gax.rpc.ApiClientHeaderProvider;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.OperationCallSettings;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.datalabeling.v1beta1.stub.DataLabelingServiceStubSettings;
import com.google.longrunning.Operation;
import com.google.protobuf.Empty;
import java.io.IOException;
import java.util.List;
import javax.annotation.Generated;
// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Settings class to configure an instance of {@link 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
* [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
* of createDataset:
*
*
{@code
* // 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
* DataLabelingServiceSettings.Builder dataLabelingServiceSettingsBuilder =
* DataLabelingServiceSettings.newBuilder();
* dataLabelingServiceSettingsBuilder
* .createDatasetSettings()
* .setRetrySettings(
* dataLabelingServiceSettingsBuilder
* .createDatasetSettings()
* .getRetrySettings()
* .toBuilder()
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
* .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
* .setMaxAttempts(5)
* .setMaxRetryDelayDuration(Duration.ofSeconds(30))
* .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
* .setRetryDelayMultiplier(1.3)
* .setRpcTimeoutMultiplier(1.5)
* .setTotalTimeoutDuration(Duration.ofSeconds(300))
* .build());
* DataLabelingServiceSettings dataLabelingServiceSettings =
* dataLabelingServiceSettingsBuilder.build();
* }
*
* Please refer to the [Client Side Retry
* Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
* additional support in setting retries.
*
* To configure the RetrySettings of a Long Running Operation method, create an
* OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
* configure the RetrySettings for importData:
*
*
{@code
* // 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
* DataLabelingServiceSettings.Builder dataLabelingServiceSettingsBuilder =
* DataLabelingServiceSettings.newBuilder();
* TimedRetryAlgorithm timedRetryAlgorithm =
* OperationalTimedPollAlgorithm.create(
* RetrySettings.newBuilder()
* .setInitialRetryDelayDuration(Duration.ofMillis(500))
* .setRetryDelayMultiplier(1.5)
* .setMaxRetryDelay(Duration.ofMillis(5000))
* .setTotalTimeoutDuration(Duration.ofHours(24))
* .build());
* dataLabelingServiceSettingsBuilder
* .createClusterOperationSettings()
* .setPollingAlgorithm(timedRetryAlgorithm)
* .build();
* }
*/
@BetaApi
@Generated("by gapic-generator-java")
public class DataLabelingServiceSettings extends ClientSettings {
/** Returns the object with the settings used for calls to createDataset. */
public UnaryCallSettings createDatasetSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).createDatasetSettings();
}
/** Returns the object with the settings used for calls to getDataset. */
public UnaryCallSettings getDatasetSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).getDatasetSettings();
}
/** Returns the object with the settings used for calls to listDatasets. */
public PagedCallSettings
listDatasetsSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).listDatasetsSettings();
}
/** Returns the object with the settings used for calls to deleteDataset. */
public UnaryCallSettings deleteDatasetSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).deleteDatasetSettings();
}
/** Returns the object with the settings used for calls to importData. */
public UnaryCallSettings importDataSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).importDataSettings();
}
/** Returns the object with the settings used for calls to importData. */
public OperationCallSettings<
ImportDataRequest, ImportDataOperationResponse, ImportDataOperationMetadata>
importDataOperationSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).importDataOperationSettings();
}
/** Returns the object with the settings used for calls to exportData. */
public UnaryCallSettings exportDataSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).exportDataSettings();
}
/** Returns the object with the settings used for calls to exportData. */
public OperationCallSettings<
ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
exportDataOperationSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).exportDataOperationSettings();
}
/** Returns the object with the settings used for calls to getDataItem. */
public UnaryCallSettings getDataItemSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).getDataItemSettings();
}
/** Returns the object with the settings used for calls to listDataItems. */
public PagedCallSettings
listDataItemsSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).listDataItemsSettings();
}
/** Returns the object with the settings used for calls to getAnnotatedDataset. */
public UnaryCallSettings
getAnnotatedDatasetSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).getAnnotatedDatasetSettings();
}
/** Returns the object with the settings used for calls to listAnnotatedDatasets. */
public PagedCallSettings<
ListAnnotatedDatasetsRequest,
ListAnnotatedDatasetsResponse,
ListAnnotatedDatasetsPagedResponse>
listAnnotatedDatasetsSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).listAnnotatedDatasetsSettings();
}
/** Returns the object with the settings used for calls to deleteAnnotatedDataset. */
public UnaryCallSettings deleteAnnotatedDatasetSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).deleteAnnotatedDatasetSettings();
}
/** Returns the object with the settings used for calls to labelImage. */
public UnaryCallSettings labelImageSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).labelImageSettings();
}
/** Returns the object with the settings used for calls to labelImage. */
public OperationCallSettings
labelImageOperationSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).labelImageOperationSettings();
}
/** Returns the object with the settings used for calls to labelVideo. */
public UnaryCallSettings labelVideoSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).labelVideoSettings();
}
/** Returns the object with the settings used for calls to labelVideo. */
public OperationCallSettings
labelVideoOperationSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).labelVideoOperationSettings();
}
/** Returns the object with the settings used for calls to labelText. */
public UnaryCallSettings labelTextSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).labelTextSettings();
}
/** Returns the object with the settings used for calls to labelText. */
public OperationCallSettings
labelTextOperationSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).labelTextOperationSettings();
}
/** Returns the object with the settings used for calls to getExample. */
public UnaryCallSettings getExampleSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).getExampleSettings();
}
/** Returns the object with the settings used for calls to listExamples. */
public PagedCallSettings
listExamplesSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).listExamplesSettings();
}
/** Returns the object with the settings used for calls to createAnnotationSpecSet. */
public UnaryCallSettings
createAnnotationSpecSetSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).createAnnotationSpecSetSettings();
}
/** Returns the object with the settings used for calls to getAnnotationSpecSet. */
public UnaryCallSettings
getAnnotationSpecSetSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).getAnnotationSpecSetSettings();
}
/** Returns the object with the settings used for calls to listAnnotationSpecSets. */
public PagedCallSettings<
ListAnnotationSpecSetsRequest,
ListAnnotationSpecSetsResponse,
ListAnnotationSpecSetsPagedResponse>
listAnnotationSpecSetsSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).listAnnotationSpecSetsSettings();
}
/** Returns the object with the settings used for calls to deleteAnnotationSpecSet. */
public UnaryCallSettings
deleteAnnotationSpecSetSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).deleteAnnotationSpecSetSettings();
}
/** Returns the object with the settings used for calls to createInstruction. */
public UnaryCallSettings createInstructionSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).createInstructionSettings();
}
/** Returns the object with the settings used for calls to createInstruction. */
public OperationCallSettings
createInstructionOperationSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings())
.createInstructionOperationSettings();
}
/** Returns the object with the settings used for calls to getInstruction. */
public UnaryCallSettings getInstructionSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).getInstructionSettings();
}
/** Returns the object with the settings used for calls to listInstructions. */
public PagedCallSettings<
ListInstructionsRequest, ListInstructionsResponse, ListInstructionsPagedResponse>
listInstructionsSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).listInstructionsSettings();
}
/** Returns the object with the settings used for calls to deleteInstruction. */
public UnaryCallSettings deleteInstructionSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).deleteInstructionSettings();
}
/** Returns the object with the settings used for calls to getEvaluation. */
public UnaryCallSettings getEvaluationSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).getEvaluationSettings();
}
/** Returns the object with the settings used for calls to searchEvaluations. */
public PagedCallSettings<
SearchEvaluationsRequest, SearchEvaluationsResponse, SearchEvaluationsPagedResponse>
searchEvaluationsSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).searchEvaluationsSettings();
}
/** Returns the object with the settings used for calls to searchExampleComparisons. */
public PagedCallSettings<
SearchExampleComparisonsRequest,
SearchExampleComparisonsResponse,
SearchExampleComparisonsPagedResponse>
searchExampleComparisonsSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).searchExampleComparisonsSettings();
}
/** Returns the object with the settings used for calls to createEvaluationJob. */
public UnaryCallSettings
createEvaluationJobSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).createEvaluationJobSettings();
}
/** Returns the object with the settings used for calls to updateEvaluationJob. */
public UnaryCallSettings
updateEvaluationJobSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).updateEvaluationJobSettings();
}
/** Returns the object with the settings used for calls to getEvaluationJob. */
public UnaryCallSettings getEvaluationJobSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).getEvaluationJobSettings();
}
/** Returns the object with the settings used for calls to pauseEvaluationJob. */
public UnaryCallSettings pauseEvaluationJobSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).pauseEvaluationJobSettings();
}
/** Returns the object with the settings used for calls to resumeEvaluationJob. */
public UnaryCallSettings resumeEvaluationJobSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).resumeEvaluationJobSettings();
}
/** Returns the object with the settings used for calls to deleteEvaluationJob. */
public UnaryCallSettings deleteEvaluationJobSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).deleteEvaluationJobSettings();
}
/** Returns the object with the settings used for calls to listEvaluationJobs. */
public PagedCallSettings<
ListEvaluationJobsRequest, ListEvaluationJobsResponse, ListEvaluationJobsPagedResponse>
listEvaluationJobsSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).listEvaluationJobsSettings();
}
public static final DataLabelingServiceSettings create(DataLabelingServiceStubSettings stub)
throws IOException {
return new DataLabelingServiceSettings.Builder(stub.toBuilder()).build();
}
/** Returns a builder for the default ExecutorProvider for this service. */
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
return DataLabelingServiceStubSettings.defaultExecutorProviderBuilder();
}
/** Returns the default service endpoint. */
public static String getDefaultEndpoint() {
return DataLabelingServiceStubSettings.getDefaultEndpoint();
}
/** Returns the default service scopes. */
public static List getDefaultServiceScopes() {
return DataLabelingServiceStubSettings.getDefaultServiceScopes();
}
/** Returns a builder for the default credentials for this service. */
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
return DataLabelingServiceStubSettings.defaultCredentialsProviderBuilder();
}
/** Returns a builder for the default ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
return DataLabelingServiceStubSettings.defaultGrpcTransportProviderBuilder();
}
public static TransportChannelProvider defaultTransportChannelProvider() {
return DataLabelingServiceStubSettings.defaultTransportChannelProvider();
}
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
return DataLabelingServiceStubSettings.defaultApiClientHeaderProviderBuilder();
}
/** Returns a new builder for this class. */
public static Builder newBuilder() {
return Builder.createDefault();
}
/** Returns a new builder for this class. */
public static Builder newBuilder(ClientContext clientContext) {
return new Builder(clientContext);
}
/** Returns a builder containing all the values of this settings class. */
public Builder toBuilder() {
return new Builder(this);
}
protected DataLabelingServiceSettings(Builder settingsBuilder) throws IOException {
super(settingsBuilder);
}
/** Builder for DataLabelingServiceSettings. */
public static class Builder extends ClientSettings.Builder {
protected Builder() throws IOException {
this(((ClientContext) null));
}
protected Builder(ClientContext clientContext) {
super(DataLabelingServiceStubSettings.newBuilder(clientContext));
}
protected Builder(DataLabelingServiceSettings settings) {
super(settings.getStubSettings().toBuilder());
}
protected Builder(DataLabelingServiceStubSettings.Builder stubSettings) {
super(stubSettings);
}
private static Builder createDefault() {
return new Builder(DataLabelingServiceStubSettings.newBuilder());
}
public DataLabelingServiceStubSettings.Builder getStubSettingsBuilder() {
return ((DataLabelingServiceStubSettings.Builder) getStubSettings());
}
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction, Void> settingsUpdater) {
super.applyToAllUnaryMethods(
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
return this;
}
/** Returns the builder for the settings used for calls to createDataset. */
public UnaryCallSettings.Builder createDatasetSettings() {
return getStubSettingsBuilder().createDatasetSettings();
}
/** Returns the builder for the settings used for calls to getDataset. */
public UnaryCallSettings.Builder getDatasetSettings() {
return getStubSettingsBuilder().getDatasetSettings();
}
/** Returns the builder for the settings used for calls to listDatasets. */
public PagedCallSettings.Builder<
ListDatasetsRequest, ListDatasetsResponse, ListDatasetsPagedResponse>
listDatasetsSettings() {
return getStubSettingsBuilder().listDatasetsSettings();
}
/** Returns the builder for the settings used for calls to deleteDataset. */
public UnaryCallSettings.Builder deleteDatasetSettings() {
return getStubSettingsBuilder().deleteDatasetSettings();
}
/** Returns the builder for the settings used for calls to importData. */
public UnaryCallSettings.Builder importDataSettings() {
return getStubSettingsBuilder().importDataSettings();
}
/** Returns the builder for the settings used for calls to importData. */
public OperationCallSettings.Builder<
ImportDataRequest, ImportDataOperationResponse, ImportDataOperationMetadata>
importDataOperationSettings() {
return getStubSettingsBuilder().importDataOperationSettings();
}
/** Returns the builder for the settings used for calls to exportData. */
public UnaryCallSettings.Builder exportDataSettings() {
return getStubSettingsBuilder().exportDataSettings();
}
/** Returns the builder for the settings used for calls to exportData. */
public OperationCallSettings.Builder<
ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
exportDataOperationSettings() {
return getStubSettingsBuilder().exportDataOperationSettings();
}
/** Returns the builder for the settings used for calls to getDataItem. */
public UnaryCallSettings.Builder getDataItemSettings() {
return getStubSettingsBuilder().getDataItemSettings();
}
/** Returns the builder for the settings used for calls to listDataItems. */
public PagedCallSettings.Builder<
ListDataItemsRequest, ListDataItemsResponse, ListDataItemsPagedResponse>
listDataItemsSettings() {
return getStubSettingsBuilder().listDataItemsSettings();
}
/** Returns the builder for the settings used for calls to getAnnotatedDataset. */
public UnaryCallSettings.Builder
getAnnotatedDatasetSettings() {
return getStubSettingsBuilder().getAnnotatedDatasetSettings();
}
/** Returns the builder for the settings used for calls to listAnnotatedDatasets. */
public PagedCallSettings.Builder<
ListAnnotatedDatasetsRequest,
ListAnnotatedDatasetsResponse,
ListAnnotatedDatasetsPagedResponse>
listAnnotatedDatasetsSettings() {
return getStubSettingsBuilder().listAnnotatedDatasetsSettings();
}
/** Returns the builder for the settings used for calls to deleteAnnotatedDataset. */
public UnaryCallSettings.Builder
deleteAnnotatedDatasetSettings() {
return getStubSettingsBuilder().deleteAnnotatedDatasetSettings();
}
/** Returns the builder for the settings used for calls to labelImage. */
public UnaryCallSettings.Builder labelImageSettings() {
return getStubSettingsBuilder().labelImageSettings();
}
/** Returns the builder for the settings used for calls to labelImage. */
public OperationCallSettings.Builder<
LabelImageRequest, AnnotatedDataset, LabelOperationMetadata>
labelImageOperationSettings() {
return getStubSettingsBuilder().labelImageOperationSettings();
}
/** Returns the builder for the settings used for calls to labelVideo. */
public UnaryCallSettings.Builder labelVideoSettings() {
return getStubSettingsBuilder().labelVideoSettings();
}
/** Returns the builder for the settings used for calls to labelVideo. */
public OperationCallSettings.Builder<
LabelVideoRequest, AnnotatedDataset, LabelOperationMetadata>
labelVideoOperationSettings() {
return getStubSettingsBuilder().labelVideoOperationSettings();
}
/** Returns the builder for the settings used for calls to labelText. */
public UnaryCallSettings.Builder labelTextSettings() {
return getStubSettingsBuilder().labelTextSettings();
}
/** Returns the builder for the settings used for calls to labelText. */
public OperationCallSettings.Builder
labelTextOperationSettings() {
return getStubSettingsBuilder().labelTextOperationSettings();
}
/** Returns the builder for the settings used for calls to getExample. */
public UnaryCallSettings.Builder getExampleSettings() {
return getStubSettingsBuilder().getExampleSettings();
}
/** Returns the builder for the settings used for calls to listExamples. */
public PagedCallSettings.Builder<
ListExamplesRequest, ListExamplesResponse, ListExamplesPagedResponse>
listExamplesSettings() {
return getStubSettingsBuilder().listExamplesSettings();
}
/** Returns the builder for the settings used for calls to createAnnotationSpecSet. */
public UnaryCallSettings.Builder
createAnnotationSpecSetSettings() {
return getStubSettingsBuilder().createAnnotationSpecSetSettings();
}
/** Returns the builder for the settings used for calls to getAnnotationSpecSet. */
public UnaryCallSettings.Builder
getAnnotationSpecSetSettings() {
return getStubSettingsBuilder().getAnnotationSpecSetSettings();
}
/** Returns the builder for the settings used for calls to listAnnotationSpecSets. */
public PagedCallSettings.Builder<
ListAnnotationSpecSetsRequest,
ListAnnotationSpecSetsResponse,
ListAnnotationSpecSetsPagedResponse>
listAnnotationSpecSetsSettings() {
return getStubSettingsBuilder().listAnnotationSpecSetsSettings();
}
/** Returns the builder for the settings used for calls to deleteAnnotationSpecSet. */
public UnaryCallSettings.Builder
deleteAnnotationSpecSetSettings() {
return getStubSettingsBuilder().deleteAnnotationSpecSetSettings();
}
/** Returns the builder for the settings used for calls to createInstruction. */
public UnaryCallSettings.Builder
createInstructionSettings() {
return getStubSettingsBuilder().createInstructionSettings();
}
/** Returns the builder for the settings used for calls to createInstruction. */
public OperationCallSettings.Builder<
CreateInstructionRequest, Instruction, CreateInstructionMetadata>
createInstructionOperationSettings() {
return getStubSettingsBuilder().createInstructionOperationSettings();
}
/** Returns the builder for the settings used for calls to getInstruction. */
public UnaryCallSettings.Builder getInstructionSettings() {
return getStubSettingsBuilder().getInstructionSettings();
}
/** Returns the builder for the settings used for calls to listInstructions. */
public PagedCallSettings.Builder<
ListInstructionsRequest, ListInstructionsResponse, ListInstructionsPagedResponse>
listInstructionsSettings() {
return getStubSettingsBuilder().listInstructionsSettings();
}
/** Returns the builder for the settings used for calls to deleteInstruction. */
public UnaryCallSettings.Builder deleteInstructionSettings() {
return getStubSettingsBuilder().deleteInstructionSettings();
}
/** Returns the builder for the settings used for calls to getEvaluation. */
public UnaryCallSettings.Builder getEvaluationSettings() {
return getStubSettingsBuilder().getEvaluationSettings();
}
/** Returns the builder for the settings used for calls to searchEvaluations. */
public PagedCallSettings.Builder<
SearchEvaluationsRequest, SearchEvaluationsResponse, SearchEvaluationsPagedResponse>
searchEvaluationsSettings() {
return getStubSettingsBuilder().searchEvaluationsSettings();
}
/** Returns the builder for the settings used for calls to searchExampleComparisons. */
public PagedCallSettings.Builder<
SearchExampleComparisonsRequest,
SearchExampleComparisonsResponse,
SearchExampleComparisonsPagedResponse>
searchExampleComparisonsSettings() {
return getStubSettingsBuilder().searchExampleComparisonsSettings();
}
/** Returns the builder for the settings used for calls to createEvaluationJob. */
public UnaryCallSettings.Builder
createEvaluationJobSettings() {
return getStubSettingsBuilder().createEvaluationJobSettings();
}
/** Returns the builder for the settings used for calls to updateEvaluationJob. */
public UnaryCallSettings.Builder
updateEvaluationJobSettings() {
return getStubSettingsBuilder().updateEvaluationJobSettings();
}
/** Returns the builder for the settings used for calls to getEvaluationJob. */
public UnaryCallSettings.Builder
getEvaluationJobSettings() {
return getStubSettingsBuilder().getEvaluationJobSettings();
}
/** Returns the builder for the settings used for calls to pauseEvaluationJob. */
public UnaryCallSettings.Builder
pauseEvaluationJobSettings() {
return getStubSettingsBuilder().pauseEvaluationJobSettings();
}
/** Returns the builder for the settings used for calls to resumeEvaluationJob. */
public UnaryCallSettings.Builder
resumeEvaluationJobSettings() {
return getStubSettingsBuilder().resumeEvaluationJobSettings();
}
/** Returns the builder for the settings used for calls to deleteEvaluationJob. */
public UnaryCallSettings.Builder
deleteEvaluationJobSettings() {
return getStubSettingsBuilder().deleteEvaluationJobSettings();
}
/** Returns the builder for the settings used for calls to listEvaluationJobs. */
public PagedCallSettings.Builder<
ListEvaluationJobsRequest, ListEvaluationJobsResponse, ListEvaluationJobsPagedResponse>
listEvaluationJobsSettings() {
return getStubSettingsBuilder().listEvaluationJobsSettings();
}
@Override
public DataLabelingServiceSettings build() throws IOException {
return new DataLabelingServiceSettings(this);
}
}
}