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.
Static Methods
create(ClientContext clientContext)
public static final GrpcStorageStub create(ClientContext clientContext)
Name | Description |
clientContext |
ClientContext |
Type | Description |
GrpcStorageStub |
Type | Description |
IOException |
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcStorageStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Name | Description |
clientContext |
ClientContext |
callableFactory |
GrpcStubCallableFactory |
Type | Description |
GrpcStorageStub |
Type | Description |
IOException |
create(StorageStubSettings settings)
public static final GrpcStorageStub create(StorageStubSettings settings)
Name | Description |
settings |
StorageStubSettings |
Type | Description |
GrpcStorageStub |
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.
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.
Name | Description |
settings |
StorageStubSettings |
clientContext |
ClientContext |
callableFactory |
GrpcStubCallableFactory |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Name | Description |
duration |
long |
unit |
TimeUnit |
Type | Description |
boolean |
Type | Description |
InterruptedException |
cancelResumableWriteCallable()
public UnaryCallable<CancelResumableWriteRequest,CancelResumableWriteResponse> cancelResumableWriteCallable()
Type | Description |
UnaryCallable<CancelResumableWriteRequest,CancelResumableWriteResponse> |
close()
public final void close()
composeObjectCallable()
public UnaryCallable<ComposeObjectRequest,Object> composeObjectCallable()
Type | Description |
UnaryCallable<ComposeObjectRequest,Object> |
createBucketCallable()
public UnaryCallable<CreateBucketRequest,Bucket> createBucketCallable()
Type | Description |
UnaryCallable<CreateBucketRequest,Bucket> |
createHmacKeyCallable()
public UnaryCallable<CreateHmacKeyRequest,CreateHmacKeyResponse> createHmacKeyCallable()
Type | Description |
UnaryCallable<CreateHmacKeyRequest,CreateHmacKeyResponse> |
createNotificationCallable()
public UnaryCallable<CreateNotificationRequest,Notification> createNotificationCallable()
Type | Description |
UnaryCallable<CreateNotificationRequest,Notification> |
deleteBucketCallable()
public UnaryCallable<DeleteBucketRequest,Empty> deleteBucketCallable()
Type | Description |
UnaryCallable<DeleteBucketRequest,Empty> |
deleteHmacKeyCallable()
public UnaryCallable<DeleteHmacKeyRequest,Empty> deleteHmacKeyCallable()
Type | Description |
UnaryCallable<DeleteHmacKeyRequest,Empty> |
deleteNotificationCallable()
public UnaryCallable<DeleteNotificationRequest,Empty> deleteNotificationCallable()
Type | Description |
UnaryCallable<DeleteNotificationRequest,Empty> |
deleteObjectCallable()
public UnaryCallable<DeleteObjectRequest,Empty> deleteObjectCallable()
Type | Description |
UnaryCallable<DeleteObjectRequest,Empty> |
getBucketCallable()
public UnaryCallable<GetBucketRequest,Bucket> getBucketCallable()
Type | Description |
UnaryCallable<GetBucketRequest,Bucket> |
getHmacKeyCallable()
public UnaryCallable<GetHmacKeyRequest,HmacKeyMetadata> getHmacKeyCallable()
Type | Description |
UnaryCallable<GetHmacKeyRequest,HmacKeyMetadata> |
getIamPolicyCallable()
public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Type | Description |
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
getNotificationCallable()
public UnaryCallable<GetNotificationRequest,Notification> getNotificationCallable()
Type | Description |
UnaryCallable<GetNotificationRequest,Notification> |
getObjectCallable()
public UnaryCallable<GetObjectRequest,Object> getObjectCallable()
Type | Description |
UnaryCallable<GetObjectRequest,Object> |
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
Type | Description |
GrpcOperationsStub |
getServiceAccountCallable()
public UnaryCallable<GetServiceAccountRequest,ServiceAccount> getServiceAccountCallable()
Type | Description |
UnaryCallable<GetServiceAccountRequest,ServiceAccount> |
isShutdown()
public boolean isShutdown()
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Type | Description |
boolean |
listBucketsCallable()
public UnaryCallable<ListBucketsRequest,ListBucketsResponse> listBucketsCallable()
Type | Description |
UnaryCallable<ListBucketsRequest,ListBucketsResponse> |
listBucketsPagedCallable()
public UnaryCallable<ListBucketsRequest,StorageClient.ListBucketsPagedResponse> listBucketsPagedCallable()
Type | Description |
UnaryCallable<ListBucketsRequest,ListBucketsPagedResponse> |
listHmacKeysCallable()
public UnaryCallable<ListHmacKeysRequest,ListHmacKeysResponse> listHmacKeysCallable()
Type | Description |
UnaryCallable<ListHmacKeysRequest,ListHmacKeysResponse> |
listHmacKeysPagedCallable()
public UnaryCallable<ListHmacKeysRequest,StorageClient.ListHmacKeysPagedResponse> listHmacKeysPagedCallable()
Type | Description |
UnaryCallable<ListHmacKeysRequest,ListHmacKeysPagedResponse> |
listNotificationsCallable()
public UnaryCallable<ListNotificationsRequest,ListNotificationsResponse> listNotificationsCallable()
Type | Description |
UnaryCallable<ListNotificationsRequest,ListNotificationsResponse> |
listNotificationsPagedCallable()
public UnaryCallable<ListNotificationsRequest,StorageClient.ListNotificationsPagedResponse> listNotificationsPagedCallable()
Type | Description |
UnaryCallable<ListNotificationsRequest,ListNotificationsPagedResponse> |
listObjectsCallable()
public UnaryCallable<ListObjectsRequest,ListObjectsResponse> listObjectsCallable()
Type | Description |
UnaryCallable<ListObjectsRequest,ListObjectsResponse> |
listObjectsPagedCallable()
public UnaryCallable<ListObjectsRequest,StorageClient.ListObjectsPagedResponse> listObjectsPagedCallable()
Type | Description |
UnaryCallable<ListObjectsRequest,ListObjectsPagedResponse> |
lockBucketRetentionPolicyCallable()
public UnaryCallable<LockBucketRetentionPolicyRequest,Bucket> lockBucketRetentionPolicyCallable()
Type | Description |
UnaryCallable<LockBucketRetentionPolicyRequest,Bucket> |
queryWriteStatusCallable()
public UnaryCallable<QueryWriteStatusRequest,QueryWriteStatusResponse> queryWriteStatusCallable()
Type | Description |
UnaryCallable<QueryWriteStatusRequest,QueryWriteStatusResponse> |
readObjectCallable()
public ServerStreamingCallable<ReadObjectRequest,ReadObjectResponse> readObjectCallable()
Type | Description |
ServerStreamingCallable<ReadObjectRequest,ReadObjectResponse> |
rewriteObjectCallable()
public UnaryCallable<RewriteObjectRequest,RewriteResponse> rewriteObjectCallable()
Type | Description |
UnaryCallable<RewriteObjectRequest,RewriteResponse> |
setIamPolicyCallable()
public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Type | Description |
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()
startResumableWriteCallable()
public UnaryCallable<StartResumableWriteRequest,StartResumableWriteResponse> startResumableWriteCallable()
Type | Description |
UnaryCallable<StartResumableWriteRequest,StartResumableWriteResponse> |
testIamPermissionsCallable()
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Type | Description |
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
updateBucketCallable()
public UnaryCallable<UpdateBucketRequest,Bucket> updateBucketCallable()
Type | Description |
UnaryCallable<UpdateBucketRequest,Bucket> |
updateHmacKeyCallable()
public UnaryCallable<UpdateHmacKeyRequest,HmacKeyMetadata> updateHmacKeyCallable()
Type | Description |
UnaryCallable<UpdateHmacKeyRequest,HmacKeyMetadata> |
updateObjectCallable()
public UnaryCallable<UpdateObjectRequest,Object> updateObjectCallable()
Type | Description |
UnaryCallable<UpdateObjectRequest,Object> |
writeObjectCallable()
public ClientStreamingCallable<WriteObjectRequest,WriteObjectResponse> writeObjectCallable()
Type | Description |
ClientStreamingCallable<WriteObjectRequest,WriteObjectResponse> |