@Generated(value="by GAPIC v0.0.5") @BetaApi public class SpannerStubSettings extends com.google.api.gax.rpc.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:
SpannerStubSettings.Builder spannerSettingsBuilder =
SpannerStubSettings.newBuilder();
spannerSettingsBuilder.createSessionSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30));
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 |
---|---|
com.google.api.gax.rpc.UnaryCallSettings<com.google.spanner.v1.BeginTransactionRequest,com.google.spanner.v1.Transaction> |
beginTransactionSettings()
Returns the object with the settings used for calls to beginTransaction.
|
com.google.api.gax.rpc.UnaryCallSettings<com.google.spanner.v1.CommitRequest,com.google.spanner.v1.CommitResponse> |
commitSettings()
Returns the object with the settings used for calls to commit.
|
com.google.api.gax.rpc.UnaryCallSettings<com.google.spanner.v1.CreateSessionRequest,com.google.spanner.v1.Session> |
createSessionSettings()
Returns the object with the settings used for calls to createSession.
|
SpannerStub |
createStub() |
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<com.google.spanner.v1.DeleteSessionRequest,com.google.protobuf.Empty> |
deleteSessionSettings()
Returns the object with the settings used for calls to deleteSession.
|
com.google.api.gax.rpc.UnaryCallSettings<com.google.spanner.v1.ExecuteSqlRequest,com.google.spanner.v1.ResultSet> |
executeSqlSettings()
Returns the object with the settings used for calls to executeSql.
|
com.google.api.gax.rpc.ServerStreamingCallSettings<com.google.spanner.v1.ExecuteSqlRequest,com.google.spanner.v1.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<com.google.spanner.v1.GetSessionRequest,com.google.spanner.v1.Session> |
getSessionSettings()
Returns the object with the settings used for calls to getSession.
|
com.google.api.gax.rpc.PagedCallSettings<com.google.spanner.v1.ListSessionsRequest,com.google.spanner.v1.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(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
|
com.google.api.gax.rpc.UnaryCallSettings<com.google.spanner.v1.PartitionQueryRequest,com.google.spanner.v1.PartitionResponse> |
partitionQuerySettings()
Returns the object with the settings used for calls to partitionQuery.
|
com.google.api.gax.rpc.UnaryCallSettings<com.google.spanner.v1.PartitionReadRequest,com.google.spanner.v1.PartitionResponse> |
partitionReadSettings()
Returns the object with the settings used for calls to partitionRead.
|
com.google.api.gax.rpc.UnaryCallSettings<com.google.spanner.v1.ReadRequest,com.google.spanner.v1.ResultSet> |
readSettings()
Returns the object with the settings used for calls to read.
|
com.google.api.gax.rpc.UnaryCallSettings<com.google.spanner.v1.RollbackRequest,com.google.protobuf.Empty> |
rollbackSettings()
Returns the object with the settings used for calls to rollback.
|
com.google.api.gax.rpc.ServerStreamingCallSettings<com.google.spanner.v1.ReadRequest,com.google.spanner.v1.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.
|
protected SpannerStubSettings(SpannerStubSettings.Builder settingsBuilder) throws IOException
IOException
public com.google.api.gax.rpc.UnaryCallSettings<com.google.spanner.v1.CreateSessionRequest,com.google.spanner.v1.Session> createSessionSettings()
public com.google.api.gax.rpc.UnaryCallSettings<com.google.spanner.v1.GetSessionRequest,com.google.spanner.v1.Session> getSessionSettings()
public com.google.api.gax.rpc.PagedCallSettings<com.google.spanner.v1.ListSessionsRequest,com.google.spanner.v1.ListSessionsResponse,SpannerClient.ListSessionsPagedResponse> listSessionsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<com.google.spanner.v1.DeleteSessionRequest,com.google.protobuf.Empty> deleteSessionSettings()
public com.google.api.gax.rpc.UnaryCallSettings<com.google.spanner.v1.ExecuteSqlRequest,com.google.spanner.v1.ResultSet> executeSqlSettings()
public com.google.api.gax.rpc.ServerStreamingCallSettings<com.google.spanner.v1.ExecuteSqlRequest,com.google.spanner.v1.PartialResultSet> executeStreamingSqlSettings()
public com.google.api.gax.rpc.UnaryCallSettings<com.google.spanner.v1.ReadRequest,com.google.spanner.v1.ResultSet> readSettings()
public com.google.api.gax.rpc.ServerStreamingCallSettings<com.google.spanner.v1.ReadRequest,com.google.spanner.v1.PartialResultSet> streamingReadSettings()
public com.google.api.gax.rpc.UnaryCallSettings<com.google.spanner.v1.BeginTransactionRequest,com.google.spanner.v1.Transaction> beginTransactionSettings()
public com.google.api.gax.rpc.UnaryCallSettings<com.google.spanner.v1.CommitRequest,com.google.spanner.v1.CommitResponse> commitSettings()
public com.google.api.gax.rpc.UnaryCallSettings<com.google.spanner.v1.RollbackRequest,com.google.protobuf.Empty> rollbackSettings()
public com.google.api.gax.rpc.UnaryCallSettings<com.google.spanner.v1.PartitionQueryRequest,com.google.spanner.v1.PartitionResponse> partitionQuerySettings()
public com.google.api.gax.rpc.UnaryCallSettings<com.google.spanner.v1.PartitionReadRequest,com.google.spanner.v1.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 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 SpannerStubSettings.Builder newBuilder()
public static SpannerStubSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
public SpannerStubSettings.Builder toBuilder()
toBuilder
in class com.google.api.gax.rpc.StubSettings<SpannerStubSettings>
Copyright © 2018 Google. All rights reserved.