Class GrpcStorageStub (2.41.0)

public class GrpcStorageStub extends StorageStub

gRPC stub implementation for the Storage service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > StorageStub > GrpcStorageStub

Static Methods

create(ClientContext clientContext)

public static final GrpcStorageStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcStorageStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcStorageStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcStorageStub
Exceptions
Type Description
IOException

create(StorageStubSettings settings)

public static final GrpcStorageStub create(StorageStubSettings settings)
Parameter
Name Description
settings StorageStubSettings
Returns
Type Description
GrpcStorageStub
Exceptions
Type Description
IOException

Constructors

GrpcStorageStub(StorageStubSettings settings, ClientContext clientContext)

protected GrpcStorageStub(StorageStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcStorageStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings StorageStubSettings
clientContext ClientContext

GrpcStorageStub(StorageStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcStorageStub(StorageStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcStorageStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings StorageStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

bidiWriteObjectCallable()

public BidiStreamingCallable<BidiWriteObjectRequest,BidiWriteObjectResponse> bidiWriteObjectCallable()
Returns
Type Description
BidiStreamingCallable<BidiWriteObjectRequest,BidiWriteObjectResponse>
Overrides

cancelResumableWriteCallable()

public UnaryCallable<CancelResumableWriteRequest,CancelResumableWriteResponse> cancelResumableWriteCallable()
Returns
Type Description
UnaryCallable<CancelResumableWriteRequest,CancelResumableWriteResponse>
Overrides

close()

public final void close()
Overrides

composeObjectCallable()

public UnaryCallable<ComposeObjectRequest,Object> composeObjectCallable()
Returns
Type Description
UnaryCallable<ComposeObjectRequest,Object>
Overrides

createBucketCallable()

public UnaryCallable<CreateBucketRequest,Bucket> createBucketCallable()
Returns
Type Description
UnaryCallable<CreateBucketRequest,Bucket>
Overrides

createHmacKeyCallable()

public UnaryCallable<CreateHmacKeyRequest,CreateHmacKeyResponse> createHmacKeyCallable()
Returns
Type Description
UnaryCallable<CreateHmacKeyRequest,CreateHmacKeyResponse>
Overrides

createNotificationConfigCallable()

public UnaryCallable<CreateNotificationConfigRequest,NotificationConfig> createNotificationConfigCallable()
Returns
Type Description
UnaryCallable<CreateNotificationConfigRequest,NotificationConfig>
Overrides

deleteBucketCallable()

public UnaryCallable<DeleteBucketRequest,Empty> deleteBucketCallable()
Returns
Type Description
UnaryCallable<DeleteBucketRequest,Empty>
Overrides

deleteHmacKeyCallable()

public UnaryCallable<DeleteHmacKeyRequest,Empty> deleteHmacKeyCallable()
Returns
Type Description
UnaryCallable<DeleteHmacKeyRequest,Empty>
Overrides

deleteNotificationConfigCallable()

public UnaryCallable<DeleteNotificationConfigRequest,Empty> deleteNotificationConfigCallable()
Returns
Type Description
UnaryCallable<DeleteNotificationConfigRequest,Empty>
Overrides

deleteObjectCallable()

public UnaryCallable<DeleteObjectRequest,Empty> deleteObjectCallable()
Returns
Type Description
UnaryCallable<DeleteObjectRequest,Empty>
Overrides

getBucketCallable()

public UnaryCallable<GetBucketRequest,Bucket> getBucketCallable()
Returns
Type Description
UnaryCallable<GetBucketRequest,Bucket>
Overrides

getHmacKeyCallable()

public UnaryCallable<GetHmacKeyRequest,HmacKeyMetadata> getHmacKeyCallable()
Returns
Type Description
UnaryCallable<GetHmacKeyRequest,HmacKeyMetadata>
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

getNotificationConfigCallable()

public UnaryCallable<GetNotificationConfigRequest,NotificationConfig> getNotificationConfigCallable()
Returns
Type Description
UnaryCallable<GetNotificationConfigRequest,NotificationConfig>
Overrides

getObjectCallable()

public UnaryCallable<GetObjectRequest,Object> getObjectCallable()
Returns
Type Description
UnaryCallable<GetObjectRequest,Object>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

getServiceAccountCallable()

public UnaryCallable<GetServiceAccountRequest,ServiceAccount> getServiceAccountCallable()
Returns
Type Description
UnaryCallable<GetServiceAccountRequest,ServiceAccount>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listBucketsCallable()

public UnaryCallable<ListBucketsRequest,ListBucketsResponse> listBucketsCallable()
Returns
Type Description
UnaryCallable<ListBucketsRequest,ListBucketsResponse>
Overrides

listBucketsPagedCallable()

public UnaryCallable<ListBucketsRequest,StorageClient.ListBucketsPagedResponse> listBucketsPagedCallable()
Returns
Type Description
UnaryCallable<ListBucketsRequest,ListBucketsPagedResponse>
Overrides

listHmacKeysCallable()

public UnaryCallable<ListHmacKeysRequest,ListHmacKeysResponse> listHmacKeysCallable()
Returns
Type Description
UnaryCallable<ListHmacKeysRequest,ListHmacKeysResponse>
Overrides

listHmacKeysPagedCallable()

public UnaryCallable<ListHmacKeysRequest,StorageClient.ListHmacKeysPagedResponse> listHmacKeysPagedCallable()
Returns
Type Description
UnaryCallable<ListHmacKeysRequest,ListHmacKeysPagedResponse>
Overrides

listNotificationConfigsCallable()

public UnaryCallable<ListNotificationConfigsRequest,ListNotificationConfigsResponse> listNotificationConfigsCallable()
Returns
Type Description
UnaryCallable<ListNotificationConfigsRequest,ListNotificationConfigsResponse>
Overrides

listNotificationConfigsPagedCallable()

public UnaryCallable<ListNotificationConfigsRequest,StorageClient.ListNotificationConfigsPagedResponse> listNotificationConfigsPagedCallable()
Returns
Type Description
UnaryCallable<ListNotificationConfigsRequest,ListNotificationConfigsPagedResponse>
Overrides

listObjectsCallable()

public UnaryCallable<ListObjectsRequest,ListObjectsResponse> listObjectsCallable()
Returns
Type Description
UnaryCallable<ListObjectsRequest,ListObjectsResponse>
Overrides

listObjectsPagedCallable()

public UnaryCallable<ListObjectsRequest,StorageClient.ListObjectsPagedResponse> listObjectsPagedCallable()
Returns
Type Description
UnaryCallable<ListObjectsRequest,ListObjectsPagedResponse>
Overrides

lockBucketRetentionPolicyCallable()

public UnaryCallable<LockBucketRetentionPolicyRequest,Bucket> lockBucketRetentionPolicyCallable()
Returns
Type Description
UnaryCallable<LockBucketRetentionPolicyRequest,Bucket>
Overrides

queryWriteStatusCallable()

public UnaryCallable<QueryWriteStatusRequest,QueryWriteStatusResponse> queryWriteStatusCallable()
Returns
Type Description
UnaryCallable<QueryWriteStatusRequest,QueryWriteStatusResponse>
Overrides

readObjectCallable()

public ServerStreamingCallable<ReadObjectRequest,ReadObjectResponse> readObjectCallable()
Returns
Type Description
ServerStreamingCallable<ReadObjectRequest,ReadObjectResponse>
Overrides

restoreObjectCallable()

public UnaryCallable<RestoreObjectRequest,Object> restoreObjectCallable()
Returns
Type Description
UnaryCallable<RestoreObjectRequest,Object>
Overrides

rewriteObjectCallable()

public UnaryCallable<RewriteObjectRequest,RewriteResponse> rewriteObjectCallable()
Returns
Type Description
UnaryCallable<RewriteObjectRequest,RewriteResponse>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

startResumableWriteCallable()

public UnaryCallable<StartResumableWriteRequest,StartResumableWriteResponse> startResumableWriteCallable()
Returns
Type Description
UnaryCallable<StartResumableWriteRequest,StartResumableWriteResponse>
Overrides

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

updateBucketCallable()

public UnaryCallable<UpdateBucketRequest,Bucket> updateBucketCallable()
Returns
Type Description
UnaryCallable<UpdateBucketRequest,Bucket>
Overrides

updateHmacKeyCallable()

public UnaryCallable<UpdateHmacKeyRequest,HmacKeyMetadata> updateHmacKeyCallable()
Returns
Type Description
UnaryCallable<UpdateHmacKeyRequest,HmacKeyMetadata>
Overrides

updateObjectCallable()

public UnaryCallable<UpdateObjectRequest,Object> updateObjectCallable()
Returns
Type Description
UnaryCallable<UpdateObjectRequest,Object>
Overrides

writeObjectCallable()

public ClientStreamingCallable<WriteObjectRequest,WriteObjectResponse> writeObjectCallable()
Returns
Type Description
ClientStreamingCallable<WriteObjectRequest,WriteObjectResponse>
Overrides