Class CloudDeployStubSettings (1.39.0)

public class CloudDeployStubSettings extends StubSettings<CloudDeployStubSettings>

Settings class to configure an instance of CloudDeployStub.

The default instance has everything set to sensible defaults:

  • The default service address (clouddeploy.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 getDeliveryPipeline 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
 CloudDeployStubSettings.Builder cloudDeploySettingsBuilder =
     CloudDeployStubSettings.newBuilder();
 cloudDeploySettingsBuilder
     .getDeliveryPipelineSettings()
     .setRetrySettings(
         cloudDeploySettingsBuilder
             .getDeliveryPipelineSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 CloudDeployStubSettings cloudDeploySettings = cloudDeploySettingsBuilder.build();
 

Inheritance

java.lang.Object > StubSettings > CloudDeployStubSettings

Static Methods

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

defaultGrpcApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
Returns
TypeDescription
Builder

defaultGrpcTransportProviderBuilder()

public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()

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

Returns
TypeDescription
Builder

defaultHttpJsonApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
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

getDefaultMtlsEndpoint()

public static String getDefaultMtlsEndpoint()

Returns the default mTLS service endpoint.

Returns
TypeDescription
String

getDefaultServiceScopes()

public static List<String> getDefaultServiceScopes()

Returns the default service scopes.

Returns
TypeDescription
List<String>

newBuilder()

public static CloudDeployStubSettings.Builder newBuilder()

Returns a new gRPC builder for this class.

Returns
TypeDescription
CloudDeployStubSettings.Builder

newBuilder(ClientContext clientContext)

public static CloudDeployStubSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
CloudDeployStubSettings.Builder

newHttpJsonBuilder()

public static CloudDeployStubSettings.Builder newHttpJsonBuilder()

Returns a new REST builder for this class.

Returns
TypeDescription
CloudDeployStubSettings.Builder

Constructors

CloudDeployStubSettings(CloudDeployStubSettings.Builder settingsBuilder)

protected CloudDeployStubSettings(CloudDeployStubSettings.Builder settingsBuilder)
Parameter
NameDescription
settingsBuilderCloudDeployStubSettings.Builder

Methods

abandonReleaseSettings()

public UnaryCallSettings<AbandonReleaseRequest,AbandonReleaseResponse> abandonReleaseSettings()

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

Returns
TypeDescription
UnaryCallSettings<AbandonReleaseRequest,AbandonReleaseResponse>

advanceRolloutSettings()

public UnaryCallSettings<AdvanceRolloutRequest,AdvanceRolloutResponse> advanceRolloutSettings()

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

Returns
TypeDescription
UnaryCallSettings<AdvanceRolloutRequest,AdvanceRolloutResponse>

approveRolloutSettings()

public UnaryCallSettings<ApproveRolloutRequest,ApproveRolloutResponse> approveRolloutSettings()

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

Returns
TypeDescription
UnaryCallSettings<ApproveRolloutRequest,ApproveRolloutResponse>

cancelAutomationRunSettings()

public UnaryCallSettings<CancelAutomationRunRequest,CancelAutomationRunResponse> cancelAutomationRunSettings()

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

Returns
TypeDescription
UnaryCallSettings<CancelAutomationRunRequest,CancelAutomationRunResponse>

cancelRolloutSettings()

public UnaryCallSettings<CancelRolloutRequest,CancelRolloutResponse> cancelRolloutSettings()

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

Returns
TypeDescription
UnaryCallSettings<CancelRolloutRequest,CancelRolloutResponse>

createAutomationOperationSettings()

public OperationCallSettings<CreateAutomationRequest,Automation,OperationMetadata> createAutomationOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<CreateAutomationRequest,Automation,OperationMetadata>

createAutomationSettings()

public UnaryCallSettings<CreateAutomationRequest,Operation> createAutomationSettings()

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

Returns
TypeDescription
UnaryCallSettings<CreateAutomationRequest,Operation>

createCustomTargetTypeOperationSettings()

public OperationCallSettings<CreateCustomTargetTypeRequest,CustomTargetType,OperationMetadata> createCustomTargetTypeOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<CreateCustomTargetTypeRequest,CustomTargetType,OperationMetadata>

createCustomTargetTypeSettings()

public UnaryCallSettings<CreateCustomTargetTypeRequest,Operation> createCustomTargetTypeSettings()

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

Returns
TypeDescription
UnaryCallSettings<CreateCustomTargetTypeRequest,Operation>

createDeliveryPipelineOperationSettings()

public OperationCallSettings<CreateDeliveryPipelineRequest,DeliveryPipeline,OperationMetadata> createDeliveryPipelineOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<CreateDeliveryPipelineRequest,DeliveryPipeline,OperationMetadata>

createDeliveryPipelineSettings()

public UnaryCallSettings<CreateDeliveryPipelineRequest,Operation> createDeliveryPipelineSettings()

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

Returns
TypeDescription
UnaryCallSettings<CreateDeliveryPipelineRequest,Operation>

createReleaseOperationSettings()

public OperationCallSettings<CreateReleaseRequest,Release,OperationMetadata> createReleaseOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<CreateReleaseRequest,Release,OperationMetadata>

createReleaseSettings()

public UnaryCallSettings<CreateReleaseRequest,Operation> createReleaseSettings()

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

Returns
TypeDescription
UnaryCallSettings<CreateReleaseRequest,Operation>

createRolloutOperationSettings()

public OperationCallSettings<CreateRolloutRequest,Rollout,OperationMetadata> createRolloutOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<CreateRolloutRequest,Rollout,OperationMetadata>

createRolloutSettings()

public UnaryCallSettings<CreateRolloutRequest,Operation> createRolloutSettings()

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

Returns
TypeDescription
UnaryCallSettings<CreateRolloutRequest,Operation>

createStub()

public CloudDeployStub createStub()
Returns
TypeDescription
CloudDeployStub
Exceptions
TypeDescription
IOException

createTargetOperationSettings()

public OperationCallSettings<CreateTargetRequest,Target,OperationMetadata> createTargetOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<CreateTargetRequest,Target,OperationMetadata>

createTargetSettings()

public UnaryCallSettings<CreateTargetRequest,Operation> createTargetSettings()

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

Returns
TypeDescription
UnaryCallSettings<CreateTargetRequest,Operation>

deleteAutomationOperationSettings()

public OperationCallSettings<DeleteAutomationRequest,Empty,OperationMetadata> deleteAutomationOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<DeleteAutomationRequest,Empty,OperationMetadata>

deleteAutomationSettings()

public UnaryCallSettings<DeleteAutomationRequest,Operation> deleteAutomationSettings()

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

Returns
TypeDescription
UnaryCallSettings<DeleteAutomationRequest,Operation>

deleteCustomTargetTypeOperationSettings()

public OperationCallSettings<DeleteCustomTargetTypeRequest,Empty,OperationMetadata> deleteCustomTargetTypeOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<DeleteCustomTargetTypeRequest,Empty,OperationMetadata>

deleteCustomTargetTypeSettings()

public UnaryCallSettings<DeleteCustomTargetTypeRequest,Operation> deleteCustomTargetTypeSettings()

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

Returns
TypeDescription
UnaryCallSettings<DeleteCustomTargetTypeRequest,Operation>

deleteDeliveryPipelineOperationSettings()

public OperationCallSettings<DeleteDeliveryPipelineRequest,Empty,OperationMetadata> deleteDeliveryPipelineOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<DeleteDeliveryPipelineRequest,Empty,OperationMetadata>

deleteDeliveryPipelineSettings()

public UnaryCallSettings<DeleteDeliveryPipelineRequest,Operation> deleteDeliveryPipelineSettings()

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

Returns
TypeDescription
UnaryCallSettings<DeleteDeliveryPipelineRequest,Operation>

deleteTargetOperationSettings()

public OperationCallSettings<DeleteTargetRequest,Empty,OperationMetadata> deleteTargetOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<DeleteTargetRequest,Empty,OperationMetadata>

deleteTargetSettings()

public UnaryCallSettings<DeleteTargetRequest,Operation> deleteTargetSettings()

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

Returns
TypeDescription
UnaryCallSettings<DeleteTargetRequest,Operation>

getAutomationRunSettings()

public UnaryCallSettings<GetAutomationRunRequest,AutomationRun> getAutomationRunSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetAutomationRunRequest,AutomationRun>

getAutomationSettings()

public UnaryCallSettings<GetAutomationRequest,Automation> getAutomationSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetAutomationRequest,Automation>

getConfigSettings()

public UnaryCallSettings<GetConfigRequest,Config> getConfigSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetConfigRequest,Config>

getCustomTargetTypeSettings()

public UnaryCallSettings<GetCustomTargetTypeRequest,CustomTargetType> getCustomTargetTypeSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetCustomTargetTypeRequest,CustomTargetType>

getDeliveryPipelineSettings()

public UnaryCallSettings<GetDeliveryPipelineRequest,DeliveryPipeline> getDeliveryPipelineSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetDeliveryPipelineRequest,DeliveryPipeline>

getEndpoint()

public String getEndpoint()

Returns the endpoint set by the user or the the service's default endpoint.

Returns
TypeDescription
String
Overrides

getIamPolicySettings()

public UnaryCallSettings<GetIamPolicyRequest,Policy> getIamPolicySettings()

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

Returns
TypeDescription
UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>

getJobRunSettings()

public UnaryCallSettings<GetJobRunRequest,JobRun> getJobRunSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetJobRunRequest,JobRun>

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>

getReleaseSettings()

public UnaryCallSettings<GetReleaseRequest,Release> getReleaseSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetReleaseRequest,Release>

getRolloutSettings()

public UnaryCallSettings<GetRolloutRequest,Rollout> getRolloutSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetRolloutRequest,Rollout>

getServiceName()

public String getServiceName()

Returns the default service name.

Returns
TypeDescription
String
Overrides

getTargetSettings()

public UnaryCallSettings<GetTargetRequest,Target> getTargetSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetTargetRequest,Target>

ignoreJobSettings()

public UnaryCallSettings<IgnoreJobRequest,IgnoreJobResponse> ignoreJobSettings()

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

Returns
TypeDescription
UnaryCallSettings<IgnoreJobRequest,IgnoreJobResponse>

listAutomationRunsSettings()

public PagedCallSettings<ListAutomationRunsRequest,ListAutomationRunsResponse,CloudDeployClient.ListAutomationRunsPagedResponse> listAutomationRunsSettings()

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

Returns
TypeDescription
PagedCallSettings<ListAutomationRunsRequest,ListAutomationRunsResponse,ListAutomationRunsPagedResponse>

listAutomationsSettings()

public PagedCallSettings<ListAutomationsRequest,ListAutomationsResponse,CloudDeployClient.ListAutomationsPagedResponse> listAutomationsSettings()

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

Returns
TypeDescription
PagedCallSettings<ListAutomationsRequest,ListAutomationsResponse,ListAutomationsPagedResponse>

listCustomTargetTypesSettings()

public PagedCallSettings<ListCustomTargetTypesRequest,ListCustomTargetTypesResponse,CloudDeployClient.ListCustomTargetTypesPagedResponse> listCustomTargetTypesSettings()

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

Returns
TypeDescription
PagedCallSettings<ListCustomTargetTypesRequest,ListCustomTargetTypesResponse,ListCustomTargetTypesPagedResponse>

listDeliveryPipelinesSettings()

public PagedCallSettings<ListDeliveryPipelinesRequest,ListDeliveryPipelinesResponse,CloudDeployClient.ListDeliveryPipelinesPagedResponse> listDeliveryPipelinesSettings()

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

Returns
TypeDescription
PagedCallSettings<ListDeliveryPipelinesRequest,ListDeliveryPipelinesResponse,ListDeliveryPipelinesPagedResponse>

listJobRunsSettings()

public PagedCallSettings<ListJobRunsRequest,ListJobRunsResponse,CloudDeployClient.ListJobRunsPagedResponse> listJobRunsSettings()

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

Returns
TypeDescription
PagedCallSettings<ListJobRunsRequest,ListJobRunsResponse,ListJobRunsPagedResponse>

listLocationsSettings()

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

listReleasesSettings()

public PagedCallSettings<ListReleasesRequest,ListReleasesResponse,CloudDeployClient.ListReleasesPagedResponse> listReleasesSettings()

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

Returns
TypeDescription
PagedCallSettings<ListReleasesRequest,ListReleasesResponse,ListReleasesPagedResponse>

listRolloutsSettings()

public PagedCallSettings<ListRolloutsRequest,ListRolloutsResponse,CloudDeployClient.ListRolloutsPagedResponse> listRolloutsSettings()

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

Returns
TypeDescription
PagedCallSettings<ListRolloutsRequest,ListRolloutsResponse,ListRolloutsPagedResponse>

listTargetsSettings()

public PagedCallSettings<ListTargetsRequest,ListTargetsResponse,CloudDeployClient.ListTargetsPagedResponse> listTargetsSettings()

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

Returns
TypeDescription
PagedCallSettings<ListTargetsRequest,ListTargetsResponse,ListTargetsPagedResponse>

retryJobSettings()

public UnaryCallSettings<RetryJobRequest,RetryJobResponse> retryJobSettings()

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

Returns
TypeDescription
UnaryCallSettings<RetryJobRequest,RetryJobResponse>

rollbackTargetSettings()

public UnaryCallSettings<RollbackTargetRequest,RollbackTargetResponse> rollbackTargetSettings()

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

Returns
TypeDescription
UnaryCallSettings<RollbackTargetRequest,RollbackTargetResponse>

setIamPolicySettings()

public UnaryCallSettings<SetIamPolicyRequest,Policy> setIamPolicySettings()

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

Returns
TypeDescription
UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>

terminateJobRunSettings()

public UnaryCallSettings<TerminateJobRunRequest,TerminateJobRunResponse> terminateJobRunSettings()

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

Returns
TypeDescription
UnaryCallSettings<TerminateJobRunRequest,TerminateJobRunResponse>

testIamPermissionsSettings()

public UnaryCallSettings<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsSettings()

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

Returns
TypeDescription
UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>

toBuilder()

public CloudDeployStubSettings.Builder toBuilder()

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

Returns
TypeDescription
CloudDeployStubSettings.Builder
Overrides

updateAutomationOperationSettings()

public OperationCallSettings<UpdateAutomationRequest,Automation,OperationMetadata> updateAutomationOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<UpdateAutomationRequest,Automation,OperationMetadata>

updateAutomationSettings()

public UnaryCallSettings<UpdateAutomationRequest,Operation> updateAutomationSettings()

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

Returns
TypeDescription
UnaryCallSettings<UpdateAutomationRequest,Operation>

updateCustomTargetTypeOperationSettings()

public OperationCallSettings<UpdateCustomTargetTypeRequest,CustomTargetType,OperationMetadata> updateCustomTargetTypeOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<UpdateCustomTargetTypeRequest,CustomTargetType,OperationMetadata>

updateCustomTargetTypeSettings()

public UnaryCallSettings<UpdateCustomTargetTypeRequest,Operation> updateCustomTargetTypeSettings()

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

Returns
TypeDescription
UnaryCallSettings<UpdateCustomTargetTypeRequest,Operation>

updateDeliveryPipelineOperationSettings()

public OperationCallSettings<UpdateDeliveryPipelineRequest,DeliveryPipeline,OperationMetadata> updateDeliveryPipelineOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<UpdateDeliveryPipelineRequest,DeliveryPipeline,OperationMetadata>

updateDeliveryPipelineSettings()

public UnaryCallSettings<UpdateDeliveryPipelineRequest,Operation> updateDeliveryPipelineSettings()

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

Returns
TypeDescription
UnaryCallSettings<UpdateDeliveryPipelineRequest,Operation>

updateTargetOperationSettings()

public OperationCallSettings<UpdateTargetRequest,Target,OperationMetadata> updateTargetOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<UpdateTargetRequest,Target,OperationMetadata>

updateTargetSettings()

public UnaryCallSettings<UpdateTargetRequest,Operation> updateTargetSettings()

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

Returns
TypeDescription
UnaryCallSettings<UpdateTargetRequest,Operation>