Send feedback
  
   
 
  
    
      Class HttpJsonApiHubStub (0.31.0) 
  
  
  
   
  
    
  
  
    
    
    
    
    
  Version latestkeyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   class  HttpJsonApiHubStub   extends   ApiHubStub  
  REST stub implementation for the ApiHub service API.
 
This class is for advanced usage and reflects the underlying API directly.
Static Methods
   
  create(ClientContext clientContext) 
  
    
public   static   final   HttpJsonApiHubStub   create ( ClientContext   clientContext )  
  
  
  
  create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) 
  
    
public   static   final   HttpJsonApiHubStub   create ( ClientContext   clientContext ,   HttpJsonStubCallableFactory   callableFactory )  
  
  
  
  create(ApiHubStubSettings settings) 
  
    
public   static   final   HttpJsonApiHubStub   create ( ApiHubStubSettings   settings )  
  
  
  
  getMethodDescriptors() 
  
    
public   static   List<ApiMethodDescriptor>   getMethodDescriptors ()  
  
  
  Constructors
   
  HttpJsonApiHubStub(ApiHubStubSettings settings, ClientContext clientContext) 
  
    
protected   HttpJsonApiHubStub ( ApiHubStubSettings   settings ,   ClientContext   clientContext )  
  Constructs an instance of HttpJsonApiHubStub, 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.
HttpJsonApiHubStub(ApiHubStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) 
  
    
protected   HttpJsonApiHubStub ( ApiHubStubSettings   settings ,   ClientContext   clientContext ,   HttpJsonStubCallableFactory   callableFactory )  
  Constructs an instance of HttpJsonApiHubStub, 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 )  
  
  
  
  close() 
  
    
public   final   void   close ()  
  Overrides 
  
  createApiCallable() 
  
    
public   UnaryCallable<CreateApiRequest , Api >  createApiCallable ()  
  
  Overrides 
  
  createApiOperationCallable() 
  
    
public   UnaryCallable<CreateApiOperationRequest , ApiOperation >  createApiOperationCallable ()  
  
  Overrides 
  
  createAttributeCallable() 
  
    
public   UnaryCallable<CreateAttributeRequest , Attribute >  createAttributeCallable ()  
  
  Overrides 
  
  createDeploymentCallable() 
  
    
public   UnaryCallable<CreateDeploymentRequest , Deployment >  createDeploymentCallable ()  
  
  Overrides 
  
  createExternalApiCallable() 
  
    
public   UnaryCallable<CreateExternalApiRequest , ExternalApi >  createExternalApiCallable ()  
  
  Overrides 
  
  createSpecCallable() 
  
    
public   UnaryCallable<CreateSpecRequest , Spec >  createSpecCallable ()  
  
  Overrides 
  
  createVersionCallable() 
  
    
public   UnaryCallable<CreateVersionRequest , Version >  createVersionCallable ()  
  
  Overrides 
  
  deleteApiCallable() 
  
    
public   UnaryCallable<DeleteApiRequest , Empty >  deleteApiCallable ()  
  
  Overrides 
  
  deleteApiOperationCallable() 
  
    
public   UnaryCallable<DeleteApiOperationRequest , Empty >  deleteApiOperationCallable ()  
  
  Overrides 
  
  deleteAttributeCallable() 
  
    
public   UnaryCallable<DeleteAttributeRequest , Empty >  deleteAttributeCallable ()  
  
  Overrides 
  
  deleteDeploymentCallable() 
  
    
public   UnaryCallable<DeleteDeploymentRequest , Empty >  deleteDeploymentCallable ()  
  
  Overrides 
  
  deleteExternalApiCallable() 
  
    
public   UnaryCallable<DeleteExternalApiRequest , Empty >  deleteExternalApiCallable ()  
  
  Overrides 
  
  deleteSpecCallable() 
  
    
public   UnaryCallable<DeleteSpecRequest , Empty >  deleteSpecCallable ()  
  
  Overrides 
  
  deleteVersionCallable() 
  
    
public   UnaryCallable<DeleteVersionRequest , Empty >  deleteVersionCallable ()  
  
  Overrides 
  
  getApiCallable() 
  
    
public   UnaryCallable<GetApiRequest , Api >  getApiCallable ()  
  
  Overrides 
  
  getApiOperationCallable() 
  
    
public   UnaryCallable<GetApiOperationRequest , ApiOperation >  getApiOperationCallable ()  
  
  Overrides 
  
  getAttributeCallable() 
  
    
public   UnaryCallable<GetAttributeRequest , Attribute >  getAttributeCallable ()  
  
  Overrides 
  
  getDefinitionCallable() 
  
    
public   UnaryCallable<GetDefinitionRequest , Definition >  getDefinitionCallable ()  
  
  Overrides 
  
  getDeploymentCallable() 
  
    
public   UnaryCallable<GetDeploymentRequest , Deployment >  getDeploymentCallable ()  
  
  Overrides 
  
  getExternalApiCallable() 
  
    
public   UnaryCallable<GetExternalApiRequest , ExternalApi >  getExternalApiCallable ()  
  
  Overrides 
  
  getLocationCallable() 
  
    
public   UnaryCallable<GetLocationRequest , Location >  getLocationCallable ()  
  
    
      
        Returns  
      
        Type Description  
      
        UnaryCallable <com.google.cloud.location.GetLocationRequest ,com.google.cloud.location.Location > 
     
  
  Overrides 
  
  getSpecCallable() 
  
    
public   UnaryCallable<GetSpecRequest , Spec >  getSpecCallable ()  
  
  Overrides 
  
  getSpecContentsCallable() 
  
    
