Beta
This library 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 .
public class SaasDeploymentsStubSettings extends StubSettings<SaasDeploymentsStubSettings>
Settings class to configure an instance of SaasDeploymentsStub .
The default instance has everything set to sensible defaults:
The default service address (saasservicemgmt.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 getSaas:
// 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
SaasDeploymentsStubSettings . Builder saasDeploymentsSettingsBuilder =
SaasDeploymentsStubSettings . newBuilder ();
saasDeploymentsSettingsBuilder
. getSaasSettings ()
. setRetrySettings (
saasDeploymentsSettingsBuilder
. getSaasSettings ()
. 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 ());
SaasDeploymentsStubSettings saasDeploymentsSettings = saasDeploymentsSettingsBuilder . build ();
Please refer to the Client Side Retry
Guide for additional support in setting
retries.
Static Methods
public static ApiClientHeaderProvider . Builder defaultApiClientHeaderProviderBuilder ()
public static GoogleCredentialsProvider . Builder defaultCredentialsProviderBuilder ()
Returns a builder for the default credentials for this service.
public static InstantiatingExecutorProvider . Builder defaultExecutorProviderBuilder ()
Returns a builder for the default ExecutorProvider for this service.
public static ApiClientHeaderProvider . Builder defaultGrpcApiClientHeaderProviderBuilder ()
public static InstantiatingGrpcChannelProvider . Builder defaultGrpcTransportProviderBuilder ()
Returns a builder for the default gRPC ChannelProvider for this service.
public static ApiClientHeaderProvider . Builder defaultHttpJsonApiClientHeaderProviderBuilder ()
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.
public static TransportChannelProvider defaultTransportChannelProvider ()
public static String getDefaultEndpoint ()
Obsolete
Use getEndpoint() instead
This feature is stable for usage in this major version, but may be deprecated in a future release.
Returns the default service endpoint.
Returns
Type
Description
String
public static String getDefaultMtlsEndpoint ()
Returns the default mTLS service endpoint.
Returns
Type
Description
String
public static List<String> getDefaultServiceScopes ()
Returns the default service scopes.
public static SaasDeploymentsStubSettings . Builder newBuilder ()
Returns a new gRPC builder for this class.
newBuilder(ClientContext clientContext)
public static SaasDeploymentsStubSettings . Builder newBuilder ( ClientContext clientContext )
Returns a new builder for this class.
public static SaasDeploymentsStubSettings . Builder newHttpJsonBuilder ()
Returns a new REST builder for this class.
Constructors
protected SaasDeploymentsStubSettings ( SaasDeploymentsStubSettings . Builder settingsBuilder )
Methods
public UnaryCallSettings<CreateReleaseRequest , Release > createReleaseSettings ()
Returns the object with the settings used for calls to createRelease.
public UnaryCallSettings<CreateSaasRequest , Saas > createSaasSettings ()
Returns the object with the settings used for calls to createSaas.
public SaasDeploymentsStub createStub ()
public UnaryCallSettings<CreateTenantRequest , Tenant > createTenantSettings ()
Returns the object with the settings used for calls to createTenant.
public UnaryCallSettings<CreateUnitKindRequest , UnitKind > createUnitKindSettings ()
Returns the object with the settings used for calls to createUnitKind.
public UnaryCallSettings<CreateUnitOperationRequest , UnitOperation > createUnitOperationSettings ()
Returns the object with the settings used for calls to createUnit.
public UnaryCallSettings<CreateUnitRequest , Unit > createUnitSettings ()
Returns the object with the settings used for calls to createUnit.
public UnaryCallSettings<DeleteReleaseRequest , Empty > deleteReleaseSettings ()
Returns the object with the settings used for calls to deleteRelease.
public UnaryCallSettings<DeleteSaasRequest , Empty > deleteSaasSettings ()
Returns the object with the settings used for calls to deleteSaas.
public UnaryCallSettings<DeleteTenantRequest , Empty > deleteTenantSettings ()
Returns the object with the settings used for calls to deleteTenant.
public UnaryCallSettings<DeleteUnitKindRequest , Empty > deleteUnitKindSettings ()
Returns the object with the settings used for calls to deleteUnitKind.
public UnaryCallSettings<DeleteUnitOperationRequest , Empty > deleteUnitOperationSettings ()
Returns the object with the settings used for calls to deleteUnit.
public UnaryCallSettings<DeleteUnitRequest , Empty > deleteUnitSettings ()
Returns the object with the settings used for calls to deleteUnit.
protected LibraryMetadata getLibraryMetadata ()
Overrides
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 >
public UnaryCallSettings<GetReleaseRequest , Release > getReleaseSettings ()
Returns the object with the settings used for calls to getRelease.
public UnaryCallSettings<GetSaasRequest , Saas > getSaasSettings ()
Returns the object with the settings used for calls to getSaas.
public String getServiceName ()
Returns the default service name.
Returns
Type
Description
String
Overrides
public UnaryCallSettings<GetTenantRequest , Tenant > getTenantSettings ()
Returns the object with the settings used for calls to getTenant.
public UnaryCallSettings<GetUnitKindRequest , UnitKind > getUnitKindSettings ()
Returns the object with the settings used for calls to getUnitKind.
public UnaryCallSettings<GetUnitOperationRequest , UnitOperation > getUnitOperationSettings ()
Returns the object with the settings used for calls to getUnit.
public UnaryCallSettings<GetUnitRequest , Unit > getUnitSettings ()
Returns the object with the settings used for calls to getUnit.
public PagedCallSettings<ListLocationsRequest , ListLocationsResponse , SaasDeploymentsClient . ListLocationsPagedResponse > listLocationsSettings ()
Returns the object with the settings used for calls to listLocations.
public PagedCallSettings<ListReleasesRequest , ListReleasesResponse , SaasDeploymentsClient . ListReleasesPagedResponse > listReleasesSettings ()
Returns the object with the settings used for calls to listReleases.
public PagedCallSettings<ListSaasRequest , ListSaasResponse , SaasDeploymentsClient . ListSaasPagedResponse > listSaasSettings ()
Returns the object with the settings used for calls to listSaas.
public PagedCallSettings<ListTenantsRequest , ListTenantsResponse , SaasDeploymentsClient . ListTenantsPagedResponse > listTenantsSettings ()
Returns the object with the settings used for calls to listTenants.
public PagedCallSettings<ListUnitKindsRequest , ListUnitKindsResponse , SaasDeploymentsClient . ListUnitKindsPagedResponse > listUnitKindsSettings ()
Returns the object with the settings used for calls to listUnitKinds.
public PagedCallSettings<ListUnitOperationsRequest , ListUnitOperationsResponse , SaasDeploymentsClient . ListUnitOperationsPagedResponse > listUnitOperationsSettings ()
Returns the object with the settings used for calls to listUnitOperations.
public PagedCallSettings<ListUnitsRequest , ListUnitsResponse , SaasDeploymentsClient . ListUnitsPagedResponse > listUnitsSettings ()
Returns the object with the settings used for calls to listUnits.
public SaasDeploymentsStubSettings . Builder toBuilder ()
Returns a builder containing all the values of this settings class.
Overrides
public UnaryCallSettings<UpdateReleaseRequest , Release > updateReleaseSettings ()
Returns the object with the settings used for calls to updateRelease.
public UnaryCallSettings<UpdateSaasRequest , Saas > updateSaasSettings ()
Returns the object with the settings used for calls to updateSaas.
public UnaryCallSettings<UpdateTenantRequest , Tenant > updateTenantSettings ()
Returns the object with the settings used for calls to updateTenant.
public UnaryCallSettings<UpdateUnitKindRequest , UnitKind > updateUnitKindSettings ()
Returns the object with the settings used for calls to updateUnitKind.
public UnaryCallSettings<UpdateUnitOperationRequest , UnitOperation > updateUnitOperationSettings ()
Returns the object with the settings used for calls to updateUnit.
public UnaryCallSettings<UpdateUnitRequest , Unit > updateUnitSettings ()
Returns the object with the settings used for calls to updateUnit.