Package com.google.cloud.spanner.v1
Class SpannerSettings.Builder
java.lang.Object
com.google.api.gax.rpc.ClientSettings.Builder<SpannerSettings,SpannerSettings.Builder>
com.google.cloud.spanner.v1.SpannerSettings.Builder
- Enclosing class:
- SpannerSettings
public static class SpannerSettings.Builder
extends ClientSettings.Builder<SpannerSettings,SpannerSettings.Builder>
Builder for SpannerSettings.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder()protectedBuilder(ClientContext clientContext) protectedBuilder(SpannerSettings settings) protectedBuilder(SpannerStubSettings.Builder stubSettings) -
Method Summary
Modifier and TypeMethodDescriptionapplyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) Applies the given settings updater function to all of the unary API methods in this service.Returns the builder for the settings used for calls to batchCreateSessions.Returns the builder for the settings used for calls to batchWrite.Returns the builder for the settings used for calls to beginTransaction.build()Returns the builder for the settings used for calls to commit.Returns the builder for the settings used for calls to createSession.UnaryCallSettings.Builder<DeleteSessionRequest,com.google.protobuf.Empty> Returns the builder for the settings used for calls to deleteSession.Returns the builder for the settings used for calls to executeBatchDml.Returns the builder for the settings used for calls to executeSql.Returns the builder for the settings used for calls to executeStreamingSql.Returns the builder for the settings used for calls to getSession.PagedCallSettings.Builder<ListSessionsRequest,ListSessionsResponse, SpannerClient.ListSessionsPagedResponse> Returns the builder for the settings used for calls to listSessions.Returns the builder for the settings used for calls to partitionQuery.Returns the builder for the settings used for calls to partitionRead.Returns the builder for the settings used for calls to read.UnaryCallSettings.Builder<RollbackRequest,com.google.protobuf.Empty> Returns the builder for the settings used for calls to rollback.Returns the builder for the settings used for calls to streamingRead.Methods inherited from class com.google.api.gax.rpc.ClientSettings.Builder
applyToAllUnaryMethods, getApiKey, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogCheckIntervalDuration, getWatchdogProvider, self, setApiKey, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setGdchApiAudience, setHeaderProvider, setInternalHeaderProvider, setQuotaProjectId, setTransportChannelProvider, setUniverseDomain, setWatchdogCheckInterval, setWatchdogCheckIntervalDuration, setWatchdogProvider, toString
-
Constructor Details
-
Builder
- Throws:
IOException
-
Builder
-
Builder
-
Builder
-
-
Method Details
-
getStubSettingsBuilder
-
applyToAllUnaryMethods
public SpannerSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) 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.
-
createSessionSettings
Returns the builder for the settings used for calls to createSession. -
batchCreateSessionsSettings
public UnaryCallSettings.Builder<BatchCreateSessionsRequest,BatchCreateSessionsResponse> batchCreateSessionsSettings()Returns the builder for the settings used for calls to batchCreateSessions. -
getSessionSettings
Returns the builder for the settings used for calls to getSession. -
listSessionsSettings
public PagedCallSettings.Builder<ListSessionsRequest,ListSessionsResponse, listSessionsSettings()SpannerClient.ListSessionsPagedResponse> Returns the builder for the settings used for calls to listSessions. -
deleteSessionSettings
public UnaryCallSettings.Builder<DeleteSessionRequest,com.google.protobuf.Empty> deleteSessionSettings()Returns the builder for the settings used for calls to deleteSession. -
executeSqlSettings
Returns the builder for the settings used for calls to executeSql. -
executeStreamingSqlSettings
public ServerStreamingCallSettings.Builder<ExecuteSqlRequest,PartialResultSet> executeStreamingSqlSettings()Returns the builder for the settings used for calls to executeStreamingSql. -
executeBatchDmlSettings
public UnaryCallSettings.Builder<ExecuteBatchDmlRequest,ExecuteBatchDmlResponse> executeBatchDmlSettings()Returns the builder for the settings used for calls to executeBatchDml. -
readSettings
Returns the builder for the settings used for calls to read. -
streamingReadSettings
Returns the builder for the settings used for calls to streamingRead. -
beginTransactionSettings
Returns the builder for the settings used for calls to beginTransaction. -
commitSettings
Returns the builder for the settings used for calls to commit. -
rollbackSettings
Returns the builder for the settings used for calls to rollback. -
partitionQuerySettings
Returns the builder for the settings used for calls to partitionQuery. -
partitionReadSettings
Returns the builder for the settings used for calls to partitionRead. -
batchWriteSettings
public ServerStreamingCallSettings.Builder<BatchWriteRequest,BatchWriteResponse> batchWriteSettings()Returns the builder for the settings used for calls to batchWrite. -
build
- Specified by:
buildin classClientSettings.Builder<SpannerSettings,SpannerSettings.Builder> - Throws:
IOException
-