Class EdgeNetworkSettings (0.3.0)

public class EdgeNetworkSettings extends ClientSettings<EdgeNetworkSettings>

Settings class to configure an instance of EdgeNetworkClient.

The default instance has everything set to sensible defaults:

  • The default service address (edgenetwork.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 initializeZone 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
 EdgeNetworkSettings.Builder edgeNetworkSettingsBuilder = EdgeNetworkSettings.newBuilder();
 edgeNetworkSettingsBuilder
     .initializeZoneSettings()
     .setRetrySettings(
         edgeNetworkSettingsBuilder
             .initializeZoneSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 EdgeNetworkSettings edgeNetworkSettings = edgeNetworkSettingsBuilder.build();
 

Inheritance

java.lang.Object > ClientSettings > EdgeNetworkSettings

Static Methods

create(EdgeNetworkStubSettings stub)

public static final EdgeNetworkSettings create(EdgeNetworkStubSettings stub)
Parameter
NameDescription
stubEdgeNetworkStubSettings
Returns
TypeDescription
EdgeNetworkSettings
Exceptions
TypeDescription
IOException

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 gRPC ChannelProvider for this service.

Returns
TypeDescription
Builder

defaultHttpJsonTransportProviderBuilder()

public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()

Returns a builder for the default REST 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

getDefaultServiceScopes()

public static List<String> getDefaultServiceScopes()

Returns the default service scopes.

Returns
TypeDescription
List<String>

newBuilder()

public static EdgeNetworkSettings.Builder newBuilder()

Returns a new gRPC builder for this class.

Returns
TypeDescription
EdgeNetworkSettings.Builder

newBuilder(ClientContext clientContext)

public static EdgeNetworkSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
EdgeNetworkSettings.Builder

newHttpJsonBuilder()

public static EdgeNetworkSettings.Builder newHttpJsonBuilder()

Returns a new REST builder for this class.

Returns
TypeDescription
EdgeNetworkSettings.Builder

Constructors

EdgeNetworkSettings(EdgeNetworkSettings.Builder settingsBuilder)

protected EdgeNetworkSettings(EdgeNetworkSettings.Builder settingsBuilder)
Parameter
NameDescription
settingsBuilderEdgeNetworkSettings.Builder

Methods

createInterconnectAttachmentOperationSettings()

public OperationCallSettings<CreateInterconnectAttachmentRequest,InterconnectAttachment,OperationMetadata> createInterconnectAttachmentOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<CreateInterconnectAttachmentRequest,InterconnectAttachment,OperationMetadata>

createInterconnectAttachmentSettings()

public UnaryCallSettings<CreateInterconnectAttachmentRequest,Operation> createInterconnectAttachmentSettings()

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

Returns
TypeDescription
UnaryCallSettings<CreateInterconnectAttachmentRequest,Operation>

createNetworkOperationSettings()

public OperationCallSettings<CreateNetworkRequest,Network,OperationMetadata> createNetworkOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<CreateNetworkRequest,Network,OperationMetadata>

createNetworkSettings()

public UnaryCallSettings<CreateNetworkRequest,Operation> createNetworkSettings()

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

Returns
TypeDescription
UnaryCallSettings<CreateNetworkRequest,Operation>

createRouterOperationSettings()

public OperationCallSettings<CreateRouterRequest,Router,OperationMetadata> createRouterOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<CreateRouterRequest,Router,OperationMetadata>

createRouterSettings()

public UnaryCallSettings<CreateRouterRequest,Operation> createRouterSettings()

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

Returns
TypeDescription
UnaryCallSettings<CreateRouterRequest,Operation>

createSubnetOperationSettings()

public OperationCallSettings<CreateSubnetRequest,Subnet,OperationMetadata> createSubnetOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<CreateSubnetRequest,Subnet,OperationMetadata>

createSubnetSettings()

public UnaryCallSettings<CreateSubnetRequest,Operation> createSubnetSettings()

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

Returns
TypeDescription
UnaryCallSettings<CreateSubnetRequest,Operation>

deleteInterconnectAttachmentOperationSettings()

public OperationCallSettings<DeleteInterconnectAttachmentRequest,Empty,OperationMetadata> deleteInterconnectAttachmentOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<DeleteInterconnectAttachmentRequest,Empty,OperationMetadata>

deleteInterconnectAttachmentSettings()

public UnaryCallSettings<DeleteInterconnectAttachmentRequest,Operation> deleteInterconnectAttachmentSettings()

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

Returns
TypeDescription
UnaryCallSettings<DeleteInterconnectAttachmentRequest,Operation>

deleteNetworkOperationSettings()

public OperationCallSettings<DeleteNetworkRequest,Empty,OperationMetadata> deleteNetworkOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<DeleteNetworkRequest,Empty,OperationMetadata>

deleteNetworkSettings()

public UnaryCallSettings<DeleteNetworkRequest,Operation> deleteNetworkSettings()

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

Returns
TypeDescription
UnaryCallSettings<DeleteNetworkRequest,Operation>

deleteRouterOperationSettings()

public OperationCallSettings<DeleteRouterRequest,Empty,OperationMetadata> deleteRouterOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<DeleteRouterRequest,Empty,OperationMetadata>

deleteRouterSettings()

public UnaryCallSettings<DeleteRouterRequest,Operation> deleteRouterSettings()

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

Returns
TypeDescription
UnaryCallSettings<DeleteRouterRequest,Operation>

deleteSubnetOperationSettings()

public OperationCallSettings<DeleteSubnetRequest,Empty,OperationMetadata> deleteSubnetOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<DeleteSubnetRequest,Empty,OperationMetadata>

deleteSubnetSettings()

public UnaryCallSettings<DeleteSubnetRequest,Operation> deleteSubnetSettings()

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

Returns
TypeDescription
UnaryCallSettings<DeleteSubnetRequest,Operation>

diagnoseInterconnectSettings()

public UnaryCallSettings<DiagnoseInterconnectRequest,DiagnoseInterconnectResponse> diagnoseInterconnectSettings()

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

Returns
TypeDescription
UnaryCallSettings<DiagnoseInterconnectRequest,DiagnoseInterconnectResponse>

diagnoseNetworkSettings()

public UnaryCallSettings<DiagnoseNetworkRequest,DiagnoseNetworkResponse> diagnoseNetworkSettings()

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

Returns
TypeDescription
UnaryCallSettings<DiagnoseNetworkRequest,DiagnoseNetworkResponse>

diagnoseRouterSettings()

public UnaryCallSettings<DiagnoseRouterRequest,DiagnoseRouterResponse> diagnoseRouterSettings()

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

Returns
TypeDescription
UnaryCallSettings<DiagnoseRouterRequest,DiagnoseRouterResponse>

getInterconnectAttachmentSettings()

public UnaryCallSettings<GetInterconnectAttachmentRequest,InterconnectAttachment> getInterconnectAttachmentSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetInterconnectAttachmentRequest,InterconnectAttachment>

getInterconnectSettings()

public UnaryCallSettings<GetInterconnectRequest,Interconnect> getInterconnectSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetInterconnectRequest,Interconnect>

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>

getNetworkSettings()

public UnaryCallSettings<GetNetworkRequest,Network> getNetworkSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetNetworkRequest,Network>

getRouterSettings()

public UnaryCallSettings<GetRouterRequest,Router> getRouterSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetRouterRequest,Router>

getSubnetSettings()

public UnaryCallSettings<GetSubnetRequest,Subnet> getSubnetSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetSubnetRequest,Subnet>

getZoneSettings()

public UnaryCallSettings<GetZoneRequest,Zone> getZoneSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetZoneRequest,Zone>

initializeZoneSettings()

public UnaryCallSettings<InitializeZoneRequest,InitializeZoneResponse> initializeZoneSettings()

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

Returns
TypeDescription
UnaryCallSettings<InitializeZoneRequest,InitializeZoneResponse>

listInterconnectAttachmentsSettings()

public PagedCallSettings<ListInterconnectAttachmentsRequest,ListInterconnectAttachmentsResponse,EdgeNetworkClient.ListInterconnectAttachmentsPagedResponse> listInterconnectAttachmentsSettings()

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

Returns
TypeDescription
PagedCallSettings<ListInterconnectAttachmentsRequest,ListInterconnectAttachmentsResponse,ListInterconnectAttachmentsPagedResponse>

listInterconnectsSettings()

public PagedCallSettings<ListInterconnectsRequest,ListInterconnectsResponse,EdgeNetworkClient.ListInterconnectsPagedResponse> listInterconnectsSettings()

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

Returns
TypeDescription
PagedCallSettings<ListInterconnectsRequest,ListInterconnectsResponse,ListInterconnectsPagedResponse>

listLocationsSettings()

public PagedCallSettings<ListLocationsRequest,ListLocationsResponse,EdgeNetworkClient.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>

listNetworksSettings()

public PagedCallSettings<ListNetworksRequest,ListNetworksResponse,EdgeNetworkClient.ListNetworksPagedResponse> listNetworksSettings()

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

Returns
TypeDescription
PagedCallSettings<ListNetworksRequest,ListNetworksResponse,ListNetworksPagedResponse>

listRoutersSettings()

public PagedCallSettings<ListRoutersRequest,ListRoutersResponse,EdgeNetworkClient.ListRoutersPagedResponse> listRoutersSettings()

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

Returns
TypeDescription
PagedCallSettings<ListRoutersRequest,ListRoutersResponse,ListRoutersPagedResponse>

listSubnetsSettings()

public PagedCallSettings<ListSubnetsRequest,ListSubnetsResponse,EdgeNetworkClient.ListSubnetsPagedResponse> listSubnetsSettings()

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

Returns
TypeDescription
PagedCallSettings<ListSubnetsRequest,ListSubnetsResponse,ListSubnetsPagedResponse>

listZonesSettings()

public PagedCallSettings<ListZonesRequest,ListZonesResponse,EdgeNetworkClient.ListZonesPagedResponse> listZonesSettings()

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

Returns
TypeDescription
PagedCallSettings<ListZonesRequest,ListZonesResponse,ListZonesPagedResponse>

toBuilder()

public EdgeNetworkSettings.Builder toBuilder()

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

Returns
TypeDescription
EdgeNetworkSettings.Builder
Overrides

updateRouterOperationSettings()

public OperationCallSettings<UpdateRouterRequest,Router,OperationMetadata> updateRouterOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<UpdateRouterRequest,Router,OperationMetadata>

updateRouterSettings()

public UnaryCallSettings<UpdateRouterRequest,Operation> updateRouterSettings()

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

Returns
TypeDescription
UnaryCallSettings<UpdateRouterRequest,Operation>

updateSubnetOperationSettings()

public OperationCallSettings<UpdateSubnetRequest,Subnet,OperationMetadata> updateSubnetOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<UpdateSubnetRequest,Subnet,OperationMetadata>

updateSubnetSettings()

public UnaryCallSettings<UpdateSubnetRequest,Operation> updateSubnetSettings()

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

Returns
TypeDescription
UnaryCallSettings<UpdateSubnetRequest,Operation>