Class GrpcStorageStub (2.27.1) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 2.27.1keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
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.
Static Methods
   
  create(ClientContext clientContext) 
  
    
public   static   final   GrpcStorageStub   create ( ClientContext   clientContext )  
  
  
  
  create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) 
  
    
public   static   final   GrpcStorageStub   create ( ClientContext   clientContext ,   GrpcStubCallableFactory   callableFactory )  
  
  
  
  create(StorageStubSettings settings) 
  
    
public   static   final   GrpcStorageStub   create ( StorageStubSettings   settings )  
  
  
  
  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.
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.
Methods
   
  awaitTermination(long duration, TimeUnit unit) 
  
    
public   boolean   awaitTermination ( long   duration ,   TimeUnit   unit )  
  
  
  
  cancelResumableWriteCallable() 
  
    
public   UnaryCallable<CancelResumableWriteRequest , CancelResumableWriteResponse >  cancelResumableWriteCallable ()  
  
  Overrides 
  
  close() 
  
    
public   final   void   close ()  
  Overrides 
  
  composeObjectCallable() 
  
    
public   UnaryCallable<ComposeObjectRequest , Object >  composeObjectCallable ()  
  
  Overrides 
  
  createBucketCallable() 
  
    
public   UnaryCallable<CreateBucketRequest , Bucket >  createBucketCallable ()  
  
  Overrides 
  
  createHmacKeyCallable() 
  
    
public   UnaryCallable<CreateHmacKeyRequest , CreateHmacKeyResponse >  createHmacKeyCallable ()  
  
  Overrides 
  
  createNotificationConfigCallable() 
  
    
public   UnaryCallable<CreateNotificationConfigRequest , NotificationConfig >  createNotificationConfigCallable ()  
  
  Overrides 
  
  deleteBucketCallable() 
  
    
public   UnaryCallable<DeleteBucketRequest , Empty >  deleteBucketCallable ()  
  
  Overrides 
  
  deleteHmacKeyCallable() 
  
    
public   UnaryCallable<DeleteHmacKeyRequest , Empty >  deleteHmacKeyCallable ()  
  
  Overrides 
  
  deleteNotificationConfigCallable() 
  
    
public   UnaryCallable<DeleteNotificationConfigRequest , Empty >  deleteNotificationConfigCallable ()  
  
  Overrides 
  
  deleteObjectCallable() 
  
    
public   UnaryCallable<DeleteObjectRequest , Empty >  deleteObjectCallable ()  
  
  Overrides 
  
  getBucketCallable() 
  
    
public   UnaryCallable<GetBucketRequest , Bucket >  getBucketCallable ()  
  
  Overrides 
  
  getHmacKeyCallable() 
  
    
public   UnaryCallable<GetHmacKeyRequest , HmacKeyMetadata >  getHmacKeyCallable ()  
  
  Overrides 
  
  getIamPolicyCallable() 
  
    
public   UnaryCallable<GetIamPolicyRequest , Policy >  getIamPolicyCallable ()  
  
    
      
        Returns  
      
        Type Description  
      
        UnaryCallable <com.google.iam.v1.GetIamPolicyRequest ,com.google.iam.v1.Policy > 
     
  
  Overrides 
  
  getNotificationConfigCallable() 
  
    
public   UnaryCallable<GetNotificationConfigRequest , NotificationConfig >  getNotificationConfigCallable ()  
  
  Overrides 
  
  getObjectCallable() 
  
    
public   UnaryCallable<GetObjectRequest , Object >  getObjectCallable ()  
  
  Overrides 
  
  getOperationsStub() 
  
    
public   GrpcOperationsStub   getOperationsStub ()  
  
  getServiceAccountCallable() 
  
    
public   UnaryCallable<GetServiceAccountRequest , ServiceAccount >  getServiceAccountCallable ()  
  
  Overrides 
  
  isShutdown() 
  
    
public   boolean   isShutdown ()  
  
  isTerminated() 
  
    
public   boolean   isTerminated ()  
  
  listBucketsCallable() 
  
    
public   UnaryCallable<ListBucketsRequest , ListBucketsResponse >  listBucketsCallable ()  
  
  Overrides 
  
  listBucketsPagedCallable() 
  
    
public   UnaryCallable<ListBucketsRequest , StorageClient . ListBucketsPagedResponse >  listBucketsPagedCallable ()  
  
  Overrides 
  
  listHmacKeysCallable() 
  
    
public   UnaryCallable<ListHmacKeysRequest , ListHmacKeysResponse >  listHmacKeysCallable ()  
  
  Overrides 
  
  listHmacKeysPagedCallable() 
  
    
public   UnaryCallable<ListHmacKeysRequest , StorageClient . ListHmacKeysPagedResponse >  listHmacKeysPagedCallable ()  
  
  Overrides 
  
  listNotificationConfigsCallable() 
  
    
public   UnaryCallable<ListNotificationConfigsRequest , ListNotificationConfigsResponse >  listNotificationConfigsCallable ()  
  
  Overrides 
  
  listNotificationConfigsPagedCallable() 
  
    
public   UnaryCallable<ListNotificationConfigsRequest , StorageClient . ListNotificationConfigsPagedResponse >  listNotificationConfigsPagedCallable ()  
  
  Overrides 
  
  listObjectsCallable() 
  
    
public   UnaryCallable<ListObjectsRequest , ListObjectsResponse >  listObjectsCallable ()  
  
  Overrides 
  
  listObjectsPagedCallable() 
  
    
public   UnaryCallable<ListObjectsRequest , StorageClient . ListObjectsPagedResponse >  listObjectsPagedCallable ()  
  
  Overrides 
  
  lockBucketRetentionPolicyCallable() 
  
    
public   UnaryCallable<LockBucketRetentionPolicyRequest , Bucket >  lockBucketRetentionPolicyCallable ()  
  
  Overrides 
  
  queryWriteStatusCallable() 
  
    
public   UnaryCallable<QueryWriteStatusRequest , QueryWriteStatusResponse >  queryWriteStatusCallable ()  
  
  Overrides 
  
  readObjectCallable() 
  
    
public   ServerStreamingCallable<ReadObjectRequest , ReadObjectResponse >  readObjectCallable ()  
  
  Overrides 
  
  rewriteObjectCallable() 
  
    
public   UnaryCallable<RewriteObjectRequest , RewriteResponse >  rewriteObjectCallable ()  
  
  Overrides 
  
  setIamPolicyCallable() 
  
    
public   UnaryCallable<SetIamPolicyRequest , Policy >  setIamPolicyCallable ()  
  
    
      
        Returns  
      
        Type Description  
      
        UnaryCallable <com.google.iam.v1.SetIamPolicyRequest ,com.google.iam.v1.Policy > 
     
  
  Overrides 
  
  shutdown() 
  
  shutdownNow() 
  
    
public   void   shutdownNow ()  
  startResumableWriteCallable() 
  
    
public   UnaryCallable<StartResumableWriteRequest , StartResumableWriteResponse >  startResumableWriteCallable ()  
  
  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 ()  
  
  Overrides 
  
  updateHmacKeyCallable() 
  
    
public   UnaryCallable<UpdateHmacKeyRequest , HmacKeyMetadata >  updateHmacKeyCallable ()  
  
  Overrides 
  
  updateObjectCallable() 
  
    
public   UnaryCallable<UpdateObjectRequest , Object >  updateObjectCallable ()  
  
  Overrides 
  
  writeObjectCallable() 
  
    
public   ClientStreamingCallable<WriteObjectRequest , WriteObjectResponse >  writeObjectCallable ()  
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]