@Generated(value="by gapic-generator") public class SpannerSettings extends com.google.api.gax.rpc.ClientSettings<SpannerSettings>
SpannerClient
.
The default instance has everything set to sensible defaults:
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 total timeout of createSession to 30 seconds:
SpannerSettings.Builder spannerSettingsBuilder =
SpannerSettings.newBuilder();
spannerSettingsBuilder.createSessionSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30));
SpannerSettings spannerSettings = spannerSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
SpannerSettings.Builder
Builder for SpannerSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
SpannerSettings(SpannerSettings.Builder settingsBuilder) |
Modifier and Type | Method and Description |
---|---|
com.google.api.gax.rpc.UnaryCallSettings<BatchCreateSessionsRequest,BatchCreateSessionsResponse> |
batchCreateSessionsSettings()
Returns the object with the settings used for calls to batchCreateSessions.
|
com.google.api.gax.rpc.UnaryCallSettings<BeginTransactionRequest,Transaction> |
beginTransactionSettings()
Returns the object with the settings used for calls to beginTransaction.
|
com.google.api.gax.rpc.UnaryCallSettings<CommitRequest,CommitResponse> |
commitSettings()
Returns the object with the settings used for calls to commit.
|
static SpannerSettings |
create(SpannerStubSettings stub) |
com.google.api.gax.rpc.UnaryCallSettings<CreateSessionRequest,Session> |
createSessionSettings()
Returns the object with the settings used for calls to createSession.
|
static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder |
defaultApiClientHeaderProviderBuilder() |
static com.google.api.gax.core.GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static com.google.api.gax.core.InstantiatingExecutorProvider.Builder |
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
|
static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
|
static com.google.api.gax.rpc.TransportChannelProvider |
defaultTransportChannelProvider() |
com.google.api.gax.rpc.UnaryCallSettings<DeleteSessionRequest,Empty> |
deleteSessionSettings()
Returns the object with the settings used for calls to deleteSession.
|
com.google.api.gax.rpc.UnaryCallSettings<ExecuteBatchDmlRequest,ExecuteBatchDmlResponse> |
executeBatchDmlSettings()
Returns the object with the settings used for calls to executeBatchDml.
|
com.google.api.gax.rpc.UnaryCallSettings<ExecuteSqlRequest,ResultSet> |
executeSqlSettings()
Returns the object with the settings used for calls to executeSql.
|
com.google.api.gax.rpc.ServerStreamingCallSettings<ExecuteSqlRequest,PartialResultSet> |
executeStreamingSqlSettings()
Returns the object with the settings used for calls to executeStreamingSql.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
com.google.api.gax.rpc.UnaryCallSettings<GetSessionRequest,Session> |
getSessionSettings()
Returns the object with the settings used for calls to getSession.
|
com.google.api.gax.rpc.PagedCallSettings<ListSessionsRequest,ListSessionsResponse,SpannerClient.ListSessionsPagedResponse> |
listSessionsSettings()
Returns the object with the settings used for calls to listSessions.
|
static SpannerSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
static SpannerSettings.Builder |
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
|
com.google.api.gax.rpc.UnaryCallSettings<PartitionQueryRequest,PartitionResponse> |
partitionQuerySettings()
Returns the object with the settings used for calls to partitionQuery.
|
com.google.api.gax.rpc.UnaryCallSettings<PartitionReadRequest,PartitionResponse> |
partitionReadSettings()
Returns the object with the settings used for calls to partitionRead.
|
com.google.api.gax.rpc.UnaryCallSettings<ReadRequest,ResultSet> |
readSettings()
Returns the object with the settings used for calls to read.
|
com.google.api.gax.rpc.UnaryCallSettings<RollbackRequest,Empty> |
rollbackSettings()
Returns the object with the settings used for calls to rollback.
|
com.google.api.gax.rpc.ServerStreamingCallSettings<ReadRequest,PartialResultSet> |
streamingReadSettings()
Returns the object with the settings used for calls to streamingRead.
|
SpannerSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
protected SpannerSettings(SpannerSettings.Builder settingsBuilder) throws IOException
IOException
public com.google.api.gax.rpc.UnaryCallSettings<CreateSessionRequest,Session> createSessionSettings()
public com.google.api.gax.rpc.UnaryCallSettings<BatchCreateSessionsRequest,BatchCreateSessionsResponse> batchCreateSessionsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetSessionRequest,Session> getSessionSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListSessionsRequest,ListSessionsResponse,SpannerClient.ListSessionsPagedResponse> listSessionsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteSessionRequest,Empty> deleteSessionSettings()
public com.google.api.gax.rpc.UnaryCallSettings<ExecuteSqlRequest,ResultSet> executeSqlSettings()
public com.google.api.gax.rpc.ServerStreamingCallSettings<ExecuteSqlRequest,PartialResultSet> executeStreamingSqlSettings()
public com.google.api.gax.rpc.UnaryCallSettings<ExecuteBatchDmlRequest,ExecuteBatchDmlResponse> executeBatchDmlSettings()
public com.google.api.gax.rpc.UnaryCallSettings<ReadRequest,ResultSet> readSettings()
public com.google.api.gax.rpc.ServerStreamingCallSettings<ReadRequest,PartialResultSet> streamingReadSettings()
public com.google.api.gax.rpc.UnaryCallSettings<BeginTransactionRequest,Transaction> beginTransactionSettings()
public com.google.api.gax.rpc.UnaryCallSettings<CommitRequest,CommitResponse> commitSettings()
public com.google.api.gax.rpc.UnaryCallSettings<RollbackRequest,Empty> rollbackSettings()
public com.google.api.gax.rpc.UnaryCallSettings<PartitionQueryRequest,PartitionResponse> partitionQuerySettings()
public com.google.api.gax.rpc.UnaryCallSettings<PartitionReadRequest,PartitionResponse> partitionReadSettings()
public static final SpannerSettings create(SpannerStubSettings stub) throws IOException
IOException
public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static List<String> getDefaultServiceScopes()
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static SpannerSettings.Builder newBuilder()
public static SpannerSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
public SpannerSettings.Builder toBuilder()
toBuilder
in class com.google.api.gax.rpc.ClientSettings<SpannerSettings>
Copyright © 2019 Google LLC. All rights reserved.