Class HttpStorageOptions.Builder (2.17.1)

public static class HttpStorageOptions.Builder extends StorageOptions.Builder

Inheritance

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

Methods

build()

public HttpStorageOptions build()
Returns
TypeDescription
HttpStorageOptions
Overrides

self()

protected HttpStorageOptions.Builder self()
Returns
TypeDescription
HttpStorageOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.self()

setClientLibToken(String clientLibToken)

public HttpStorageOptions.Builder setClientLibToken(String clientLibToken)
Parameter
NameDescription
clientLibTokenString
Returns
TypeDescription
HttpStorageOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.setClientLibToken(java.lang.String)

setClock(ApiClock clock)

public HttpStorageOptions.Builder setClock(ApiClock clock)
Parameter
NameDescription
clockApiClock
Returns
TypeDescription
HttpStorageOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.setClock(com.google.api.core.ApiClock)

setCredentials(Credentials credentials)

public HttpStorageOptions.Builder setCredentials(Credentials credentials)
Parameter
NameDescription
credentialscom.google.auth.Credentials
Returns
TypeDescription
HttpStorageOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.setCredentials(com.google.auth.Credentials)

setHeaderProvider(HeaderProvider headerProvider)

public HttpStorageOptions.Builder setHeaderProvider(HeaderProvider headerProvider)
Parameter
NameDescription
headerProviderHeaderProvider
Returns
TypeDescription
HttpStorageOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.setHeaderProvider(com.google.api.gax.rpc.HeaderProvider)

setHost(String host)

public HttpStorageOptions.Builder setHost(String host)
Parameter
NameDescription
hostString
Returns
TypeDescription
HttpStorageOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.setHost(java.lang.String)

setProjectId(String projectId)

public HttpStorageOptions.Builder setProjectId(String projectId)
Parameter
NameDescription
projectIdString
Returns
TypeDescription
HttpStorageOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.setProjectId(java.lang.String)

setQuotaProjectId(String quotaProjectId)

public HttpStorageOptions.Builder setQuotaProjectId(String quotaProjectId)
Parameter
NameDescription
quotaProjectIdString
Returns
TypeDescription
HttpStorageOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.setQuotaProjectId(java.lang.String)

setRetrySettings(RetrySettings retrySettings)

public HttpStorageOptions.Builder setRetrySettings(RetrySettings retrySettings)
Parameter
NameDescription
retrySettingsRetrySettings
Returns
TypeDescription
HttpStorageOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.setRetrySettings(com.google.api.gax.retrying.RetrySettings)

setServiceFactory(ServiceFactory<Storage,StorageOptions> serviceFactory)

public HttpStorageOptions.Builder setServiceFactory(ServiceFactory<Storage,StorageOptions> serviceFactory)
Parameter
NameDescription
serviceFactorycom.google.cloud.ServiceFactory<Storage,StorageOptions>
Returns
TypeDescription
HttpStorageOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.setServiceFactory(com.google.cloud.ServiceFactory<ServiceT,OptionsT>)

setServiceRpcFactory(ServiceRpcFactory<StorageOptions> serviceRpcFactory)

public HttpStorageOptions.Builder setServiceRpcFactory(ServiceRpcFactory<StorageOptions> serviceRpcFactory)
Parameter
NameDescription
serviceRpcFactorycom.google.cloud.spi.ServiceRpcFactory<StorageOptions>
Returns
TypeDescription
HttpStorageOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.setServiceRpcFactory(com.google.cloud.spi.ServiceRpcFactory<OptionsT>)

setStorageRetryStrategy(StorageRetryStrategy storageRetryStrategy)

public HttpStorageOptions.Builder setStorageRetryStrategy(StorageRetryStrategy storageRetryStrategy)

Override the default retry handling behavior with an alternate strategy. See Also: StorageRetryStrategy#getDefaultStorageRetryStrategy()

Parameter
NameDescription
storageRetryStrategyStorageRetryStrategy

a non-null storageRetryStrategy to use

Returns
TypeDescription
HttpStorageOptions.Builder

the builder

Overrides

setTransportOptions(TransportOptions transportOptions)

public HttpStorageOptions.Builder setTransportOptions(TransportOptions transportOptions)
Parameter
NameDescription
transportOptionscom.google.cloud.TransportOptions
Returns
TypeDescription
HttpStorageOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.setTransportOptions(com.google.cloud.TransportOptions)