Class HttpJsonSubnetworksStub (1.47.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 1.47.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   class  HttpJsonSubnetworksStub   extends   SubnetworksStub  
  REST stub implementation for the Subnetworks service API.
 
This class is for advanced usage and reflects the underlying API directly.
Static Methods
   
  create(ClientContext clientContext) 
  
    
public   static   final   HttpJsonSubnetworksStub   create ( ClientContext   clientContext )  
  
  
  
  create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) 
  
    
public   static   final   HttpJsonSubnetworksStub   create ( ClientContext   clientContext ,   HttpJsonStubCallableFactory   callableFactory )  
  
  
  
  create(SubnetworksStubSettings settings) 
  
    
public   static   final   HttpJsonSubnetworksStub   create ( SubnetworksStubSettings   settings )  
  
  
  
  getMethodDescriptors() 
  
    
public   static   List<ApiMethodDescriptor>   getMethodDescriptors ()  
  
  
  Constructors
   
  HttpJsonSubnetworksStub(SubnetworksStubSettings settings, ClientContext clientContext) 
  
    
protected   HttpJsonSubnetworksStub ( SubnetworksStubSettings   settings ,   ClientContext   clientContext )  
  Constructs an instance of HttpJsonSubnetworksStub, 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.
HttpJsonSubnetworksStub(SubnetworksStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) 
  
    
protected   HttpJsonSubnetworksStub ( SubnetworksStubSettings   settings ,   ClientContext   clientContext ,   HttpJsonStubCallableFactory   callableFactory )  
  Constructs an instance of HttpJsonSubnetworksStub, 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
   
  aggregatedListCallable() 
  
    
public   UnaryCallable<AggregatedListSubnetworksRequest , SubnetworkAggregatedList >  aggregatedListCallable ()  
  
  Overrides 
  
  aggregatedListPagedCallable() 
  
    
public   UnaryCallable<AggregatedListSubnetworksRequest , SubnetworksClient . AggregatedListPagedResponse >  aggregatedListPagedCallable ()  
  
  Overrides 
  
  awaitTermination(long duration, TimeUnit unit) 
  
    
public   boolean   awaitTermination ( long   duration ,   TimeUnit   unit )  
  
  
  
  close() 
  
    
public   final   void   close ()  
  Overrides 
  
  deleteCallable() 
  
    
public   UnaryCallable<DeleteSubnetworkRequest , Operation >  deleteCallable ()  
  
  Overrides 
  
  deleteOperationCallable() 
  
    
public   OperationCallable<DeleteSubnetworkRequest , Operation , Operation >  deleteOperationCallable ()  
  
  Overrides 
  
  expandIpCidrRangeCallable() 
  
    
public   UnaryCallable<ExpandIpCidrRangeSubnetworkRequest , Operation >  expandIpCidrRangeCallable ()  
  
  Overrides 
  
  expandIpCidrRangeOperationCallable() 
  
    
public   OperationCallable<ExpandIpCidrRangeSubnetworkRequest , Operation , Operation >  expandIpCidrRangeOperationCallable ()  
  
  Overrides 
  
  getCallable() 
  
    
public   UnaryCallable<GetSubnetworkRequest , Subnetwork >  getCallable ()  
  
  Overrides 
  
  getIamPolicyCallable() 
  
    
public   UnaryCallable<GetIamPolicySubnetworkRequest , Policy >  getIamPolicyCallable ()  
  
  Overrides 
  
  insertCallable() 
  
    
public   UnaryCallable<InsertSubnetworkRequest , Operation >  insertCallable ()  
  
  Overrides 
  
  insertOperationCallable() 
  
    
public   OperationCallable<InsertSubnetworkRequest , Operation , Operation >  insertOperationCallable ()  
  
  Overrides 
  
  isShutdown() 
  
    
public   boolean   isShutdown ()  
  
  isTerminated() 
  
    
public   boolean   isTerminated ()  
  
  listCallable() 
  
    
public   UnaryCallable<ListSubnetworksRequest , SubnetworkList >  listCallable ()  
  
  Overrides 
  
  listPagedCallable() 
  
    
public   UnaryCallable<ListSubnetworksRequest , SubnetworksClient . ListPagedResponse >  listPagedCallable ()  
  
  Overrides 
  
  listUsableCallable() 
  
    
public   UnaryCallable<ListUsableSubnetworksRequest , UsableSubnetworksAggregatedList >  listUsableCallable ()  
  
  Overrides 
  
  listUsablePagedCallable() 
  
    
public   UnaryCallable<ListUsableSubnetworksRequest , SubnetworksClient . ListUsablePagedResponse >  listUsablePagedCallable ()  
  
  Overrides 
  
  patchCallable() 
  
    
public   UnaryCallable<PatchSubnetworkRequest , Operation >  patchCallable ()  
  
  Overrides 
  
  patchOperationCallable() 
  
    
public   OperationCallable<PatchSubnetworkRequest , Operation , Operation >  patchOperationCallable ()  
  
  Overrides 
  
  setIamPolicyCallable() 
  
    
public   UnaryCallable<SetIamPolicySubnetworkRequest , Policy >  setIamPolicyCallable ()  
  
  Overrides 
  
  setPrivateIpGoogleAccessCallable() 
  
    
public   UnaryCallable<SetPrivateIpGoogleAccessSubnetworkRequest , Operation >  setPrivateIpGoogleAccessCallable ()  
  
  Overrides 
  
  setPrivateIpGoogleAccessOperationCallable() 
  
    
public   OperationCallable<SetPrivateIpGoogleAccessSubnetworkRequest , Operation , Operation >  setPrivateIpGoogleAccessOperationCallable ()  
  
  Overrides 
  
  shutdown() 
  
  shutdownNow() 
  
    
public   void   shutdownNow ()  
  testIamPermissionsCallable() 
  
    
public   UnaryCallable<TestIamPermissionsSubnetworkRequest , TestPermissionsResponse >  testIamPermissionsCallable ()  
  
  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-11 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-11 UTC."],[],[]]