Package com.google.cloud.storage
Class StorageOptions
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GrpcStorageOptions,HttpStorageOptions
- 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 HttpTransportOptionsstatic StorageOptionsReturns a defaultStorageOptionsinstance.abstract io.opentelemetry.api.OpenTelemetrystatic 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, getApiTracerFactory, getAppEngineAppId, getAppEngineProjectId, getAppEngineProjectIdFromAppId, getApplicationName, getClientLibToken, getClock, getCredentials, getDefaultHost, getDefaultProject, getDefaultProjectId, getDefaultRetrySettings, getFromServiceLoader, getGoogApiClientLibName, getGoogleCloudProjectId, getHost, getLibraryName, getMergedHeaderProvider, getNoRetrySettings, getProjectId, getQuotaProjectId, getResolvedApiaryHost, getResolvedHost, getRetrySettings, getRpc, getScopedCredentials, getScopes, getService, getServiceAccountProjectId, getTransportOptions, getUniverseDomain, getUserAgent, hasValidUniverseDomain, newInstance, shouldRefreshRpc, shouldRefreshService
-
Method Details
-
getDefaultHttpTransportOptions
-
projectIdRequired
protected boolean projectIdRequired()- Overrides:
projectIdRequiredin classServiceOptions<Storage,StorageOptions>
-
getLibraryVersion
- Overrides:
getLibraryVersionin classServiceOptions<Storage,StorageOptions>
-
version
-
getOpenTelemetry
- Since:
- 2.47.0 This new api is in preview and is subject to breaking changes.
-
toBuilder
- Specified by:
toBuilderin classServiceOptions<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
-
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
-
HttpStorageOptions.HttpStorageFactory