Class ConfigStubSettings (0.9.0)

public class ConfigStubSettings extends StubSettings<ConfigStubSettings>

Settings class to configure an instance of ConfigStub.

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
 ConfigStubSettings.Builder configSettingsBuilder = ConfigStubSettings.newBuilder();
 configSettingsBuilder
     .getDeploymentSettings()
     .setRetrySettings(
         configSettingsBuilder
             .getDeploymentSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 ConfigStubSettings configSettings = configSettingsBuilder.build();
 

Inheritance

java.lang.Object > StubSettings > ConfigStubSettings

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 ConfigStubSettings.Builder newBuilder()

Returns a new gRPC builder for this class.

Returns
TypeDescription
ConfigStubSettings.Builder

newBuilder(ClientContext clientContext)

public static ConfigStubSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
ConfigStubSettings.Builder

newHttpJsonBuilder()

public static ConfigStubSettings.Builder newHttpJsonBuilder()

Returns a new REST builder for this class.

Returns
TypeDescription
ConfigStubSettings.Builder

Constructors

ConfigStubSettings(ConfigStubSettings.Builder settingsBuilder)

protected ConfigStubSettings(ConfigStubSettings.Builder settingsBuilder)
Parameter
NameDescription
settingsBuilderConfigStubSettings.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>

createStub()

public ConfigStub createStub()
Returns
TypeDescription
ConfigStub
Exceptions
TypeDescription
IOException

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>

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>

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>

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>

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>

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>

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

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

Returns
TypeDescription
ConfigStubSettings.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>