Class StorageOptions.Builder (2.47.0)

public abstract static class StorageOptions.Builder extends ServiceOptions.Builder<Storage,StorageOptions,StorageOptions.Builder>

Inheritance

java.lang.Object > com.google.cloud.ServiceOptions.Builder > StorageOptions.Builder

Methods

build()

public abstract StorageOptions build()
Returns
Type Description
StorageOptions
Overrides
com.google.cloud.ServiceOptions.Builder.build()

setBlobWriteSessionConfig(@NonNull BlobWriteSessionConfig blobWriteSessionConfig)

public abstract StorageOptions.Builder setBlobWriteSessionConfig(@NonNull BlobWriteSessionConfig blobWriteSessionConfig)

See Also: Storage#blobWriteSession(BlobInfo, BlobWriteOption...), BlobWriteSessionConfigs, HttpStorageDefaults#getDefaultStorageWriterConfig(), BlobWriteSessionConfig, GrpcStorageDefaults#getDefaultStorageWriterConfig()

Parameter
Name Description
blobWriteSessionConfig @org.checkerframework.checker.nullness.qual.NonNull com.google.cloud.storage.BlobWriteSessionConfig
Returns
Type Description
StorageOptions.Builder

setOpenTelemetry(OpenTelemetry openTelemetry)

public abstract StorageOptions.Builder setOpenTelemetry(OpenTelemetry openTelemetry)

Enable OpenTelemetry Tracing and provide an instance for the client to use.

Parameter
Name Description
openTelemetry io.opentelemetry.api.OpenTelemetry

User defined instance of OpenTelemetry to be used by the library

Returns
Type Description
StorageOptions.Builder

setStorageRetryStrategy(StorageRetryStrategy storageRetryStrategy)

public abstract StorageOptions.Builder setStorageRetryStrategy(StorageRetryStrategy storageRetryStrategy)
Parameter
Name Description
storageRetryStrategy StorageRetryStrategy
Returns
Type Description
StorageOptions.Builder