Beta
This library is covered by the Pre-GA Offerings Terms
of the Terms of Service. Pre-GA libraries might have limited support,
and changes to pre-GA libraries might not be compatible with other pre-GA versions.
For more information, see the
launch stage descriptions .
public class SqlInstancesServiceStubSettings extends StubSettings<SqlInstancesServiceStubSettings>
Settings class to configure an instance of SqlInstancesServiceStub .
The default instance has everything set to sensible defaults:
The default service address (sqladmin.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
of addServerCa:
// 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
SqlInstancesServiceStubSettings . Builder sqlInstancesServiceSettingsBuilder =
SqlInstancesServiceStubSettings . newBuilder ();
sqlInstancesServiceSettingsBuilder
. addServerCaSettings ()
. setRetrySettings (
sqlInstancesServiceSettingsBuilder
. addServerCaSettings ()
. 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 ());
SqlInstancesServiceStubSettings sqlInstancesServiceSettings =
sqlInstancesServiceSettingsBuilder . build ();
Please refer to the Client Side Retry
Guide for additional support in setting
retries.
Static Methods
public static ApiClientHeaderProvider . Builder defaultApiClientHeaderProviderBuilder ()
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider . Builder defaultCredentialsProviderBuilder ()
Returns a builder for the default credentials for this service.
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider . Builder defaultExecutorProviderBuilder ()
Returns a builder for the default ExecutorProvider for this service.
public static ApiClientHeaderProvider . Builder defaultGrpcApiClientHeaderProviderBuilder ()
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider . Builder defaultGrpcTransportProviderBuilder ()
Returns a builder for the default gRPC ChannelProvider for this service.
public static ApiClientHeaderProvider . Builder defaultHttpJsonApiClientHeaderProviderBuilder ()
defaultHttpJsonTransportProviderBuilder()
public static InstantiatingHttpJsonChannelProvider . Builder defaultHttpJsonTransportProviderBuilder ()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns a builder for the default REST ChannelProvider for this service.
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider ()
getDefaultEndpoint()
public static String getDefaultEndpoint ()
Obsolete
Use getEndpoint() instead
This feature is stable for usage in this major version, but may be deprecated in a future release.
Returns the default service endpoint.
Returns
Type
Description
String
getDefaultMtlsEndpoint()
public static String getDefaultMtlsEndpoint ()
Returns the default mTLS service endpoint.
Returns
Type
Description
String
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes ()
Returns the default service scopes.
newBuilder()
public static SqlInstancesServiceStubSettings . Builder newBuilder ()
Returns a new gRPC builder for this class.
newBuilder(@Nullable ClientContext clientContext)
public static SqlInstancesServiceStubSettings . Builder newBuilder ( @Nullable ClientContext clientContext )
Returns a new builder for this class.
Parameter
Name
Description
clientContext
@org.jspecify.annotations.Nullable com.google.api.gax.rpc.ClientContext
newHttpJsonBuilder()
public static SqlInstancesServiceStubSettings . Builder newHttpJsonBuilder ()
Returns a new REST builder for this class.
Constructors
SqlInstancesServiceStubSettings(SqlInstancesServiceStubSettings.Builder settingsBuilder)
protected SqlInstancesServiceStubSettings ( SqlInstancesServiceStubSettings . Builder settingsBuilder )
Methods
acquireSsrsLeaseSettings()
public UnaryCallSettings<SqlInstancesAcquireSsrsLeaseRequest , SqlInstancesAcquireSsrsLeaseResponse > acquireSsrsLeaseSettings ()
Returns the object with the settings used for calls to acquireSsrsLease.
addEntraIdCertificateSettings()
public UnaryCallSettings<SqlInstancesAddEntraIdCertificateRequest , Operation > addEntraIdCertificateSettings ()
Returns the object with the settings used for calls to addEntraIdCertificate.
addServerCaSettings()
public UnaryCallSettings<SqlInstancesAddServerCaRequest , Operation > addServerCaSettings ()
Returns the object with the settings used for calls to addServerCa.
addServerCertificateSettings()
public UnaryCallSettings<SqlInstancesAddServerCertificateRequest , Operation > addServerCertificateSettings ()
Returns the object with the settings used for calls to addServerCertificate.
cloneSettings()
public UnaryCallSettings<SqlInstancesCloneRequest , Operation > cloneSettings ()
Returns the object with the settings used for calls to clone.
createEphemeralSettings()
public UnaryCallSettings<SqlInstancesCreateEphemeralCertRequest , SslCert > createEphemeralSettings ()
Returns the object with the settings used for calls to createEphemeral.
createStub()
public SqlInstancesServiceStub createStub ()
deleteSettings()
public UnaryCallSettings<SqlInstancesDeleteRequest , Operation > deleteSettings ()
Returns the object with the settings used for calls to delete.
demoteMasterSettings()
public UnaryCallSettings<SqlInstancesDemoteMasterRequest , Operation > demoteMasterSettings ()
Returns the object with the settings used for calls to demoteMaster.
demoteSettings()
public UnaryCallSettings<SqlInstancesDemoteRequest , Operation > demoteSettings ()
Returns the object with the settings used for calls to demote.
executeSqlSettings()
public UnaryCallSettings<SqlInstancesExecuteSqlRequest , SqlInstancesExecuteSqlResponse > executeSqlSettings ()
Returns the object with the settings used for calls to executeSql.
exportSettings()
public UnaryCallSettings<SqlInstancesExportRequest , Operation > exportSettings ()
Returns the object with the settings used for calls to export.
failoverSettings()
public UnaryCallSettings<SqlInstancesFailoverRequest , Operation > failoverSettings ()
Returns the object with the settings used for calls to failover.
getDiskShrinkConfigSettings()
public UnaryCallSettings<SqlInstancesGetDiskShrinkConfigRequest , SqlInstancesGetDiskShrinkConfigResponse > getDiskShrinkConfigSettings ()
Returns the object with the settings used for calls to getDiskShrinkConfig.
getLatestRecoveryTimeSettings()
public UnaryCallSettings<SqlInstancesGetLatestRecoveryTimeRequest , SqlInstancesGetLatestRecoveryTimeResponse > getLatestRecoveryTimeSettings ()
Returns the object with the settings used for calls to getLatestRecoveryTime.
protected LibraryMetadata getLibraryMetadata ()
Overrides
getServiceName()
public String getServiceName ()
Returns the default service name.
Returns
Type
Description
String
Overrides
getSettings()
public UnaryCallSettings<SqlInstancesGetRequest , DatabaseInstance > getSettings ()
Returns the object with the settings used for calls to get.
import_Settings()
public UnaryCallSettings<SqlInstancesImportRequest , Operation > import_Settings ()
Returns the object with the settings used for calls to import_.
insertSettings()
public UnaryCallSettings<SqlInstancesInsertRequest , Operation > insertSettings ()
Returns the object with the settings used for calls to insert.
listEntraIdCertificatesSettings()
public UnaryCallSettings<SqlInstancesListEntraIdCertificatesRequest , InstancesListEntraIdCertificatesResponse > listEntraIdCertificatesSettings ()
Returns the object with the settings used for calls to listEntraIdCertificates.
listServerCasSettings()
public UnaryCallSettings<SqlInstancesListServerCasRequest , InstancesListServerCasResponse > listServerCasSettings ()
Returns the object with the settings used for calls to listServerCas.
listServerCertificatesSettings()
public UnaryCallSettings<SqlInstancesListServerCertificatesRequest , InstancesListServerCertificatesResponse > listServerCertificatesSettings ()
Returns the object with the settings used for calls to listServerCertificates.
listSettings()
public UnaryCallSettings<SqlInstancesListRequest , InstancesListResponse > listSettings ()
Returns the object with the settings used for calls to list.
patchSettings()
public UnaryCallSettings<SqlInstancesPatchRequest , Operation > patchSettings ()
Returns the object with the settings used for calls to patch.
public UnaryCallSettings<SqlInstancesPerformDiskShrinkRequest , Operation > performDiskShrinkSettings ()
Returns the object with the settings used for calls to performDiskShrink.
pointInTimeRestoreSettings()
public UnaryCallSettings<SqlInstancesPointInTimeRestoreRequest , Operation > pointInTimeRestoreSettings ()
Returns the object with the settings used for calls to pointInTimeRestore.
preCheckMajorVersionUpgradeSettings()
public UnaryCallSettings<SqlInstancesPreCheckMajorVersionUpgradeRequest , Operation > preCheckMajorVersionUpgradeSettings ()
Returns the object with the settings used for calls to preCheckMajorVersionUpgrade.
public UnaryCallSettings<SqlInstancesPromoteReplicaRequest , Operation > promoteReplicaSettings ()
Returns the object with the settings used for calls to promoteReplica.
reencryptSettings()
public UnaryCallSettings<SqlInstancesReencryptRequest , Operation > reencryptSettings ()
Returns the object with the settings used for calls to reencrypt.
releaseSsrsLeaseSettings()
public UnaryCallSettings<SqlInstancesReleaseSsrsLeaseRequest , SqlInstancesReleaseSsrsLeaseResponse > releaseSsrsLeaseSettings ()
Returns the object with the settings used for calls to releaseSsrsLease.
rescheduleMaintenanceSettings()
public UnaryCallSettings<SqlInstancesRescheduleMaintenanceRequest , Operation > rescheduleMaintenanceSettings ()
Returns the object with the settings used for calls to rescheduleMaintenance.
resetReplicaSizeSettings()
public UnaryCallSettings<SqlInstancesResetReplicaSizeRequest , Operation > resetReplicaSizeSettings ()
Returns the object with the settings used for calls to resetReplicaSize.
resetSslConfigSettings()
public UnaryCallSettings<SqlInstancesResetSslConfigRequest , Operation > resetSslConfigSettings ()
Returns the object with the settings used for calls to resetSslConfig.
restartSettings()
public UnaryCallSettings<SqlInstancesRestartRequest , Operation > restartSettings ()
Returns the object with the settings used for calls to restart.
restoreBackupSettings()
public UnaryCallSettings<SqlInstancesRestoreBackupRequest , Operation > restoreBackupSettings ()
Returns the object with the settings used for calls to restoreBackup.
rotateEntraIdCertificateSettings()
public UnaryCallSettings<SqlInstancesRotateEntraIdCertificateRequest , Operation > rotateEntraIdCertificateSettings ()
Returns the object with the settings used for calls to rotateEntraIdCertificate.
rotateServerCaSettings()
public UnaryCallSettings<SqlInstancesRotateServerCaRequest , Operation > rotateServerCaSettings ()
Returns the object with the settings used for calls to rotateServerCa.
rotateServerCertificateSettings()
public UnaryCallSettings<SqlInstancesRotateServerCertificateRequest , Operation > rotateServerCertificateSettings ()
Returns the object with the settings used for calls to rotateServerCertificate.
startExternalSyncSettings()
public UnaryCallSettings<SqlInstancesStartExternalSyncRequest , Operation > startExternalSyncSettings ()
Returns the object with the settings used for calls to startExternalSync.
startReplicaSettings()
public UnaryCallSettings<SqlInstancesStartReplicaRequest , Operation > startReplicaSettings ()
Returns the object with the settings used for calls to startReplica.
stopReplicaSettings()
public UnaryCallSettings<SqlInstancesStopReplicaRequest , Operation > stopReplicaSettings ()
Returns the object with the settings used for calls to stopReplica.
switchoverSettings()
public UnaryCallSettings<SqlInstancesSwitchoverRequest , Operation > switchoverSettings ()
Returns the object with the settings used for calls to switchover.
toBuilder()
public SqlInstancesServiceStubSettings . Builder toBuilder ()
Returns a builder containing all the values of this settings class.
Overrides
truncateLogSettings()
public UnaryCallSettings<SqlInstancesTruncateLogRequest , Operation > truncateLogSettings ()
Returns the object with the settings used for calls to truncateLog.
updateSettings()
public UnaryCallSettings<SqlInstancesUpdateRequest , Operation > updateSettings ()
Returns the object with the settings used for calls to update.
verifyExternalSyncSettingsSettings()
public UnaryCallSettings<SqlInstancesVerifyExternalSyncSettingsRequest , SqlInstancesVerifyExternalSyncSettingsResponse > verifyExternalSyncSettingsSettings ()
Returns the object with the settings used for calls to verifyExternalSyncSettings.