Class StorageOptions (2.22.3)

public abstract class StorageOptions extends ServiceOptions<Storage,StorageOptions>

Inheritance

Object > com.google.cloud.ServiceOptions > StorageOptions

Static Methods

getDefaultHttpTransportOptions() (deprecated)

public static HttpTransportOptions getDefaultHttpTransportOptions()

Deprecated. Use HttpStorageDefaults#getDefaultTransportOptions()

Returns
TypeDescription
com.google.cloud.http.HttpTransportOptions

getDefaultInstance()

public static StorageOptions getDefaultInstance()

Returns a default StorageOptions instance. The default instance will use JSON over HTTP for its transport.

Returns
TypeDescription
StorageOptions

getUnauthenticatedInstance()

public static StorageOptions getUnauthenticatedInstance()

Returns a unauthenticated StorageOptions instance. The returned instance will use JSON over HTTP for its transport.

Returns
TypeDescription
StorageOptions

grpc()

public static GrpcStorageOptions.Builder grpc()

Builder factory method which will create a gRPC specific instance of storage options.

Google Cloud Storage is in Private Preview for a gRPC centric transport.

Returns
TypeDescription
GrpcStorageOptions.Builder

http()

public static HttpStorageOptions.Builder http()

Builder factory method which will create a JSON over HTTP specific instance of storage options.

Returns
TypeDescription
HttpStorageOptions.Builder

newBuilder()

public static StorageOptions.Builder newBuilder()

The returned instance will use JSON over HTTP for its transport.

Returns
TypeDescription
StorageOptions.Builder

Methods

equals(Object obj)

public abstract boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

hashCode()

public abstract int hashCode()
Returns
TypeDescription
int
Overrides

projectIdRequired()

protected boolean projectIdRequired()
Returns
TypeDescription
boolean
Overrides
com.google.cloud.ServiceOptions.projectIdRequired()

toBuilder()

public abstract StorageOptions.Builder toBuilder()
Returns
TypeDescription
StorageOptions.Builder
Overrides
com.google.cloud.ServiceOptions.<B>toBuilder()