Class HubServiceStubSettings.Builder (1.48.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 1.48.0keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
public   static   class  HubServiceStubSettings . Builder   extends   StubSettings . Builder<HubServiceStubSettings , HubServiceStubSettings . Builder > 
  Builder for HubServiceStubSettings.
Constructors
   
  Builder() 
  
  Builder(ClientContext clientContext) 
  
    
protected   Builder ( ClientContext   clientContext )  
  
  Builder(HubServiceStubSettings settings) 
  
    
protected   Builder ( HubServiceStubSettings   settings )  
  
  Methods
   
  acceptHubSpokeOperationSettings() 
  
    
public   OperationCallSettings . Builder<AcceptHubSpokeRequest , AcceptHubSpokeResponse , OperationMetadata >  acceptHubSpokeOperationSettings ()  
  Returns the builder for the settings used for calls to acceptHubSpoke.
acceptHubSpokeSettings() 
  
    
public   UnaryCallSettings . Builder<AcceptHubSpokeRequest , Operation >  acceptHubSpokeSettings ()  
  Returns the builder for the settings used for calls to acceptHubSpoke.
applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater) 
  
    
public   HubServiceStubSettings . Builder   applyToAllUnaryMethods ( ApiFunction<UnaryCallSettings . Builder <? , ? >, Void >  settingsUpdater )  
  Applies the given settings updater function to all of the unary API methods in this service.
 
Note: This method does not support applying settings to streaming methods.
build() 
  
    
public   HubServiceStubSettings   build ()  
  
  Overrides 
  
  
  createHubOperationSettings() 
  
    
public   OperationCallSettings . Builder<CreateHubRequest , Hub , OperationMetadata >  createHubOperationSettings ()  
  Returns the builder for the settings used for calls to createHub.
createHubSettings() 
  
    
public   UnaryCallSettings . Builder<CreateHubRequest , Operation >  createHubSettings ()  
  Returns the builder for the settings used for calls to createHub.
createSpokeOperationSettings() 
  
    
public   OperationCallSettings . Builder<CreateSpokeRequest , Spoke , OperationMetadata >  createSpokeOperationSettings ()  
  Returns the builder for the settings used for calls to createSpoke.
createSpokeSettings() 
  
    
public   UnaryCallSettings . Builder<CreateSpokeRequest , Operation >  createSpokeSettings ()  
  Returns the builder for the settings used for calls to createSpoke.
deleteHubOperationSettings() 
  
    
public   OperationCallSettings . Builder<DeleteHubRequest , Empty , OperationMetadata >  deleteHubOperationSettings ()  
  Returns the builder for the settings used for calls to deleteHub.
deleteHubSettings() 
  
    
public   UnaryCallSettings . Builder<DeleteHubRequest , Operation >  deleteHubSettings ()  
  Returns the builder for the settings used for calls to deleteHub.
deleteSpokeOperationSettings() 
  
    
public   OperationCallSettings . Builder<DeleteSpokeRequest , Empty , OperationMetadata >  deleteSpokeOperationSettings ()  
  Returns the builder for the settings used for calls to deleteSpoke.
deleteSpokeSettings() 
  
    
public   UnaryCallSettings . Builder<DeleteSpokeRequest , Operation >  deleteSpokeSettings ()  
  Returns the builder for the settings used for calls to deleteSpoke.
getGroupSettings() 
  
    
public   UnaryCallSettings . Builder<GetGroupRequest , Group >  getGroupSettings ()  
  Returns the builder for the settings used for calls to getGroup.
getHubSettings() 
  
    
public   UnaryCallSettings . Builder<GetHubRequest , Hub >  getHubSettings ()  
  Returns the builder for the settings used for calls to getHub.
getIamPolicySettings() 
  
    
public   UnaryCallSettings . Builder<GetIamPolicyRequest , Policy >  getIamPolicySettings ()  
  Returns the builder for the settings used for calls to getIamPolicy.
    
      
        Returns  
      
        Type Description  
      
        Builder <com.google.iam.v1.GetIamPolicyRequest ,com.google.iam.v1.Policy > 
     
  
  getLocationSettings() 
  
    
public   UnaryCallSettings . Builder<GetLocationRequest , Location >  getLocationSettings ()  
  Returns the builder for the settings used for calls to getLocation.
    
      
        Returns  
      
        Type Description  
      
        Builder <com.google.cloud.location.GetLocationRequest ,com.google.cloud.location.Location > 
     
  
  getRouteSettings() 
  
    
public   UnaryCallSettings . Builder<GetRouteRequest , Route >  getRouteSettings ()  
  Returns the builder for the settings used for calls to getRoute.
getRouteTableSettings() 
  
    
public   UnaryCallSettings . Builder<GetRouteTableRequest , RouteTable >  getRouteTableSettings ()  
  Returns the builder for the settings used for calls to getRouteTable.
