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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classDeprecated.static classDeprecated. -
Field Summary
Fields inherited from class com.google.cloud.ServiceOptions
clientLibToken, CREDENTIAL_ENV_NAME, credentials -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanstatic com.google.cloud.http.HttpTransportOptionsstatic StorageOptionsReturns a defaultStorageOptionsinstance.static StorageOptionsReturns a unauthenticatedStorageOptionsinstance.static GrpcStorageOptions.Buildergrpc()Builder factory method which will create a gRPC specific instance of storage options.abstract inthashCode()static HttpStorageOptions.Builderhttp()Builder factory method which will create a JSON over HTTP specific instance of storage options.static StorageOptions.BuilderThe returned instance will use JSON over HTTP for its transport.protected booleanabstract StorageOptions.Builderstatic Stringversion()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:
projectIdRequiredin classcom.google.cloud.ServiceOptions<Storage,StorageOptions>
-
getLibraryVersion
- Overrides:
getLibraryVersionin classcom.google.cloud.ServiceOptions<Storage,StorageOptions>
-
version
-
toBuilder
- Specified by:
toBuilderin classcom.google.cloud.ServiceOptions<Storage,StorageOptions>
-
hashCode
public abstract int hashCode() -
equals
-
getDefaultInstance
Returns a defaultStorageOptionsinstance. The default instance will use JSON over HTTP for its transport. -
getUnauthenticatedInstance
Returns a unauthenticatedStorageOptionsinstance. 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