Class StorageSettings.Builder (2.46.0)

public static class StorageSettings.Builder extends ClientSettings.Builder<StorageSettings,StorageSettings.Builder>

Builder for StorageSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > StorageSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(StorageSettings settings)

protected Builder(StorageSettings settings)
Parameter
Name Description
settings StorageSettings

Builder(StorageStubSettings.Builder stubSettings)

protected Builder(StorageStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings StorageStubSettings.Builder

Methods

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public StorageSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

Applies the given settings updater function to all of the unary API methods in this service.

Note: This method does not support applying settings to streaming methods.

Parameter
Name Description
settingsUpdater ApiFunction<Builder<?,?>,Void>
Returns
Type Description
StorageSettings.Builder

bidiWriteObjectSettings()

public StreamingCallSettings.Builder<BidiWriteObjectRequest,BidiWriteObjectResponse> bidiWriteObjectSettings()

Returns the builder for the settings used for calls to bidiWriteObject.

Returns
Type Description
Builder<BidiWriteObjectRequest,BidiWriteObjectResponse>

build()

public StorageSettings build()
Returns
Type Description
StorageSettings
Overrides
Exceptions
Type Description
IOException

cancelResumableWriteSettings()

public UnaryCallSettings.Builder<CancelResumableWriteRequest,CancelResumableWriteResponse> cancelResumableWriteSettings()

Returns the builder for the settings used for calls to cancelResumableWrite.

Returns
Type Description
Builder<CancelResumableWriteRequest,CancelResumableWriteResponse>

composeObjectSettings()

public UnaryCallSettings.Builder<ComposeObjectRequest,Object> composeObjectSettings()

Returns the builder for the settings used for calls to composeObject.

Returns
Type Description
Builder<ComposeObjectRequest,Object>

createBucketSettings()

public UnaryCallSettings.Builder<CreateBucketRequest,Bucket> createBucketSettings()

Returns the builder for the settings used for calls to createBucket.

Returns
Type Description
Builder<CreateBucketRequest,Bucket>

deleteBucketSettings()

public UnaryCallSettings.Builder<DeleteBucketRequest,Empty> deleteBucketSettings()

Returns the builder for the settings used for calls to deleteBucket.

Returns
Type Description
Builder<DeleteBucketRequest,Empty>

deleteObjectSettings()

public UnaryCallSettings.Builder<DeleteObjectRequest,Empty> deleteObjectSettings()

Returns the builder for the settings used for calls to deleteObject.

Returns
Type Description
Builder<DeleteObjectRequest,Empty>

getBucketSettings()

public UnaryCallSettings.Builder<GetBucketRequest,Bucket> getBucketSettings()

Returns the builder for the settings used for calls to getBucket.

Returns
Type Description
Builder<GetBucketRequest,Bucket>

getIamPolicySettings()

public UnaryCallSettings.Builder<GetIamPolicyRequest,Policy> getIamPolicySettings()

Returns the builder for the settings used for calls to getIamPolicy.

Returns
Type Description
Builder<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>

getObjectSettings()

public UnaryCallSettings.Builder<GetObjectRequest,Object> getObjectSettings()

Returns the builder for the settings used for calls to getObject.

Returns
Type Description
Builder<GetObjectRequest,Object>

getStubSettingsBuilder()

public StorageStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
StorageStubSettings.Builder

listBucketsSettings()

public PagedCallSettings.Builder<ListBucketsRequest,ListBucketsResponse,StorageClient.ListBucketsPagedResponse> listBucketsSettings()

Returns the builder for the settings used for calls to listBuckets.

Returns
Type Description
Builder<ListBucketsRequest,ListBucketsResponse,ListBucketsPagedResponse>

listObjectsSettings()

public PagedCallSettings.Builder<ListObjectsRequest,ListObjectsResponse,StorageClient.ListObjectsPagedResponse> listObjectsSettings()

Returns the builder for the settings used for calls to listObjects.

Returns
Type Description
Builder<ListObjectsRequest,ListObjectsResponse,ListObjectsPagedResponse>

lockBucketRetentionPolicySettings()

public UnaryCallSettings.Builder<LockBucketRetentionPolicyRequest,Bucket> lockBucketRetentionPolicySettings()

Returns the builder for the settings used for calls to lockBucketRetentionPolicy.

Returns
Type Description
Builder<LockBucketRetentionPolicyRequest,Bucket>

queryWriteStatusSettings()

public UnaryCallSettings.Builder<QueryWriteStatusRequest,QueryWriteStatusResponse> queryWriteStatusSettings()

Returns the builder for the settings used for calls to queryWriteStatus.

Returns
Type Description
Builder<QueryWriteStatusRequest,QueryWriteStatusResponse>

readObjectSettings()

public ServerStreamingCallSettings.Builder<ReadObjectRequest,ReadObjectResponse> readObjectSettings()

Returns the builder for the settings used for calls to readObject.

Returns
Type Description
Builder<ReadObjectRequest,ReadObjectResponse>

restoreObjectSettings()

public UnaryCallSettings.Builder<RestoreObjectRequest,Object> restoreObjectSettings()

Returns the builder for the settings used for calls to restoreObject.

Returns
Type Description
Builder<RestoreObjectRequest,Object>

rewriteObjectSettings()

public UnaryCallSettings.Builder<RewriteObjectRequest,RewriteResponse> rewriteObjectSettings()

Returns the builder for the settings used for calls to rewriteObject.

Returns
Type Description
Builder<RewriteObjectRequest,RewriteResponse>

setIamPolicySettings()

public UnaryCallSettings.Builder<SetIamPolicyRequest,Policy> setIamPolicySettings()

Returns the builder for the settings used for calls to setIamPolicy.

Returns
Type Description
Builder<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>

startResumableWriteSettings()

public UnaryCallSettings.Builder<StartResumableWriteRequest,StartResumableWriteResponse> startResumableWriteSettings()

Returns the builder for the settings used for calls to startResumableWrite.

Returns
Type Description
Builder<StartResumableWriteRequest,StartResumableWriteResponse>

testIamPermissionsSettings()

public UnaryCallSettings.Builder<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsSettings()

Returns the builder for the settings used for calls to testIamPermissions.

Returns
Type Description
Builder<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>

updateBucketSettings()

public UnaryCallSettings.Builder<UpdateBucketRequest,Bucket> updateBucketSettings()

Returns the builder for the settings used for calls to updateBucket.

Returns
Type Description
Builder<UpdateBucketRequest,Bucket>

updateObjectSettings()

public UnaryCallSettings.Builder<UpdateObjectRequest,Object> updateObjectSettings()

Returns the builder for the settings used for calls to updateObject.

Returns
Type Description
Builder<UpdateObjectRequest,Object>

writeObjectSettings()

public StreamingCallSettings.Builder<WriteObjectRequest,WriteObjectResponse> writeObjectSettings()

Returns the builder for the settings used for calls to writeObject.

Returns
Type Description
Builder<WriteObjectRequest,WriteObjectResponse>