Package com.google.cloud.spanner.v1.stub
Class SpannerStubSettings.Builder
- java.lang.Object
-
- com.google.api.gax.rpc.StubSettings.Builder<SpannerStubSettings,SpannerStubSettings.Builder>
-
- com.google.cloud.spanner.v1.stub.SpannerStubSettings.Builder
-
- Enclosing class:
- SpannerStubSettings
public static class SpannerStubSettings.Builder extends com.google.api.gax.rpc.StubSettings.Builder<SpannerStubSettings,SpannerStubSettings.Builder>
Builder for SpannerStubSettings.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
protected
Builder(com.google.api.gax.rpc.ClientContext clientContext)
protected
Builder(SpannerStubSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpannerStubSettings.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.SpannerStubSettings
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,com.google.protobuf.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.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,com.google.protobuf.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.com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>>
unaryMethodSettingsBuilders()
-
Methods inherited from class com.google.api.gax.rpc.StubSettings.Builder
applyToAllUnaryMethods, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, self, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setHeaderProvider, setInternalHeaderProvider, setMtlsEndpoint, setQuotaProjectId, setStreamWatchdogCheckInterval, setStreamWatchdogProvider, setSwitchToMtlsEndpointAllowed, setTracerFactory, setTransportChannelProvider, toString
-
-
-
-
Constructor Detail
-
Builder
protected Builder()
-
Builder
protected Builder(com.google.api.gax.rpc.ClientContext clientContext)
-
Builder
protected Builder(SpannerStubSettings settings)
-
-
Method Detail
-
applyToAllUnaryMethods
public SpannerStubSettings.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.Note: This method does not support applying settings to streaming methods.
-
unaryMethodSettingsBuilders
public com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
-
createSessionSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateSessionRequest,Session> createSessionSettings()
Returns the builder for the settings used for calls to createSession.
-
batchCreateSessionsSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<BatchCreateSessionsRequest,BatchCreateSessionsResponse> batchCreateSessionsSettings()
Returns the builder for the settings used for calls to batchCreateSessions.
-
getSessionSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetSessionRequest,Session> getSessionSettings()
Returns the builder for the settings used for calls to getSession.
-
listSessionsSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListSessionsRequest,ListSessionsResponse,SpannerClient.ListSessionsPagedResponse> listSessionsSettings()
Returns the builder for the settings used for calls to listSessions.
-
deleteSessionSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteSessionRequest,com.google.protobuf.Empty> deleteSessionSettings()
Returns the builder for the settings used for calls to deleteSession.
-
executeSqlSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<ExecuteSqlRequest,ResultSet> executeSqlSettings()
Returns the builder for the settings used for calls to executeSql.
-
executeStreamingSqlSettings
public com.google.api.gax.rpc.ServerStreamingCallSettings.Builder<ExecuteSqlRequest,PartialResultSet> executeStreamingSqlSettings()
Returns the builder for the settings used for calls to executeStreamingSql.
-
executeBatchDmlSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<ExecuteBatchDmlRequest,ExecuteBatchDmlResponse> executeBatchDmlSettings()
Returns the builder for the settings used for calls to executeBatchDml.
-
readSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<ReadRequest,ResultSet> readSettings()
Returns the builder for the settings used for calls to read.
-
streamingReadSettings
public com.google.api.gax.rpc.ServerStreamingCallSettings.Builder<ReadRequest,PartialResultSet> streamingReadSettings()
Returns the builder for the settings used for calls to streamingRead.
-
beginTransactionSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<BeginTransactionRequest,Transaction> beginTransactionSettings()
Returns the builder for the settings used for calls to beginTransaction.
-
commitSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<CommitRequest,CommitResponse> commitSettings()
Returns the builder for the settings used for calls to commit.
-
rollbackSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<RollbackRequest,com.google.protobuf.Empty> rollbackSettings()
Returns the builder for the settings used for calls to rollback.
-
partitionQuerySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<PartitionQueryRequest,PartitionResponse> partitionQuerySettings()
Returns the builder for the settings used for calls to partitionQuery.
-
partitionReadSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<PartitionReadRequest,PartitionResponse> partitionReadSettings()
Returns the builder for the settings used for calls to partitionRead.
-
build
public SpannerStubSettings build() throws IOException
- Specified by:
build
in classcom.google.api.gax.rpc.StubSettings.Builder<SpannerStubSettings,SpannerStubSettings.Builder>
- Throws:
IOException
-
-