Class StorageStubSettings.Builder (2.9.2)

public static class StorageStubSettings.Builder extends StubSettings.Builder<StorageStubSettings,StorageStubSettings.Builder>

Builder for StorageStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > StorageStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(StorageStubSettings settings)

protected Builder(StorageStubSettings settings)
Parameter
NameDescription
settingsStorageStubSettings

Methods

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

public StorageStubSettings.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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,Void>
Returns
TypeDescription
StorageStubSettings.Builder

build()

public StorageStubSettings build()
Returns
TypeDescription
StorageStubSettings
Overrides Exceptions
TypeDescription
IOException

composeObjectSettings()

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

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

Returns
TypeDescription
Builder<ComposeObjectRequest,Object>

createBucketSettings()

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

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

Returns
TypeDescription
Builder<CreateBucketRequest,Bucket>

createHmacKeySettings()

public UnaryCallSettings.Builder<CreateHmacKeyRequest,CreateHmacKeyResponse> createHmacKeySettings()

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

Returns
TypeDescription
Builder<CreateHmacKeyRequest,CreateHmacKeyResponse>

createNotificationSettings()

public UnaryCallSettings.Builder<CreateNotificationRequest,Notification> createNotificationSettings()

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

Returns
TypeDescription
Builder<CreateNotificationRequest,Notification>

deleteBucketSettings()

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

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

Returns
TypeDescription
Builder<DeleteBucketRequest,Empty>

deleteHmacKeySettings()

public UnaryCallSettings.Builder<DeleteHmacKeyRequest,Empty> deleteHmacKeySettings()

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

Returns
TypeDescription
Builder<DeleteHmacKeyRequest,Empty>

deleteNotificationSettings()

public UnaryCallSettings.Builder<DeleteNotificationRequest,Empty> deleteNotificationSettings()

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

Returns
TypeDescription
Builder<DeleteNotificationRequest,Empty>

deleteObjectSettings()

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

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

Returns
TypeDescription
Builder<DeleteObjectRequest,Empty>

getBucketSettings()

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

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

Returns
TypeDescription
Builder<GetBucketRequest,Bucket>

getHmacKeySettings()

public UnaryCallSettings.Builder<GetHmacKeyRequest,HmacKeyMetadata> getHmacKeySettings()

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

Returns
TypeDescription
Builder<GetHmacKeyRequest,HmacKeyMetadata>

getIamPolicySettings()

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

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

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

getNotificationSettings()

public UnaryCallSettings.Builder<GetNotificationRequest,Notification> getNotificationSettings()

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

Returns
TypeDescription
Builder<GetNotificationRequest,Notification>

getObjectSettings()

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

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

Returns
TypeDescription
Builder<GetObjectRequest,Object>

getServiceAccountSettings()

public UnaryCallSettings.Builder<GetServiceAccountRequest,ServiceAccount> getServiceAccountSettings()

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

Returns
TypeDescription
Builder<GetServiceAccountRequest,ServiceAccount>

listBucketsSettings()

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

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

Returns
TypeDescription
Builder<ListBucketsRequest,ListBucketsResponse,ListBucketsPagedResponse>

listHmacKeysSettings()

public PagedCallSettings.Builder<ListHmacKeysRequest,ListHmacKeysResponse,StorageClient.ListHmacKeysPagedResponse> listHmacKeysSettings()

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

Returns
TypeDescription
Builder<ListHmacKeysRequest,ListHmacKeysResponse,ListHmacKeysPagedResponse>

listNotificationsSettings()

public PagedCallSettings.Builder<ListNotificationsRequest,ListNotificationsResponse,StorageClient.ListNotificationsPagedResponse> listNotificationsSettings()

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

Returns
TypeDescription
Builder<ListNotificationsRequest,ListNotificationsResponse,ListNotificationsPagedResponse>

listObjectsSettings()

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

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

Returns
TypeDescription
Builder<ListObjectsRequest,ListObjectsResponse,ListObjectsPagedResponse>

lockBucketRetentionPolicySettings()

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

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

Returns
TypeDescription
Builder<LockBucketRetentionPolicyRequest,Bucket>

queryWriteStatusSettings()

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

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

Returns
TypeDescription
Builder<QueryWriteStatusRequest,QueryWriteStatusResponse>

readObjectSettings()

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

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

Returns
TypeDescription
Builder<ReadObjectRequest,ReadObjectResponse>

rewriteObjectSettings()

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

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

Returns
TypeDescription
Builder<RewriteObjectRequest,RewriteResponse>

setIamPolicySettings()

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

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

Returns
TypeDescription
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
TypeDescription
Builder<StartResumableWriteRequest,StartResumableWriteResponse>

testIamPermissionsSettings()

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

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

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

unaryMethodSettingsBuilders()

public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns
TypeDescription
com.google.common.collect.ImmutableList<Builder<?,?>>

updateBucketSettings()

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

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

Returns
TypeDescription
Builder<UpdateBucketRequest,Bucket>

updateHmacKeySettings()

public UnaryCallSettings.Builder<UpdateHmacKeyRequest,HmacKeyMetadata> updateHmacKeySettings()

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

Returns
TypeDescription
Builder<UpdateHmacKeyRequest,HmacKeyMetadata>

updateObjectSettings()

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

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

Returns
TypeDescription
Builder<UpdateObjectRequest,Object>

writeObjectSettings()

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

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

Returns
TypeDescription
Builder<WriteObjectRequest,WriteObjectResponse>