Class SpannerOptions.Builder (2.21.0)

public static class SpannerOptions.Builder extends ServiceOptions.Builder<Spanner,SpannerOptions,SpannerOptions.Builder>

Inheritance

java.lang.Object > com.google.cloud.ServiceOptions.Builder > SpannerOptions.Builder

Constructors

Builder()

protected Builder()

Methods

build()

public SpannerOptions build()
Returns
Type Description
SpannerOptions
Overrides
com.google.cloud.ServiceOptions.Builder.build()

disableAdministrativeRequestRetries()

public SpannerOptions.Builder disableAdministrativeRequestRetries()
Returns
Type Description
SpannerOptions.Builder

disableDirectPath()

public SpannerOptions.Builder disableDirectPath()
Returns
Type Description
SpannerOptions.Builder

disableGrpcGcpExtension()

public SpannerOptions.Builder disableGrpcGcpExtension()
Returns
Type Description
SpannerOptions.Builder

disableLeaderAwareRouting()

public SpannerOptions.Builder disableLeaderAwareRouting()
Returns
Type Description
SpannerOptions.Builder

enableGrpcGcpExtension()

public SpannerOptions.Builder enableGrpcGcpExtension()
Returns
Type Description
SpannerOptions.Builder

enableGrpcGcpExtension(GcpManagedChannelOptions arg0)

public SpannerOptions.Builder enableGrpcGcpExtension(GcpManagedChannelOptions arg0)
Parameter
Name Description
arg0 com.google.cloud.grpc.GcpManagedChannelOptions
Returns
Type Description
SpannerOptions.Builder

enableLeaderAwareRouting()

public SpannerOptions.Builder enableLeaderAwareRouting()
Returns
Type Description
SpannerOptions.Builder

getAllowedClientLibTokens()

protected Set<String> getAllowedClientLibTokens()
Returns
Type Description
Set<String>
Overrides
com.google.cloud.ServiceOptions.Builder.getAllowedClientLibTokens()

getDatabaseAdminStubSettingsBuilder()

public DatabaseAdminStubSettings.Builder getDatabaseAdminStubSettingsBuilder()
Returns
Type Description
com.google.cloud.spanner.admin.database.v1.stub.DatabaseAdminStubSettings.Builder

getInstanceAdminStubSettingsBuilder()

public InstanceAdminStubSettings.Builder getInstanceAdminStubSettingsBuilder()
Returns
Type Description
com.google.cloud.spanner.admin.instance.v1.stub.InstanceAdminStubSettings.Builder

getSpannerStubSettingsBuilder()

public SpannerStubSettings.Builder getSpannerStubSettingsBuilder()
Returns
Type Description
com.google.cloud.spanner.v1.stub.SpannerStubSettings.Builder

setAsyncExecutorProvider(SpannerOptions.CloseableExecutorProvider arg0)

public SpannerOptions.Builder setAsyncExecutorProvider(SpannerOptions.CloseableExecutorProvider arg0)
Parameter
Name Description
arg0 CloseableExecutorProvider
Returns
Type Description
SpannerOptions.Builder

setAutoThrottleAdministrativeRequests()

public SpannerOptions.Builder setAutoThrottleAdministrativeRequests()
Returns
Type Description
SpannerOptions.Builder

setCallCredentialsProvider(SpannerOptions.CallCredentialsProvider arg0)

public SpannerOptions.Builder setCallCredentialsProvider(SpannerOptions.CallCredentialsProvider arg0)
Parameter
Name Description
arg0 CallCredentialsProvider
Returns
Type Description
SpannerOptions.Builder

setChannelConfigurator(ApiFunction<ManagedChannelBuilder,ManagedChannelBuilder> arg0)

public SpannerOptions.Builder setChannelConfigurator(ApiFunction<ManagedChannelBuilder,ManagedChannelBuilder> arg0)
Parameter
Name Description
arg0 ApiFunction<io.grpc.ManagedChannelBuilder,io.grpc.ManagedChannelBuilder>
Returns
Type Description
SpannerOptions.Builder

setChannelProvider(TransportChannelProvider arg0)

public SpannerOptions.Builder setChannelProvider(TransportChannelProvider arg0)
Parameter
Name Description
arg0 TransportChannelProvider
Returns
Type Description
SpannerOptions.Builder

setClientLibToken(String arg0)

public SpannerOptions.Builder setClientLibToken(String arg0)
Parameter
Name Description
arg0 String
Returns
Type Description
SpannerOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.setClientLibToken(java.lang.String)

setCompressorName(String arg0)

public SpannerOptions.Builder setCompressorName(String arg0)
Parameter
Name Description
arg0 String
Returns
Type Description
SpannerOptions.Builder

