@Generated(value="by gapic-generator-java") public class SpannerStubSettings extends StubSettings<SpannerStubSettings>
SpannerStub
.
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:
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
SpannerStubSettings.Builder spannerSettingsBuilder = SpannerStubSettings.newBuilder();
spannerSettingsBuilder
.createSessionSettings()
.setRetrySettings(
spannerSettingsBuilder
.createSessionSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
SpannerStubSettings spannerSettings = spannerSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
SpannerStubSettings.Builder
Builder for SpannerStubSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
SpannerStubSettings(SpannerStubSettings.Builder settingsBuilder) |
Modifier and Type | Method and Description |
---|---|
UnaryCallSettings<BatchCreateSessionsRequest,BatchCreateSessionsResponse> |
batchCreateSessionsSettings()
Returns the object with the settings used for calls to batchCreateSessions.
|
UnaryCallSettings<BeginTransactionRequest,Transaction> |
beginTransactionSettings()
Returns the object with the settings used for calls to beginTransaction.
|
UnaryCallSettings<CommitRequest,CommitResponse> |
commitSettings()
Returns the object with the settings used for calls to commit.
|
UnaryCallSettings<CreateSessionRequest,Session> |
createSessionSettings()
Returns the object with the settings used for calls to createSession.
|
SpannerStub |
createStub() |
static ApiClientHeaderProvider.Builder |
defaultApiClientHeaderProviderBuilder() |
static GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static InstantiatingExecutorProvider.Builder |
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
|
static InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
|
static TransportChannelProvider |
defaultTransportChannelProvider() |
UnaryCallSettings<DeleteSessionRequest,Empty> |
deleteSessionSettings()
Returns the object with the settings used for calls to deleteSession.
|
UnaryCallSettings<ExecuteBatchDmlRequest,ExecuteBatchDmlResponse> |
executeBatchDmlSettings()
Returns the object with the settings used for calls to executeBatchDml.
|
UnaryCallSettings<ExecuteSqlRequest,ResultSet> |
executeSqlSettings()
Returns the object with the settings used for calls to executeSql.
|
ServerStreamingCallSettings<ExecuteSqlRequest,PartialResultSet> |
executeStreamingSqlSettings()
Returns the object with the settings used for calls to executeStreamingSql.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static String |
getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
UnaryCallSettings<GetSessionRequest,Session> |
getSessionSettings()
Returns the object with the settings used for calls to getSession.
|
PagedCallSettings<ListSessionsRequest,ListSessionsResponse,SpannerClient.ListSessionsPagedResponse> |
listSessionsSettings()
Returns the object with the settings used for calls to listSessions.
|
static SpannerStubSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
static SpannerStubSettings.Builder |
newBuilder(ClientContext clientContext)
Returns a new builder for this class.
|
UnaryCallSettings<PartitionQueryRequest,PartitionResponse> |
partitionQuerySettings()
Returns the object with the settings used for calls to partitionQuery.
|
UnaryCallSettings<PartitionReadRequest,PartitionResponse> |
partitionReadSettings()
Returns the object with the settings used for calls to partitionRead.
|
UnaryCallSettings<ReadRequest,ResultSet> |
readSettings()
Returns the object with the settings used for calls to read.
|
UnaryCallSettings<RollbackRequest,Empty> |
rollbackSettings()
Returns the object with the settings used for calls to rollback.
|
ServerStreamingCallSettings<ReadRequest,PartialResultSet> |
streamingReadSettings()
Returns the object with the settings used for calls to streamingRead.
|
SpannerStubSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, toString
protected SpannerStubSettings(SpannerStubSettings.Builder settingsBuilder) throws IOException
IOException
public UnaryCallSettings<CreateSessionRequest,Session> createSessionSettings()
public UnaryCallSettings<BatchCreateSessionsRequest,BatchCreateSessionsResponse> batchCreateSessionsSettings()
public UnaryCallSettings<GetSessionRequest,Session> getSessionSettings()
public PagedCallSettings<ListSessionsRequest,ListSessionsResponse,SpannerClient.ListSessionsPagedResponse> listSessionsSettings()
public UnaryCallSettings<DeleteSessionRequest,Empty> deleteSessionSettings()
public UnaryCallSettings<ExecuteSqlRequest,ResultSet> executeSqlSettings()
public ServerStreamingCallSettings<ExecuteSqlRequest,PartialResultSet> executeStreamingSqlSettings()
public UnaryCallSettings<ExecuteBatchDmlRequest,ExecuteBatchDmlResponse> executeBatchDmlSettings()
public UnaryCallSettings<ReadRequest,ResultSet> readSettings()
public ServerStreamingCallSettings<ReadRequest,PartialResultSet> streamingReadSettings()
public UnaryCallSettings<BeginTransactionRequest,Transaction> beginTransactionSettings()
public UnaryCallSettings<CommitRequest,CommitResponse> commitSettings()
public UnaryCallSettings<RollbackRequest,Empty> rollbackSettings()
public UnaryCallSettings<PartitionQueryRequest,PartitionResponse> partitionQuerySettings()
public UnaryCallSettings<PartitionReadRequest,PartitionResponse> partitionReadSettings()
@BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public SpannerStub createStub() throws IOException
IOException
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static String getDefaultMtlsEndpoint()
public static List<String> getDefaultServiceScopes()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
public static TransportChannelProvider defaultTransportChannelProvider()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static SpannerStubSettings.Builder newBuilder()
public static SpannerStubSettings.Builder newBuilder(ClientContext clientContext)
public SpannerStubSettings.Builder toBuilder()
toBuilder
in class StubSettings<SpannerStubSettings>
Copyright © 2022 Google LLC. All rights reserved.