Class GrpcStorageStub (2.46.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
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

bidiWriteObjectCallable()

public BidiStreamingCallable<BidiWriteObjectRequest,BidiWriteObjectResponse> bidiWriteObjectCallable()
Returns
Type Description
BidiStreamingCallable<BidiWriteObjectRequest,BidiWriteObjectResponse>
Overrides

cancelResumableWriteCallable()

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

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

deleteBucketCallable()

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

getIamPolicyCallable()

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

getObjectCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

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

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

restoreObjectCallable()

public UnaryCallable<RestoreObjectRequest,Object> restoreObjectCallable()
Returns
Type Description
UnaryCallable<RestoreObjectRequest,Object>
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

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