Class StorageOptions (2.44.1)

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
Type Description
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
Type Description
StorageOptions

getUnauthenticatedInstance()

public static StorageOptions getUnauthenticatedInstance()

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

Returns
Type Description
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
Type Description
GrpcStorageOptions.Builder

http()

public static HttpStorageOptions.Builder http()

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

Returns
Type Description
HttpStorageOptions.Builder

newBuilder()

public static StorageOptions.Builder newBuilder()

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

Returns
Type Description
StorageOptions.Builder

version()

public static String version()
Returns
Type Description
String

Methods

equals(Object obj)

public abstract boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getLibraryVersion()

public String getLibraryVersion()
Returns
Type Description
String
Overrides
com.google.cloud.ServiceOptions.getLibraryVersion()

hashCode()

public abstract int hashCode()
Returns
Type Description
int
Overrides

projectIdRequired()

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

toBuilder()

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