Package com.google.storage.v2.stub
Class StorageStubSettings.Builder
java.lang.Object
com.google.api.gax.rpc.StubSettings.Builder<StorageStubSettings,StorageStubSettings.Builder>
com.google.storage.v2.stub.StorageStubSettings.Builder
- Enclosing class:
- StorageStubSettings
public static class StorageStubSettings.Builder
extends com.google.api.gax.rpc.StubSettings.Builder<StorageStubSettings,StorageStubSettings.Builder>
Builder for StorageStubSettings.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder()protectedBuilder(com.google.api.gax.rpc.ClientContext clientContext) protectedBuilder(StorageStubSettings settings) -
Method Summary
Modifier and TypeMethodDescriptionapplyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) Applies the given settings updater function to all of the unary API methods in this service.com.google.api.gax.rpc.StreamingCallSettings.Builder<BidiWriteObjectRequest,BidiWriteObjectResponse> Returns the builder for the settings used for calls to bidiWriteObject.build()com.google.api.gax.rpc.UnaryCallSettings.Builder<CancelResumableWriteRequest,CancelResumableWriteResponse> Returns the builder for the settings used for calls to cancelResumableWrite.com.google.api.gax.rpc.UnaryCallSettings.Builder<ComposeObjectRequest,Object> Returns the builder for the settings used for calls to composeObject.com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateBucketRequest,Bucket> Returns the builder for the settings used for calls to createBucket.com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateHmacKeyRequest,CreateHmacKeyResponse> Deprecated.This method is deprecated and will be removed in the next major version update.com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateNotificationConfigRequest,NotificationConfig> Deprecated.This method is deprecated and will be removed in the next major version update.com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteBucketRequest,com.google.protobuf.Empty> Returns the builder for the settings used for calls to deleteBucket.com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteHmacKeyRequest,com.google.protobuf.Empty> Deprecated.This method is deprecated and will be removed in the next major version update.com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteNotificationConfigRequest,com.google.protobuf.Empty> Deprecated.This method is deprecated and will be removed in the next major version update.com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteObjectRequest,com.google.protobuf.Empty> Returns the builder for the settings used for calls to deleteObject.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetBucketRequest,Bucket> Returns the builder for the settings used for calls to getBucket.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetHmacKeyRequest,HmacKeyMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> Returns the builder for the settings used for calls to getIamPolicy.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetNotificationConfigRequest,NotificationConfig> Deprecated.This method is deprecated and will be removed in the next major version update.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetObjectRequest,Object> Returns the builder for the settings used for calls to getObject.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetServiceAccountRequest,ServiceAccount> Deprecated.This method is deprecated and will be removed in the next major version update.com.google.api.gax.rpc.PagedCallSettings.Builder<ListBucketsRequest,ListBucketsResponse, StorageClient.ListBucketsPagedResponse> Returns the builder for the settings used for calls to listBuckets.com.google.api.gax.rpc.PagedCallSettings.Builder<ListHmacKeysRequest,ListHmacKeysResponse, StorageClient.ListHmacKeysPagedResponse> Deprecated.This method is deprecated and will be removed in the next major version update.com.google.api.gax.rpc.PagedCallSettings.Builder<ListNotificationConfigsRequest,ListNotificationConfigsResponse, StorageClient.ListNotificationConfigsPagedResponse> Deprecated.This method is deprecated and will be removed in the next major version update.com.google.api.gax.rpc.PagedCallSettings.Builder<ListObjectsRequest,ListObjectsResponse, StorageClient.ListObjectsPagedResponse> Returns the builder for the settings used for calls to listObjects.com.google.api.gax.rpc.UnaryCallSettings.Builder<LockBucketRetentionPolicyRequest,Bucket> Returns the builder for the settings used for calls to lockBucketRetentionPolicy.com.google.api.gax.rpc.UnaryCallSettings.Builder<QueryWriteStatusRequest,QueryWriteStatusResponse> Returns the builder for the settings used for calls to queryWriteStatus.com.google.api.gax.rpc.ServerStreamingCallSettings.Builder<ReadObjectRequest,ReadObjectResponse> Returns the builder for the settings used for calls to readObject.com.google.api.gax.rpc.UnaryCallSettings.Builder<RestoreObjectRequest,Object> Returns the builder for the settings used for calls to restoreObject.com.google.api.gax.rpc.UnaryCallSettings.Builder<RewriteObjectRequest,RewriteResponse> Returns the builder for the settings used for calls to rewriteObject.com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> Returns the builder for the settings used for calls to setIamPolicy.com.google.api.gax.rpc.UnaryCallSettings.Builder<StartResumableWriteRequest,StartResumableWriteResponse> Returns the builder for the settings used for calls to startResumableWrite.com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> Returns the builder for the settings used for calls to testIamPermissions.com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>> com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateBucketRequest,Bucket> Returns the builder for the settings used for calls to updateBucket.com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateHmacKeyRequest,HmacKeyMetadata> Deprecated.This method is deprecated and will be removed in the next major version update.com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateObjectRequest,Object> Returns the builder for the settings used for calls to updateObject.com.google.api.gax.rpc.StreamingCallSettings.Builder<WriteObjectRequest,WriteObjectResponse> Returns the builder for the settings used for calls to writeObject.Methods inherited from class com.google.api.gax.rpc.StubSettings.Builder
applyToAllUnaryMethods, getApiKey, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogCheckIntervalDuration, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, self, setApiKey, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setGdchApiAudience, setHeaderProvider, setInternalHeaderProvider, setMtlsEndpoint, setQuotaProjectId, setStreamWatchdogCheckInterval, setStreamWatchdogCheckIntervalDuration, setStreamWatchdogProvider, setSwitchToMtlsEndpointAllowed, setTracerFactory, setTransportChannelProvider, setUniverseDomain, toString
-
Constructor Details
-
Builder
protected Builder() -
Builder
protected Builder(com.google.api.gax.rpc.ClientContext clientContext) -
Builder
-
-
Method Details
-
applyToAllUnaryMethods
public StorageStubSettings.Builder applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.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.
-
unaryMethodSettingsBuilders
public com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders() -
deleteBucketSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteBucketRequest,com.google.protobuf.Empty> deleteBucketSettings()Returns the builder for the settings used for calls to deleteBucket. -
getBucketSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetBucketRequest,Bucket> getBucketSettings()Returns the builder for the settings used for calls to getBucket. -
createBucketSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateBucketRequest,Bucket> createBucketSettings()Returns the builder for the settings used for calls to createBucket. -
listBucketsSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListBucketsRequest,ListBucketsResponse, listBucketsSettings()StorageClient.ListBucketsPagedResponse> Returns the builder for the settings used for calls to listBuckets. -
lockBucketRetentionPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<LockBucketRetentionPolicyRequest,Bucket> lockBucketRetentionPolicySettings()Returns the builder for the settings used for calls to lockBucketRetentionPolicy. -
getIamPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicySettings()Returns the builder for the settings used for calls to getIamPolicy. -
setIamPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicySettings()Returns the builder for the settings used for calls to setIamPolicy. -
testIamPermissionsSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsSettings()Returns the builder for the settings used for calls to testIamPermissions. -
updateBucketSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateBucketRequest,Bucket> updateBucketSettings()Returns the builder for the settings used for calls to updateBucket. -
composeObjectSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<ComposeObjectRequest,Object> composeObjectSettings()Returns the builder for the settings used for calls to composeObject. -
deleteObjectSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteObjectRequest,com.google.protobuf.Empty> deleteObjectSettings()Returns the builder for the settings used for calls to deleteObject. -
restoreObjectSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<RestoreObjectRequest,Object> restoreObjectSettings()Returns the builder for the settings used for calls to restoreObject. -
cancelResumableWriteSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<CancelResumableWriteRequest,CancelResumableWriteResponse> cancelResumableWriteSettings()Returns the builder for the settings used for calls to cancelResumableWrite. -
getObjectSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetObjectRequest,Object> getObjectSettings()Returns the builder for the settings used for calls to getObject. -
readObjectSettings
public com.google.api.gax.rpc.ServerStreamingCallSettings.Builder<ReadObjectRequest,ReadObjectResponse> readObjectSettings()Returns the builder for the settings used for calls to readObject. -
updateObjectSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateObjectRequest,Object> updateObjectSettings()Returns the builder for the settings used for calls to updateObject. -
writeObjectSettings
public com.google.api.gax.rpc.StreamingCallSettings.Builder<WriteObjectRequest,WriteObjectResponse> writeObjectSettings()Returns the builder for the settings used for calls to writeObject. -
bidiWriteObjectSettings
public com.google.api.gax.rpc.StreamingCallSettings.Builder<BidiWriteObjectRequest,BidiWriteObjectResponse> bidiWriteObjectSettings()Returns the builder for the settings used for calls to bidiWriteObject. -
listObjectsSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListObjectsRequest,ListObjectsResponse, listObjectsSettings()StorageClient.ListObjectsPagedResponse> Returns the builder for the settings used for calls to listObjects. -
rewriteObjectSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<RewriteObjectRequest,RewriteResponse> rewriteObjectSettings()Returns the builder for the settings used for calls to rewriteObject. -
startResumableWriteSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<StartResumableWriteRequest,StartResumableWriteResponse> startResumableWriteSettings()Returns the builder for the settings used for calls to startResumableWrite. -
queryWriteStatusSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<QueryWriteStatusRequest,QueryWriteStatusResponse> queryWriteStatusSettings()Returns the builder for the settings used for calls to queryWriteStatus. -
getServiceAccountSettings
@Deprecated public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetServiceAccountRequest,ServiceAccount> getServiceAccountSettings()Deprecated.This method is deprecated and will be removed in the next major version update.Returns the builder for the settings used for calls to getServiceAccount. -
createHmacKeySettings
@Deprecated public com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateHmacKeyRequest,CreateHmacKeyResponse> createHmacKeySettings()Deprecated.This method is deprecated and will be removed in the next major version update.Returns the builder for the settings used for calls to createHmacKey. -
deleteHmacKeySettings
@Deprecated public com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteHmacKeyRequest,com.google.protobuf.Empty> deleteHmacKeySettings()Deprecated.This method is deprecated and will be removed in the next major version update.Returns the builder for the settings used for calls to deleteHmacKey. -
getHmacKeySettings
@Deprecated public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetHmacKeyRequest,HmacKeyMetadata> getHmacKeySettings()Deprecated.This method is deprecated and will be removed in the next major version update.Returns the builder for the settings used for calls to getHmacKey. -
listHmacKeysSettings
@Deprecated public com.google.api.gax.rpc.PagedCallSettings.Builder<ListHmacKeysRequest,ListHmacKeysResponse, listHmacKeysSettings()StorageClient.ListHmacKeysPagedResponse> Deprecated.This method is deprecated and will be removed in the next major version update.Returns the builder for the settings used for calls to listHmacKeys. -
updateHmacKeySettings
@Deprecated public com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateHmacKeyRequest,HmacKeyMetadata> updateHmacKeySettings()Deprecated.This method is deprecated and will be removed in the next major version update.Returns the builder for the settings used for calls to updateHmacKey. -
deleteNotificationConfigSettings
@Deprecated public com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteNotificationConfigRequest,com.google.protobuf.Empty> deleteNotificationConfigSettings()Deprecated.This method is deprecated and will be removed in the next major version update.Returns the builder for the settings used for calls to deleteNotificationConfig. -
getNotificationConfigSettings
@Deprecated public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetNotificationConfigRequest,NotificationConfig> getNotificationConfigSettings()Deprecated.This method is deprecated and will be removed in the next major version update.Returns the builder for the settings used for calls to getNotificationConfig. -
createNotificationConfigSettings
@Deprecated public com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateNotificationConfigRequest,NotificationConfig> createNotificationConfigSettings()Deprecated.This method is deprecated and will be removed in the next major version update.Returns the builder for the settings used for calls to createNotificationConfig. -
listNotificationConfigsSettings
@Deprecated public com.google.api.gax.rpc.PagedCallSettings.Builder<ListNotificationConfigsRequest,ListNotificationConfigsResponse, listNotificationConfigsSettings()StorageClient.ListNotificationConfigsPagedResponse> Deprecated.This method is deprecated and will be removed in the next major version update.Returns the builder for the settings used for calls to listNotificationConfigs. -
build
- Specified by:
buildin classcom.google.api.gax.rpc.StubSettings.Builder<StorageStubSettings,StorageStubSettings.Builder> - Throws:
IOException
-