Class TelcoAutomationStubSettings (0.21.0)

public class TelcoAutomationStubSettings extends StubSettings<TelcoAutomationStubSettings>

Settings class to configure an instance of TelcoAutomationStub.

The default instance has everything set to sensible defaults:

  • The default service address (telcoautomation.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 RetrySettings of getOrchestrationCluster:


 // 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
 TelcoAutomationStubSettings.Builder telcoAutomationSettingsBuilder =
     TelcoAutomationStubSettings.newBuilder();
 telcoAutomationSettingsBuilder
     .getOrchestrationClusterSettings()
     .setRetrySettings(
         telcoAutomationSettingsBuilder
             .getOrchestrationClusterSettings()
             .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());
 TelcoAutomationStubSettings telcoAutomationSettings = telcoAutomationSettingsBuilder.build();
 

Please refer to the Client Side Retry Guide 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 createOrchestrationCluster:


 // 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
 TelcoAutomationStubSettings.Builder telcoAutomationSettingsBuilder =
     TelcoAutomationStubSettings.newBuilder();
 TimedRetryAlgorithm timedRetryAlgorithm =
     OperationalTimedPollAlgorithm.create(
         RetrySettings.newBuilder()
             .setInitialRetryDelayDuration(Duration.ofMillis(500))
             .setRetryDelayMultiplier(1.5)
             .setMaxRetryDelay(Duration.ofMillis(5000))
             .setTotalTimeoutDuration(Duration.ofHours(24))
             .build());
 telcoAutomationSettingsBuilder
     .createClusterOperationSettings()
     .setPollingAlgorithm(timedRetryAlgorithm)
     .build();
 

Inheritance

java.lang.Object > StubSettings > TelcoAutomationStubSettings

Static Methods

defaultApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns
Type Description
Builder

defaultCredentialsProviderBuilder()

public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()

Returns a builder for the default credentials for this service.

Returns
Type Description
Builder

defaultExecutorProviderBuilder()

public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()

Returns a builder for the default ExecutorProvider for this service.

Returns
Type Description
Builder

defaultGrpcApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
Returns
Type Description
Builder

defaultGrpcTransportProviderBuilder()

public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()

Returns a builder for the default gRPC ChannelProvider for this service.

Returns
Type Description
Builder

defaultHttpJsonApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
Returns
Type Description
Builder

defaultHttpJsonTransportProviderBuilder()

public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()

Returns a builder for the default REST ChannelProvider for this service.

Returns
Type Description
Builder

defaultTransportChannelProvider()

public static TransportChannelProvider defaultTransportChannelProvider()
Returns
Type Description
TransportChannelProvider

getDefaultEndpoint()

public static String getDefaultEndpoint()

Returns the default service endpoint.

Returns
Type Description
String

getDefaultMtlsEndpoint()

public static String getDefaultMtlsEndpoint()

Returns the default mTLS service endpoint.

Returns
Type Description
String

getDefaultServiceScopes()

public static List<String> getDefaultServiceScopes()

Returns the default service scopes.

Returns
Type Description
List<String>

newBuilder()

public static TelcoAutomationStubSettings.Builder newBuilder()

Returns a new gRPC builder for this class.

Returns
Type Description
TelcoAutomationStubSettings.Builder

newBuilder(ClientContext clientContext)

public static TelcoAutomationStubSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
Name Description
clientContext ClientContext
Returns
Type Description
TelcoAutomationStubSettings.Builder

newHttpJsonBuilder()

public static TelcoAutomationStubSettings.Builder newHttpJsonBuilder()

Returns a new REST builder for this class.

Returns
Type Description
TelcoAutomationStubSettings.Builder

Constructors

TelcoAutomationStubSettings(TelcoAutomationStubSettings.Builder settingsBuilder)

protected TelcoAutomationStubSettings(TelcoAutomationStubSettings.Builder settingsBuilder)
Parameter
Name Description
settingsBuilder TelcoAutomationStubSettings.Builder

Methods

applyDeploymentSettings()

public UnaryCallSettings<ApplyDeploymentRequest,Deployment> applyDeploymentSettings()

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

Returns
Type Description
UnaryCallSettings<ApplyDeploymentRequest,Deployment>

applyHydratedDeploymentSettings()

public UnaryCallSettings<ApplyHydratedDeploymentRequest,HydratedDeployment> applyHydratedDeploymentSettings()

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

Returns
Type Description
UnaryCallSettings<ApplyHydratedDeploymentRequest,HydratedDeployment>

approveBlueprintSettings()

public UnaryCallSettings<ApproveBlueprintRequest,Blueprint> approveBlueprintSettings()

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

Returns
Type Description
UnaryCallSettings<ApproveBlueprintRequest,Blueprint>

computeDeploymentStatusSettings()

public UnaryCallSettings<ComputeDeploymentStatusRequest,ComputeDeploymentStatusResponse> computeDeploymentStatusSettings()

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

Returns
Type Description
UnaryCallSettings<ComputeDeploymentStatusRequest,ComputeDeploymentStatusResponse>

createBlueprintSettings()

public UnaryCallSettings<CreateBlueprintRequest,Blueprint> createBlueprintSettings()

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

Returns
Type Description
UnaryCallSettings<CreateBlueprintRequest,Blueprint>

createDeploymentSettings()

public UnaryCallSettings<CreateDeploymentRequest,Deployment> createDeploymentSettings()

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

Returns
Type Description
UnaryCallSettings<CreateDeploymentRequest,Deployment>

createEdgeSlmOperationSettings()

public OperationCallSettings<CreateEdgeSlmRequest,EdgeSlm,OperationMetadata> createEdgeSlmOperationSettings()

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

Returns
Type Description
OperationCallSettings<CreateEdgeSlmRequest,EdgeSlm,OperationMetadata>

createEdgeSlmSettings()

public UnaryCallSettings<CreateEdgeSlmRequest,Operation> createEdgeSlmSettings()

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

Returns
Type Description
UnaryCallSettings<CreateEdgeSlmRequest,Operation>

createOrchestrationClusterOperationSettings()

public OperationCallSettings<CreateOrchestrationClusterRequest,OrchestrationCluster,OperationMetadata> createOrchestrationClusterOperationSettings()

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

Returns
Type Description
OperationCallSettings<CreateOrchestrationClusterRequest,OrchestrationCluster,OperationMetadata>

createOrchestrationClusterSettings()

public UnaryCallSettings<CreateOrchestrationClusterRequest,Operation> createOrchestrationClusterSettings()

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

Returns
Type Description
UnaryCallSettings<CreateOrchestrationClusterRequest,Operation>

createStub()

public TelcoAutomationStub createStub()
Returns
Type Description
TelcoAutomationStub
Exceptions
Type Description
IOException

deleteBlueprintSettings()

public UnaryCallSettings<DeleteBlueprintRequest,Empty> deleteBlueprintSettings()

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

Returns
Type Description
UnaryCallSettings<DeleteBlueprintRequest,Empty>

deleteEdgeSlmOperationSettings()

public OperationCallSettings<DeleteEdgeSlmRequest,Empty,OperationMetadata> deleteEdgeSlmOperationSettings()

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

Returns
Type Description
OperationCallSettings<DeleteEdgeSlmRequest,Empty,OperationMetadata>

deleteEdgeSlmSettings()

public UnaryCallSettings<DeleteEdgeSlmRequest,Operation> deleteEdgeSlmSettings()

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

Returns
Type Description
UnaryCallSettings<DeleteEdgeSlmRequest,Operation>

deleteOrchestrationClusterOperationSettings()

public OperationCallSettings<DeleteOrchestrationClusterRequest,Empty,OperationMetadata> deleteOrchestrationClusterOperationSettings()

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

Returns
Type Description
OperationCallSettings<DeleteOrchestrationClusterRequest,Empty,OperationMetadata>

deleteOrchestrationClusterSettings()

public UnaryCallSettings<DeleteOrchestrationClusterRequest,Operation> deleteOrchestrationClusterSettings()

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

Returns
Type Description
UnaryCallSettings<DeleteOrchestrationClusterRequest,Operation>

discardBlueprintChangesSettings()

public UnaryCallSettings<DiscardBlueprintChangesRequest,DiscardBlueprintChangesResponse> discardBlueprintChangesSettings()

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

Returns
Type Description
UnaryCallSettings<DiscardBlueprintChangesRequest,DiscardBlueprintChangesResponse>

discardDeploymentChangesSettings()

public UnaryCallSettings<DiscardDeploymentChangesRequest,DiscardDeploymentChangesResponse> discardDeploymentChangesSettings()

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

Returns
Type Description
UnaryCallSettings<DiscardDeploymentChangesRequest,DiscardDeploymentChangesResponse>

getBlueprintSettings()

public UnaryCallSettings<GetBlueprintRequest,Blueprint> getBlueprintSettings()

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

Returns
Type Description
UnaryCallSettings<GetBlueprintRequest,Blueprint>

getDeploymentSettings()

public UnaryCallSettings<GetDeploymentRequest,Deployment> getDeploymentSettings()

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

Returns
Type Description
UnaryCallSettings<GetDeploymentRequest,Deployment>

getEdgeSlmSettings()

public UnaryCallSettings<GetEdgeSlmRequest,EdgeSlm> getEdgeSlmSettings()

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

Returns
Type Description
UnaryCallSettings<GetEdgeSlmRequest,EdgeSlm>

getHydratedDeploymentSettings()

public UnaryCallSettings<GetHydratedDeploymentRequest,HydratedDeployment> getHydratedDeploymentSettings()

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

Returns
Type Description
UnaryCallSettings<GetHydratedDeploymentRequest,HydratedDeployment>

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>

getOrchestrationClusterSettings()

public UnaryCallSettings<GetOrchestrationClusterRequest,OrchestrationCluster> getOrchestrationClusterSettings()

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

Returns
Type Description
UnaryCallSettings<GetOrchestrationClusterRequest,OrchestrationCluster>

getPublicBlueprintSettings()

public UnaryCallSettings<GetPublicBlueprintRequest,PublicBlueprint> getPublicBlueprintSettings()

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

Returns
Type Description
UnaryCallSettings<GetPublicBlueprintRequest,PublicBlueprint>

getServiceName()

public String getServiceName()

Returns the default service name.

Returns
Type Description
String
Overrides

listBlueprintRevisionsSettings()

public PagedCallSettings<ListBlueprintRevisionsRequest,ListBlueprintRevisionsResponse,TelcoAutomationClient.ListBlueprintRevisionsPagedResponse> listBlueprintRevisionsSettings()

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

Returns
Type Description
PagedCallSettings<ListBlueprintRevisionsRequest,ListBlueprintRevisionsResponse,ListBlueprintRevisionsPagedResponse>

listBlueprintsSettings()

public PagedCallSettings<ListBlueprintsRequest,ListBlueprintsResponse,TelcoAutomationClient.ListBlueprintsPagedResponse> listBlueprintsSettings()

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

Returns
Type Description
PagedCallSettings<ListBlueprintsRequest,ListBlueprintsResponse,ListBlueprintsPagedResponse>

listDeploymentRevisionsSettings()

public PagedCallSettings<ListDeploymentRevisionsRequest,ListDeploymentRevisionsResponse,TelcoAutomationClient.ListDeploymentRevisionsPagedResponse> listDeploymentRevisionsSettings()

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

Returns
Type Description
PagedCallSettings<ListDeploymentRevisionsRequest,ListDeploymentRevisionsResponse,ListDeploymentRevisionsPagedResponse>

listDeploymentsSettings()

public PagedCallSettings<ListDeploymentsRequest,ListDeploymentsResponse,TelcoAutomationClient.ListDeploymentsPagedResponse> listDeploymentsSettings()

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

Returns
Type Description
PagedCallSettings<ListDeploymentsRequest,ListDeploymentsResponse,ListDeploymentsPagedResponse>

listEdgeSlmsSettings()

public PagedCallSettings<ListEdgeSlmsRequest,ListEdgeSlmsResponse,TelcoAutomationClient.ListEdgeSlmsPagedResponse> listEdgeSlmsSettings()

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

Returns
Type Description
PagedCallSettings<ListEdgeSlmsRequest,ListEdgeSlmsResponse,ListEdgeSlmsPagedResponse>

listHydratedDeploymentsSettings()

public PagedCallSettings<ListHydratedDeploymentsRequest,ListHydratedDeploymentsResponse,TelcoAutomationClient.ListHydratedDeploymentsPagedResponse> listHydratedDeploymentsSettings()

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

Returns
Type Description
PagedCallSettings<ListHydratedDeploymentsRequest,ListHydratedDeploymentsResponse,ListHydratedDeploymentsPagedResponse>

listLocationsSettings()

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

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

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

listOrchestrationClustersSettings()

public PagedCallSettings<ListOrchestrationClustersRequest,ListOrchestrationClustersResponse,TelcoAutomationClient.ListOrchestrationClustersPagedResponse> listOrchestrationClustersSettings()

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

Returns
Type Description
PagedCallSettings<ListOrchestrationClustersRequest,ListOrchestrationClustersResponse,ListOrchestrationClustersPagedResponse>

listPublicBlueprintsSettings()

public PagedCallSettings<ListPublicBlueprintsRequest,ListPublicBlueprintsResponse,TelcoAutomationClient.ListPublicBlueprintsPagedResponse> listPublicBlueprintsSettings()

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

Returns
Type Description
PagedCallSettings<ListPublicBlueprintsRequest,ListPublicBlueprintsResponse,ListPublicBlueprintsPagedResponse>

proposeBlueprintSettings()

public UnaryCallSettings<ProposeBlueprintRequest,Blueprint> proposeBlueprintSettings()

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

Returns
Type Description
UnaryCallSettings<ProposeBlueprintRequest,Blueprint>

rejectBlueprintSettings()

public UnaryCallSettings<RejectBlueprintRequest,Blueprint> rejectBlueprintSettings()

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

Returns
Type Description
UnaryCallSettings<RejectBlueprintRequest,Blueprint>

removeDeploymentSettings()

public UnaryCallSettings<RemoveDeploymentRequest,Empty> removeDeploymentSettings()

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

Returns
Type Description
UnaryCallSettings<RemoveDeploymentRequest,Empty>

rollbackDeploymentSettings()

public UnaryCallSettings<RollbackDeploymentRequest,Deployment> rollbackDeploymentSettings()

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

Returns
Type Description
UnaryCallSettings<RollbackDeploymentRequest,Deployment>

searchBlueprintRevisionsSettings()

public PagedCallSettings<SearchBlueprintRevisionsRequest,SearchBlueprintRevisionsResponse,TelcoAutomationClient.SearchBlueprintRevisionsPagedResponse> searchBlueprintRevisionsSettings()

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

Returns
Type Description
PagedCallSettings<SearchBlueprintRevisionsRequest,SearchBlueprintRevisionsResponse,SearchBlueprintRevisionsPagedResponse>

searchDeploymentRevisionsSettings()

public PagedCallSettings<SearchDeploymentRevisionsRequest,SearchDeploymentRevisionsResponse,TelcoAutomationClient.SearchDeploymentRevisionsPagedResponse> searchDeploymentRevisionsSettings()

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

Returns
Type Description
PagedCallSettings<SearchDeploymentRevisionsRequest,SearchDeploymentRevisionsResponse,SearchDeploymentRevisionsPagedResponse>

toBuilder()

public TelcoAutomationStubSettings.Builder toBuilder()

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

Returns
Type Description
TelcoAutomationStubSettings.Builder
Overrides

updateBlueprintSettings()

public UnaryCallSettings<UpdateBlueprintRequest,Blueprint> updateBlueprintSettings()

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

Returns
Type Description
UnaryCallSettings<UpdateBlueprintRequest,Blueprint>

updateDeploymentSettings()

public UnaryCallSettings<UpdateDeploymentRequest,Deployment> updateDeploymentSettings()

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

Returns
Type Description
UnaryCallSettings<UpdateDeploymentRequest,Deployment>

updateHydratedDeploymentSettings()

public UnaryCallSettings<UpdateHydratedDeploymentRequest,HydratedDeployment> updateHydratedDeploymentSettings()

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

Returns
Type Description
UnaryCallSettings<UpdateHydratedDeploymentRequest,HydratedDeployment>