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 for illustrative purposes only.
// It may require modifications to work in your environment.
CloudDeployStubSettings.Builder cloudDeploySettingsBuilder =
CloudDeployStubSettings.newBuilder();
cloudDeploySettingsBuilder
.getDeliveryPipelineSettings()
.setRetrySettings(
cloudDeploySettingsBuilder
.getDeliveryPipelineSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
CloudDeployStubSettings cloudDeploySettings = cloudDeploySettingsBuilder.build();
Static Methods
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
Returns
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
Returns
public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
Returns
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
Returns
public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
Returns
defaultHttpJsonTransportProviderBuilder()
public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
Returns
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider()
Returns
getDefaultEndpoint()
public static String getDefaultEndpoint()
Returns the default service endpoint.
Returns
getDefaultMtlsEndpoint()
public static String getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
Returns
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
Returns
newBuilder()
public static CloudDeployStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
Returns
newBuilder(ClientContext clientContext)
public static CloudDeployStubSettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
Parameter
Returns
newHttpJsonBuilder()
public static CloudDeployStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
Returns
Constructors
CloudDeployStubSettings(CloudDeployStubSettings.Builder settingsBuilder)
protected CloudDeployStubSettings(CloudDeployStubSettings.Builder settingsBuilder)
Parameter
Methods
approveRolloutSettings()
public UnaryCallSettings<ApproveRolloutRequest,ApproveRolloutResponse> approveRolloutSettings()
Returns the object with the settings used for calls to approveRollout.
Returns
createDeliveryPipelineOperationSettings()
public OperationCallSettings<CreateDeliveryPipelineRequest,DeliveryPipeline,OperationMetadata> createDeliveryPipelineOperationSettings()
Returns the object with the settings used for calls to createDeliveryPipeline.
Returns
createDeliveryPipelineSettings()
public UnaryCallSettings<CreateDeliveryPipelineRequest,Operation> createDeliveryPipelineSettings()
Returns the object with the settings used for calls to createDeliveryPipeline.
Returns
createReleaseOperationSettings()
public OperationCallSettings<CreateReleaseRequest,Release,OperationMetadata> createReleaseOperationSettings()
Returns the object with the settings used for calls to createRelease.
Returns
createReleaseSettings()
public UnaryCallSettings<CreateReleaseRequest,Operation> createReleaseSettings()
Returns the object with the settings used for calls to createRelease.
Returns
createRolloutOperationSettings()
public OperationCallSettings<CreateRolloutRequest,Rollout,OperationMetadata> createRolloutOperationSettings()
Returns the object with the settings used for calls to createRollout.
Returns
createRolloutSettings()
public UnaryCallSettings<CreateRolloutRequest,Operation> createRolloutSettings()
Returns the object with the settings used for calls to createRollout.
Returns
createStub()
public CloudDeployStub createStub()
Returns
Exceptions
createTargetOperationSettings()
public OperationCallSettings<CreateTargetRequest,Target,OperationMetadata> createTargetOperationSettings()
Returns the object with the settings used for calls to createTarget.
Returns
createTargetSettings()
public UnaryCallSettings<CreateTargetRequest,Operation> createTargetSettings()
Returns the object with the settings used for calls to createTarget.
Returns
deleteDeliveryPipelineOperationSettings()
public OperationCallSettings<DeleteDeliveryPipelineRequest,Empty,OperationMetadata> deleteDeliveryPipelineOperationSettings()
Returns the object with the settings used for calls to deleteDeliveryPipeline.
Returns
deleteDeliveryPipelineSettings()
public UnaryCallSettings<DeleteDeliveryPipelineRequest,Operation> deleteDeliveryPipelineSettings()
Returns the object with the settings used for calls to deleteDeliveryPipeline.
Returns
deleteTargetOperationSettings()
public OperationCallSettings<DeleteTargetRequest,Empty,OperationMetadata> deleteTargetOperationSettings()
Returns the object with the settings used for calls to deleteTarget.
Returns
deleteTargetSettings()
public UnaryCallSettings<DeleteTargetRequest,Operation> deleteTargetSettings()
Returns the object with the settings used for calls to deleteTarget.
Returns
getConfigSettings()
public UnaryCallSettings<GetConfigRequest,Config> getConfigSettings()
Returns the object with the settings used for calls to getConfig.
Returns
getDeliveryPipelineSettings()
public UnaryCallSettings<GetDeliveryPipelineRequest,DeliveryPipeline> getDeliveryPipelineSettings()
Returns the object with the settings used for calls to getDeliveryPipeline.
Returns
getReleaseSettings()
public UnaryCallSettings<GetReleaseRequest,Release> getReleaseSettings()
Returns the object with the settings used for calls to getRelease.
Returns
getRolloutSettings()
public UnaryCallSettings<GetRolloutRequest,Rollout> getRolloutSettings()
Returns the object with the settings used for calls to getRollout.
Returns
getTargetSettings()
public UnaryCallSettings<GetTargetRequest,Target> getTargetSettings()
Returns the object with the settings used for calls to getTarget.
Returns
listDeliveryPipelinesSettings()
public PagedCallSettings<ListDeliveryPipelinesRequest,ListDeliveryPipelinesResponse,CloudDeployClient.ListDeliveryPipelinesPagedResponse> listDeliveryPipelinesSettings()
Returns the object with the settings used for calls to listDeliveryPipelines.
Returns
listReleasesSettings()
public PagedCallSettings<ListReleasesRequest,ListReleasesResponse,CloudDeployClient.ListReleasesPagedResponse> listReleasesSettings()
Returns the object with the settings used for calls to listReleases.
Returns
listRolloutsSettings()
public PagedCallSettings<ListRolloutsRequest,ListRolloutsResponse,CloudDeployClient.ListRolloutsPagedResponse> listRolloutsSettings()
Returns the object with the settings used for calls to listRollouts.
Returns
listTargetsSettings()
public PagedCallSettings<ListTargetsRequest,ListTargetsResponse,CloudDeployClient.ListTargetsPagedResponse> listTargetsSettings()
Returns the object with the settings used for calls to listTargets.
Returns
toBuilder()
public CloudDeployStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.
Returns
Overrides
updateDeliveryPipelineOperationSettings()
public OperationCallSettings<UpdateDeliveryPipelineRequest,DeliveryPipeline,OperationMetadata> updateDeliveryPipelineOperationSettings()
Returns the object with the settings used for calls to updateDeliveryPipeline.
Returns
updateDeliveryPipelineSettings()
public UnaryCallSettings<UpdateDeliveryPipelineRequest,Operation> updateDeliveryPipelineSettings()
Returns the object with the settings used for calls to updateDeliveryPipeline.
Returns
updateTargetOperationSettings()
public OperationCallSettings<UpdateTargetRequest,Target,OperationMetadata> updateTargetOperationSettings()
Returns the object with the settings used for calls to updateTarget.
Returns
updateTargetSettings()
public UnaryCallSettings<UpdateTargetRequest,Operation> updateTargetSettings()
Returns the object with the settings used for calls to updateTarget.
Returns