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