Class BigQueryStorageSettings.Builder (3.9.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
Name Description
clientContext ClientContext

Builder(BigQueryStorageSettings settings)

protected Builder(BigQueryStorageSettings settings)
Parameter
Name Description
settings BigQueryStorageSettings

Builder(EnhancedBigQueryStorageStubSettings.Builder stubSettings)

protected Builder(EnhancedBigQueryStorageStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings EnhancedBigQueryStorageStubSettings.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
Name Description
settingsUpdater ApiFunction<Builder<?,?>,Void>
Returns
Type Description
BigQueryStorageSettings.Builder
Exceptions
Type Description
Exception

batchCreateReadSessionStreamsSettings()

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

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

Returns
Type Description
Builder<BatchCreateReadSessionStreamsRequest,BatchCreateReadSessionStreamsResponse>

build()

public BigQueryStorageSettings build()
Returns
Type Description
BigQueryStorageSettings
Overrides
Exceptions
Type Description
IOException

createReadSessionSettings()

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

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

Returns
Type Description
Builder<CreateReadSessionRequest,ReadSession>

finalizeStreamSettings()

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

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

Returns
Type Description
Builder<FinalizeStreamRequest,Empty>

getStubSettingsBuilder()

public EnhancedBigQueryStorageStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
EnhancedBigQueryStorageStubSettings.Builder

readRowsSettings()

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

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

Returns
Type Description
Builder<ReadRowsRequest,ReadRowsResponse>

setReadRowsRetryAttemptListener(BigQueryStorageSettings.RetryAttemptListener readRowsRetryAttemptListener)

public BigQueryStorageSettings.Builder setReadRowsRetryAttemptListener(BigQueryStorageSettings.RetryAttemptListener readRowsRetryAttemptListener)
Parameter
Name Description
readRowsRetryAttemptListener BigQueryStorageSettings.RetryAttemptListener
Returns
Type Description
BigQueryStorageSettings.Builder

splitReadStreamSettings()

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

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

Returns
Type Description
Builder<SplitReadStreamRequest,SplitReadStreamResponse>