public static class SpannerSettings.Builder extends ClientSettings.Builder<SpannerSettings,SpannerSettings.Builder>
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(ClientContext clientContext) |
protected |
Builder(SpannerSettings settings) |
protected |
Builder(SpannerStubSettings.Builder stubSettings) |
Modifier and Type | Method and Description |
---|---|
SpannerSettings.Builder |
applyToAllUnaryMethods(com.google.api.core.ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.
|
UnaryCallSettings.Builder<com.google.spanner.v1.BeginTransactionRequest,com.google.spanner.v1.Transaction> |
beginTransactionSettings()
Returns the builder for the settings used for calls to beginTransaction.
|
SpannerSettings |
build() |
UnaryCallSettings.Builder<com.google.spanner.v1.CommitRequest,com.google.spanner.v1.CommitResponse> |
commitSettings()
Returns the builder for the settings used for calls to commit.
|
UnaryCallSettings.Builder<com.google.spanner.v1.CreateSessionRequest,com.google.spanner.v1.Session> |
createSessionSettings()
Returns the builder for the settings used for calls to createSession.
|
UnaryCallSettings.Builder<com.google.spanner.v1.DeleteSessionRequest,Empty> |
deleteSessionSettings()
Returns the builder for the settings used for calls to deleteSession.
|
UnaryCallSettings.Builder<com.google.spanner.v1.ExecuteBatchDmlRequest,com.google.spanner.v1.ExecuteBatchDmlResponse> |
executeBatchDmlSettings()
Returns the builder for the settings used for calls to executeBatchDml.
|
UnaryCallSettings.Builder<com.google.spanner.v1.ExecuteSqlRequest,com.google.spanner.v1.ResultSet> |
executeSqlSettings()
Returns the builder for the settings used for calls to executeSql.
|
ServerStreamingCallSettings.Builder<com.google.spanner.v1.ExecuteSqlRequest,com.google.spanner.v1.PartialResultSet> |
executeStreamingSqlSettings()
Returns the builder for the settings used for calls to executeStreamingSql.
|
UnaryCallSettings.Builder<com.google.spanner.v1.GetSessionRequest,com.google.spanner.v1.Session> |
getSessionSettings()
Returns the builder for the settings used for calls to getSession.
|
SpannerStubSettings.Builder |
getStubSettingsBuilder() |
PagedCallSettings.Builder<com.google.spanner.v1.ListSessionsRequest,com.google.spanner.v1.ListSessionsResponse,SpannerClient.ListSessionsPagedResponse> |
listSessionsSettings()
Returns the builder for the settings used for calls to listSessions.
|
UnaryCallSettings.Builder<com.google.spanner.v1.PartitionQueryRequest,com.google.spanner.v1.PartitionResponse> |
partitionQuerySettings()
Returns the builder for the settings used for calls to partitionQuery.
|
UnaryCallSettings.Builder<com.google.spanner.v1.PartitionReadRequest,com.google.spanner.v1.PartitionResponse> |
partitionReadSettings()
Returns the builder for the settings used for calls to partitionRead.
|
UnaryCallSettings.Builder<com.google.spanner.v1.ReadRequest,com.google.spanner.v1.ResultSet> |
readSettings()
Returns the builder for the settings used for calls to read.
|
UnaryCallSettings.Builder<com.google.spanner.v1.RollbackRequest,Empty> |
rollbackSettings()
Returns the builder for the settings used for calls to rollback.
|
ServerStreamingCallSettings.Builder<com.google.spanner.v1.ReadRequest,com.google.spanner.v1.PartialResultSet> |
streamingReadSettings()
Returns the builder for the settings used for calls to streamingRead.
|
applyToAllUnaryMethods, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, self, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setHeaderProvider, setInternalHeaderProvider, setTransportChannelProvider, setWatchdogCheckInterval, setWatchdogProvider, toString
protected Builder() throws IOException
IOException
protected Builder(ClientContext clientContext)
protected Builder(SpannerSettings settings)
protected Builder(SpannerStubSettings.Builder stubSettings)
public SpannerStubSettings.Builder getStubSettingsBuilder()
public SpannerSettings.Builder applyToAllUnaryMethods(com.google.api.core.ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater) throws Exception
Note: This method does not support applying settings to streaming methods.
Exception
public UnaryCallSettings.Builder<com.google.spanner.v1.CreateSessionRequest,com.google.spanner.v1.Session> createSessionSettings()
public UnaryCallSettings.Builder<com.google.spanner.v1.GetSessionRequest,com.google.spanner.v1.Session> getSessionSettings()
public PagedCallSettings.Builder<com.google.spanner.v1.ListSessionsRequest,com.google.spanner.v1.ListSessionsResponse,SpannerClient.ListSessionsPagedResponse> listSessionsSettings()
public UnaryCallSettings.Builder<com.google.spanner.v1.DeleteSessionRequest,Empty> deleteSessionSettings()
public UnaryCallSettings.Builder<com.google.spanner.v1.ExecuteSqlRequest,com.google.spanner.v1.ResultSet> executeSqlSettings()
public ServerStreamingCallSettings.Builder<com.google.spanner.v1.ExecuteSqlRequest,com.google.spanner.v1.PartialResultSet> executeStreamingSqlSettings()
public UnaryCallSettings.Builder<com.google.spanner.v1.ExecuteBatchDmlRequest,com.google.spanner.v1.ExecuteBatchDmlResponse> executeBatchDmlSettings()
public UnaryCallSettings.Builder<com.google.spanner.v1.ReadRequest,com.google.spanner.v1.ResultSet> readSettings()
public ServerStreamingCallSettings.Builder<com.google.spanner.v1.ReadRequest,com.google.spanner.v1.PartialResultSet> streamingReadSettings()
public UnaryCallSettings.Builder<com.google.spanner.v1.BeginTransactionRequest,com.google.spanner.v1.Transaction> beginTransactionSettings()
public UnaryCallSettings.Builder<com.google.spanner.v1.CommitRequest,com.google.spanner.v1.CommitResponse> commitSettings()
public UnaryCallSettings.Builder<com.google.spanner.v1.RollbackRequest,Empty> rollbackSettings()
public UnaryCallSettings.Builder<com.google.spanner.v1.PartitionQueryRequest,com.google.spanner.v1.PartitionResponse> partitionQuerySettings()
public UnaryCallSettings.Builder<com.google.spanner.v1.PartitionReadRequest,com.google.spanner.v1.PartitionResponse> partitionReadSettings()
public SpannerSettings build() throws IOException
build
in class ClientSettings.Builder<SpannerSettings,SpannerSettings.Builder>
IOException
Copyright © 2019 Google LLC. All rights reserved.