setDatabaseRole(String arg0)

public SpannerOptions.Builder setDatabaseRole(String arg0)
Parameter
Name Description
arg0 String
Returns
Type Description
SpannerOptions.Builder

setDecodeMode(DecodeMode arg0)

public SpannerOptions.Builder setDecodeMode(DecodeMode arg0)
Parameter
Name Description
arg0 DecodeMode
Returns
Type Description
SpannerOptions.Builder

setDefaultQueryOptions(DatabaseId arg0, ExecuteSqlRequest.QueryOptions arg1)

public SpannerOptions.Builder setDefaultQueryOptions(DatabaseId arg0, ExecuteSqlRequest.QueryOptions arg1)
Parameters
Name Description
arg0 DatabaseId
arg1 com.google.spanner.v1.ExecuteSqlRequest.QueryOptions
Returns
Type Description
SpannerOptions.Builder

setDirectedReadOptions(DirectedReadOptions arg0)

public SpannerOptions.Builder setDirectedReadOptions(DirectedReadOptions arg0)
Parameter
Name Description
arg0 com.google.spanner.v1.DirectedReadOptions
Returns
Type Description
SpannerOptions.Builder

setEmulatorHost(String arg0)

public SpannerOptions.Builder setEmulatorHost(String arg0)
Parameter
Name Description
arg0 String
Returns
Type Description
SpannerOptions.Builder

setEnableApiTracing(boolean arg0)

public SpannerOptions.Builder setEnableApiTracing(boolean arg0)
Parameter
Name Description
arg0 boolean
Returns
Type Description
SpannerOptions.Builder

setEnableExtendedTracing(boolean arg0)

public SpannerOptions.Builder setEnableExtendedTracing(boolean arg0)
Parameter
Name Description
arg0 boolean
Returns
Type Description
SpannerOptions.Builder

setHost(String arg0)

public SpannerOptions.Builder setHost(String arg0)
Parameter
Name Description
arg0 String
Returns
Type Description
SpannerOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.setHost(java.lang.String)

setInterceptorProvider(GrpcInterceptorProvider arg0)

public SpannerOptions.Builder setInterceptorProvider(GrpcInterceptorProvider arg0)
Parameter
Name Description
arg0 GrpcInterceptorProvider
Returns
Type Description
SpannerOptions.Builder

setNumChannels(int arg0)

public SpannerOptions.Builder setNumChannels(int arg0)
Parameter
Name Description
arg0 int
Returns
Type Description
SpannerOptions.Builder

setOpenTelemetry(OpenTelemetry arg0)

public SpannerOptions.Builder setOpenTelemetry(OpenTelemetry arg0)
Parameter
Name Description
arg0 io.opentelemetry.api.OpenTelemetry
Returns
Type Description
SpannerOptions.Builder

setPartitionedDmlTimeout(Duration arg0)

public SpannerOptions.Builder setPartitionedDmlTimeout(Duration arg0)
Parameter
Name Description
arg0 org.threeten.bp.Duration
Returns
Type Description
SpannerOptions.Builder

setPrefetchChunks(int arg0)

public SpannerOptions.Builder setPrefetchChunks(int arg0)
Parameter
Name Description
arg0 int
Returns
Type Description
SpannerOptions.Builder

setRetrySettings(RetrySettings arg0)

public SpannerOptions.Builder setRetrySettings(RetrySettings arg0)
Parameter
Name Description
arg0 RetrySettings
Returns
Type Description
SpannerOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.setRetrySettings(com.google.api.gax.retrying.RetrySettings)

setSessionLabels(Map<String,String> arg0)

public SpannerOptions.Builder setSessionLabels(Map<String,String> arg0)
Parameter
Name Description
arg0 Map<String,String>
Returns
Type Description
SpannerOptions.Builder

setSessionPoolOption(SessionPoolOptions arg0)

public SpannerOptions.Builder setSessionPoolOption(SessionPoolOptions arg0)
Parameter
Name Description
arg0 SessionPoolOptions
Returns
Type Description
SpannerOptions.Builder

setTrackTransactionStarter()

public SpannerOptions.Builder setTrackTransactionStarter()
Returns
Type Description
SpannerOptions.Builder

setTransportOptions(TransportOptions arg0)

public SpannerOptions.Builder setTransportOptions(TransportOptions arg0)
Parameter
Name Description
arg0 com.google.cloud.TransportOptions
Returns
Type Description
SpannerOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.setTransportOptions(com.google.cloud.TransportOptions)

setUseVirtualThreads(boolean arg0)

protected SpannerOptions.Builder setUseVirtualThreads(boolean arg0)
Parameter
Name Description
arg0 boolean
Returns
Type Description
SpannerOptions.Builder