public class EdgeNetworkStubSettings extends StubSettings<EdgeNetworkStubSettings>
Settings class to configure an instance of EdgeNetworkStub .
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
EdgeNetworkStubSettings . Builder edgeNetworkSettingsBuilder =
EdgeNetworkStubSettings . newBuilder ();
edgeNetworkSettingsBuilder
. initializeZoneSettings ()
. setRetrySettings (
edgeNetworkSettingsBuilder
. initializeZoneSettings ()
. getRetrySettings ()
. toBuilder ()
. setTotalTimeout ( Duration . ofSeconds ( 30 ))
. build ());
EdgeNetworkStubSettings edgeNetworkSettings = edgeNetworkSettingsBuilder . build ();
Static Methods
public static ApiClientHeaderProvider . Builder defaultApiClientHeaderProviderBuilder ()
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider . Builder defaultCredentialsProviderBuilder ()
Returns a builder for the default credentials for this service.
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider . Builder defaultExecutorProviderBuilder ()
Returns a builder for the default ExecutorProvider for this service.
public static ApiClientHeaderProvider . Builder defaultGrpcApiClientHeaderProviderBuilder ()
Beta
The surface for customizing headers is not stable yet and may change in the future.
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider . Builder defaultGrpcTransportProviderBuilder ()
Returns a builder for the default gRPC ChannelProvider for this service.
public static ApiClientHeaderProvider . Builder defaultHttpJsonApiClientHeaderProviderBuilder ()
Beta
The surface for customizing headers is not stable yet and may change in the future.
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
defaultHttpJsonTransportProviderBuilder()
public static InstantiatingHttpJsonChannelProvider . Builder defaultHttpJsonTransportProviderBuilder ()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns a builder for the default REST ChannelProvider for this service.
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider ()
getDefaultEndpoint()
public static String getDefaultEndpoint ()
Returns the default service endpoint.
getDefaultMtlsEndpoint()
public static String getDefaultMtlsEndpoint ()
Returns the default mTLS service endpoint.
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes ()
Returns the default service scopes.
newBuilder()
public static EdgeNetworkStubSettings . Builder newBuilder ()
Returns a new gRPC builder for this class.
newBuilder(ClientContext clientContext)
public static EdgeNetworkStubSettings . Builder newBuilder ( ClientContext clientContext )
Returns a new builder for this class.
newHttpJsonBuilder()
public static EdgeNetworkStubSettings . Builder newHttpJsonBuilder ()
Returns a new REST builder for this class.
Constructors
EdgeNetworkStubSettings(EdgeNetworkStubSettings.Builder settingsBuilder)
protected EdgeNetworkStubSettings ( EdgeNetworkStubSettings . Builder settingsBuilder )
Methods
createInterconnectAttachmentOperationSettings()
public OperationCallSettings<CreateInterconnectAttachmentRequest , InterconnectAttachment , OperationMetadata > createInterconnectAttachmentOperationSettings ()
Returns the object with the settings used for calls to createInterconnectAttachment.
createInterconnectAttachmentSettings()
public UnaryCallSettings<CreateInterconnectAttachmentRequest , Operation > createInterconnectAttachmentSettings ()
Returns the object with the settings used for calls to createInterconnectAttachment.
createNetworkOperationSettings()
public OperationCallSettings<CreateNetworkRequest , Network , OperationMetadata > createNetworkOperationSettings ()
Returns the object with the settings used for calls to createNetwork.
createNetworkSettings()
public UnaryCallSettings<CreateNetworkRequest , Operation > createNetworkSettings ()
Returns the object with the settings used for calls to createNetwork.
createRouterOperationSettings()
public OperationCallSettings<CreateRouterRequest , Router , OperationMetadata > createRouterOperationSettings ()
Returns the object with the settings used for calls to createRouter.
createRouterSettings()
public UnaryCallSettings<CreateRouterRequest , Operation > createRouterSettings ()
Returns the object with the settings used for calls to createRouter.
createStub()
public EdgeNetworkStub createStub ()
createSubnetOperationSettings()
public OperationCallSettings<CreateSubnetRequest , Subnet , OperationMetadata > createSubnetOperationSettings ()
Returns the object with the settings used for calls to createSubnet.
createSubnetSettings()
public UnaryCallSettings<CreateSubnetRequest , Operation > createSubnetSettings ()
Returns the object with the settings used for calls to createSubnet.
deleteInterconnectAttachmentOperationSettings()
public OperationCallSettings<DeleteInterconnectAttachmentRequest , Empty , OperationMetadata > deleteInterconnectAttachmentOperationSettings ()
Returns the object with the settings used for calls to deleteInterconnectAttachment.
deleteInterconnectAttachmentSettings()
public UnaryCallSettings<DeleteInterconnectAttachmentRequest , Operation > deleteInterconnectAttachmentSettings ()
Returns the object with the settings used for calls to deleteInterconnectAttachment.
deleteNetworkOperationSettings()
public OperationCallSettings<DeleteNetworkRequest , Empty , OperationMetadata > deleteNetworkOperationSettings ()
Returns the object with the settings used for calls to deleteNetwork.
deleteNetworkSettings()
public UnaryCallSettings<DeleteNetworkRequest , Operation > deleteNetworkSettings ()
Returns the object with the settings used for calls to deleteNetwork.
deleteRouterOperationSettings()
public OperationCallSettings<DeleteRouterRequest , Empty , OperationMetadata > deleteRouterOperationSettings ()
Returns the object with the settings used for calls to deleteRouter.
deleteRouterSettings()
public UnaryCallSettings<DeleteRouterRequest , Operation > deleteRouterSettings ()
Returns the object with the settings used for calls to deleteRouter.
deleteSubnetOperationSettings()
public OperationCallSettings<DeleteSubnetRequest , Empty , OperationMetadata > deleteSubnetOperationSettings ()
Returns the object with the settings used for calls to deleteSubnet.
deleteSubnetSettings()
public UnaryCallSettings<DeleteSubnetRequest , Operation > deleteSubnetSettings ()
Returns the object with the settings used for calls to deleteSubnet.
diagnoseInterconnectSettings()
public UnaryCallSettings<DiagnoseInterconnectRequest , DiagnoseInterconnectResponse > diagnoseInterconnectSettings ()
Returns the object with the settings used for calls to diagnoseInterconnect.
diagnoseNetworkSettings()
public UnaryCallSettings<DiagnoseNetworkRequest , DiagnoseNetworkResponse > diagnoseNetworkSettings ()
Returns the object with the settings used for calls to diagnoseNetwork.
diagnoseRouterSettings()
public UnaryCallSettings<DiagnoseRouterRequest , DiagnoseRouterResponse > diagnoseRouterSettings ()
Returns the object with the settings used for calls to diagnoseRouter.
getEndpoint()
public String getEndpoint ()
Returns the endpoint set by the user or the the service's default endpoint.
Overrides
getInterconnectAttachmentSettings()
public UnaryCallSettings<GetInterconnectAttachmentRequest , InterconnectAttachment > getInterconnectAttachmentSettings ()
Returns the object with the settings used for calls to getInterconnectAttachment.
getInterconnectSettings()
public UnaryCallSettings<GetInterconnectRequest , Interconnect > getInterconnectSettings ()
Returns the object with the settings used for calls to getInterconnect.
getLocationSettings()
public UnaryCallSettings<GetLocationRequest , Location > getLocationSettings ()
Returns the object with the settings used for calls to getLocation.
Returns Type Description 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.
getRouterSettings()
public UnaryCallSettings<GetRouterRequest , Router > getRouterSettings ()
Returns the object with the settings used for calls to getRouter.
getServiceName()
public String getServiceName ()
Returns the default service name.
Overrides
getSubnetSettings()
public UnaryCallSettings<GetSubnetRequest , Subnet > getSubnetSettings ()
Returns the object with the settings used for calls to getSubnet.
getZoneSettings()
public UnaryCallSettings<GetZoneRequest , Zone > getZoneSettings ()
Returns the object with the settings used for calls to getZone.
initializeZoneSettings()
public UnaryCallSettings<InitializeZoneRequest , InitializeZoneResponse > initializeZoneSettings ()
Returns the object with the settings used for calls to initializeZone.
listInterconnectAttachmentsSettings()
public PagedCallSettings<ListInterconnectAttachmentsRequest , ListInterconnectAttachmentsResponse , EdgeNetworkClient . ListInterconnectAttachmentsPagedResponse > listInterconnectAttachmentsSettings ()
Returns the object with the settings used for calls to listInterconnectAttachments.
listInterconnectsSettings()
public PagedCallSettings<ListInterconnectsRequest , ListInterconnectsResponse , EdgeNetworkClient . ListInterconnectsPagedResponse > listInterconnectsSettings ()
Returns the object with the settings used for calls to listInterconnects.
listLocationsSettings()
public PagedCallSettings<ListLocationsRequest , ListLocationsResponse , EdgeNetworkClient . ListLocationsPagedResponse > listLocationsSettings ()
Returns the object with the settings used for calls to listLocations.
listNetworksSettings()
public PagedCallSettings<ListNetworksRequest , ListNetworksResponse , EdgeNetworkClient . ListNetworksPagedResponse > listNetworksSettings ()
Returns the object with the settings used for calls to listNetworks.
public PagedCallSettings<ListRoutersRequest , ListRoutersResponse , EdgeNetworkClient . ListRoutersPagedResponse > listRoutersSettings ()
Returns the object with the settings used for calls to listRouters.
listSubnetsSettings()
public PagedCallSettings<ListSubnetsRequest , ListSubnetsResponse , EdgeNetworkClient . ListSubnetsPagedResponse > listSubnetsSettings ()
Returns the object with the settings used for calls to listSubnets.
listZonesSettings()
public PagedCallSettings<ListZonesRequest , ListZonesResponse , EdgeNetworkClient . ListZonesPagedResponse > listZonesSettings ()
Returns the object with the settings used for calls to listZones.
toBuilder()
public EdgeNetworkStubSettings . Builder toBuilder ()
Returns a builder containing all the values of this settings class.
Overrides
updateRouterOperationSettings()
public OperationCallSettings<UpdateRouterRequest , Router , OperationMetadata > updateRouterOperationSettings ()
Returns the object with the settings used for calls to updateRouter.
updateRouterSettings()
public UnaryCallSettings<UpdateRouterRequest , Operation > updateRouterSettings ()
Returns the object with the settings used for calls to updateRouter.
updateSubnetOperationSettings()
public OperationCallSettings<UpdateSubnetRequest , Subnet , OperationMetadata > updateSubnetOperationSettings ()
Returns the object with the settings used for calls to updateSubnet.
updateSubnetSettings()
public UnaryCallSettings<UpdateSubnetRequest , Operation > updateSubnetSettings ()
Returns the object with the settings used for calls to updateSubnet.