Package com.google.storage.v2.stub
Class GrpcStorageStub
java.lang.Object
com.google.storage.v2.stub.StorageStub
com.google.storage.v2.stub.GrpcStorageStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
gRPC stub implementation for the Storage service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcStorageStub(StorageStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcStorageStub, using the given settings.protectedGrpcStorageStub(StorageStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcStorageStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcStorageStubcreate(ClientContext clientContext) static final GrpcStorageStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcStorageStubcreate(StorageStubSettings settings) UnaryCallable<DeleteBucketRequest,com.google.protobuf.Empty> UnaryCallable<DeleteObjectRequest,com.google.protobuf.Empty> booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcStorageStub
protected GrpcStorageStub(StorageStubSettings settings, ClientContext clientContext) throws IOException 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.- Throws:
IOException
-
GrpcStorageStub
protected GrpcStorageStub(StorageStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException 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.- Throws:
IOException
-
-
Method Details
-
create
- Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcStorageStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
deleteBucketCallable
- Overrides:
deleteBucketCallablein classStorageStub
-
getBucketCallable
- Overrides:
getBucketCallablein classStorageStub
-
createBucketCallable
- Overrides:
createBucketCallablein classStorageStub
-
listBucketsCallable
- Overrides:
listBucketsCallablein classStorageStub
-
listBucketsPagedCallable
public UnaryCallable<ListBucketsRequest,StorageClient.ListBucketsPagedResponse> listBucketsPagedCallable()- Overrides:
listBucketsPagedCallablein classStorageStub
-
lockBucketRetentionPolicyCallable
- Overrides:
lockBucketRetentionPolicyCallablein classStorageStub
-
getIamPolicyCallable
- Overrides:
getIamPolicyCallablein classStorageStub
-
setIamPolicyCallable
- Overrides:
setIamPolicyCallablein classStorageStub
-
testIamPermissionsCallable
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()- Overrides:
testIamPermissionsCallablein classStorageStub
-
updateBucketCallable
- Overrides:
updateBucketCallablein classStorageStub
-
composeObjectCallable
- Overrides:
composeObjectCallablein classStorageStub
-
deleteObjectCallable
- Overrides:
deleteObjectCallablein classStorageStub
-
restoreObjectCallable
- Overrides:
restoreObjectCallablein classStorageStub
-
cancelResumableWriteCallable
public UnaryCallable<CancelResumableWriteRequest,CancelResumableWriteResponse> cancelResumableWriteCallable()- Overrides:
cancelResumableWriteCallablein classStorageStub
-
getObjectCallable
- Overrides:
getObjectCallablein classStorageStub
-
readObjectCallable
- Overrides:
readObjectCallablein classStorageStub
-
bidiReadObjectCallable
- Overrides:
bidiReadObjectCallablein classStorageStub
-
updateObjectCallable
- Overrides:
updateObjectCallablein classStorageStub
-
writeObjectCallable
- Overrides:
writeObjectCallablein classStorageStub
-
bidiWriteObjectCallable
public BidiStreamingCallable<BidiWriteObjectRequest,BidiWriteObjectResponse> bidiWriteObjectCallable()- Overrides:
bidiWriteObjectCallablein classStorageStub
-
listObjectsCallable
- Overrides:
listObjectsCallablein classStorageStub
-
listObjectsPagedCallable
public UnaryCallable<ListObjectsRequest,StorageClient.ListObjectsPagedResponse> listObjectsPagedCallable()- Overrides:
listObjectsPagedCallablein classStorageStub
-
rewriteObjectCallable
- Overrides:
rewriteObjectCallablein classStorageStub
-
startResumableWriteCallable
public UnaryCallable<StartResumableWriteRequest,StartResumableWriteResponse> startResumableWriteCallable()- Overrides:
startResumableWriteCallablein classStorageStub
-
queryWriteStatusCallable
- Overrides:
queryWriteStatusCallablein classStorageStub
-
moveObjectCallable
- Overrides:
moveObjectCallablein classStorageStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classStorageStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-