@Generated(value="by gapic-generator-java") public class RoutersStubSettings extends com.google.api.gax.rpc.StubSettings<RoutersStubSettings>
RoutersStub.
The default instance has everything set to sensible defaults:
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 [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) of get:
// 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
RoutersStubSettings.Builder routersSettingsBuilder = RoutersStubSettings.newBuilder();
routersSettingsBuilder
.getSettings()
.setRetrySettings(
routersSettingsBuilder
.getSettings()
.getRetrySettings()
.toBuilder()
.setInitialRetryDelayDuration(Duration.ofSeconds(1))
.setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
.setMaxAttempts(5)
.setMaxRetryDelayDuration(Duration.ofSeconds(30))
.setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
.setRetryDelayMultiplier(1.3)
.setRpcTimeoutMultiplier(1.5)
.setTotalTimeoutDuration(Duration.ofSeconds(300))
.build());
RoutersStubSettings routersSettings = routersSettingsBuilder.build();
Please refer to the [Client Side Retry
Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
additional support in setting retries.
To configure the RetrySettings of a Long Running Operation method, create an OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to configure the RetrySettings for delete:
// 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
RoutersStubSettings.Builder routersSettingsBuilder = RoutersStubSettings.newBuilder();
TimedRetryAlgorithm timedRetryAlgorithm =
OperationalTimedPollAlgorithm.create(
RetrySettings.newBuilder()
.setInitialRetryDelayDuration(Duration.ofMillis(500))
.setRetryDelayMultiplier(1.5)
.setMaxRetryDelayDuration(Duration.ofMillis(5000))
.setTotalTimeoutDuration(Duration.ofHours(24))
.build());
routersSettingsBuilder
.createClusterOperationSettings()
.setPollingAlgorithm(timedRetryAlgorithm)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
RoutersStubSettings.Builder
Builder for RoutersStubSettings.
|
| Modifier | Constructor and Description |
|---|---|
protected |
RoutersStubSettings(RoutersStubSettings.Builder settingsBuilder) |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.gax.rpc.PagedCallSettings<AggregatedListRoutersRequest,RouterAggregatedList,RoutersClient.AggregatedListPagedResponse> |
aggregatedListSettings()
Returns the object with the settings used for calls to aggregatedList.
|
RoutersStub |
createStub() |
static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder |
defaultApiClientHeaderProviderBuilder() |
static com.google.api.gax.core.GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static com.google.api.gax.core.InstantiatingExecutorProvider.Builder |
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
|
static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder |
defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
|
static com.google.api.gax.rpc.TransportChannelProvider |
defaultTransportChannelProvider() |
com.google.api.gax.rpc.OperationCallSettings<DeleteRouterRequest,Operation,Operation> |
deleteOperationSettings()
Returns the object with the settings used for calls to delete.
|
com.google.api.gax.rpc.OperationCallSettings<DeleteRoutePolicyRouterRequest,Operation,Operation> |
deleteRoutePolicyOperationSettings()
Returns the object with the settings used for calls to deleteRoutePolicy.
|
com.google.api.gax.rpc.UnaryCallSettings<DeleteRoutePolicyRouterRequest,Operation> |
deleteRoutePolicySettings()
Returns the object with the settings used for calls to deleteRoutePolicy.
|
com.google.api.gax.rpc.UnaryCallSettings<DeleteRouterRequest,Operation> |
deleteSettings()
Returns the object with the settings used for calls to delete.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static String |
getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
com.google.api.gax.rpc.UnaryCallSettings<GetNatIpInfoRouterRequest,NatIpInfoResponse> |
getNatIpInfoSettings()
Returns the object with the settings used for calls to getNatIpInfo.
|
com.google.api.gax.rpc.PagedCallSettings<GetNatMappingInfoRoutersRequest,VmEndpointNatMappingsList,RoutersClient.GetNatMappingInfoPagedResponse> |
getNatMappingInfoSettings()
Returns the object with the settings used for calls to getNatMappingInfo.
|
com.google.api.gax.rpc.UnaryCallSettings<GetRoutePolicyRouterRequest,RoutersGetRoutePolicyResponse> |
getRoutePolicySettings()
Returns the object with the settings used for calls to getRoutePolicy.
|
com.google.api.gax.rpc.UnaryCallSettings<GetRouterStatusRouterRequest,RouterStatusResponse> |
getRouterStatusSettings()
Returns the object with the settings used for calls to getRouterStatus.
|
String |
getServiceName()
Returns the default service name.
|
com.google.api.gax.rpc.UnaryCallSettings<GetRouterRequest,Router> |
getSettings()
Returns the object with the settings used for calls to get.
|
com.google.api.gax.rpc.OperationCallSettings<InsertRouterRequest,Operation,Operation> |
insertOperationSettings()
Returns the object with the settings used for calls to insert.
|
com.google.api.gax.rpc.UnaryCallSettings<InsertRouterRequest,Operation> |
insertSettings()
Returns the object with the settings used for calls to insert.
|
com.google.api.gax.rpc.PagedCallSettings<ListBgpRoutesRoutersRequest,RoutersListBgpRoutes,RoutersClient.ListBgpRoutesPagedResponse> |
listBgpRoutesSettings()
Returns the object with the settings used for calls to listBgpRoutes.
|
com.google.api.gax.rpc.PagedCallSettings<ListRoutePoliciesRoutersRequest,RoutersListRoutePolicies,RoutersClient.ListRoutePoliciesPagedResponse> |
listRoutePoliciesSettings()
Returns the object with the settings used for calls to listRoutePolicies.
|
com.google.api.gax.rpc.PagedCallSettings<ListRoutersRequest,RouterList,RoutersClient.ListPagedResponse> |
listSettings()
Returns the object with the settings used for calls to list.
|
static RoutersStubSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
static RoutersStubSettings.Builder |
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
|
com.google.api.gax.rpc.OperationCallSettings<PatchRouterRequest,Operation,Operation> |
patchOperationSettings()
Returns the object with the settings used for calls to patch.
|
com.google.api.gax.rpc.OperationCallSettings<PatchRoutePolicyRouterRequest,Operation,Operation> |
patchRoutePolicyOperationSettings()
Returns the object with the settings used for calls to patchRoutePolicy.
|
com.google.api.gax.rpc.UnaryCallSettings<PatchRoutePolicyRouterRequest,Operation> |
patchRoutePolicySettings()
Returns the object with the settings used for calls to patchRoutePolicy.
|
com.google.api.gax.rpc.UnaryCallSettings<PatchRouterRequest,Operation> |
patchSettings()
Returns the object with the settings used for calls to patch.
|
com.google.api.gax.rpc.UnaryCallSettings<PreviewRouterRequest,RoutersPreviewResponse> |
previewSettings()
Returns the object with the settings used for calls to preview.
|
RoutersStubSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
com.google.api.gax.rpc.OperationCallSettings<UpdateRouterRequest,Operation,Operation> |
updateOperationSettings()
Returns the object with the settings used for calls to update.
|
com.google.api.gax.rpc.OperationCallSettings<UpdateRoutePolicyRouterRequest,Operation,Operation> |
updateRoutePolicyOperationSettings()
Returns the object with the settings used for calls to updateRoutePolicy.
|
com.google.api.gax.rpc.UnaryCallSettings<UpdateRoutePolicyRouterRequest,Operation> |
updateRoutePolicySettings()
Returns the object with the settings used for calls to updateRoutePolicy.
|
com.google.api.gax.rpc.UnaryCallSettings<UpdateRouterRequest,Operation> |
updateSettings()
Returns the object with the settings used for calls to update.
|
getApiKey, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogCheckIntervalDuration, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, getUniverseDomain, toStringprotected RoutersStubSettings(RoutersStubSettings.Builder settingsBuilder) throws IOException
IOExceptionpublic com.google.api.gax.rpc.PagedCallSettings<AggregatedListRoutersRequest,RouterAggregatedList,RoutersClient.AggregatedListPagedResponse> aggregatedListSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteRouterRequest,Operation> deleteSettings()
public com.google.api.gax.rpc.OperationCallSettings<DeleteRouterRequest,Operation,Operation> deleteOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteRoutePolicyRouterRequest,Operation> deleteRoutePolicySettings()
public com.google.api.gax.rpc.OperationCallSettings<DeleteRoutePolicyRouterRequest,Operation,Operation> deleteRoutePolicyOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetRouterRequest,Router> getSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetNatIpInfoRouterRequest,NatIpInfoResponse> getNatIpInfoSettings()
public com.google.api.gax.rpc.PagedCallSettings<GetNatMappingInfoRoutersRequest,VmEndpointNatMappingsList,RoutersClient.GetNatMappingInfoPagedResponse> getNatMappingInfoSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetRoutePolicyRouterRequest,RoutersGetRoutePolicyResponse> getRoutePolicySettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetRouterStatusRouterRequest,RouterStatusResponse> getRouterStatusSettings()
public com.google.api.gax.rpc.UnaryCallSettings<InsertRouterRequest,Operation> insertSettings()
public com.google.api.gax.rpc.OperationCallSettings<InsertRouterRequest,Operation,Operation> insertOperationSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListRoutersRequest,RouterList,RoutersClient.ListPagedResponse> listSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListBgpRoutesRoutersRequest,RoutersListBgpRoutes,RoutersClient.ListBgpRoutesPagedResponse> listBgpRoutesSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListRoutePoliciesRoutersRequest,RoutersListRoutePolicies,RoutersClient.ListRoutePoliciesPagedResponse> listRoutePoliciesSettings()
public com.google.api.gax.rpc.UnaryCallSettings<PatchRouterRequest,Operation> patchSettings()
public com.google.api.gax.rpc.OperationCallSettings<PatchRouterRequest,Operation,Operation> patchOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<PatchRoutePolicyRouterRequest,Operation> patchRoutePolicySettings()
public com.google.api.gax.rpc.OperationCallSettings<PatchRoutePolicyRouterRequest,Operation,Operation> patchRoutePolicyOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<PreviewRouterRequest,RoutersPreviewResponse> previewSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UpdateRouterRequest,Operation> updateSettings()
public com.google.api.gax.rpc.OperationCallSettings<UpdateRouterRequest,Operation,Operation> updateOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UpdateRoutePolicyRouterRequest,Operation> updateRoutePolicySettings()
public com.google.api.gax.rpc.OperationCallSettings<UpdateRoutePolicyRouterRequest,Operation,Operation> updateRoutePolicyOperationSettings()
public RoutersStub createStub() throws IOException
IOExceptionpublic String getServiceName()
getServiceName in class com.google.api.gax.rpc.StubSettings<RoutersStubSettings>public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
@ObsoleteApi(value="Use getEndpoint() instead") public static String getDefaultEndpoint()
public static String getDefaultMtlsEndpoint()
public static List<String> getDefaultServiceScopes()
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static RoutersStubSettings.Builder newBuilder()
public static RoutersStubSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
public RoutersStubSettings.Builder toBuilder()
toBuilder in class com.google.api.gax.rpc.StubSettings<RoutersStubSettings>Copyright © 2025 Google LLC. All rights reserved.