Class GrpcStorageStub (2.19.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
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcStorageStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcStorageStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcStorageStub
Exceptions
TypeDescription
IOException

create(StorageStubSettings settings)

public static final GrpcStorageStub create(StorageStubSettings settings)
Parameter
NameDescription
settingsStorageStubSettings
Returns
TypeDescription
GrpcStorageStub
Exceptions
TypeDescription
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
NameDescription
settingsStorageStubSettings
clientContextClientContext

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
NameDescription
settingsStorageStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

cancelResumableWriteCallable()

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

close()

public final void close()
Overrides

composeObjectCallable()

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

createBucketCallable()

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

createHmacKeyCallable()

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

createNotificationConfigCallable()

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

deleteBucketCallable()

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

deleteHmacKeyCallable()

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

deleteNotificationConfigCallable()

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

deleteObjectCallable()

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

getBucketCallable()

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

getHmacKeyCallable()

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

getIamPolicyCallable()

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

getNotificationConfigCallable()

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

getObjectCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

getServiceAccountCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listBucketsCallable()

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

listBucketsPagedCallable()

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

listHmacKeysCallable()

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

listHmacKeysPagedCallable()

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

listNotificationConfigsCallable()

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

listNotificationConfigsPagedCallable()

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

listObjectsCallable()

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

listObjectsPagedCallable()

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

lockBucketRetentionPolicyCallable()

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

queryWriteStatusCallable()

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

readObjectCallable()

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

rewriteObjectCallable()

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

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
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
TypeDescription
UnaryCallable<StartResumableWriteRequest,StartResumableWriteResponse>
Overrides

testIamPermissionsCallable()

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

updateBucketCallable()

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

updateHmacKeyCallable()

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

updateObjectCallable()

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

writeObjectCallable()

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