public   UnaryCallable<GetSpecContentsRequest , SpecContents >  getSpecContentsCallable ()  
  
  Overrides 
  
  getVersionCallable() 
  
    
public   UnaryCallable<GetVersionRequest , Version >  getVersionCallable ()  
  
  Overrides 
  
  isShutdown() 
  
    
public   boolean   isShutdown ()  
  
  isTerminated() 
  
    
public   boolean   isTerminated ()  
  
  listApiOperationsCallable() 
  
    
public   UnaryCallable<ListApiOperationsRequest , ListApiOperationsResponse >  listApiOperationsCallable ()  
  
  Overrides 
  
  listApiOperationsPagedCallable() 
  
    
public   UnaryCallable<ListApiOperationsRequest , ApiHubClient . ListApiOperationsPagedResponse >  listApiOperationsPagedCallable ()  
  
  Overrides 
  
  listApisCallable() 
  
    
public   UnaryCallable<ListApisRequest , ListApisResponse >  listApisCallable ()  
  
  Overrides 
  
  listApisPagedCallable() 
  
    
public   UnaryCallable<ListApisRequest , ApiHubClient . ListApisPagedResponse >  listApisPagedCallable ()  
  
  Overrides 
  
  listAttributesCallable() 
  
    
public   UnaryCallable<ListAttributesRequest , ListAttributesResponse >  listAttributesCallable ()  
  
  Overrides 
  
  listAttributesPagedCallable() 
  
    
public   UnaryCallable<ListAttributesRequest , ApiHubClient . ListAttributesPagedResponse >  listAttributesPagedCallable ()  
  
  Overrides 
  
  listDeploymentsCallable() 
  
    
public   UnaryCallable<ListDeploymentsRequest , ListDeploymentsResponse >  listDeploymentsCallable ()  
  
  Overrides 
  
  listDeploymentsPagedCallable() 
  
    
public   UnaryCallable<ListDeploymentsRequest , ApiHubClient . ListDeploymentsPagedResponse >  listDeploymentsPagedCallable ()  
  
  Overrides 
  
  listExternalApisCallable() 
  
    
public   UnaryCallable<ListExternalApisRequest , ListExternalApisResponse >  listExternalApisCallable ()  
  
  Overrides 
  
  listExternalApisPagedCallable() 
  
    
public   UnaryCallable<ListExternalApisRequest , ApiHubClient . ListExternalApisPagedResponse >  listExternalApisPagedCallable ()  
  
  Overrides 
  
  listLocationsCallable() 
  
    
public   UnaryCallable<ListLocationsRequest , ListLocationsResponse >  listLocationsCallable ()  
  
    
      
        Returns  
      
        Type Description  
      
        UnaryCallable <com.google.cloud.location.ListLocationsRequest ,com.google.cloud.location.ListLocationsResponse > 
     
  
  Overrides 
  
  listLocationsPagedCallable() 
  
    
public   UnaryCallable<ListLocationsRequest , ApiHubClient . ListLocationsPagedResponse >  listLocationsPagedCallable ()  
  
  Overrides 
  
  listSpecsCallable() 
  
    
public   UnaryCallable<ListSpecsRequest , ListSpecsResponse >  listSpecsCallable ()  
  
  Overrides 
  
  listSpecsPagedCallable() 
  
    
public   UnaryCallable<ListSpecsRequest , ApiHubClient . ListSpecsPagedResponse >  listSpecsPagedCallable ()  
  
  Overrides 
  
  listVersionsCallable() 
  
    
public   UnaryCallable<ListVersionsRequest , ListVersionsResponse >  listVersionsCallable ()  
  
  Overrides 
  
  listVersionsPagedCallable() 
  
    
public   UnaryCallable<ListVersionsRequest , ApiHubClient . ListVersionsPagedResponse >  listVersionsPagedCallable ()  
  
  Overrides 
  
  searchResourcesCallable() 
  
    
public   UnaryCallable<SearchResourcesRequest , SearchResourcesResponse >  searchResourcesCallable ()  
  
  Overrides 
  
  searchResourcesPagedCallable() 
  
    
public   UnaryCallable<SearchResourcesRequest , ApiHubClient . SearchResourcesPagedResponse >  searchResourcesPagedCallable ()  
  
  Overrides 
  
  shutdown() 
  
  shutdownNow() 
  
    
public   void   shutdownNow ()  
  updateApiCallable() 
  
    
public   UnaryCallable<UpdateApiRequest , Api >  updateApiCallable ()  
  
  Overrides 
  
  updateApiOperationCallable() 
  
    
public   UnaryCallable<UpdateApiOperationRequest , ApiOperation >  updateApiOperationCallable ()  
  
  Overrides 
  
  updateAttributeCallable() 
  
    
public   UnaryCallable<UpdateAttributeRequest , Attribute >  updateAttributeCallable ()  
  
  Overrides 
  
  updateDeploymentCallable() 
  
    
public   UnaryCallable<UpdateDeploymentRequest , Deployment >  updateDeploymentCallable ()  
  
  Overrides 
  
  updateExternalApiCallable() 
  
    
public   UnaryCallable<UpdateExternalApiRequest , ExternalApi >  updateExternalApiCallable ()  
  
  Overrides 
  
  updateSpecCallable() 
  
    
public   UnaryCallable<UpdateSpecRequest , Spec >  updateSpecCallable ()  
  
  Overrides 
  
  updateVersionCallable() 
  
    
public   UnaryCallable<UpdateVersionRequest , Version >  updateVersionCallable ()  
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  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-28 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-28 UTC."],[],[]]