Class GrpcStorageOptions.Builder (2.22.6)

public static final class GrpcStorageOptions.Builder extends StorageOptions.Builder

Inheritance

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

Methods

build()

public GrpcStorageOptions build()
Returns
Type Description
GrpcStorageOptions
Overrides

self()

protected GrpcStorageOptions.Builder self()
Returns
Type Description
GrpcStorageOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.self()

setAttemptDirectPath(boolean attemptDirectPath)

public GrpcStorageOptions.Builder setAttemptDirectPath(boolean attemptDirectPath)

Option which signifies the client should attempt to connect to gcs via Direct Path.

In order to use direct path, both this option must be true and the environment variable (not system property) GOOGLE_CLOUD_ENABLE_DIRECT_PATH_XDS must be true.

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.

Parameter
Name Description
attemptDirectPath boolean
Returns
Type Description
GrpcStorageOptions.Builder

setClientLibToken(String clientLibToken)

public GrpcStorageOptions.Builder setClientLibToken(String clientLibToken)
Parameter
Name Description
clientLibToken String
Returns
Type Description
GrpcStorageOptions.Builder
Overrides
com.google.cloud.ServiceOptions.Builder.setClientLibToken(java.lang.String)

setClock(ApiClock clock)

public GrpcStorageOptions.Builder setClock(ApiClock clock)
Parameter
Name Description
clock