@Generated(value="by gapic-generator-java") public class EdgeNetworkSettings extends com.google.api.gax.rpc.ClientSettings<EdgeNetworkSettings>
EdgeNetworkClient.
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 initializeZone:
// 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
EdgeNetworkSettings.Builder edgeNetworkSettingsBuilder = EdgeNetworkSettings.newBuilder();
edgeNetworkSettingsBuilder
.initializeZoneSettings()
.setRetrySettings(
edgeNetworkSettingsBuilder
.initializeZoneSettings()
.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());
EdgeNetworkSettings edgeNetworkSettings = edgeNetworkSettingsBuilder.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 createNetwork:
// 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
EdgeNetworkSettings.Builder edgeNetworkSettingsBuilder = EdgeNetworkSettings.newBuilder();
TimedRetryAlgorithm timedRetryAlgorithm =
OperationalTimedPollAlgorithm.create(
RetrySettings.newBuilder()
.setInitialRetryDelayDuration(Duration.ofMillis(500))
.setRetryDelayMultiplier(1.5)
.setMaxRetryDelayDuration(Duration.ofMillis(5000))
.setTotalTimeoutDuration(Duration.ofHours(24))
.build());
edgeNetworkSettingsBuilder
.createClusterOperationSettings()
.setPollingAlgorithm(timedRetryAlgorithm)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
EdgeNetworkSettings.Builder
Builder for EdgeNetworkSettings.
|
| Modifier | Constructor and Description |
|---|---|
protected |
EdgeNetworkSettings(EdgeNetworkSettings.Builder settingsBuilder) |
| Modifier and Type | Method and Description |
|---|---|
static EdgeNetworkSettings |
create(EdgeNetworkStubSettings stub) |
com.google.api.gax.rpc.OperationCallSettings<CreateInterconnectAttachmentRequest,InterconnectAttachment,OperationMetadata> |
createInterconnectAttachmentOperationSettings()
Returns the object with the settings used for calls to createInterconnectAttachment.
|
com.google.api.gax.rpc.UnaryCallSettings<CreateInterconnectAttachmentRequest,com.google.longrunning.Operation> |
createInterconnectAttachmentSettings()
Returns the object with the settings used for calls to createInterconnectAttachment.
|
com.google.api.gax.rpc.OperationCallSettings<CreateNetworkRequest,Network,OperationMetadata> |
createNetworkOperationSettings()
Returns the object with the settings used for calls to createNetwork.
|
com.google.api.gax.rpc.UnaryCallSettings<CreateNetworkRequest,com.google.longrunning.Operation> |
createNetworkSettings()
Returns the object with the settings used for calls to createNetwork.
|
com.google.api.gax.rpc.OperationCallSettings<CreateRouterRequest,Router,OperationMetadata> |
createRouterOperationSettings()
Returns the object with the settings used for calls to createRouter.
|
com.google.api.gax.rpc.UnaryCallSettings<CreateRouterRequest,com.google.longrunning.Operation> |
createRouterSettings()
Returns the object with the settings used for calls to createRouter.
|
com.google.api.gax.rpc.OperationCallSettings<CreateSubnetRequest,Subnet,OperationMetadata> |
createSubnetOperationSettings()
Returns the object with the settings used for calls to createSubnet.
|
com.google.api.gax.rpc.UnaryCallSettings<CreateSubnetRequest,com.google.longrunning.Operation> |
createSubnetSettings()
Returns the object with the settings used for calls to createSubnet.
|
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.grpc.InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
|
static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder |
defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
|
static com.google.api.gax.rpc.TransportChannelProvider |
defaultTransportChannelProvider() |
com.google.api.gax.rpc.OperationCallSettings<DeleteInterconnectAttachmentRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteInterconnectAttachmentOperationSettings()
Returns the object with the settings used for calls to deleteInterconnectAttachment.
|
com.google.api.gax.rpc.UnaryCallSettings<DeleteInterconnectAttachmentRequest,com.google.longrunning.Operation> |
deleteInterconnectAttachmentSettings()
Returns the object with the settings used for calls to deleteInterconnectAttachment.
|
com.google.api.gax.rpc.OperationCallSettings<DeleteNetworkRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteNetworkOperationSettings()
Returns the object with the settings used for calls to deleteNetwork.
|
com.google.api.gax.rpc.UnaryCallSettings<DeleteNetworkRequest,com.google.longrunning.Operation> |
deleteNetworkSettings()
Returns the object with the settings used for calls to deleteNetwork.
|
com.google.api.gax.rpc.OperationCallSettings<DeleteRouterRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteRouterOperationSettings()
Returns the object with the settings used for calls to deleteRouter.
|
com.google.api.gax.rpc.UnaryCallSettings<DeleteRouterRequest,com.google.longrunning.Operation> |
deleteRouterSettings()
Returns the object with the settings used for calls to deleteRouter.
|
com.google.api.gax.rpc.OperationCallSettings<DeleteSubnetRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteSubnetOperationSettings()
Returns the object with the settings used for calls to deleteSubnet.
|
com.google.api.gax.rpc.UnaryCallSettings<DeleteSubnetRequest,com.google.longrunning.Operation> |
deleteSubnetSettings()
Returns the object with the settings used for calls to deleteSubnet.
|
com.google.api.gax.rpc.UnaryCallSettings<DiagnoseInterconnectRequest,DiagnoseInterconnectResponse> |
diagnoseInterconnectSettings()
Returns the object with the settings used for calls to diagnoseInterconnect.
|
com.google.api.gax.rpc.UnaryCallSettings<DiagnoseNetworkRequest,DiagnoseNetworkResponse> |
diagnoseNetworkSettings()
Returns the object with the settings used for calls to diagnoseNetwork.
|
com.google.api.gax.rpc.UnaryCallSettings<DiagnoseRouterRequest,DiagnoseRouterResponse> |
diagnoseRouterSettings()
Returns the object with the settings used for calls to diagnoseRouter.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
com.google.api.gax.rpc.UnaryCallSettings<GetInterconnectAttachmentRequest,InterconnectAttachment> |
getInterconnectAttachmentSettings()
Returns the object with the settings used for calls to getInterconnectAttachment.
|
com.google.api.gax.rpc.UnaryCallSettings<GetInterconnectRequest,Interconnect> |
getInterconnectSettings()
Returns the object with the settings used for calls to getInterconnect.
|
com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
getLocationSettings()
Returns the object with the settings used for calls to getLocation.
|
com.google.api.gax.rpc.UnaryCallSettings<GetNetworkRequest,Network> |
getNetworkSettings()
Returns the object with the settings used for calls to getNetwork.
|
com.google.api.gax.rpc.UnaryCallSettings<GetRouterRequest,Router> |
getRouterSettings()
Returns the object with the settings used for calls to getRouter.
|
com.google.api.gax.rpc.UnaryCallSettings<GetSubnetRequest,Subnet> |
getSubnetSettings()
Returns the object with the settings used for calls to getSubnet.
|
com.google.api.gax.rpc.UnaryCallSettings<GetZoneRequest,Zone> |
getZoneSettings()
Deprecated.
This method is deprecated and will be removed in the next major version update.
|
com.google.api.gax.rpc.UnaryCallSettings<InitializeZoneRequest,InitializeZoneResponse> |
initializeZoneSettings()
Returns the object with the settings used for calls to initializeZone.
|
com.google.api.gax.rpc.PagedCallSettings<ListInterconnectAttachmentsRequest,ListInterconnectAttachmentsResponse,EdgeNetworkClient.ListInterconnectAttachmentsPagedResponse> |
listInterconnectAttachmentsSettings()
Returns the object with the settings used for calls to listInterconnectAttachments.
|
com.google.api.gax.rpc.PagedCallSettings<ListInterconnectsRequest,ListInterconnectsResponse,EdgeNetworkClient.ListInterconnectsPagedResponse> |
listInterconnectsSettings()
Returns the object with the settings used for calls to listInterconnects.
|
com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,EdgeNetworkClient.ListLocationsPagedResponse> |
listLocationsSettings()
Returns the object with the settings used for calls to listLocations.
|
com.google.api.gax.rpc.PagedCallSettings<ListNetworksRequest,ListNetworksResponse,EdgeNetworkClient.ListNetworksPagedResponse> |
listNetworksSettings()
Returns the object with the settings used for calls to listNetworks.
|
com.google.api.gax.rpc.PagedCallSettings<ListRoutersRequest,ListRoutersResponse,EdgeNetworkClient.ListRoutersPagedResponse> |
listRoutersSettings()
Returns the object with the settings used for calls to listRouters.
|
com.google.api.gax.rpc.PagedCallSettings<ListSubnetsRequest,ListSubnetsResponse,EdgeNetworkClient.ListSubnetsPagedResponse> |
listSubnetsSettings()
Returns the object with the settings used for calls to listSubnets.
|
com.google.api.gax.rpc.PagedCallSettings<ListZonesRequest,ListZonesResponse,EdgeNetworkClient.ListZonesPagedResponse> |
listZonesSettings()
Deprecated.
This method is deprecated and will be removed in the next major version update.
|
static EdgeNetworkSettings.Builder |
newBuilder()
Returns a new gRPC builder for this class.
|
static EdgeNetworkSettings.Builder |
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
|
static EdgeNetworkSettings.Builder |
newHttpJsonBuilder()
Returns a new REST builder for this class.
|
EdgeNetworkSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
com.google.api.gax.rpc.OperationCallSettings<UpdateRouterRequest,Router,OperationMetadata> |
updateRouterOperationSettings()
Returns the object with the settings used for calls to updateRouter.
|
com.google.api.gax.rpc.UnaryCallSettings<UpdateRouterRequest,com.google.longrunning.Operation> |
updateRouterSettings()
Returns the object with the settings used for calls to updateRouter.
|
com.google.api.gax.rpc.OperationCallSettings<UpdateSubnetRequest,Subnet,OperationMetadata> |
updateSubnetOperationSettings()
Returns the object with the settings used for calls to updateSubnet.
|
com.google.api.gax.rpc.UnaryCallSettings<UpdateSubnetRequest,com.google.longrunning.Operation> |
updateSubnetSettings()
Returns the object with the settings used for calls to updateSubnet.
|
getApiKey, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getUniverseDomain, getWatchdogCheckInterval, getWatchdogCheckIntervalDuration, getWatchdogProvider, toStringprotected EdgeNetworkSettings(EdgeNetworkSettings.Builder settingsBuilder) throws IOException
IOExceptionpublic com.google.api.gax.rpc.UnaryCallSettings<InitializeZoneRequest,InitializeZoneResponse> initializeZoneSettings()
@Deprecated public com.google.api.gax.rpc.PagedCallSettings<ListZonesRequest,ListZonesResponse,EdgeNetworkClient.ListZonesPagedResponse> listZonesSettings()
@Deprecated public com.google.api.gax.rpc.UnaryCallSettings<GetZoneRequest,Zone> getZoneSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListNetworksRequest,ListNetworksResponse,EdgeNetworkClient.ListNetworksPagedResponse> listNetworksSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetNetworkRequest,Network> getNetworkSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DiagnoseNetworkRequest,DiagnoseNetworkResponse> diagnoseNetworkSettings()
public com.google.api.gax.rpc.UnaryCallSettings<CreateNetworkRequest,com.google.longrunning.Operation> createNetworkSettings()
public com.google.api.gax.rpc.OperationCallSettings<CreateNetworkRequest,Network,OperationMetadata> createNetworkOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteNetworkRequest,com.google.longrunning.Operation> deleteNetworkSettings()
public com.google.api.gax.rpc.OperationCallSettings<DeleteNetworkRequest,com.google.protobuf.Empty,OperationMetadata> deleteNetworkOperationSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListSubnetsRequest,ListSubnetsResponse,EdgeNetworkClient.ListSubnetsPagedResponse> listSubnetsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetSubnetRequest,Subnet> getSubnetSettings()
public com.google.api.gax.rpc.UnaryCallSettings<CreateSubnetRequest,com.google.longrunning.Operation> createSubnetSettings()
public com.google.api.gax.rpc.OperationCallSettings<CreateSubnetRequest,Subnet,OperationMetadata> createSubnetOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UpdateSubnetRequest,com.google.longrunning.Operation> updateSubnetSettings()
public com.google.api.gax.rpc.OperationCallSettings<UpdateSubnetRequest,Subnet,OperationMetadata> updateSubnetOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteSubnetRequest,com.google.longrunning.Operation> deleteSubnetSettings()
public com.google.api.gax.rpc.OperationCallSettings<DeleteSubnetRequest,com.google.protobuf.Empty,OperationMetadata> deleteSubnetOperationSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListInterconnectsRequest,ListInterconnectsResponse,EdgeNetworkClient.ListInterconnectsPagedResponse> listInterconnectsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetInterconnectRequest,Interconnect> getInterconnectSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DiagnoseInterconnectRequest,DiagnoseInterconnectResponse> diagnoseInterconnectSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListInterconnectAttachmentsRequest,ListInterconnectAttachmentsResponse,EdgeNetworkClient.ListInterconnectAttachmentsPagedResponse> listInterconnectAttachmentsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetInterconnectAttachmentRequest,InterconnectAttachment> getInterconnectAttachmentSettings()
public com.google.api.gax.rpc.UnaryCallSettings<CreateInterconnectAttachmentRequest,com.google.longrunning.Operation> createInterconnectAttachmentSettings()
public com.google.api.gax.rpc.OperationCallSettings<CreateInterconnectAttachmentRequest,InterconnectAttachment,OperationMetadata> createInterconnectAttachmentOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteInterconnectAttachmentRequest,com.google.longrunning.Operation> deleteInterconnectAttachmentSettings()
public com.google.api.gax.rpc.OperationCallSettings<DeleteInterconnectAttachmentRequest,com.google.protobuf.Empty,OperationMetadata> deleteInterconnectAttachmentOperationSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListRoutersRequest,ListRoutersResponse,EdgeNetworkClient.ListRoutersPagedResponse> listRoutersSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetRouterRequest,Router> getRouterSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DiagnoseRouterRequest,DiagnoseRouterResponse> diagnoseRouterSettings()
public com.google.api.gax.rpc.UnaryCallSettings<CreateRouterRequest,com.google.longrunning.Operation> createRouterSettings()
public com.google.api.gax.rpc.OperationCallSettings<CreateRouterRequest,Router,OperationMetadata> createRouterOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UpdateRouterRequest,com.google.longrunning.Operation> updateRouterSettings()
public com.google.api.gax.rpc.OperationCallSettings<UpdateRouterRequest,Router,OperationMetadata> updateRouterOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteRouterRequest,com.google.longrunning.Operation> deleteRouterSettings()
public com.google.api.gax.rpc.OperationCallSettings<DeleteRouterRequest,com.google.protobuf.Empty,OperationMetadata> deleteRouterOperationSettings()
public com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,EdgeNetworkClient.ListLocationsPagedResponse> listLocationsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationSettings()
public static final EdgeNetworkSettings create(EdgeNetworkStubSettings stub) throws IOException
IOExceptionpublic static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static List<String> getDefaultServiceScopes()
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
@BetaApi 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 EdgeNetworkSettings.Builder newBuilder()
public static EdgeNetworkSettings.Builder newHttpJsonBuilder()
public static EdgeNetworkSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
public EdgeNetworkSettings.Builder toBuilder()
toBuilder in class com.google.api.gax.rpc.ClientSettings<EdgeNetworkSettings>Copyright © 2025 Google LLC. All rights reserved.