Package com.google.cloud.storage
Class StorageOptions
java.lang.Object
com.google.cloud.ServiceOptions<Storage,StorageOptions>
com.google.cloud.storage.StorageOptions
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GrpcStorageOptions
,HttpStorageOptions
public abstract class StorageOptions
extends com.google.cloud.ServiceOptions<Storage,StorageOptions>
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Deprecated.static class
Deprecated. -
Field Summary
Fields inherited from class com.google.cloud.ServiceOptions
clientLibToken, CREDENTIAL_ENV_NAME, credentials
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
static com.google.cloud.http.HttpTransportOptions
static StorageOptions
Returns a defaultStorageOptions
instance.static StorageOptions
Returns a unauthenticatedStorageOptions
instance.static GrpcStorageOptions.Builder
grpc()
Builder factory method which will create a gRPC specific instance of storage options.abstract int
hashCode()
static HttpStorageOptions.Builder
http()
Builder factory method which will create a JSON over HTTP specific instance of storage options.static StorageOptions.Builder
The returned instance will use JSON over HTTP for its transport.protected boolean
abstract StorageOptions.Builder
static String
version()
Methods inherited from class com.google.cloud.ServiceOptions
baseEquals, baseHashCode, defaultRetrySettings, getAppEngineAppId, getAppEngineProjectId, getAppEngineProjectIdFromAppId, getApplicationName, getClientLibToken, getClock, getCredentials, getDefaultHost, getDefaultProject, getDefaultProjectId, getDefaultRetrySettings, getFromServiceLoader, getGoogApiClientLibName, getGoogleCloudProjectId, getHost, getLibraryName, getMergedHeaderProvider, getNoRetrySettings, getProjectId, getQuotaProjectId, getRetrySettings, getRpc, getScopedCredentials, getScopes, getService, getServiceAccountProjectId, getTransportOptions, getUserAgent, newInstance, shouldRefreshRpc, shouldRefreshService
-
Method Details
-
getDefaultHttpTransportOptions
@Deprecated public static com.google.cloud.http.HttpTransportOptions getDefaultHttpTransportOptions() -
projectIdRequired
protected boolean projectIdRequired()- Overrides:
projectIdRequired
in classcom.google.cloud.ServiceOptions<Storage,
StorageOptions>
-
getLibraryVersion
- Overrides:
getLibraryVersion
in classcom.google.cloud.ServiceOptions<Storage,
StorageOptions>
-
version
-
toBuilder
- Specified by:
toBuilder
in classcom.google.cloud.ServiceOptions<Storage,
StorageOptions>
-
hashCode
public abstract int hashCode() -
equals
-
getDefaultInstance
Returns a defaultStorageOptions
instance. The default instance will use JSON over HTTP for its transport. -
getUnauthenticatedInstance
Returns a unauthenticatedStorageOptions
instance. The returned instance will use JSON over HTTP for its transport. -
newBuilder
The returned instance will use JSON over HTTP for its transport. -
http
Builder factory method which will create a JSON over HTTP specific instance of storage options.- Since:
- 2.14.0 This new api is in preview and is subject to breaking changes.
-
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.
- Since:
- 2.14.0 This new api is in preview and is subject to breaking changes.
-
HttpStorageOptions.HttpStorageFactory