Send feedback
Class ConnectionOptions.Builder (2.50.0)
Stay organized with collections
Save and categorize content based on your preferences.
2.50.0 (latest)
2.46.0
2.42.0
2.41.0
2.40.0
2.38.0
2.35.4
2.34.0
2.33.2
2.32.3
2.31.2
2.30.4
2.28.0
2.27.1
2.26.1
2.25.1
2.24.1
2.23.0
2.22.1
2.21.0
2.20.2
2.19.3
2.18.1
2.17.0
2.16.1
2.15.5
2.14.6
2.13.4
2.11.4
2.10.0
2.9.16
2.8.0
2.7.12
2.6.4
2.5.11
public static class ConnectionOptions . Builder
Static Fields
public static final String EXTERNAL_HOST_FORMAT
Field Value
Type
Description
String
public static final String SPANNER_OMNI_FORMAT
Field Value
Type
Description
String
public static final String SPANNER_URI_FORMAT
Field Value
Type
Description
String
Methods
build()
public ConnectionOptions build ()
setCredentialsUrl(String arg0)
public ConnectionOptions . Builder setCredentialsUrl ( String arg0 )
Parameter
Name
Description
arg0
String
setOAuthToken(String arg0)
public ConnectionOptions . Builder setOAuthToken ( String arg0 )
Parameter
Name
Description
arg0
String
setOpenTelemetry(OpenTelemetry arg0)
public ConnectionOptions . Builder setOpenTelemetry ( OpenTelemetry arg0 )
Parameter
Name
Description
arg0
io.opentelemetry.api.OpenTelemetry
setSessionPoolOptions(SessionPoolOptions arg0)
public ConnectionOptions . Builder setSessionPoolOptions ( SessionPoolOptions arg0 )
setStatementExecutorType(StatementExecutor.StatementExecutorType arg0)
public ConnectionOptions . Builder setStatementExecutorType ( StatementExecutor . StatementExecutorType arg0 )
Parameter
Name
Description
arg0
com.google.cloud.spanner.connection.StatementExecutor.StatementExecutorType
setTracingPrefix(String arg0)
public ConnectionOptions . Builder setTracingPrefix ( String arg0 )
Parameter
Name
Description
arg0
String
setType(SpannerOptions.InstanceType arg0)
public ConnectionOptions . Builder setType ( SpannerOptions . InstanceType arg0 )
setUri(String arg0)
public ConnectionOptions . Builder setUri ( String arg0 )
Parameter
Name
Description
arg0
String
Send feedback
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-11-19 UTC."],[],[]]