com.google.cloud.visionai.v1.WarehouseSettings Maven / Gradle / Ivy
/*
* 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.visionai.v1;
import static com.google.cloud.visionai.v1.WarehouseClient.ListAnnotationsPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.ListAssetsPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.ListCollectionsPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.ListCorporaPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.ListDataSchemasPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.ListIndexEndpointsPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.ListIndexesPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.ListSearchConfigsPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.ListSearchHypernymsPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.SearchAssetsPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.SearchIndexEndpointPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.ViewCollectionItemsPagedResponse;
import static com.google.cloud.visionai.v1.WarehouseClient.ViewIndexedAssetsPagedResponse;
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.httpjson.InstantiatingHttpJsonChannelProvider;
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.StreamingCallSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.visionai.v1.stub.WarehouseStubSettings;
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 WarehouseClient}.
*
* The default instance has everything set to sensible defaults:
*
*
* - The default service address (visionai.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 createAsset:
*
*
{@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
* WarehouseSettings.Builder warehouseSettingsBuilder = WarehouseSettings.newBuilder();
* warehouseSettingsBuilder
* .createAssetSettings()
* .setRetrySettings(
* warehouseSettingsBuilder
* .createAssetSettings()
* .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());
* WarehouseSettings warehouseSettings = warehouseSettingsBuilder.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 deleteAsset:
*
*
{@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
* WarehouseSettings.Builder warehouseSettingsBuilder = WarehouseSettings.newBuilder();
* TimedRetryAlgorithm timedRetryAlgorithm =
* OperationalTimedPollAlgorithm.create(
* RetrySettings.newBuilder()
* .setInitialRetryDelayDuration(Duration.ofMillis(500))
* .setRetryDelayMultiplier(1.5)
* .setMaxRetryDelay(Duration.ofMillis(5000))
* .setTotalTimeoutDuration(Duration.ofHours(24))
* .build());
* warehouseSettingsBuilder
* .createClusterOperationSettings()
* .setPollingAlgorithm(timedRetryAlgorithm)
* .build();
* }
*/
@Generated("by gapic-generator-java")
public class WarehouseSettings extends ClientSettings {
/** Returns the object with the settings used for calls to createAsset. */
public UnaryCallSettings createAssetSettings() {
return ((WarehouseStubSettings) getStubSettings()).createAssetSettings();
}
/** Returns the object with the settings used for calls to updateAsset. */
public UnaryCallSettings updateAssetSettings() {
return ((WarehouseStubSettings) getStubSettings()).updateAssetSettings();
}
/** Returns the object with the settings used for calls to getAsset. */
public UnaryCallSettings getAssetSettings() {
return ((WarehouseStubSettings) getStubSettings()).getAssetSettings();
}
/** Returns the object with the settings used for calls to listAssets. */
public PagedCallSettings
listAssetsSettings() {
return ((WarehouseStubSettings) getStubSettings()).listAssetsSettings();
}
/** Returns the object with the settings used for calls to deleteAsset. */
public UnaryCallSettings deleteAssetSettings() {
return ((WarehouseStubSettings) getStubSettings()).deleteAssetSettings();
}
/** Returns the object with the settings used for calls to deleteAsset. */
public OperationCallSettings
deleteAssetOperationSettings() {
return ((WarehouseStubSettings) getStubSettings()).deleteAssetOperationSettings();
}
/** Returns the object with the settings used for calls to uploadAsset. */
public UnaryCallSettings uploadAssetSettings() {
return ((WarehouseStubSettings) getStubSettings()).uploadAssetSettings();
}
/** Returns the object with the settings used for calls to uploadAsset. */
public OperationCallSettings
uploadAssetOperationSettings() {
return ((WarehouseStubSettings) getStubSettings()).uploadAssetOperationSettings();
}
/** Returns the object with the settings used for calls to generateRetrievalUrl. */
public UnaryCallSettings
generateRetrievalUrlSettings() {
return ((WarehouseStubSettings) getStubSettings()).generateRetrievalUrlSettings();
}
/** Returns the object with the settings used for calls to analyzeAsset. */
public UnaryCallSettings analyzeAssetSettings() {
return ((WarehouseStubSettings) getStubSettings()).analyzeAssetSettings();
}
/** Returns the object with the settings used for calls to analyzeAsset. */
public OperationCallSettings
analyzeAssetOperationSettings() {
return ((WarehouseStubSettings) getStubSettings()).analyzeAssetOperationSettings();
}
/** Returns the object with the settings used for calls to indexAsset. */
public UnaryCallSettings indexAssetSettings() {
return ((WarehouseStubSettings) getStubSettings()).indexAssetSettings();
}
/** Returns the object with the settings used for calls to indexAsset. */
public OperationCallSettings
indexAssetOperationSettings() {
return ((WarehouseStubSettings) getStubSettings()).indexAssetOperationSettings();
}
/** Returns the object with the settings used for calls to removeIndexAsset. */
public UnaryCallSettings removeIndexAssetSettings() {
return ((WarehouseStubSettings) getStubSettings()).removeIndexAssetSettings();
}
/** Returns the object with the settings used for calls to removeIndexAsset. */
public OperationCallSettings<
RemoveIndexAssetRequest, RemoveIndexAssetResponse, RemoveIndexAssetMetadata>
removeIndexAssetOperationSettings() {
return ((WarehouseStubSettings) getStubSettings()).removeIndexAssetOperationSettings();
}
/** Returns the object with the settings used for calls to viewIndexedAssets. */
public PagedCallSettings<
ViewIndexedAssetsRequest, ViewIndexedAssetsResponse, ViewIndexedAssetsPagedResponse>
viewIndexedAssetsSettings() {
return ((WarehouseStubSettings) getStubSettings()).viewIndexedAssetsSettings();
}
/** Returns the object with the settings used for calls to createIndex. */
public UnaryCallSettings createIndexSettings() {
return ((WarehouseStubSettings) getStubSettings()).createIndexSettings();
}
/** Returns the object with the settings used for calls to createIndex. */
public OperationCallSettings
createIndexOperationSettings() {
return ((WarehouseStubSettings) getStubSettings()).createIndexOperationSettings();
}
/** Returns the object with the settings used for calls to updateIndex. */
public UnaryCallSettings updateIndexSettings() {
return ((WarehouseStubSettings) getStubSettings()).updateIndexSettings();
}
/** Returns the object with the settings used for calls to updateIndex. */
public OperationCallSettings
updateIndexOperationSettings() {
return ((WarehouseStubSettings) getStubSettings()).updateIndexOperationSettings();
}
/** Returns the object with the settings used for calls to getIndex. */
public UnaryCallSettings getIndexSettings() {
return ((WarehouseStubSettings) getStubSettings()).getIndexSettings();
}
/** Returns the object with the settings used for calls to listIndexes. */
public PagedCallSettings
listIndexesSettings() {
return ((WarehouseStubSettings) getStubSettings()).listIndexesSettings();
}
/** Returns the object with the settings used for calls to deleteIndex. */
public UnaryCallSettings deleteIndexSettings() {
return ((WarehouseStubSettings) getStubSettings()).deleteIndexSettings();
}
/** Returns the object with the settings used for calls to deleteIndex. */
public OperationCallSettings
deleteIndexOperationSettings() {
return ((WarehouseStubSettings) getStubSettings()).deleteIndexOperationSettings();
}
/** Returns the object with the settings used for calls to createCorpus. */
public UnaryCallSettings createCorpusSettings() {
return ((WarehouseStubSettings) getStubSettings()).createCorpusSettings();
}
/** Returns the object with the settings used for calls to createCorpus. */
public OperationCallSettings
createCorpusOperationSettings() {
return ((WarehouseStubSettings) getStubSettings()).createCorpusOperationSettings();
}
/** Returns the object with the settings used for calls to getCorpus. */
public UnaryCallSettings getCorpusSettings() {
return ((WarehouseStubSettings) getStubSettings()).getCorpusSettings();
}
/** Returns the object with the settings used for calls to updateCorpus. */
public UnaryCallSettings updateCorpusSettings() {
return ((WarehouseStubSettings) getStubSettings()).updateCorpusSettings();
}
/** Returns the object with the settings used for calls to listCorpora. */
public PagedCallSettings
listCorporaSettings() {
return ((WarehouseStubSettings) getStubSettings()).listCorporaSettings();
}
/** Returns the object with the settings used for calls to deleteCorpus. */
public UnaryCallSettings deleteCorpusSettings() {
return ((WarehouseStubSettings) getStubSettings()).deleteCorpusSettings();
}
/** Returns the object with the settings used for calls to analyzeCorpus. */
public UnaryCallSettings analyzeCorpusSettings() {
return ((WarehouseStubSettings) getStubSettings()).analyzeCorpusSettings();
}
/** Returns the object with the settings used for calls to analyzeCorpus. */
public OperationCallSettings
analyzeCorpusOperationSettings() {
return ((WarehouseStubSettings) getStubSettings()).analyzeCorpusOperationSettings();
}
/** Returns the object with the settings used for calls to createDataSchema. */
public UnaryCallSettings createDataSchemaSettings() {
return ((WarehouseStubSettings) getStubSettings()).createDataSchemaSettings();
}
/** Returns the object with the settings used for calls to updateDataSchema. */
public UnaryCallSettings updateDataSchemaSettings() {
return ((WarehouseStubSettings) getStubSettings()).updateDataSchemaSettings();
}
/** Returns the object with the settings used for calls to getDataSchema. */
public UnaryCallSettings getDataSchemaSettings() {
return ((WarehouseStubSettings) getStubSettings()).getDataSchemaSettings();
}
/** Returns the object with the settings used for calls to deleteDataSchema. */
public UnaryCallSettings deleteDataSchemaSettings() {
return ((WarehouseStubSettings) getStubSettings()).deleteDataSchemaSettings();
}
/** Returns the object with the settings used for calls to listDataSchemas. */
public PagedCallSettings<
ListDataSchemasRequest, ListDataSchemasResponse, ListDataSchemasPagedResponse>
listDataSchemasSettings() {
return ((WarehouseStubSettings) getStubSettings()).listDataSchemasSettings();
}
/** Returns the object with the settings used for calls to createAnnotation. */
public UnaryCallSettings createAnnotationSettings() {
return ((WarehouseStubSettings) getStubSettings()).createAnnotationSettings();
}
/** Returns the object with the settings used for calls to getAnnotation. */
public UnaryCallSettings getAnnotationSettings() {
return ((WarehouseStubSettings) getStubSettings()).getAnnotationSettings();
}
/** Returns the object with the settings used for calls to listAnnotations. */
public PagedCallSettings<
ListAnnotationsRequest, ListAnnotationsResponse, ListAnnotationsPagedResponse>
listAnnotationsSettings() {
return ((WarehouseStubSettings) getStubSettings()).listAnnotationsSettings();
}
/** Returns the object with the settings used for calls to updateAnnotation. */
public UnaryCallSettings updateAnnotationSettings() {
return ((WarehouseStubSettings) getStubSettings()).updateAnnotationSettings();
}
/** Returns the object with the settings used for calls to deleteAnnotation. */
public UnaryCallSettings deleteAnnotationSettings() {
return ((WarehouseStubSettings) getStubSettings()).deleteAnnotationSettings();
}
/** Returns the object with the settings used for calls to ingestAsset. */
public StreamingCallSettings ingestAssetSettings() {
return ((WarehouseStubSettings) getStubSettings()).ingestAssetSettings();
}
/** Returns the object with the settings used for calls to clipAsset. */
public UnaryCallSettings clipAssetSettings() {
return ((WarehouseStubSettings) getStubSettings()).clipAssetSettings();
}
/** Returns the object with the settings used for calls to generateHlsUri. */
public UnaryCallSettings generateHlsUriSettings() {
return ((WarehouseStubSettings) getStubSettings()).generateHlsUriSettings();
}
/** Returns the object with the settings used for calls to importAssets. */
public UnaryCallSettings importAssetsSettings() {
return ((WarehouseStubSettings) getStubSettings()).importAssetsSettings();
}
/** Returns the object with the settings used for calls to importAssets. */
public OperationCallSettings
importAssetsOperationSettings() {
return ((WarehouseStubSettings) getStubSettings()).importAssetsOperationSettings();
}
/** Returns the object with the settings used for calls to createSearchConfig. */
public UnaryCallSettings createSearchConfigSettings() {
return ((WarehouseStubSettings) getStubSettings()).createSearchConfigSettings();
}
/** Returns the object with the settings used for calls to updateSearchConfig. */
public UnaryCallSettings updateSearchConfigSettings() {
return ((WarehouseStubSettings) getStubSettings()).updateSearchConfigSettings();
}
/** Returns the object with the settings used for calls to getSearchConfig. */
public UnaryCallSettings getSearchConfigSettings() {
return ((WarehouseStubSettings) getStubSettings()).getSearchConfigSettings();
}
/** Returns the object with the settings used for calls to deleteSearchConfig. */
public UnaryCallSettings deleteSearchConfigSettings() {
return ((WarehouseStubSettings) getStubSettings()).deleteSearchConfigSettings();
}
/** Returns the object with the settings used for calls to listSearchConfigs. */
public PagedCallSettings<
ListSearchConfigsRequest, ListSearchConfigsResponse, ListSearchConfigsPagedResponse>
listSearchConfigsSettings() {
return ((WarehouseStubSettings) getStubSettings()).listSearchConfigsSettings();
}
/** Returns the object with the settings used for calls to createSearchHypernym. */
public UnaryCallSettings
createSearchHypernymSettings() {
return ((WarehouseStubSettings) getStubSettings()).createSearchHypernymSettings();
}
/** Returns the object with the settings used for calls to updateSearchHypernym. */
public UnaryCallSettings
updateSearchHypernymSettings() {
return ((WarehouseStubSettings) getStubSettings()).updateSearchHypernymSettings();
}
/** Returns the object with the settings used for calls to getSearchHypernym. */
public UnaryCallSettings getSearchHypernymSettings() {
return ((WarehouseStubSettings) getStubSettings()).getSearchHypernymSettings();
}
/** Returns the object with the settings used for calls to deleteSearchHypernym. */
public UnaryCallSettings deleteSearchHypernymSettings() {
return ((WarehouseStubSettings) getStubSettings()).deleteSearchHypernymSettings();
}
/** Returns the object with the settings used for calls to listSearchHypernyms. */
public PagedCallSettings<
ListSearchHypernymsRequest, ListSearchHypernymsResponse, ListSearchHypernymsPagedResponse>
listSearchHypernymsSettings() {
return ((WarehouseStubSettings) getStubSettings()).listSearchHypernymsSettings();
}
/** Returns the object with the settings used for calls to searchAssets. */
public PagedCallSettings
searchAssetsSettings() {
return ((WarehouseStubSettings) getStubSettings()).searchAssetsSettings();
}
/** Returns the object with the settings used for calls to searchIndexEndpoint. */
public PagedCallSettings<
SearchIndexEndpointRequest, SearchIndexEndpointResponse, SearchIndexEndpointPagedResponse>
searchIndexEndpointSettings() {
return ((WarehouseStubSettings) getStubSettings()).searchIndexEndpointSettings();
}
/** Returns the object with the settings used for calls to createIndexEndpoint. */
public UnaryCallSettings createIndexEndpointSettings() {
return ((WarehouseStubSettings) getStubSettings()).createIndexEndpointSettings();
}
/** Returns the object with the settings used for calls to createIndexEndpoint. */
public OperationCallSettings<
CreateIndexEndpointRequest, IndexEndpoint, CreateIndexEndpointMetadata>
createIndexEndpointOperationSettings() {
return ((WarehouseStubSettings) getStubSettings()).createIndexEndpointOperationSettings();
}
/** Returns the object with the settings used for calls to getIndexEndpoint. */
public UnaryCallSettings getIndexEndpointSettings() {
return ((WarehouseStubSettings) getStubSettings()).getIndexEndpointSettings();
}
/** Returns the object with the settings used for calls to listIndexEndpoints. */
public PagedCallSettings<
ListIndexEndpointsRequest, ListIndexEndpointsResponse, ListIndexEndpointsPagedResponse>
listIndexEndpointsSettings() {
return ((WarehouseStubSettings) getStubSettings()).listIndexEndpointsSettings();
}
/** Returns the object with the settings used for calls to updateIndexEndpoint. */
public UnaryCallSettings updateIndexEndpointSettings() {
return ((WarehouseStubSettings) getStubSettings()).updateIndexEndpointSettings();
}
/** Returns the object with the settings used for calls to updateIndexEndpoint. */
public OperationCallSettings<
UpdateIndexEndpointRequest, IndexEndpoint, UpdateIndexEndpointMetadata>
updateIndexEndpointOperationSettings() {
return ((WarehouseStubSettings) getStubSettings()).updateIndexEndpointOperationSettings();
}
/** Returns the object with the settings used for calls to deleteIndexEndpoint. */
public UnaryCallSettings deleteIndexEndpointSettings() {
return ((WarehouseStubSettings) getStubSettings()).deleteIndexEndpointSettings();
}
/** Returns the object with the settings used for calls to deleteIndexEndpoint. */
public OperationCallSettings
deleteIndexEndpointOperationSettings() {
return ((WarehouseStubSettings) getStubSettings()).deleteIndexEndpointOperationSettings();
}
/** Returns the object with the settings used for calls to deployIndex. */
public UnaryCallSettings deployIndexSettings() {
return ((WarehouseStubSettings) getStubSettings()).deployIndexSettings();
}
/** Returns the object with the settings used for calls to deployIndex. */
public OperationCallSettings
deployIndexOperationSettings() {
return ((WarehouseStubSettings) getStubSettings()).deployIndexOperationSettings();
}
/** Returns the object with the settings used for calls to undeployIndex. */
public UnaryCallSettings undeployIndexSettings() {
return ((WarehouseStubSettings) getStubSettings()).undeployIndexSettings();
}
/** Returns the object with the settings used for calls to undeployIndex. */
public OperationCallSettings
undeployIndexOperationSettings() {
return ((WarehouseStubSettings) getStubSettings()).undeployIndexOperationSettings();
}
/** Returns the object with the settings used for calls to createCollection. */
public UnaryCallSettings createCollectionSettings() {
return ((WarehouseStubSettings) getStubSettings()).createCollectionSettings();
}
/** Returns the object with the settings used for calls to createCollection. */
public OperationCallSettings
createCollectionOperationSettings() {
return ((WarehouseStubSettings) getStubSettings()).createCollectionOperationSettings();
}
/** Returns the object with the settings used for calls to deleteCollection. */
public UnaryCallSettings deleteCollectionSettings() {
return ((WarehouseStubSettings) getStubSettings()).deleteCollectionSettings();
}
/** Returns the object with the settings used for calls to deleteCollection. */
public OperationCallSettings
deleteCollectionOperationSettings() {
return ((WarehouseStubSettings) getStubSettings()).deleteCollectionOperationSettings();
}
/** Returns the object with the settings used for calls to getCollection. */
public UnaryCallSettings getCollectionSettings() {
return ((WarehouseStubSettings) getStubSettings()).getCollectionSettings();
}
/** Returns the object with the settings used for calls to updateCollection. */
public UnaryCallSettings updateCollectionSettings() {
return ((WarehouseStubSettings) getStubSettings()).updateCollectionSettings();
}
/** Returns the object with the settings used for calls to listCollections. */
public PagedCallSettings<
ListCollectionsRequest, ListCollectionsResponse, ListCollectionsPagedResponse>
listCollectionsSettings() {
return ((WarehouseStubSettings) getStubSettings()).listCollectionsSettings();
}
/** Returns the object with the settings used for calls to addCollectionItem. */
public UnaryCallSettings
addCollectionItemSettings() {
return ((WarehouseStubSettings) getStubSettings()).addCollectionItemSettings();
}
/** Returns the object with the settings used for calls to removeCollectionItem. */
public UnaryCallSettings
removeCollectionItemSettings() {
return ((WarehouseStubSettings) getStubSettings()).removeCollectionItemSettings();
}
/** Returns the object with the settings used for calls to viewCollectionItems. */
public PagedCallSettings<
ViewCollectionItemsRequest, ViewCollectionItemsResponse, ViewCollectionItemsPagedResponse>
viewCollectionItemsSettings() {
return ((WarehouseStubSettings) getStubSettings()).viewCollectionItemsSettings();
}
public static final WarehouseSettings create(WarehouseStubSettings stub) throws IOException {
return new WarehouseSettings.Builder(stub.toBuilder()).build();
}
/** Returns a builder for the default ExecutorProvider for this service. */
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
return WarehouseStubSettings.defaultExecutorProviderBuilder();
}
/** Returns the default service endpoint. */
public static String getDefaultEndpoint() {
return WarehouseStubSettings.getDefaultEndpoint();
}
/** Returns the default service scopes. */
public static List getDefaultServiceScopes() {
return WarehouseStubSettings.getDefaultServiceScopes();
}
/** Returns a builder for the default credentials for this service. */
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
return WarehouseStubSettings.defaultCredentialsProviderBuilder();
}
/** Returns a builder for the default gRPC ChannelProvider for this service. */
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
return WarehouseStubSettings.defaultGrpcTransportProviderBuilder();
}
/** Returns a builder for the default REST ChannelProvider for this service. */
@BetaApi
public static InstantiatingHttpJsonChannelProvider.Builder
defaultHttpJsonTransportProviderBuilder() {
return WarehouseStubSettings.defaultHttpJsonTransportProviderBuilder();
}
public static TransportChannelProvider defaultTransportChannelProvider() {
return WarehouseStubSettings.defaultTransportChannelProvider();
}
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() {
return WarehouseStubSettings.defaultApiClientHeaderProviderBuilder();
}
/** Returns a new gRPC builder for this class. */
public static Builder newBuilder() {
return Builder.createDefault();
}
/** Returns a new REST builder for this class. */
public static Builder newHttpJsonBuilder() {
return Builder.createHttpJsonDefault();
}
/** 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 WarehouseSettings(Builder settingsBuilder) throws IOException {
super(settingsBuilder);
}
/** Builder for WarehouseSettings. */
public static class Builder extends ClientSettings.Builder {
protected Builder() throws IOException {
this(((ClientContext) null));
}
protected Builder(ClientContext clientContext) {
super(WarehouseStubSettings.newBuilder(clientContext));
}
protected Builder(WarehouseSettings settings) {
super(settings.getStubSettings().toBuilder());
}
protected Builder(WarehouseStubSettings.Builder stubSettings) {
super(stubSettings);
}
private static Builder createDefault() {
return new Builder(WarehouseStubSettings.newBuilder());
}
private static Builder createHttpJsonDefault() {
return new Builder(WarehouseStubSettings.newHttpJsonBuilder());
}
public WarehouseStubSettings.Builder getStubSettingsBuilder() {
return ((WarehouseStubSettings.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 createAsset. */
public UnaryCallSettings.Builder createAssetSettings() {
return getStubSettingsBuilder().createAssetSettings();
}
/** Returns the builder for the settings used for calls to updateAsset. */
public UnaryCallSettings.Builder updateAssetSettings() {
return getStubSettingsBuilder().updateAssetSettings();
}
/** Returns the builder for the settings used for calls to getAsset. */
public UnaryCallSettings.Builder getAssetSettings() {
return getStubSettingsBuilder().getAssetSettings();
}
/** Returns the builder for the settings used for calls to listAssets. */
public PagedCallSettings.Builder
listAssetsSettings() {
return getStubSettingsBuilder().listAssetsSettings();
}
/** Returns the builder for the settings used for calls to deleteAsset. */
public UnaryCallSettings.Builder deleteAssetSettings() {
return getStubSettingsBuilder().deleteAssetSettings();
}
/** Returns the builder for the settings used for calls to deleteAsset. */
public OperationCallSettings.Builder
deleteAssetOperationSettings() {
return getStubSettingsBuilder().deleteAssetOperationSettings();
}
/** Returns the builder for the settings used for calls to uploadAsset. */
public UnaryCallSettings.Builder uploadAssetSettings() {
return getStubSettingsBuilder().uploadAssetSettings();
}
/** Returns the builder for the settings used for calls to uploadAsset. */
public OperationCallSettings.Builder<
UploadAssetRequest, UploadAssetResponse, UploadAssetMetadata>
uploadAssetOperationSettings() {
return getStubSettingsBuilder().uploadAssetOperationSettings();
}
/** Returns the builder for the settings used for calls to generateRetrievalUrl. */
public UnaryCallSettings.Builder
generateRetrievalUrlSettings() {
return getStubSettingsBuilder().generateRetrievalUrlSettings();
}
/** Returns the builder for the settings used for calls to analyzeAsset. */
public UnaryCallSettings.Builder analyzeAssetSettings() {
return getStubSettingsBuilder().analyzeAssetSettings();
}
/** Returns the builder for the settings used for calls to analyzeAsset. */
public OperationCallSettings.Builder<
AnalyzeAssetRequest, AnalyzeAssetResponse, AnalyzeAssetMetadata>
analyzeAssetOperationSettings() {
return getStubSettingsBuilder().analyzeAssetOperationSettings();
}
/** Returns the builder for the settings used for calls to indexAsset. */
public UnaryCallSettings.Builder indexAssetSettings() {
return getStubSettingsBuilder().indexAssetSettings();
}
/** Returns the builder for the settings used for calls to indexAsset. */
public OperationCallSettings.Builder
indexAssetOperationSettings() {
return getStubSettingsBuilder().indexAssetOperationSettings();
}
/** Returns the builder for the settings used for calls to removeIndexAsset. */
public UnaryCallSettings.Builder
removeIndexAssetSettings() {
return getStubSettingsBuilder().removeIndexAssetSettings();
}
/** Returns the builder for the settings used for calls to removeIndexAsset. */
public OperationCallSettings.Builder<
RemoveIndexAssetRequest, RemoveIndexAssetResponse, RemoveIndexAssetMetadata>
removeIndexAssetOperationSettings() {
return getStubSettingsBuilder().removeIndexAssetOperationSettings();
}
/** Returns the builder for the settings used for calls to viewIndexedAssets. */
public PagedCallSettings.Builder<
ViewIndexedAssetsRequest, ViewIndexedAssetsResponse, ViewIndexedAssetsPagedResponse>
viewIndexedAssetsSettings() {
return getStubSettingsBuilder().viewIndexedAssetsSettings();
}
/** Returns the builder for the settings used for calls to createIndex. */
public UnaryCallSettings.Builder createIndexSettings() {
return getStubSettingsBuilder().createIndexSettings();
}
/** Returns the builder for the settings used for calls to createIndex. */
public OperationCallSettings.Builder
createIndexOperationSettings() {
return getStubSettingsBuilder().createIndexOperationSettings();
}
/** Returns the builder for the settings used for calls to updateIndex. */
public UnaryCallSettings.Builder updateIndexSettings() {
return getStubSettingsBuilder().updateIndexSettings();
}
/** Returns the builder for the settings used for calls to updateIndex. */
public OperationCallSettings.Builder
updateIndexOperationSettings() {
return getStubSettingsBuilder().updateIndexOperationSettings();
}
/** Returns the builder for the settings used for calls to getIndex. */
public UnaryCallSettings.Builder getIndexSettings() {
return getStubSettingsBuilder().getIndexSettings();
}
/** Returns the builder for the settings used for calls to listIndexes. */
public PagedCallSettings.Builder<
ListIndexesRequest, ListIndexesResponse, ListIndexesPagedResponse>
listIndexesSettings() {
return getStubSettingsBuilder().listIndexesSettings();
}
/** Returns the builder for the settings used for calls to deleteIndex. */
public UnaryCallSettings.Builder deleteIndexSettings() {
return getStubSettingsBuilder().deleteIndexSettings();
}
/** Returns the builder for the settings used for calls to deleteIndex. */
public OperationCallSettings.Builder
deleteIndexOperationSettings() {
return getStubSettingsBuilder().deleteIndexOperationSettings();
}
/** Returns the builder for the settings used for calls to createCorpus. */
public UnaryCallSettings.Builder createCorpusSettings() {
return getStubSettingsBuilder().createCorpusSettings();
}
/** Returns the builder for the settings used for calls to createCorpus. */
public OperationCallSettings.Builder
createCorpusOperationSettings() {
return getStubSettingsBuilder().createCorpusOperationSettings();
}
/** Returns the builder for the settings used for calls to getCorpus. */
public UnaryCallSettings.Builder getCorpusSettings() {
return getStubSettingsBuilder().getCorpusSettings();
}
/** Returns the builder for the settings used for calls to updateCorpus. */
public UnaryCallSettings.Builder updateCorpusSettings() {
return getStubSettingsBuilder().updateCorpusSettings();
}
/** Returns the builder for the settings used for calls to listCorpora. */
public PagedCallSettings.Builder<
ListCorporaRequest, ListCorporaResponse, ListCorporaPagedResponse>
listCorporaSettings() {
return getStubSettingsBuilder().listCorporaSettings();
}
/** Returns the builder for the settings used for calls to deleteCorpus. */
public UnaryCallSettings.Builder deleteCorpusSettings() {
return getStubSettingsBuilder().deleteCorpusSettings();
}
/** Returns the builder for the settings used for calls to analyzeCorpus. */
public UnaryCallSettings.Builder analyzeCorpusSettings() {
return getStubSettingsBuilder().analyzeCorpusSettings();
}
/** Returns the builder for the settings used for calls to analyzeCorpus. */
public OperationCallSettings.Builder<
AnalyzeCorpusRequest, AnalyzeCorpusResponse, AnalyzeCorpusMetadata>
analyzeCorpusOperationSettings() {
return getStubSettingsBuilder().analyzeCorpusOperationSettings();
}
/** Returns the builder for the settings used for calls to createDataSchema. */
public UnaryCallSettings.Builder
createDataSchemaSettings() {
return getStubSettingsBuilder().createDataSchemaSettings();
}
/** Returns the builder for the settings used for calls to updateDataSchema. */
public UnaryCallSettings.Builder
updateDataSchemaSettings() {
return getStubSettingsBuilder().updateDataSchemaSettings();
}
/** Returns the builder for the settings used for calls to getDataSchema. */
public UnaryCallSettings.Builder getDataSchemaSettings() {
return getStubSettingsBuilder().getDataSchemaSettings();
}
/** Returns the builder for the settings used for calls to deleteDataSchema. */
public UnaryCallSettings.Builder deleteDataSchemaSettings() {
return getStubSettingsBuilder().deleteDataSchemaSettings();
}
/** Returns the builder for the settings used for calls to listDataSchemas. */
public PagedCallSettings.Builder<
ListDataSchemasRequest, ListDataSchemasResponse, ListDataSchemasPagedResponse>
listDataSchemasSettings() {
return getStubSettingsBuilder().listDataSchemasSettings();
}
/** Returns the builder for the settings used for calls to createAnnotation. */
public UnaryCallSettings.Builder
createAnnotationSettings() {
return getStubSettingsBuilder().createAnnotationSettings();
}
/** Returns the builder for the settings used for calls to getAnnotation. */
public UnaryCallSettings.Builder getAnnotationSettings() {
return getStubSettingsBuilder().getAnnotationSettings();
}
/** Returns the builder for the settings used for calls to listAnnotations. */
public PagedCallSettings.Builder<
ListAnnotationsRequest, ListAnnotationsResponse, ListAnnotationsPagedResponse>
listAnnotationsSettings() {
return getStubSettingsBuilder().listAnnotationsSettings();
}
/** Returns the builder for the settings used for calls to updateAnnotation. */
public UnaryCallSettings.Builder
updateAnnotationSettings() {
return getStubSettingsBuilder().updateAnnotationSettings();
}
/** Returns the builder for the settings used for calls to deleteAnnotation. */
public UnaryCallSettings.Builder deleteAnnotationSettings() {
return getStubSettingsBuilder().deleteAnnotationSettings();
}
/** Returns the builder for the settings used for calls to ingestAsset. */
public StreamingCallSettings.Builder
ingestAssetSettings() {
return getStubSettingsBuilder().ingestAssetSettings();
}
/** Returns the builder for the settings used for calls to clipAsset. */
public UnaryCallSettings.Builder clipAssetSettings() {
return getStubSettingsBuilder().clipAssetSettings();
}
/** Returns the builder for the settings used for calls to generateHlsUri. */
public UnaryCallSettings.Builder
generateHlsUriSettings() {
return getStubSettingsBuilder().generateHlsUriSettings();
}
/** Returns the builder for the settings used for calls to importAssets. */
public UnaryCallSettings.Builder importAssetsSettings() {
return getStubSettingsBuilder().importAssetsSettings();
}
/** Returns the builder for the settings used for calls to importAssets. */
public OperationCallSettings.Builder<
ImportAssetsRequest, ImportAssetsResponse, ImportAssetsMetadata>
importAssetsOperationSettings() {
return getStubSettingsBuilder().importAssetsOperationSettings();
}
/** Returns the builder for the settings used for calls to createSearchConfig. */
public UnaryCallSettings.Builder
createSearchConfigSettings() {
return getStubSettingsBuilder().createSearchConfigSettings();
}
/** Returns the builder for the settings used for calls to updateSearchConfig. */
public UnaryCallSettings.Builder
updateSearchConfigSettings() {
return getStubSettingsBuilder().updateSearchConfigSettings();
}
/** Returns the builder for the settings used for calls to getSearchConfig. */
public UnaryCallSettings.Builder
getSearchConfigSettings() {
return getStubSettingsBuilder().getSearchConfigSettings();
}
/** Returns the builder for the settings used for calls to deleteSearchConfig. */
public UnaryCallSettings.Builder
deleteSearchConfigSettings() {
return getStubSettingsBuilder().deleteSearchConfigSettings();
}
/** Returns the builder for the settings used for calls to listSearchConfigs. */
public PagedCallSettings.Builder<
ListSearchConfigsRequest, ListSearchConfigsResponse, ListSearchConfigsPagedResponse>
listSearchConfigsSettings() {
return getStubSettingsBuilder().listSearchConfigsSettings();
}
/** Returns the builder for the settings used for calls to createSearchHypernym. */
public UnaryCallSettings.Builder
createSearchHypernymSettings() {
return getStubSettingsBuilder().createSearchHypernymSettings();
}
/** Returns the builder for the settings used for calls to updateSearchHypernym. */
public UnaryCallSettings.Builder
updateSearchHypernymSettings() {
return getStubSettingsBuilder().updateSearchHypernymSettings();
}
/** Returns the builder for the settings used for calls to getSearchHypernym. */
public UnaryCallSettings.Builder
getSearchHypernymSettings() {
return getStubSettingsBuilder().getSearchHypernymSettings();
}
/** Returns the builder for the settings used for calls to deleteSearchHypernym. */
public UnaryCallSettings.Builder
deleteSearchHypernymSettings() {
return getStubSettingsBuilder().deleteSearchHypernymSettings();
}
/** Returns the builder for the settings used for calls to listSearchHypernyms. */
public PagedCallSettings.Builder<
ListSearchHypernymsRequest,
ListSearchHypernymsResponse,
ListSearchHypernymsPagedResponse>
listSearchHypernymsSettings() {
return getStubSettingsBuilder().listSearchHypernymsSettings();
}
/** Returns the builder for the settings used for calls to searchAssets. */
public PagedCallSettings.Builder<
SearchAssetsRequest, SearchAssetsResponse, SearchAssetsPagedResponse>
searchAssetsSettings() {
return getStubSettingsBuilder().searchAssetsSettings();
}
/** Returns the builder for the settings used for calls to searchIndexEndpoint. */
public PagedCallSettings.Builder<
SearchIndexEndpointRequest,
SearchIndexEndpointResponse,
SearchIndexEndpointPagedResponse>
searchIndexEndpointSettings() {
return getStubSettingsBuilder().searchIndexEndpointSettings();
}
/** Returns the builder for the settings used for calls to createIndexEndpoint. */
public UnaryCallSettings.Builder
createIndexEndpointSettings() {
return getStubSettingsBuilder().createIndexEndpointSettings();
}
/** Returns the builder for the settings used for calls to createIndexEndpoint. */
public OperationCallSettings.Builder<
CreateIndexEndpointRequest, IndexEndpoint, CreateIndexEndpointMetadata>
createIndexEndpointOperationSettings() {
return getStubSettingsBuilder().createIndexEndpointOperationSettings();
}
/** Returns the builder for the settings used for calls to getIndexEndpoint. */
public UnaryCallSettings.Builder
getIndexEndpointSettings() {
return getStubSettingsBuilder().getIndexEndpointSettings();
}
/** Returns the builder for the settings used for calls to listIndexEndpoints. */
public PagedCallSettings.Builder<
ListIndexEndpointsRequest, ListIndexEndpointsResponse, ListIndexEndpointsPagedResponse>
listIndexEndpointsSettings() {
return getStubSettingsBuilder().listIndexEndpointsSettings();
}
/** Returns the builder for the settings used for calls to updateIndexEndpoint. */
public UnaryCallSettings.Builder
updateIndexEndpointSettings() {
return getStubSettingsBuilder().updateIndexEndpointSettings();
}
/** Returns the builder for the settings used for calls to updateIndexEndpoint. */
public OperationCallSettings.Builder<
UpdateIndexEndpointRequest, IndexEndpoint, UpdateIndexEndpointMetadata>
updateIndexEndpointOperationSettings() {
return getStubSettingsBuilder().updateIndexEndpointOperationSettings();
}
/** Returns the builder for the settings used for calls to deleteIndexEndpoint. */
public UnaryCallSettings.Builder
deleteIndexEndpointSettings() {
return getStubSettingsBuilder().deleteIndexEndpointSettings();
}
/** Returns the builder for the settings used for calls to deleteIndexEndpoint. */
public OperationCallSettings.Builder<
DeleteIndexEndpointRequest, Empty, DeleteIndexEndpointMetadata>
deleteIndexEndpointOperationSettings() {
return getStubSettingsBuilder().deleteIndexEndpointOperationSettings();
}
/** Returns the builder for the settings used for calls to deployIndex. */
public UnaryCallSettings.Builder deployIndexSettings() {
return getStubSettingsBuilder().deployIndexSettings();
}
/** Returns the builder for the settings used for calls to deployIndex. */
public OperationCallSettings.Builder<
DeployIndexRequest, DeployIndexResponse, DeployIndexMetadata>
deployIndexOperationSettings() {
return getStubSettingsBuilder().deployIndexOperationSettings();
}
/** Returns the builder for the settings used for calls to undeployIndex. */
public UnaryCallSettings.Builder undeployIndexSettings() {
return getStubSettingsBuilder().undeployIndexSettings();
}
/** Returns the builder for the settings used for calls to undeployIndex. */
public OperationCallSettings.Builder<
UndeployIndexRequest, UndeployIndexResponse, UndeployIndexMetadata>
undeployIndexOperationSettings() {
return getStubSettingsBuilder().undeployIndexOperationSettings();
}
/** Returns the builder for the settings used for calls to createCollection. */
public UnaryCallSettings.Builder
createCollectionSettings() {
return getStubSettingsBuilder().createCollectionSettings();
}
/** Returns the builder for the settings used for calls to createCollection. */
public OperationCallSettings.Builder<
CreateCollectionRequest, Collection, CreateCollectionMetadata>
createCollectionOperationSettings() {
return getStubSettingsBuilder().createCollectionOperationSettings();
}
/** Returns the builder for the settings used for calls to deleteCollection. */
public UnaryCallSettings.Builder
deleteCollectionSettings() {
return getStubSettingsBuilder().deleteCollectionSettings();
}
/** Returns the builder for the settings used for calls to deleteCollection. */
public OperationCallSettings.Builder
deleteCollectionOperationSettings() {
return getStubSettingsBuilder().deleteCollectionOperationSettings();
}
/** Returns the builder for the settings used for calls to getCollection. */
public UnaryCallSettings.Builder getCollectionSettings() {
return getStubSettingsBuilder().getCollectionSettings();
}
/** Returns the builder for the settings used for calls to updateCollection. */
public UnaryCallSettings.Builder
updateCollectionSettings() {
return getStubSettingsBuilder().updateCollectionSettings();
}
/** Returns the builder for the settings used for calls to listCollections. */
public PagedCallSettings.Builder<
ListCollectionsRequest, ListCollectionsResponse, ListCollectionsPagedResponse>
listCollectionsSettings() {
return getStubSettingsBuilder().listCollectionsSettings();
}
/** Returns the builder for the settings used for calls to addCollectionItem. */
public UnaryCallSettings.Builder
addCollectionItemSettings() {
return getStubSettingsBuilder().addCollectionItemSettings();
}
/** Returns the builder for the settings used for calls to removeCollectionItem. */
public UnaryCallSettings.Builder
removeCollectionItemSettings() {
return getStubSettingsBuilder().removeCollectionItemSettings();
}
/** Returns the builder for the settings used for calls to viewCollectionItems. */
public PagedCallSettings.Builder<
ViewCollectionItemsRequest,
ViewCollectionItemsResponse,
ViewCollectionItemsPagedResponse>
viewCollectionItemsSettings() {
return getStubSettingsBuilder().viewCollectionItemsSettings();
}
@Override
public WarehouseSettings build() throws IOException {
return new WarehouseSettings(this);
}
}
}