Class HubServiceStubSettings (1.36.0)

public class HubServiceStubSettings extends StubSettings<HubServiceStubSettings>

Settings class to configure an instance of HubServiceStub.

The default instance has everything set to sensible defaults:

  • The default service address (networkconnectivity.googleapis.com) and default port (443) are used.
  • Credentials are acquired automatically through Application Default Credentials.
  • Retries are configured for idempotent methods but not for non-idempotent methods.

The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.

For example, to set the total timeout of getHub to 30 seconds:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 HubServiceStubSettings.Builder hubServiceSettingsBuilder = HubServiceStubSettings.newBuilder();
 hubServiceSettingsBuilder
     .getHubSettings()
     .setRetrySettings(
         hubServiceSettingsBuilder
             .getHubSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 HubServiceStubSettings hubServiceSettings = hubServiceSettingsBuilder.build();
 

Inheritance

java.lang.Object > StubSettings > HubServiceStubSettings

Static Methods

defaultApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns
TypeDescription
Builder

defaultCredentialsProviderBuilder()

public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()

Returns a builder for the default credentials for this service.

Returns
TypeDescription
Builder

defaultExecutorProviderBuilder()

public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()

Returns a builder for the default ExecutorProvider for this service.

Returns
TypeDescription
Builder

defaultGrpcTransportProviderBuilder()

public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()

Returns a builder for the default ChannelProvider for this service.

Returns
TypeDescription
Builder

defaultTransportChannelProvider()

public static TransportChannelProvider defaultTransportChannelProvider()
Returns
TypeDescription
TransportChannelProvider

getDefaultEndpoint()

public static String getDefaultEndpoint()

Returns the default service endpoint.

Returns
TypeDescription
String

getDefaultMtlsEndpoint()

public static String getDefaultMtlsEndpoint()

Returns the default mTLS service endpoint.

Returns
TypeDescription
String

getDefaultServiceScopes()

public static List<String> getDefaultServiceScopes()

Returns the default service scopes.

Returns
TypeDescription
List<String>

newBuilder()

public static HubServiceStubSettings.Builder newBuilder()

Returns a new builder for this class.

Returns
TypeDescription
HubServiceStubSettings.Builder

newBuilder(ClientContext clientContext)

public static HubServiceStubSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HubServiceStubSettings.Builder

Constructors

HubServiceStubSettings(HubServiceStubSettings.Builder settingsBuilder)

protected HubServiceStubSettings(HubServiceStubSettings.Builder settingsBuilder)
Parameter
NameDescription
settingsBuilderHubServiceStubSettings.Builder

Methods

acceptHubSpokeOperationSettings()

public OperationCallSettings<AcceptHubSpokeRequest,AcceptHubSpokeResponse,OperationMetadata> acceptHubSpokeOperationSettings()

Returns the object with the settings used for calls to acceptHubSpoke.

Returns
TypeDescription
OperationCallSettings<AcceptHubSpokeRequest,AcceptHubSpokeResponse,OperationMetadata>

acceptHubSpokeSettings()

public UnaryCallSettings<AcceptHubSpokeRequest,Operation> acceptHubSpokeSettings()

Returns the object with the settings used for calls to acceptHubSpoke.

Returns
TypeDescription
UnaryCallSettings<AcceptHubSpokeRequest,Operation>

createHubOperationSettings()

public OperationCallSettings<CreateHubRequest,Hub,OperationMetadata> createHubOperationSettings()

Returns the object with the settings used for calls to createHub.

Returns
TypeDescription
OperationCallSettings<CreateHubRequest,Hub,OperationMetadata>

createHubSettings()

public UnaryCallSettings<CreateHubRequest,Operation> createHubSettings()

Returns the object with the settings used for calls to createHub.

Returns
TypeDescription
UnaryCallSettings<CreateHubRequest,Operation>

createSpokeOperationSettings()

public OperationCallSettings<CreateSpokeRequest,Spoke,OperationMetadata> createSpokeOperationSettings()

Returns the object with the settings used for calls to createSpoke.

Returns
TypeDescription
OperationCallSettings<CreateSpokeRequest,Spoke,OperationMetadata>

createSpokeSettings()

public UnaryCallSettings<CreateSpokeRequest,Operation> createSpokeSettings()

Returns the object with the settings used for calls to createSpoke.

Returns
TypeDescription
UnaryCallSettings<CreateSpokeRequest,Operation>

createStub()

public HubServiceStub createStub()
Returns
TypeDescription
HubServiceStub
Exceptions
TypeDescription
IOException

deleteHubOperationSettings()

public OperationCallSettings<DeleteHubRequest,Empty,OperationMetadata> deleteHubOperationSettings()

Returns the object with the settings used for calls to deleteHub.

Returns
TypeDescription
OperationCallSettings<DeleteHubRequest,Empty,OperationMetadata>

deleteHubSettings()

public UnaryCallSettings<DeleteHubRequest,Operation> deleteHubSettings()

Returns the object with the settings used for calls to deleteHub.

Returns
TypeDescription
UnaryCallSettings<DeleteHubRequest,Operation>

deleteSpokeOperationSettings()

public OperationCallSettings<DeleteSpokeRequest,Empty,OperationMetadata> deleteSpokeOperationSettings()

Returns the object with the settings used for calls to deleteSpoke.

Returns
TypeDescription
OperationCallSettings<DeleteSpokeRequest,Empty,OperationMetadata>

deleteSpokeSettings()

public UnaryCallSettings<DeleteSpokeRequest,Operation> deleteSpokeSettings()

Returns the object with the settings used for calls to deleteSpoke.

Returns
TypeDescription
UnaryCallSettings<DeleteSpokeRequest,Operation>

getEndpoint()

public String getEndpoint()

Returns the endpoint set by the user or the the service's default endpoint.

Returns
TypeDescription
String
Overrides

getGroupSettings()

public UnaryCallSettings<GetGroupRequest,Group> getGroupSettings()

Returns the object with the settings used for calls to getGroup.

Returns
TypeDescription
UnaryCallSettings<GetGroupRequest,Group>

getHubSettings()

public UnaryCallSettings<GetHubRequest,Hub> getHubSettings()

Returns the object with the settings used for calls to getHub.

Returns
TypeDescription
UnaryCallSettings<GetHubRequest,Hub>

getIamPolicySettings()

public UnaryCallSettings<GetIamPolicyRequest,Policy> getIamPolicySettings()

Returns the object with the settings used for calls to getIamPolicy.

Returns
TypeDescription
UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>

getLocationSettings()

public UnaryCallSettings<GetLocationRequest,Location> getLocationSettings()

Returns the object with the settings used for calls to getLocation.

Returns
TypeDescription
UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>

getRouteSettings()

public UnaryCallSettings<GetRouteRequest,Route> getRouteSettings()

Returns the object with the settings used for calls to getRoute.

Returns
TypeDescription
UnaryCallSettings<GetRouteRequest,Route>

getRouteTableSettings()

public UnaryCallSettings<GetRouteTableRequest,RouteTable> getRouteTableSettings()

Returns the object with the settings used for calls to getRouteTable.

Returns
TypeDescription
UnaryCallSettings<GetRouteTableRequest,RouteTable>

getServiceName()

public String getServiceName()

Returns the default service name.

Returns
TypeDescription
String
Overrides

getSpokeSettings()

public UnaryCallSettings<GetSpokeRequest,Spoke> getSpokeSettings()

Returns the object with the settings used for calls to getSpoke.

Returns
TypeDescription
UnaryCallSettings<GetSpokeRequest,Spoke>

listGroupsSettings()

public PagedCallSettings<ListGroupsRequest,ListGroupsResponse,HubServiceClient.ListGroupsPagedResponse> listGroupsSettings()

Returns the object with the settings used for calls to listGroups.

Returns
TypeDescription
PagedCallSettings<ListGroupsRequest,ListGroupsResponse,ListGroupsPagedResponse>

listHubSpokesSettings()

public PagedCallSettings<ListHubSpokesRequest,ListHubSpokesResponse,HubServiceClient.ListHubSpokesPagedResponse> listHubSpokesSettings()

Returns the object with the settings used for calls to listHubSpokes.

Returns
TypeDescription
PagedCallSettings<ListHubSpokesRequest,ListHubSpokesResponse,ListHubSpokesPagedResponse>

listHubsSettings()

public PagedCallSettings<ListHubsRequest,ListHubsResponse,HubServiceClient.ListHubsPagedResponse> listHubsSettings()

Returns the object with the settings used for calls to listHubs.

Returns
TypeDescription
PagedCallSettings<ListHubsRequest,ListHubsResponse,ListHubsPagedResponse>

listLocationsSettings()

public PagedCallSettings<ListLocationsRequest,ListLocationsResponse,HubServiceClient.ListLocationsPagedResponse> listLocationsSettings()

Returns the object with the settings used for calls to listLocations.

Returns
TypeDescription
PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,ListLocationsPagedResponse>

listRouteTablesSettings()

public PagedCallSettings<ListRouteTablesRequest,ListRouteTablesResponse,HubServiceClient.ListRouteTablesPagedResponse> listRouteTablesSettings()

Returns the object with the settings used for calls to listRouteTables.

Returns
TypeDescription
PagedCallSettings<ListRouteTablesRequest,ListRouteTablesResponse,ListRouteTablesPagedResponse>

listRoutesSettings()

public PagedCallSettings<ListRoutesRequest,ListRoutesResponse,HubServiceClient.ListRoutesPagedResponse> listRoutesSettings()

Returns the object with the settings used for calls to listRoutes.

Returns
TypeDescription
PagedCallSettings<ListRoutesRequest,ListRoutesResponse,ListRoutesPagedResponse>

listSpokesSettings()

public PagedCallSettings<ListSpokesRequest,ListSpokesResponse,HubServiceClient.ListSpokesPagedResponse> listSpokesSettings()

Returns the object with the settings used for calls to listSpokes.

Returns
TypeDescription
PagedCallSettings<ListSpokesRequest,ListSpokesResponse,ListSpokesPagedResponse>

rejectHubSpokeOperationSettings()

public OperationCallSettings<RejectHubSpokeRequest,RejectHubSpokeResponse,OperationMetadata> rejectHubSpokeOperationSettings()

Returns the object with the settings used for calls to rejectHubSpoke.

Returns
TypeDescription
OperationCallSettings<RejectHubSpokeRequest,RejectHubSpokeResponse,OperationMetadata>

rejectHubSpokeSettings()

public UnaryCallSettings<RejectHubSpokeRequest,Operation> rejectHubSpokeSettings()

Returns the object with the settings used for calls to rejectHubSpoke.

Returns
TypeDescription
UnaryCallSettings<RejectHubSpokeRequest,Operation>

setIamPolicySettings()

public UnaryCallSettings<SetIamPolicyRequest,Policy> setIamPolicySettings()

Returns the object with the settings used for calls to setIamPolicy.

Returns
TypeDescription
UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>

testIamPermissionsSettings()

public UnaryCallSettings<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsSettings()

Returns the object with the settings used for calls to testIamPermissions.

Returns
TypeDescription
UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>

toBuilder()

public HubServiceStubSettings.Builder toBuilder()

Returns a builder containing all the values of this settings class.

Returns
TypeDescription
HubServiceStubSettings.Builder
Overrides

updateHubOperationSettings()

public OperationCallSettings<UpdateHubRequest,Hub,OperationMetadata> updateHubOperationSettings()

Returns the object with the settings used for calls to updateHub.

Returns
TypeDescription
OperationCallSettings<UpdateHubRequest,Hub,OperationMetadata>

updateHubSettings()

public UnaryCallSettings<UpdateHubRequest,Operation> updateHubSettings()

Returns the object with the settings used for calls to updateHub.

Returns
TypeDescription
UnaryCallSettings<UpdateHubRequest,Operation>

updateSpokeOperationSettings()

public OperationCallSettings<UpdateSpokeRequest,Spoke,OperationMetadata> updateSpokeOperationSettings()

Returns the object with the settings used for calls to updateSpoke.

Returns
TypeDescription
OperationCallSettings<UpdateSpokeRequest,Spoke,OperationMetadata>

updateSpokeSettings()

public UnaryCallSettings<UpdateSpokeRequest,Operation> updateSpokeSettings()

Returns the object with the settings used for calls to updateSpoke.

Returns
TypeDescription
UnaryCallSettings<UpdateSpokeRequest,Operation>