getSpokeSettings() 
  
    
public   UnaryCallSettings . Builder<GetSpokeRequest , Spoke >  getSpokeSettings ()  
  Returns the builder for the settings used for calls to getSpoke.
listGroupsSettings() 
  
    
public   PagedCallSettings . Builder<ListGroupsRequest , ListGroupsResponse , HubServiceClient . ListGroupsPagedResponse >  listGroupsSettings ()  
  Returns the builder for the settings used for calls to listGroups.
listHubSpokesSettings() 
  
    
public   PagedCallSettings . Builder<ListHubSpokesRequest , ListHubSpokesResponse , HubServiceClient . ListHubSpokesPagedResponse >  listHubSpokesSettings ()  
  Returns the builder for the settings used for calls to listHubSpokes.
listHubsSettings() 
  
    
public   PagedCallSettings . Builder<ListHubsRequest , ListHubsResponse , HubServiceClient . ListHubsPagedResponse >  listHubsSettings ()  
  Returns the builder for the settings used for calls to listHubs.
listLocationsSettings() 
  
    
public   PagedCallSettings . Builder<ListLocationsRequest , ListLocationsResponse , HubServiceClient . ListLocationsPagedResponse >  listLocationsSettings ()  
  Returns the builder for the settings used for calls to listLocations.
listRouteTablesSettings() 
  
    
public   PagedCallSettings . Builder<ListRouteTablesRequest , ListRouteTablesResponse , HubServiceClient . ListRouteTablesPagedResponse >  listRouteTablesSettings ()  
  Returns the builder for the settings used for calls to listRouteTables.
listRoutesSettings() 
  
    
public   PagedCallSettings . Builder<ListRoutesRequest , ListRoutesResponse , HubServiceClient . ListRoutesPagedResponse >  listRoutesSettings ()  
  Returns the builder for the settings used for calls to listRoutes.
listSpokesSettings() 
  
    
public   PagedCallSettings . Builder<ListSpokesRequest , ListSpokesResponse , HubServiceClient . ListSpokesPagedResponse >  listSpokesSettings ()  
  Returns the builder for the settings used for calls to listSpokes.
rejectHubSpokeOperationSettings() 
  
    
public   OperationCallSettings . Builder<RejectHubSpokeRequest , RejectHubSpokeResponse , OperationMetadata >  rejectHubSpokeOperationSettings ()  
  Returns the builder for the settings used for calls to rejectHubSpoke.
rejectHubSpokeSettings() 
  
    
public   UnaryCallSettings . Builder<RejectHubSpokeRequest , Operation >  rejectHubSpokeSettings ()  
  Returns the builder for the settings used for calls to rejectHubSpoke.
setIamPolicySettings() 
  
    
public   UnaryCallSettings . Builder<SetIamPolicyRequest , Policy >  setIamPolicySettings ()  
  Returns the builder for the settings used for calls to setIamPolicy.
    
      
        Returns  
      
        Type Description  
      
        Builder <com.google.iam.v1.SetIamPolicyRequest ,com.google.iam.v1.Policy > 
     
  
  testIamPermissionsSettings() 
  
    
public   UnaryCallSettings . Builder<TestIamPermissionsRequest , TestIamPermissionsResponse >  testIamPermissionsSettings ()  
  Returns the builder for the settings used for calls to testIamPermissions.
    
      
        Returns  
      
        Type Description  
      
        Builder <com.google.iam.v1.TestIamPermissionsRequest ,com.google.iam.v1.TestIamPermissionsResponse > 
     
  
  unaryMethodSettingsBuilders() 
  
    
public   ImmutableList<UnaryCallSettings . Builder <? , ? >>  unaryMethodSettingsBuilders ()  
  
    
      
        Returns  
      
        Type Description  
      
        com.google.common.collect.ImmutableList <Builder <? ,? >> 
     
  
  updateHubOperationSettings() 
  
    
public   OperationCallSettings . Builder<UpdateHubRequest , Hub , OperationMetadata >  updateHubOperationSettings ()  
  Returns the builder for the settings used for calls to updateHub.
updateHubSettings() 
  
    
public   UnaryCallSettings . Builder<UpdateHubRequest , Operation >  updateHubSettings ()  
  Returns the builder for the settings used for calls to updateHub.
updateSpokeOperationSettings() 
  
    
public   OperationCallSettings . Builder<UpdateSpokeRequest , Spoke , OperationMetadata >  updateSpokeOperationSettings ()  
  Returns the builder for the settings used for calls to updateSpoke.
updateSpokeSettings() 
  
    
public   UnaryCallSettings . Builder<UpdateSpokeRequest , Operation >  updateSpokeSettings ()  
  Returns the builder for the settings used for calls to updateSpoke.
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  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."],[],[]]