Class BigQueryStorageSettings.Builder (2.20.0)

public static class BigQueryStorageSettings.Builder extends ClientSettings.Builder<BigQueryStorageSettings,BigQueryStorageSettings.Builder>

Builder for BigQueryStorageSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > BigQueryStorageSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(BigQueryStorageSettings settings)

protected Builder(BigQueryStorageSettings settings)
Parameter
NameDescription
settingsBigQueryStorageSettings

Builder(EnhancedBigQueryStorageStubSettings.Builder stubSettings)

protected Builder(EnhancedBigQueryStorageStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsEnhancedBigQueryStorageStubSettings.Builder

Methods

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public BigQueryStorageSettings.Builder applyToAllUnaryMethods(ApiFunction<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.

Parameter
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,Void>
Returns
TypeDescription
BigQueryStorageSettings.Builder
Exceptions
TypeDescription
Exception

batchCreateReadSessionStreamsSettings()

public UnaryCallSettings.Builder<Storage.BatchCreateReadSessionStreamsRequest,Storage.BatchCreateReadSessionStreamsResponse> batchCreateReadSessionStreamsSettings()

Returns the builder for the settings used for calls to batchCreateReadSessionStreams.

Returns
TypeDescription
Builder<BatchCreateReadSessionStreamsRequest,BatchCreateReadSessionStreamsResponse>

build()

public BigQueryStorageSettings build()
Returns
TypeDescription
BigQueryStorageSettings
Overrides Exceptions
TypeDescription
IOException

createReadSessionSettings()

public UnaryCallSettings.Builder<Storage.CreateReadSessionRequest,Storage.ReadSession> createReadSessionSettings()

Returns the builder for the settings used for calls to createReadSession.

Returns
TypeDescription
Builder<CreateReadSessionRequest,ReadSession>

finalizeStreamSettings()

public UnaryCallSettings.Builder<Storage.FinalizeStreamRequest,Empty> finalizeStreamSettings()

Returns the builder for the settings used for calls to finalizeStream.

Returns
TypeDescription
Builder<FinalizeStreamRequest,Empty>

getStubSettingsBuilder()

public EnhancedBigQueryStorageStubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
EnhancedBigQueryStorageStubSettings.Builder

readRowsSettings()

public ServerStreamingCallSettings.Builder<Storage.ReadRowsRequest,Storage.ReadRowsResponse> readRowsSettings()

Returns the builder for the settings used for calls to readRows.

Returns
TypeDescription
Builder<ReadRowsRequest,ReadRowsResponse>

setReadRowsRetryAttemptListener(BigQueryStorageSettings.RetryAttemptListener readRowsRetryAttemptListener)

public BigQueryStorageSettings.Builder setReadRowsRetryAttemptListener(BigQueryStorageSettings.RetryAttemptListener readRowsRetryAttemptListener)
Parameter
NameDescription
readRowsRetryAttemptListenerBigQueryStorageSettings.RetryAttemptListener
Returns
TypeDescription
BigQueryStorageSettings.Builder

splitReadStreamSettings()

public UnaryCallSettings.Builder<Storage.SplitReadStreamRequest,Storage.SplitReadStreamResponse> splitReadStreamSettings()

Returns the builder for the settings used for calls to splitReadStream.

Returns
TypeDescription
Builder<SplitReadStreamRequest,SplitReadStreamResponse>