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:
com.google.api.gax.core.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, com.google.api.gax.rpc.ClientContext clientContext) Constructs an instance of GrpcStorageStub, using the given settings.protectedGrpcStorageStub(StorageStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcStorageStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) com.google.api.gax.rpc.BidiStreamingCallable<BidiWriteObjectRequest,BidiWriteObjectResponse> com.google.api.gax.rpc.UnaryCallable<CancelResumableWriteRequest,CancelResumableWriteResponse> final voidclose()com.google.api.gax.rpc.UnaryCallable<ComposeObjectRequest,Object> static final GrpcStorageStubcreate(com.google.api.gax.rpc.ClientContext clientContext) static final GrpcStorageStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) static final GrpcStorageStubcreate(StorageStubSettings settings) com.google.api.gax.rpc.UnaryCallable<CreateBucketRequest,Bucket> com.google.api.gax.rpc.UnaryCallable<CreateHmacKeyRequest,CreateHmacKeyResponse> com.google.api.gax.rpc.UnaryCallable<CreateNotificationConfigRequest,NotificationConfig> com.google.api.gax.rpc.UnaryCallable<DeleteBucketRequest,com.google.protobuf.Empty> com.google.api.gax.rpc.UnaryCallable<DeleteHmacKeyRequest,com.google.protobuf.Empty> com.google.api.gax.rpc.UnaryCallable<DeleteNotificationConfigRequest,com.google.protobuf.Empty> com.google.api.gax.rpc.UnaryCallable<DeleteObjectRequest,com.google.protobuf.Empty> com.google.api.gax.rpc.UnaryCallable<GetBucketRequest,Bucket> com.google.api.gax.rpc.UnaryCallable<GetHmacKeyRequest,HmacKeyMetadata> com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> com.google.api.gax.rpc.UnaryCallable<GetNotificationConfigRequest,NotificationConfig> com.google.api.gax.rpc.UnaryCallable<GetObjectRequest,Object> com.google.longrunning.stub.GrpcOperationsStubcom.google.api.gax.rpc.UnaryCallable<GetServiceAccountRequest,ServiceAccount> booleanbooleancom.google.api.gax.rpc.UnaryCallable<ListBucketsRequest,ListBucketsResponse> com.google.api.gax.rpc.UnaryCallable<ListBucketsRequest,StorageClient.ListBucketsPagedResponse> com.google.api.gax.rpc.UnaryCallable<ListHmacKeysRequest,ListHmacKeysResponse> com.google.api.gax.rpc.UnaryCallable<ListHmacKeysRequest,StorageClient.ListHmacKeysPagedResponse> com.google.api.gax.rpc.UnaryCallable<ListNotificationConfigsRequest,ListNotificationConfigsResponse> com.google.api.gax.rpc.UnaryCallable<ListNotificationConfigsRequest,StorageClient.ListNotificationConfigsPagedResponse> com.google.api.gax.rpc.UnaryCallable<ListObjectsRequest,ListObjectsResponse> com.google.api.gax.rpc.UnaryCallable<ListObjectsRequest,StorageClient.ListObjectsPagedResponse> com.google.api.gax.rpc.UnaryCallable<LockBucketRetentionPolicyRequest,Bucket> com.google.api.gax.rpc.UnaryCallable<QueryWriteStatusRequest,QueryWriteStatusResponse> com.google.api.gax.rpc.ServerStreamingCallable<ReadObjectRequest,ReadObjectResponse> com.google.api.gax.rpc.UnaryCallable<RestoreObjectRequest,Object> com.google.api.gax.rpc.UnaryCallable<RewriteObjectRequest,RewriteResponse> com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> voidshutdown()voidcom.google.api.gax.rpc.UnaryCallable<StartResumableWriteRequest,StartResumableWriteResponse> com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> com.google.api.gax.rpc.UnaryCallable<UpdateBucketRequest,Bucket> com.google.api.gax.rpc.UnaryCallable<UpdateHmacKeyRequest,HmacKeyMetadata> com.google.api.gax.rpc.UnaryCallable<UpdateObjectRequest,Object> com.google.api.gax.rpc.ClientStreamingCallable<WriteObjectRequest,WriteObjectResponse>
-
Constructor Details
-
GrpcStorageStub
protected GrpcStorageStub(StorageStubSettings settings, com.google.api.gax.rpc.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, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.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
public static final GrpcStorageStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcStorageStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub() -
deleteBucketCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteBucketRequest,com.google.protobuf.Empty> deleteBucketCallable()- Overrides:
deleteBucketCallablein classStorageStub
-
getBucketCallable
- Overrides:
getBucketCallablein classStorageStub
-
createBucketCallable
- Overrides:
createBucketCallablein classStorageStub
-
listBucketsCallable
public com.google.api.gax.rpc.UnaryCallable<ListBucketsRequest,ListBucketsResponse> listBucketsCallable()- Overrides:
listBucketsCallablein classStorageStub
-
listBucketsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListBucketsRequest,StorageClient.ListBucketsPagedResponse> listBucketsPagedCallable()- Overrides:
listBucketsPagedCallablein classStorageStub
-
lockBucketRetentionPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<LockBucketRetentionPolicyRequest,Bucket> lockBucketRetentionPolicyCallable()- Overrides:
lockBucketRetentionPolicyCallablein classStorageStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()- Overrides:
getIamPolicyCallablein classStorageStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()- Overrides:
setIamPolicyCallablein classStorageStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()- Overrides:
testIamPermissionsCallablein classStorageStub
-
updateBucketCallable
- Overrides:
updateBucketCallablein classStorageStub
-
deleteNotificationConfigCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteNotificationConfigRequest,com.google.protobuf.Empty> deleteNotificationConfigCallable()- Overrides:
deleteNotificationConfigCallablein classStorageStub
-
getNotificationConfigCallable
public com.google.api.gax.rpc.UnaryCallable<GetNotificationConfigRequest,NotificationConfig> getNotificationConfigCallable()- Overrides:
getNotificationConfigCallablein classStorageStub
-
createNotificationConfigCallable
public com.google.api.gax.rpc.UnaryCallable<CreateNotificationConfigRequest,NotificationConfig> createNotificationConfigCallable()- Overrides:
createNotificationConfigCallablein classStorageStub
-
listNotificationConfigsCallable
public com.google.api.gax.rpc.UnaryCallable<ListNotificationConfigsRequest,ListNotificationConfigsResponse> listNotificationConfigsCallable()- Overrides:
listNotificationConfigsCallablein classStorageStub
-
listNotificationConfigsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListNotificationConfigsRequest,StorageClient.ListNotificationConfigsPagedResponse> listNotificationConfigsPagedCallable()- Overrides:
listNotificationConfigsPagedCallablein classStorageStub
-
composeObjectCallable
- Overrides:
composeObjectCallablein classStorageStub
-
deleteObjectCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteObjectRequest,com.google.protobuf.Empty> deleteObjectCallable()- Overrides:
deleteObjectCallablein classStorageStub
-
restoreObjectCallable
- Overrides:
restoreObjectCallablein classStorageStub
-
cancelResumableWriteCallable
public com.google.api.gax.rpc.UnaryCallable<CancelResumableWriteRequest,CancelResumableWriteResponse> cancelResumableWriteCallable()- Overrides:
cancelResumableWriteCallablein classStorageStub
-
getObjectCallable
- Overrides:
getObjectCallablein classStorageStub
-
readObjectCallable
public com.google.api.gax.rpc.ServerStreamingCallable<ReadObjectRequest,ReadObjectResponse> readObjectCallable()- Overrides:
readObjectCallablein classStorageStub
-
updateObjectCallable
- Overrides:
updateObjectCallablein classStorageStub
-
writeObjectCallable
public com.google.api.gax.rpc.ClientStreamingCallable<WriteObjectRequest,WriteObjectResponse> writeObjectCallable()- Overrides:
writeObjectCallablein classStorageStub
-
bidiWriteObjectCallable
public com.google.api.gax.rpc.BidiStreamingCallable<BidiWriteObjectRequest,BidiWriteObjectResponse> bidiWriteObjectCallable()- Overrides:
bidiWriteObjectCallablein classStorageStub
-
listObjectsCallable
public com.google.api.gax.rpc.UnaryCallable<ListObjectsRequest,ListObjectsResponse> listObjectsCallable()- Overrides:
listObjectsCallablein classStorageStub
-
listObjectsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListObjectsRequest,StorageClient.ListObjectsPagedResponse> listObjectsPagedCallable()- Overrides:
listObjectsPagedCallablein classStorageStub
-
rewriteObjectCallable
public com.google.api.gax.rpc.UnaryCallable<RewriteObjectRequest,RewriteResponse> rewriteObjectCallable()- Overrides:
rewriteObjectCallablein classStorageStub
-
startResumableWriteCallable
public com.google.api.gax.rpc.UnaryCallable<StartResumableWriteRequest,StartResumableWriteResponse> startResumableWriteCallable()- Overrides:
startResumableWriteCallablein classStorageStub
-
queryWriteStatusCallable
public com.google.api.gax.rpc.UnaryCallable<QueryWriteStatusRequest,QueryWriteStatusResponse> queryWriteStatusCallable()- Overrides:
queryWriteStatusCallablein classStorageStub
-
getServiceAccountCallable
public com.google.api.gax.rpc.UnaryCallable<GetServiceAccountRequest,ServiceAccount> getServiceAccountCallable()- Overrides:
getServiceAccountCallablein classStorageStub
-
createHmacKeyCallable
public com.google.api.gax.rpc.UnaryCallable<CreateHmacKeyRequest,CreateHmacKeyResponse> createHmacKeyCallable()- Overrides:
createHmacKeyCallablein classStorageStub
-
deleteHmacKeyCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteHmacKeyRequest,com.google.protobuf.Empty> deleteHmacKeyCallable()- Overrides:
deleteHmacKeyCallablein classStorageStub
-
getHmacKeyCallable
- Overrides:
getHmacKeyCallablein classStorageStub
-
listHmacKeysCallable
public com.google.api.gax.rpc.UnaryCallable<ListHmacKeysRequest,ListHmacKeysResponse> listHmacKeysCallable()- Overrides:
listHmacKeysCallablein classStorageStub
-
listHmacKeysPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListHmacKeysRequest,StorageClient.ListHmacKeysPagedResponse> listHmacKeysPagedCallable()- Overrides:
listHmacKeysPagedCallablein classStorageStub
-
updateHmacKeyCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateHmacKeyRequest,HmacKeyMetadata> updateHmacKeyCallable()- Overrides:
updateHmacKeyCallablein 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
-