Class StorageSettings.Builder (2.1.10)

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

Builder for StorageSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > StorageSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(StorageSettings settings)

protected Builder(StorageSettings settings)
Parameter
Name Description
settings StorageSettings

Builder(StorageStubSettings.Builder stubSettings)

protected Builder(StorageStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings StorageStubSettings.Builder

Methods

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

public StorageSettings.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
StorageSettings.Builder

build()

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

getStubSettingsBuilder()

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

queryWriteStatusSettings()

public UnaryCallSettings.Builder<QueryWriteStatusRequest,QueryWriteStatusResponse> queryWriteStatusSettings()

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

Returns
Type Description
Builder<QueryWriteStatusRequest,QueryWriteStatusResponse>

readObjectSettings()

public ServerStreamingCallSettings.Builder<ReadObjectRequest,ReadObjectResponse> readObjectSettings()

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

Returns
Type Description
Builder<ReadObjectRequest,ReadObjectResponse>

startResumableWriteSettings()

public UnaryCallSettings.Builder<StartResumableWriteRequest,StartResumableWriteResponse> startResumableWriteSettings()

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

Returns
Type Description
Builder<StartResumableWriteRequest,StartResumableWriteResponse>

writeObjectSettings()

public StreamingCallSettings.Builder<WriteObjectRequest,WriteObjectResponse> writeObjectSettings()

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

Returns
Type Description
Builder<WriteObjectRequest,WriteObjectResponse>