public static class BigtableOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Deprecated.
Please use the
BigtableOptions.builder() instead. |
@Deprecated public Builder()
BigtableOptions.builder()
instead.public BigtableOptions.Builder setAdminHost(String adminHost)
public BigtableOptions.Builder setDataHost(String dataHost)
public BigtableOptions.Builder setPort(int port)
public BigtableOptions.Builder setProjectId(String projectId)
public BigtableOptions.Builder setInstanceId(String instanceId)
public BigtableOptions.Builder setAppProfileId(String appProfileId)
public BigtableOptions.Builder setCredentialOptions(CredentialOptions credentialOptions)
public BigtableOptions.Builder setUserAgent(String userAgent)
public BigtableOptions.Builder setDataChannelCount(int dataChannelCount)
public BigtableOptions.Builder disableDirectPath()
@InternalApi(value="Visible for test only") public BigtableOptions.ChannelConfigurator getChannelConfigurator()
@InternalApi(value="Visible for test only") public BigtableOptions.Builder setChannelConfigurator(BigtableOptions.ChannelConfigurator configurator)
@InternalApi(value="For internal usage only") public int getDataChannelCount()
public BigtableOptions.Builder setRetryOptions(RetryOptions retryOptions)
public RetryOptions getRetryOptions()
public BigtableOptions.Builder setBulkOptions(BulkOptions bulkOptions)
public BulkOptions getBulkOptions()
public BigtableOptions.Builder setUsePlaintextNegotiation(boolean usePlaintextNegotiation)
public BigtableOptions.Builder setUseCachedDataPool(boolean useCachedDataPool)
useCachedDataPool
- a flag to decide connection pool usages.BigtableOptions.Builder
object with cached DataPool flag.public BigtableOptions.Builder setCallOptionsConfig(CallOptionsConfig callOptionsConfig)
public CallOptionsConfig getCallOptionsConfig()
public BigtableOptions.Builder setUseBatch(boolean useBatch)
@BetaApi(value="The API for setting tracing cookie is not yet stable and may change in the future") public BigtableOptions.Builder setTracingCookie(String tracingCookie)
public BigtableOptions.Builder enableEmulator(String emulatorHostAndPort)
public BigtableOptions.Builder enableEmulator(String host, int port)
public BigtableOptions build()