Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import static com.google.cloud.bigtable.admin.v2.BaseBigtableInstanceAdminClient.ListMaterializedViewsPagedResponse;

import com.google.api.core.ApiFunction;
import com.google.api.core.InternalApi;
import com.google.api.gax.core.GoogleCredentialsProvider;
import com.google.api.gax.core.InstantiatingExecutorProvider;
import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider;
Expand Down Expand Up @@ -93,9 +92,83 @@
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/** For internal use only. */
@Generated("by gapic-generator")
@InternalApi
/**
* Settings class to configure an instance of {@link BaseBigtableInstanceAdminClient}.
*
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li>The default service address (bigtableadmin.googleapis.com) and default port (443) are used.
* <li>Credentials are acquired automatically through Application Default Credentials.
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
* </ul>
*
* <p>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.
*
* <p>For example, to set the
* [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
* of getInstance:
*
* <pre>{@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
* BaseBigtableInstanceAdminSettings.Builder baseBigtableInstanceAdminSettingsBuilder =
* BaseBigtableInstanceAdminSettings.newBuilder();
* baseBigtableInstanceAdminSettingsBuilder
* .getInstanceSettings()
* .setRetrySettings(
* baseBigtableInstanceAdminSettingsBuilder
* .getInstanceSettings()
* .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());
* BaseBigtableInstanceAdminSettings baseBigtableInstanceAdminSettings =
* baseBigtableInstanceAdminSettingsBuilder.build();
* }</pre>
*
* Please refer to the [Client Side Retry
* Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
* retries.
*
* <p>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 createInstance:
*
* <pre>{@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
* BaseBigtableInstanceAdminSettings.Builder baseBigtableInstanceAdminSettingsBuilder =
* BaseBigtableInstanceAdminSettings.newBuilder();
* TimedRetryAlgorithm timedRetryAlgorithm =
* OperationalTimedPollAlgorithm.create(
* RetrySettings.newBuilder()
* .setInitialRetryDelayDuration(Duration.ofMillis(500))
* .setRetryDelayMultiplier(1.5)
* .setMaxRetryDelayDuration(Duration.ofMillis(5000))
* .setTotalTimeoutDuration(Duration.ofHours(24))
* .build());
* baseBigtableInstanceAdminSettingsBuilder
* .createClusterOperationSettings()
* .setPollingAlgorithm(timedRetryAlgorithm)
* .build();
* }</pre>
*/
@Generated("by gapic-generator-java")
public class BaseBigtableInstanceAdminSettings
extends ClientSettings<BaseBigtableInstanceAdminSettings> {

Expand All @@ -121,6 +194,11 @@ public UnaryCallSettings<ListInstancesRequest, ListInstancesResponse> listInstan
return ((BigtableInstanceAdminStubSettings) getStubSettings()).listInstancesSettings();
}

/** Returns the object with the settings used for calls to updateInstance. */
public UnaryCallSettings<Instance, Instance> updateInstanceSettings() {
return ((BigtableInstanceAdminStubSettings) getStubSettings()).updateInstanceSettings();
}

/** Returns the object with the settings used for calls to partialUpdateInstance. */
public UnaryCallSettings<PartialUpdateInstanceRequest, Operation>
partialUpdateInstanceSettings() {
Expand Down Expand Up @@ -453,6 +531,11 @@ public UnaryCallSettings.Builder<GetInstanceRequest, Instance> getInstanceSettin
return getStubSettingsBuilder().listInstancesSettings();
}

/** Returns the builder for the settings used for calls to updateInstance. */
public UnaryCallSettings.Builder<Instance, Instance> updateInstanceSettings() {
return getStubSettingsBuilder().updateInstanceSettings();
}

/** Returns the builder for the settings used for calls to partialUpdateInstance. */
public UnaryCallSettings.Builder<PartialUpdateInstanceRequest, Operation>
partialUpdateInstanceSettings() {
Expand Down
Loading
Loading