Class GrpcStorageStub (2.4.5)

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

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

createNotificationCallable()

public UnaryCallable<CreateNotificationRequest,Notification> createNotificationCallable()
Returns
Type Description
UnaryCallable<CreateNotificationRequest,Notification>
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

deleteNotificationCallable()

public UnaryCallable<DeleteNotificationRequest,Empty> deleteNotificationCallable()
Returns
Type Description
UnaryCallable<DeleteNotificationRequest,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

getNotificationCallable()

public UnaryCallable<GetNotificationRequest,Notification> getNotificationCallable()
Returns
Type Description
UnaryCallable<GetNotificationRequest,Notification>
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

listNotificationsCallable()

public UnaryCallable<ListNotificationsRequest,ListNotificationsResponse> listNotificationsCallable()
Returns
Type Description
UnaryCallable<ListNotificationsRequest,ListNotificationsResponse>
Overrides

listNotificationsPagedCallable()

public UnaryCallable<ListNotificationsRequest,StorageClient.ListNotificationsPagedResponse> listNotificationsPagedCallable()
Returns
Type Description
UnaryCallable<ListNotificationsRequest,ListNotificationsPagedResponse>
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

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