public static class SpannerStubSettings.Builder extends StubSettings.Builder<SpannerStubSettings,SpannerStubSettings.Builder>
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(ClientContext clientContext) |
protected |
Builder(SpannerStubSettings settings) |
Modifier and Type | Method and Description |
---|---|
SpannerStubSettings.Builder |
applyToAllUnaryMethods(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.
|
SpannerStubSettings |
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.
|
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.
|
com.google.common.collect.ImmutableList<UnaryCallSettings.Builder<?,?>> |
unaryMethodSettingsBuilders() |
applyToAllUnaryMethods, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, self, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setHeaderProvider, setInternalHeaderProvider, setStreamWatchdogCheckInterval, setStreamWatchdogProvider, setTracerFactory, setTransportChannelProvider, toString
protected Builder()
protected Builder(ClientContext clientContext)
protected Builder(SpannerStubSettings settings)
public SpannerStubSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater) throws Exception
Note: This method does not support applying settings to streaming methods.
Exception
public com.google.common.collect.ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
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 SpannerStubSettings build() throws IOException
build
in class StubSettings.Builder<SpannerStubSettings,SpannerStubSettings.Builder>
IOException
Copyright © 2019 Google LLC. All rights reserved.