public static class SpannerSettings.Builder extends com.google.api.gax.rpc.ClientSettings.Builder<SpannerSettings,SpannerSettings.Builder>
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(com.google.api.gax.rpc.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<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.
|
com.google.api.gax.rpc.UnaryCallSettings.Builder<BatchCreateSessionsRequest,BatchCreateSessionsResponse> |
batchCreateSessionsSettings()
Returns the builder for the settings used for calls to batchCreateSessions.
|
com.google.api.gax.rpc.UnaryCallSettings.Builder<BeginTransactionRequest,Transaction> |
beginTransactionSettings()
Returns the builder for the settings used for calls to beginTransaction.
|
SpannerSettings |
build() |
com.google.api.gax.rpc.UnaryCallSettings.Builder<CommitRequest,CommitResponse> |
commitSettings()
Returns the builder for the settings used for calls to commit.
|
com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateSessionRequest,Session> |
createSessionSettings()
Returns the builder for the settings used for calls to createSession.
|
com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteSessionRequest,Empty> |
deleteSessionSettings()
Returns the builder for the settings used for calls to deleteSession.
|
com.google.api.gax.rpc.UnaryCallSettings.Builder<ExecuteBatchDmlRequest,ExecuteBatchDmlResponse> |
executeBatchDmlSettings()
Returns the builder for the settings used for calls to executeBatchDml.
|
com.google.api.gax.rpc.UnaryCallSettings.Builder<ExecuteSqlRequest,ResultSet> |
executeSqlSettings()
Returns the builder for the settings used for calls to executeSql.
|
com.google.api.gax.rpc.ServerStreamingCallSettings.Builder<ExecuteSqlRequest,PartialResultSet> |
executeStreamingSqlSettings()
Returns the builder for the settings used for calls to executeStreamingSql.
|
com.google.api.gax.rpc.UnaryCallSettings.Builder<GetSessionRequest,Session> |
getSessionSettings()
Returns the builder for the settings used for calls to getSession.
|
SpannerStubSettings.Builder |
getStubSettingsBuilder() |
com.google.api.gax.rpc.PagedCallSettings.Builder<ListSessionsRequest,ListSessionsResponse,SpannerClient.ListSessionsPagedResponse> |
listSessionsSettings()
Returns the builder for the settings used for calls to listSessions.
|
com.google.api.gax.rpc.UnaryCallSettings.Builder<PartitionQueryRequest,PartitionResponse> |
partitionQuerySettings()
Returns the builder for the settings used for calls to partitionQuery.
|
com.google.api.gax.rpc.UnaryCallSettings.Builder<PartitionReadRequest,PartitionResponse> |
partitionReadSettings()
Returns the builder for the settings used for calls to partitionRead.
|
com.google.api.gax.rpc.UnaryCallSettings.Builder<ReadRequest,ResultSet> |
readSettings()
Returns the builder for the settings used for calls to read.
|
com.google.api.gax.rpc.UnaryCallSettings.Builder<RollbackRequest,Empty> |
rollbackSettings()
Returns the builder for the settings used for calls to rollback.
|
com.google.api.gax.rpc.ServerStreamingCallSettings.Builder<ReadRequest,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(com.google.api.gax.rpc.ClientContext clientContext)
protected Builder(SpannerSettings settings)
protected Builder(SpannerStubSettings.Builder stubSettings)
public SpannerStubSettings.Builder getStubSettingsBuilder()
public SpannerSettings.Builder applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>,Void> settingsUpdater) throws Exception
Note: This method does not support applying settings to streaming methods.
Exception
public com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateSessionRequest,Session> createSessionSettings()
public com.google.api.gax.rpc.UnaryCallSettings.Builder<BatchCreateSessionsRequest,BatchCreateSessionsResponse> batchCreateSessionsSettings()
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetSessionRequest,Session> getSessionSettings()
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListSessionsRequest,ListSessionsResponse,SpannerClient.ListSessionsPagedResponse> listSessionsSettings()
public com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteSessionRequest,Empty> deleteSessionSettings()
public com.google.api.gax.rpc.UnaryCallSettings.Builder<ExecuteSqlRequest,ResultSet> executeSqlSettings()
public com.google.api.gax.rpc.ServerStreamingCallSettings.Builder<ExecuteSqlRequest,PartialResultSet> executeStreamingSqlSettings()
public com.google.api.gax.rpc.UnaryCallSettings.Builder<ExecuteBatchDmlRequest,ExecuteBatchDmlResponse> executeBatchDmlSettings()
public com.google.api.gax.rpc.UnaryCallSettings.Builder<ReadRequest,ResultSet> readSettings()
public com.google.api.gax.rpc.ServerStreamingCallSettings.Builder<ReadRequest,PartialResultSet> streamingReadSettings()
public com.google.api.gax.rpc.UnaryCallSettings.Builder<BeginTransactionRequest,Transaction> beginTransactionSettings()
public com.google.api.gax.rpc.UnaryCallSettings.Builder<CommitRequest,CommitResponse> commitSettings()
public com.google.api.gax.rpc.UnaryCallSettings.Builder<RollbackRequest,Empty> rollbackSettings()
public com.google.api.gax.rpc.UnaryCallSettings.Builder<PartitionQueryRequest,PartitionResponse> partitionQuerySettings()
public com.google.api.gax.rpc.UnaryCallSettings.Builder<PartitionReadRequest,PartitionResponse> partitionReadSettings()
public SpannerSettings build() throws IOException
build
in class com.google.api.gax.rpc.ClientSettings.Builder<SpannerSettings,SpannerSettings.Builder>
IOException
Copyright © 2019 Google LLC. All rights reserved.