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)
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcStorageStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
create(StorageStubSettings settings)
public static final GrpcStorageStub create(StorageStubSettings settings)
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.
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.
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
bidiWriteObjectCallable()
public BidiStreamingCallable<BidiWriteObjectRequest,BidiWriteObjectResponse> bidiWriteObjectCallable()
Overrides
cancelResumableWriteCallable()
public UnaryCallable<CancelResumableWriteRequest,CancelResumableWriteResponse> cancelResumableWriteCallable()
Overrides
close()
public final void close()
Overrides
composeObjectCallable()
public UnaryCallable<ComposeObjectRequest,Object> composeObjectCallable()
Overrides
createBucketCallable()
public UnaryCallable<CreateBucketRequest,Bucket> createBucketCallable()
Overrides
createHmacKeyCallable()
public UnaryCallable<CreateHmacKeyRequest,CreateHmacKeyResponse> createHmacKeyCallable()
Overrides
createNotificationConfigCallable()
public UnaryCallable<CreateNotificationConfigRequest,NotificationConfig> createNotificationConfigCallable()
Overrides
deleteBucketCallable()
public UnaryCallable<DeleteBucketRequest,Empty> deleteBucketCallable()
Overrides
deleteHmacKeyCallable()
public UnaryCallable<DeleteHmacKeyRequest,Empty> deleteHmacKeyCallable()
Overrides
deleteNotificationConfigCallable()
public UnaryCallable<DeleteNotificationConfigRequest,Empty> deleteNotificationConfigCallable()
Overrides
deleteObjectCallable()
public UnaryCallable<DeleteObjectRequest,Empty> deleteObjectCallable()
Overrides
getBucketCallable()
public UnaryCallable<GetBucketRequest,Bucket> getBucketCallable()
Overrides
getHmacKeyCallable()
public UnaryCallable<GetHmacKeyRequest,HmacKeyMetadata> getHmacKeyCallable()
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()
Overrides
getObjectCallable()
public UnaryCallable<GetObjectRequest,Object> getObjectCallable()
Overrides
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
getServiceAccountCallable()
public UnaryCallable<GetServiceAccountRequest,ServiceAccount> getServiceAccountCallable()
Overrides
isShutdown()
public boolean isShutdown()
isTerminated()
public boolean isTerminated()
listBucketsCallable()
public UnaryCallable<ListBucketsRequest,ListBucketsResponse> listBucketsCallable()
Overrides
listBucketsPagedCallable()
public UnaryCallable<ListBucketsRequest,StorageClient.ListBucketsPagedResponse> listBucketsPagedCallable()
Overrides
listHmacKeysCallable()
public UnaryCallable<ListHmacKeysRequest,ListHmacKeysResponse> listHmacKeysCallable()
Overrides
listHmacKeysPagedCallable()
public UnaryCallable<ListHmacKeysRequest,StorageClient.ListHmacKeysPagedResponse> listHmacKeysPagedCallable()
Overrides
listNotificationConfigsCallable()
public UnaryCallable<ListNotificationConfigsRequest,ListNotificationConfigsResponse> listNotificationConfigsCallable()
Overrides
listNotificationConfigsPagedCallable()
public UnaryCallable<ListNotificationConfigsRequest,StorageClient.ListNotificationConfigsPagedResponse> listNotificationConfigsPagedCallable()
Overrides
listObjectsCallable()
public UnaryCallable<ListObjectsRequest,ListObjectsResponse> listObjectsCallable()
Overrides
listObjectsPagedCallable()
public UnaryCallable<ListObjectsRequest,StorageClient.ListObjectsPagedResponse> listObjectsPagedCallable()
Overrides
lockBucketRetentionPolicyCallable()
public UnaryCallable<LockBucketRetentionPolicyRequest,Bucket> lockBucketRetentionPolicyCallable()
Overrides
queryWriteStatusCallable()
public UnaryCallable<QueryWriteStatusRequest,QueryWriteStatusResponse> queryWriteStatusCallable()
Overrides
readObjectCallable()
public ServerStreamingCallable<ReadObjectRequest,ReadObjectResponse> readObjectCallable()
Overrides
restoreObjectCallable()
public UnaryCallable<RestoreObjectRequest,Object> restoreObjectCallable()
Overrides
rewriteObjectCallable()
public UnaryCallable<RewriteObjectRequest,RewriteResponse> rewriteObjectCallable()
Overrides
setIamPolicyCallable()
public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns |
Type |
Description |
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
|
Overrides
shutdown()
shutdownNow()
public void shutdownNow()
startResumableWriteCallable()
public UnaryCallable<StartResumableWriteRequest,StartResumableWriteResponse> startResumableWriteCallable()
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()
Overrides
updateHmacKeyCallable()
public UnaryCallable<UpdateHmacKeyRequest,HmacKeyMetadata> updateHmacKeyCallable()
Overrides
updateObjectCallable()
public UnaryCallable<UpdateObjectRequest,Object> updateObjectCallable()
Overrides
writeObjectCallable()
public ClientStreamingCallable<WriteObjectRequest,WriteObjectResponse> writeObjectCallable()
Overrides