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();
Static Methods
create(ConfigStubSettings stub)
public static final ConfigSettings create(ConfigStubSettings stub)
Parameter | |
---|---|
Name | Description |
stub | ConfigStubSettings |
Returns | |
---|---|
Type | Description |
ConfigSettings |
Exceptions | |
---|---|
Type | Description |
IOException |
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 |
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
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 |
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
Returns | |
---|---|
Type | Description |
List<String> |
newBuilder()
public static ConfigSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
Returns | |
---|---|
Type | Description |
ConfigSettings.Builder |
newBuilder(ClientContext clientContext)
public static ConfigSettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
Parameter | |
---|---|
Name | Description |
clientContext | ClientContext |
Returns | |
---|---|
Type | Description |
ConfigSettings.Builder |
newHttpJsonBuilder()
public static ConfigSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
Returns | |
---|---|
Type | Description |
ConfigSettings.Builder |
Constructors
ConfigSettings(ConfigSettings.Builder settingsBuilder)
protected ConfigSettings(ConfigSettings.Builder settingsBuilder)
Parameter | |
---|---|
Name | Description |
settingsBuilder | ConfigSettings.Builder |
Methods
createDeploymentOperationSettings()
public OperationCallSettings<CreateDeploymentRequest,Deployment,OperationMetadata> createDeploymentOperationSettings()
Returns the object with the settings used for calls to createDeployment.
Returns | |
---|---|
Type | Description |
OperationCallSettings<CreateDeploymentRequest,Deployment,OperationMetadata> |
createDeploymentSettings()
public UnaryCallSettings<CreateDeploymentRequest,Operation> createDeploymentSettings()
Returns the object with the settings used for calls to createDeployment.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<CreateDeploymentRequest,Operation> |
createPreviewOperationSettings()
public OperationCallSettings<CreatePreviewRequest,Preview,OperationMetadata> createPreviewOperationSettings()
Returns the object with the settings used for calls to createPreview.
Returns | |
---|---|
Type | Description |
OperationCallSettings<CreatePreviewRequest,Preview,OperationMetadata> |
createPreviewSettings()
public UnaryCallSettings<CreatePreviewRequest,Operation> createPreviewSettings()
Returns the object with the settings used for calls to createPreview.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<CreatePreviewRequest,Operation> |
deleteDeploymentOperationSettings()
public OperationCallSettings<DeleteDeploymentRequest,Deployment,OperationMetadata> deleteDeploymentOperationSettings()
Returns the object with the settings used for calls to deleteDeployment.
Returns | |
---|---|
Type | Description |
OperationCallSettings<DeleteDeploymentRequest,Deployment,OperationMetadata> |
deleteDeploymentSettings()
public UnaryCallSettings<DeleteDeploymentRequest,Operation> deleteDeploymentSettings()
Returns the object with the settings used for calls to deleteDeployment.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<DeleteDeploymentRequest,Operation> |
deletePreviewOperationSettings()
public OperationCallSettings<DeletePreviewRequest,Preview,OperationMetadata> deletePreviewOperationSettings()
Returns the object with the settings used for calls to deletePreview.
Returns | |
---|---|
Type | Description |
OperationCallSettings<DeletePreviewRequest,Preview,OperationMetadata> |
deletePreviewSettings()
public UnaryCallSettings<DeletePreviewRequest,Operation> deletePreviewSettings()
Returns the object with the settings used for calls to deletePreview.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<DeletePreviewRequest,Operation> |
deleteStatefileSettings()
public UnaryCallSettings<DeleteStatefileRequest,Empty> deleteStatefileSettings()
Returns the object with the settings used for calls to deleteStatefile.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<DeleteStatefileRequest,Empty> |
exportDeploymentStatefileSettings()
public UnaryCallSettings<ExportDeploymentStatefileRequest,Statefile> exportDeploymentStatefileSettings()
Returns the object with the settings used for calls to exportDeploymentStatefile.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<ExportDeploymentStatefileRequest,Statefile> |
exportLockInfoSettings()
public UnaryCallSettings<ExportLockInfoRequest,LockInfo> exportLockInfoSettings()
Returns the object with the settings used for calls to exportLockInfo.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<ExportLockInfoRequest,LockInfo> |
exportPreviewResultSettings()
public UnaryCallSettings<ExportPreviewResultRequest,ExportPreviewResultResponse> exportPreviewResultSettings()
Returns the object with the settings used for calls to exportPreviewResult.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<ExportPreviewResultRequest,ExportPreviewResultResponse> |
exportRevisionStatefileSettings()
public UnaryCallSettings<ExportRevisionStatefileRequest,Statefile> exportRevisionStatefileSettings()
Returns the object with the settings used for calls to exportRevisionStatefile.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<ExportRevisionStatefileRequest,Statefile> |
getDeploymentSettings()
public UnaryCallSettings<GetDeploymentRequest,Deployment> getDeploymentSettings()
Returns the object with the settings used for calls to getDeployment.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<GetDeploymentRequest,Deployment> |
getIamPolicySettings()
public UnaryCallSettings<GetIamPolicyRequest,Policy> getIamPolicySettings()
Returns the object with the settings used for calls to getIamPolicy.
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
UnaryCallSettings<GetPreviewRequest,Preview> |
getResourceSettings()
public UnaryCallSettings<GetResourceRequest,Resource> getResourceSettings()
Returns the object with the settings used for calls to getResource.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<GetResourceRequest,Resource> |
getRevisionSettings()
public UnaryCallSettings<GetRevisionRequest,Revision> getRevisionSettings()
Returns the object with the settings used for calls to getRevision.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<GetRevisionRequest,Revision> |
getTerraformVersionSettings()
public UnaryCallSettings<GetTerraformVersionRequest,TerraformVersion> getTerraformVersionSettings()
Returns the object with the settings used for calls to getTerraformVersion.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<GetTerraformVersionRequest,TerraformVersion> |
importStatefileSettings()
public UnaryCallSettings<ImportStatefileRequest,Statefile> importStatefileSettings()
Returns the object with the settings used for calls to importStatefile.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<ImportStatefileRequest,Statefile> |
listDeploymentsSettings()
public PagedCallSettings<ListDeploymentsRequest,ListDeploymentsResponse,ConfigClient.ListDeploymentsPagedResponse> listDeploymentsSettings()
Returns the object with the settings used for calls to listDeployments.
Returns | |
---|---|
Type | Description |
PagedCallSettings<ListDeploymentsRequest,ListDeploymentsResponse,ListDeploymentsPagedResponse> |
listLocationsSettings()
public PagedCallSettings<ListLocationsRequest,ListLocationsResponse,ConfigClient.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> |
listPreviewsSettings()
public PagedCallSettings<ListPreviewsRequest,ListPreviewsResponse,ConfigClient.ListPreviewsPagedResponse> listPreviewsSettings()
Returns the object with the settings used for calls to listPreviews.
Returns | |
---|---|
Type | Description |
PagedCallSettings<ListPreviewsRequest,ListPreviewsResponse,ListPreviewsPagedResponse> |
listResourcesSettings()
public PagedCallSettings<ListResourcesRequest,ListResourcesResponse,ConfigClient.ListResourcesPagedResponse> listResourcesSettings()
Returns the object with the settings used for calls to listResources.
Returns | |
---|---|
Type | Description |
PagedCallSettings<ListResourcesRequest,ListResourcesResponse,ListResourcesPagedResponse> |
listRevisionsSettings()
public PagedCallSettings<ListRevisionsRequest,ListRevisionsResponse,ConfigClient.ListRevisionsPagedResponse> listRevisionsSettings()
Returns the object with the settings used for calls to listRevisions.
Returns | |
---|---|
Type | Description |
PagedCallSettings<ListRevisionsRequest,ListRevisionsResponse,ListRevisionsPagedResponse> |
listTerraformVersionsSettings()
public PagedCallSettings<ListTerraformVersionsRequest,ListTerraformVersionsResponse,ConfigClient.ListTerraformVersionsPagedResponse> listTerraformVersionsSettings()
Returns the object with the settings used for calls to listTerraformVersions.
Returns | |
---|---|
Type | Description |
PagedCallSettings<ListTerraformVersionsRequest,ListTerraformVersionsResponse,ListTerraformVersionsPagedResponse> |
lockDeploymentOperationSettings()
public OperationCallSettings<LockDeploymentRequest,Deployment,OperationMetadata> lockDeploymentOperationSettings()
Returns the object with the settings used for calls to lockDeployment.
Returns | |
---|---|
Type | Description |
OperationCallSettings<LockDeploymentRequest,Deployment,OperationMetadata> |
lockDeploymentSettings()
public UnaryCallSettings<LockDeploymentRequest,Operation> lockDeploymentSettings()
Returns the object with the settings used for calls to lockDeployment.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<LockDeploymentRequest,Operation> |
setIamPolicySettings()
public UnaryCallSettings<SetIamPolicyRequest,Policy> setIamPolicySettings()
Returns the object with the settings used for calls to setIamPolicy.
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ConfigSettings.Builder |
unlockDeploymentOperationSettings()
public OperationCallSettings<UnlockDeploymentRequest,Deployment,OperationMetadata> unlockDeploymentOperationSettings()
Returns the object with the settings used for calls to unlockDeployment.
Returns | |
---|---|
Type | Description |
OperationCallSettings<UnlockDeploymentRequest,Deployment,OperationMetadata> |
unlockDeploymentSettings()
public UnaryCallSettings<UnlockDeploymentRequest,Operation> unlockDeploymentSettings()
Returns the object with the settings used for calls to unlockDeployment.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<UnlockDeploymentRequest,Operation> |
updateDeploymentOperationSettings()
public OperationCallSettings<UpdateDeploymentRequest,Deployment,OperationMetadata> updateDeploymentOperationSettings()
Returns the object with the settings used for calls to updateDeployment.
Returns | |
---|---|
Type | Description |
OperationCallSettings<UpdateDeploymentRequest,Deployment,OperationMetadata> |
updateDeploymentSettings()
public UnaryCallSettings<UpdateDeploymentRequest,Operation> updateDeploymentSettings()
Returns the object with the settings used for calls to updateDeployment.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<UpdateDeploymentRequest,Operation> |