@BetaApi public static final class GrpcStorageOptions.Builder extends StorageOptions.Builder
Modifier and Type | Method and Description |
---|---|
GrpcStorageOptions |
build() |
protected GrpcStorageOptions.Builder |
self() |
GrpcStorageOptions.Builder |
setAttemptDirectPath(boolean attemptDirectPath)
Option which signifies the client should attempt to connect to gcs via Direct Path.
|
GrpcStorageOptions.Builder |
setClientLibToken(String clientLibToken) |
GrpcStorageOptions.Builder |
setClock(com.google.api.core.ApiClock clock) |
GrpcStorageOptions.Builder |
setCredentials(com.google.auth.Credentials credentials) |
GrpcStorageOptions.Builder |
setGrpcInterceptorProvider(@NonNull com.google.api.gax.grpc.GrpcInterceptorProvider grpcInterceptorProvider) |
GrpcStorageOptions.Builder |
setHeaderProvider(com.google.api.gax.rpc.HeaderProvider headerProvider) |
GrpcStorageOptions.Builder |
setHost(String host) |
GrpcStorageOptions.Builder |
setProjectId(String projectId) |
GrpcStorageOptions.Builder |
setQuotaProjectId(String quotaProjectId) |
GrpcStorageOptions.Builder |
setRetrySettings(com.google.api.gax.retrying.RetrySettings retrySettings) |
GrpcStorageOptions.Builder |
setServiceFactory(com.google.cloud.ServiceFactory<Storage,StorageOptions> serviceFactory) |
GrpcStorageOptions.Builder |
setServiceRpcFactory(com.google.cloud.spi.ServiceRpcFactory<StorageOptions> serviceRpcFactory) |
GrpcStorageOptions.Builder |
setStorageRetryStrategy(StorageRetryStrategy storageRetryStrategy)
Override the default retry handling behavior with an alternate strategy.
|
GrpcStorageOptions.Builder |
setTerminationAwaitDuration(org.threeten.bp.Duration terminationAwaitDuration)
Set the maximum duration in which to await termination of any outstanding requests when
calling
Storage.close() |
GrpcStorageOptions.Builder |
setTransportOptions(com.google.cloud.TransportOptions transportOptions) |
@BetaApi public GrpcStorageOptions.Builder setTerminationAwaitDuration(org.threeten.bp.Duration terminationAwaitDuration)
Storage.close()
terminationAwaitDuration
- a non-null Duration to use@BetaApi public GrpcStorageOptions.Builder setAttemptDirectPath(boolean attemptDirectPath)
NOTEThere is no need to specify a new endpoint via setHost(String)
as the
underlying code will translate the normal https://storage.googleapis.com:443
into the
proper Direct Path URI for you.
@BetaApi public GrpcStorageOptions.Builder setTransportOptions(com.google.cloud.TransportOptions transportOptions)
setTransportOptions
in class com.google.cloud.ServiceOptions.Builder<Storage,StorageOptions,StorageOptions.Builder>
@BetaApi public GrpcStorageOptions.Builder setStorageRetryStrategy(StorageRetryStrategy storageRetryStrategy)
setStorageRetryStrategy
in class StorageOptions.Builder
storageRetryStrategy
- a non-null storageRetryStrategy to useStorageRetryStrategy.getDefaultStorageRetryStrategy()
protected GrpcStorageOptions.Builder self()
self
in class com.google.cloud.ServiceOptions.Builder<Storage,StorageOptions,StorageOptions.Builder>
@BetaApi public GrpcStorageOptions.Builder setServiceFactory(com.google.cloud.ServiceFactory<Storage,StorageOptions> serviceFactory)
setServiceFactory
in class com.google.cloud.ServiceOptions.Builder<Storage,StorageOptions,StorageOptions.Builder>
@BetaApi public GrpcStorageOptions.Builder setClock(com.google.api.core.ApiClock clock)
setClock
in class com.google.cloud.ServiceOptions.Builder<Storage,StorageOptions,StorageOptions.Builder>
@BetaApi public GrpcStorageOptions.Builder setProjectId(String projectId)
setProjectId
in class com.google.cloud.ServiceOptions.Builder<Storage,StorageOptions,StorageOptions.Builder>
@BetaApi public GrpcStorageOptions.Builder setHost(String host)
setHost
in class com.google.cloud.ServiceOptions.Builder<Storage,StorageOptions,StorageOptions.Builder>
@BetaApi public GrpcStorageOptions.Builder setCredentials(com.google.auth.Credentials credentials)
setCredentials
in class com.google.cloud.ServiceOptions.Builder<Storage,StorageOptions,StorageOptions.Builder>
@BetaApi public GrpcStorageOptions.Builder setRetrySettings(com.google.api.gax.retrying.RetrySettings retrySettings)
setRetrySettings
in class com.google.cloud.ServiceOptions.Builder<Storage,StorageOptions,StorageOptions.Builder>
@BetaApi public GrpcStorageOptions.Builder setServiceRpcFactory(com.google.cloud.spi.ServiceRpcFactory<StorageOptions> serviceRpcFactory)
setServiceRpcFactory
in class com.google.cloud.ServiceOptions.Builder<Storage,StorageOptions,StorageOptions.Builder>
@BetaApi public GrpcStorageOptions.Builder setHeaderProvider(com.google.api.gax.rpc.HeaderProvider headerProvider)
setHeaderProvider
in class com.google.cloud.ServiceOptions.Builder<Storage,StorageOptions,StorageOptions.Builder>
@BetaApi public GrpcStorageOptions.Builder setClientLibToken(String clientLibToken)
setClientLibToken
in class com.google.cloud.ServiceOptions.Builder<Storage,StorageOptions,StorageOptions.Builder>
@BetaApi public GrpcStorageOptions.Builder setQuotaProjectId(String quotaProjectId)
setQuotaProjectId
in class com.google.cloud.ServiceOptions.Builder<Storage,StorageOptions,StorageOptions.Builder>
@BetaApi public GrpcStorageOptions.Builder setGrpcInterceptorProvider(@NonNull com.google.api.gax.grpc.GrpcInterceptorProvider grpcInterceptorProvider)
@BetaApi public GrpcStorageOptions build()
build
in class StorageOptions.Builder
Copyright © 2023 Google LLC. All rights reserved.