Class SpannerOptions.Builder (2.16.1)

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
TypeDescription
SpannerOptions
Overrides
com.google.cloud.ServiceOptions.Builder.build()

disableAdministrativeRequestRetries()

public SpannerOptions.Builder disableAdministrativeRequestRetries()
Returns
TypeDescription
SpannerOptions.Builder

disableDirectPath()

public SpannerOptions.Builder disableDirectPath()
Returns
TypeDescription
SpannerOptions.Builder

disableGrpcGcpExtension()

public SpannerOptions.Builder disableGrpcGcpExtension()
Returns
TypeDescription
SpannerOptions.Builder

disableLeaderAwareRouting()

public SpannerOptions.Builder disableLeaderAwareRouting()
Returns
TypeDescription
SpannerOptions.Builder

enableGrpcGcpExtension()

public SpannerOptions.Builder enableGrpcGcpExtension()
Returns
TypeDescription
SpannerOptions.Builder

enableGrpcGcpExtension(GcpManagedChannelOptions arg0)

public SpannerOptions.Builder enableGrpcGcpExtension(GcpManagedChannelOptions arg0)
Parameter
NameDescription
arg0com.google.cloud.grpc.GcpManagedChannelOptions
Returns
TypeDescription
SpannerOptions.Builder

enableLeaderAwareRouting()

public SpannerOptions.Builder enableLeaderAwareRouting()
Returns
TypeDescription
SpannerOptions.Builder

getAllowedClientLibTokens()

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

getDatabaseAdminStubSettingsBuilder()

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

getInstanceAdminStubSettingsBuilder()

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

getSpannerStubSettingsBuilder()

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

setAsyncExecutorProvider(SpannerOptions.CloseableExecutorProvider arg0)

public SpannerOptions.Builder setAsyncExecutorProvider(SpannerOptions.CloseableExecutorProvider arg0)
Parameter
NameDescription
arg0CloseableExecutorProvider
Returns
TypeDescription
SpannerOptions.Builder

setAutoThrottleAdministrativeRequests()

public SpannerOptions.Builder setAutoThrottleAdministrativeRequests()
Returns
TypeDescription
SpannerOptions.Builder

setCallCredentialsProvider(SpannerOptions.CallCredentialsProvider arg0)

public SpannerOptions.Builder setCallCredentialsProvider(SpannerOptions.CallCredentialsProvider arg0)
Parameter
NameDescription
arg0CallCredentialsProvider
Returns
TypeDescription
SpannerOptions.Builder

setChannelConfigurator(ApiFunction<ManagedChannelBuilder,ManagedChannelBuilder> arg0)

public SpannerOptions.Builder setChannelConfigurator(ApiFunction<ManagedChannelBuilder,ManagedChannelBuilder> arg0)
Parameter
NameDescription
arg0ApiFunction<io.grpc.ManagedChannelBuilder,io.grpc.ManagedChannelBuilder>
Returns
TypeDescription
SpannerOptions.Builder

setChannelProvider(TransportChannelProvider arg0)

public SpannerOptions.Builder setChannelProvider(TransportChannelProvider arg0)
Parameter
NameDescription
arg0TransportChannelProvider
Returns
TypeDescription
SpannerOptions.Builder

setClientLibToken(String arg0)

public SpannerOptions.Builder setClientLibToken(String arg0)
Parameter
NameDescription
arg0String
Returns
TypeDescription
SpannerOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.setClientLibToken(java.lang.String)

setCompressorName(String arg0)

public SpannerOptions.Builder setCompressorName(String arg0)
Parameter
NameDescription
arg0String
Returns
TypeDescription
SpannerOptions.Builder

setDatabaseRole(String arg0)

public SpannerOptions.Builder setDatabaseRole(String arg0)
Parameter
NameDescription
arg0String
Returns
TypeDescription
SpannerOptions.Builder

setDecodeMode(DecodeMode arg0)

