Class ConfigSettings (0.18.0)

public class ConfigSettings extends ClientSettings<ConfigSettings>

Settings class to configure an instance of ConfigClient.

The default instance has everything set to sensible defaults:

  • The default service address (config.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 getDeployment 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
 ConfigSettings.Builder configSettingsBuilder = ConfigSettings.newBuilder();
 configSettingsBuilder
     .getDeploymentSettings()
     .setRetrySettings(
         configSettingsBuilder
             .getDeploymentSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 ConfigSettings configSettings = configSettingsBuilder.build();
 

Inheritance

java.lang.Object > ClientSettings > ConfigSettings

Static Methods

create(ConfigStubSettings stub)

public static final ConfigSettings create(ConfigStubSettings stub)
Parameter
NameDescription
stubConfigStubSettings
Returns
TypeDescription
ConfigSettings
Exceptions
TypeDescription
IOException

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

defaultGrpcTransportProviderBuilder()

public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()

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

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

getDefaultServiceScopes()

public static List<String> getDefaultServiceScopes()

Returns the default service scopes.

Returns
TypeDescription
List<String>

newBuilder()

public static ConfigSettings.Builder newBuilder()

Returns a new gRPC builder for this class.

Returns
TypeDescription
ConfigSettings.Builder

newBuilder(ClientContext clientContext)

public static ConfigSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
ConfigSettings.Builder

newHttpJsonBuilder()

public static ConfigSettings.Builder newHttpJsonBuilder()

Returns a new REST builder for this class.

Returns
TypeDescription
ConfigSettings.Builder

Constructors

ConfigSettings(ConfigSettings.Builder settingsBuilder)

protected ConfigSettings(ConfigSettings.Builder settingsBuilder)
Parameter
NameDescription
settingsBuilderConfigSettings.Builder

Methods

createDeploymentOperationSettings()

public OperationCallSettings<CreateDeploymentRequest,Deployment,OperationMetadata> createDeploymentOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<CreateDeploymentRequest,Deployment,OperationMetadata>

createDeploymentSettings()

public UnaryCallSettings<CreateDeploymentRequest,Operation> createDeploymentSettings()

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

Returns
TypeDescription
UnaryCallSettings<CreateDeploymentRequest,Operation>

createPreviewOperationSettings()

public OperationCallSettings<CreatePreviewRequest,Preview,OperationMetadata> createPreviewOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<CreatePreviewRequest,Preview,OperationMetadata>

createPreviewSettings()

public UnaryCallSettings<CreatePreviewRequest,Operation> createPreviewSettings()

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

Returns
TypeDescription
UnaryCallSettings<CreatePreviewRequest,Operation>

deleteDeploymentOperationSettings()

public OperationCallSettings<DeleteDeploymentRequest,Deployment,OperationMetadata> deleteDeploymentOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<DeleteDeploymentRequest,Deployment,OperationMetadata>

deleteDeploymentSettings()

public UnaryCallSettings<DeleteDeploymentRequest,Operation> deleteDeploymentSettings()

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

Returns
TypeDescription
UnaryCallSettings<DeleteDeploymentRequest,Operation>

deletePreviewOperationSettings()

public OperationCallSettings<DeletePreviewRequest,Preview,OperationMetadata> deletePreviewOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<DeletePreviewRequest,Preview,OperationMetadata>

deletePreviewSettings()

public UnaryCallSettings<DeletePreviewRequest,Operation> deletePreviewSettings()

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

Returns
TypeDescription
UnaryCallSettings<DeletePreviewRequest,Operation>

deleteStatefileSettings()

public UnaryCallSettings<DeleteStatefileRequest,Empty> deleteStatefileSettings()

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

Returns
TypeDescription
UnaryCallSettings<DeleteStatefileRequest,Empty>

exportDeploymentStatefileSettings()

public UnaryCallSettings<ExportDeploymentStatefileRequest,Statefile> exportDeploymentStatefileSettings()

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

Returns
TypeDescription
UnaryCallSettings<ExportDeploymentStatefileRequest,Statefile>

exportLockInfoSettings()

public UnaryCallSettings<ExportLockInfoRequest,LockInfo> exportLockInfoSettings()

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

Returns
TypeDescription
UnaryCallSettings<ExportLockInfoRequest,LockInfo>

exportPreviewResultSettings()

public UnaryCallSettings<ExportPreviewResultRequest,ExportPreviewResultResponse> exportPreviewResultSettings()

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

Returns
TypeDescription
UnaryCallSettings<ExportPreviewResultRequest,ExportPreviewResultResponse>

exportRevisionStatefileSettings()

public UnaryCallSettings<ExportRevisionStatefileRequest,Statefile> exportRevisionStatefileSettings()

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

Returns
TypeDescription
UnaryCallSettings<ExportRevisionStatefileRequest,Statefile>

getDeploymentSettings()

public UnaryCallSettings<GetDeploymentRequest,Deployment> getDeploymentSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetDeploymentRequest,Deployment>

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>

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>

getPreviewSettings()

public UnaryCallSettings<GetPreviewRequest,Preview> getPreviewSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetPreviewRequest,Preview>

getResourceSettings()

public UnaryCallSettings<GetResourceRequest,Resource> getResourceSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetResourceRequest,Resource>

getRevisionSettings()

public UnaryCallSettings<GetRevisionRequest,Revision> getRevisionSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetRevisionRequest,Revision>

getTerraformVersionSettings()

public UnaryCallSettings<GetTerraformVersionRequest,TerraformVersion> getTerraformVersionSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetTerraformVersionRequest,TerraformVersion>

importStatefileSettings()

public UnaryCallSettings<ImportStatefileRequest,Statefile> importStatefileSettings()

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

Returns
TypeDescription
UnaryCallSettings<ImportStatefileRequest,Statefile>

listDeploymentsSettings()

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

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

Returns
TypeDescription
PagedCallSettings<ListDeploymentsRequest,ListDeploymentsResponse,ListDeploymentsPagedResponse>

listLocationsSettings()

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

listPreviewsSettings()

public PagedCallSettings<ListPreviewsRequest,ListPreviewsResponse,ConfigClient.ListPreviewsPagedResponse> listPreviewsSettings()

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

Returns
TypeDescription
PagedCallSettings<ListPreviewsRequest,ListPreviewsResponse,ListPreviewsPagedResponse>

listResourcesSettings()

public PagedCallSettings<ListResourcesRequest,ListResourcesResponse,ConfigClient.ListResourcesPagedResponse> listResourcesSettings()

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

Returns
TypeDescription
PagedCallSettings<ListResourcesRequest,ListResourcesResponse,ListResourcesPagedResponse>

listRevisionsSettings()

public PagedCallSettings<ListRevisionsRequest,ListRevisionsResponse,ConfigClient.ListRevisionsPagedResponse> listRevisionsSettings()

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

Returns
TypeDescription
PagedCallSettings<ListRevisionsRequest,ListRevisionsResponse,ListRevisionsPagedResponse>

listTerraformVersionsSettings()

public PagedCallSettings<ListTerraformVersionsRequest,ListTerraformVersionsResponse,ConfigClient.ListTerraformVersionsPagedResponse> listTerraformVersionsSettings()

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

Returns
TypeDescription
PagedCallSettings<ListTerraformVersionsRequest,ListTerraformVersionsResponse,ListTerraformVersionsPagedResponse>

lockDeploymentOperationSettings()

public OperationCallSettings<LockDeploymentRequest,Deployment,OperationMetadata> lockDeploymentOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<LockDeploymentRequest,Deployment,OperationMetadata>

lockDeploymentSettings()

public UnaryCallSettings<LockDeploymentRequest,Operation> lockDeploymentSettings()

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

Returns
TypeDescription
UnaryCallSettings<LockDeploymentRequest,Operation>

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>

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 ConfigSettings.Builder toBuilder()

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

Returns
TypeDescription
ConfigSettings.Builder
Overrides

unlockDeploymentOperationSettings()

public OperationCallSettings<UnlockDeploymentRequest,Deployment,OperationMetadata> unlockDeploymentOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<UnlockDeploymentRequest,Deployment,OperationMetadata>

unlockDeploymentSettings()

public UnaryCallSettings<UnlockDeploymentRequest,Operation> unlockDeploymentSettings()

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

Returns
TypeDescription
UnaryCallSettings<UnlockDeploymentRequest,Operation>

updateDeploymentOperationSettings()

public OperationCallSettings<UpdateDeploymentRequest,Deployment,OperationMetadata> updateDeploymentOperationSettings()

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

Returns
TypeDescription
OperationCallSettings<UpdateDeploymentRequest,Deployment,OperationMetadata>

updateDeploymentSettings()

public UnaryCallSettings<UpdateDeploymentRequest,Operation> updateDeploymentSettings()

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

Returns
TypeDescription
UnaryCallSettings<UpdateDeploymentRequest,Operation>