public SpannerOptions.Builder setDecodeMode(DecodeMode arg0)
Parameter
NameDescription
arg0DecodeMode
Returns
TypeDescription
SpannerOptions.Builder

setDefaultQueryOptions(DatabaseId arg0, ExecuteSqlRequest.QueryOptions arg1)

public SpannerOptions.Builder setDefaultQueryOptions(DatabaseId arg0, ExecuteSqlRequest.QueryOptions arg1)
Parameters
NameDescription
arg0DatabaseId
arg1com.google.spanner.v1.ExecuteSqlRequest.QueryOptions
Returns
TypeDescription
SpannerOptions.Builder

setDirectedReadOptions(DirectedReadOptions arg0)

public SpannerOptions.Builder setDirectedReadOptions(DirectedReadOptions arg0)
Parameter
NameDescription
arg0com.google.spanner.v1.DirectedReadOptions
Returns
TypeDescription
SpannerOptions.Builder

setEmulatorHost(String arg0)

public SpannerOptions.Builder setEmulatorHost(String arg0)
Parameter
NameDescription
arg0String
Returns
TypeDescription
SpannerOptions.Builder

setHost(String arg0)

public SpannerOptions.Builder setHost(String arg0)
Parameter
NameDescription
arg0String
Returns
TypeDescription
SpannerOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.setHost(java.lang.String)

setInterceptorProvider(GrpcInterceptorProvider arg0)

public SpannerOptions.Builder setInterceptorProvider(GrpcInterceptorProvider arg0)
Parameter
NameDescription
arg0GrpcInterceptorProvider
Returns
TypeDescription
SpannerOptions.Builder

setNumChannels(int arg0)

public SpannerOptions.Builder setNumChannels(int arg0)
Parameter
NameDescription
arg0int
Returns
TypeDescription
SpannerOptions.Builder

setOpenTelemetry(OpenTelemetry arg0)

public SpannerOptions.Builder setOpenTelemetry(OpenTelemetry arg0)
Parameter
NameDescription
arg0io.opentelemetry.api.OpenTelemetry
Returns
TypeDescription
SpannerOptions.Builder

setPartitionedDmlTimeout(Duration arg0)

public SpannerOptions.Builder setPartitionedDmlTimeout(Duration arg0)
Parameter
NameDescription
arg0org.threeten.bp.Duration
Returns
TypeDescription
SpannerOptions.Builder

setPrefetchChunks(int arg0)

public SpannerOptions.Builder setPrefetchChunks(int arg0)
Parameter
NameDescription
arg0int
Returns
TypeDescription
SpannerOptions.Builder

setRetrySettings(RetrySettings arg0)

public SpannerOptions.Builder setRetrySettings(RetrySettings arg0)
Parameter
NameDescription
arg0RetrySettings
Returns
TypeDescription
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
NameDescription
arg0Map<String,String>
Returns
TypeDescription
SpannerOptions.Builder

setSessionPoolOption(SessionPoolOptions arg0)

public SpannerOptions.Builder setSessionPoolOption(SessionPoolOptions arg0)
Parameter
NameDescription
arg0SessionPoolOptions
Returns
TypeDescription
SpannerOptions.Builder

setTrackTransactionStarter()

public SpannerOptions.Builder setTrackTransactionStarter()
Returns
TypeDescription
SpannerOptions.Builder

setTransportOptions(TransportOptions arg0)

public SpannerOptions.Builder setTransportOptions(TransportOptions arg0)
Parameter
NameDescription
arg0com.google.cloud.TransportOptions
Returns
TypeDescription
SpannerOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.setTransportOptions(com.google.cloud.TransportOptions)

setUseVirtualThreads(boolean arg0)

protected SpannerOptions.Builder setUseVirtualThreads(boolean arg0)
Parameter
NameDescription
arg0boolean
Returns
TypeDescription
SpannerOptions.Builder