Configuration Reference

Version:4.6.0

Gcp Common Config Properties

🔗
Table 1. Configuration Properties for GoogleCredentialsConfiguration
Property Type Description

gcp.credentials.enabled

boolean

Allows disabling Google credentials configuration. This may be useful in situations where you don’t want to authenticate despite having the Google Cloud SDK configured. Default value is true.

gcp.credentials.scopes

java.util.List

The default scopes to associate with the application to access specific APIs. See <a href="https://developers.google.com/identity/protocols/googlescopes">Google Scopes</a> for a complete list. Leave this empty if you don’t need additional API access.

gcp.credentials.location

java.lang.String

Sets the location to the service account credential key file.

gcp.credentials.encoded-key

java.lang.String

Sets the Base64 encoded service account key content..

🔗
Table 2. Configuration Properties for GoogleCloudConfiguration
Property Type Description

gcp.project-id

java.lang.String

Sets the project id to use.

🔗
Table 3. Configuration Properties for GoogleComputeMetadataConfiguration
Property Type Description

micronaut.application.gcp.metadata.enabled

boolean

Default value (true).

micronaut.application.gcp.metadata.metadata-url

java.lang.String

Default value ("http://metadata.google.internal/computeMetadata/v1/project/").

micronaut.application.gcp.metadata.project-metadata-url

java.lang.String

Default value ("http://metadata.google.internal/project/v1/project/").

micronaut.application.gcp.metadata.read-timeout

java.time.Duration

Default value (5 seconds).

micronaut.application.gcp.metadata.connect-timeout

java.time.Duration

Default value (2).

Gcp Pubsub Config Properties

🔗
Table 4. Configuration Properties for PubSubConfigurationProperties
Property Type Description

gcp.pubsub.keep-alive-interval-minutes

int

How often to ping the server to keep the channel alive. Default: 5 minutes.

gcp.pubsub.publishing-executor

java.lang.String

Name of the {@link java.util.concurrent.ScheduledExecutorService} to be used by all {@link com.google.cloud.pubsub.v1.Publisher} instances. Default: "scheduled"

gcp.pubsub.subscribing-executor

java.lang.String

Name of the {@link java.util.concurrent.ScheduledExecutorService} to be used by all {@link com.google.cloud.pubsub.v1.Subscriber} instances. Default: "scheduled"

🔗
Table 5. Configuration Properties for SubscriberConfigurationProperties
Property Type Description

gcp.pubsub.subscriber.*.executor

java.lang.String

name to be set

gcp.pubsub.subscriber.*.parallel-pull-count

java.lang.Integer

number of concurrent pulls

gcp.pubsub.subscriber.*.max-ack-extension-period

org.threeten.bp.Duration

Set the maximum period a message ack deadline will be extended. Defaults to one hour.

gcp.pubsub.subscriber.*.max-duration-per-ack-extension

org.threeten.bp.Duration

Set the upper bound for a single mod ack extention period.

<p>The ack deadline will continue to be extended by up to this duration until MaxAckExtensionPeriod is reached. Setting MaxDurationPerAckExtension bounds the maximum amount of time before a mesage re-delivery in the event the Subscriber fails to extend the deadline.

<p>MaxDurationPerAckExtension configuration can be disabled by specifying a zero duration.

gcp.pubsub.subscriber.*.flow-control.max-outstanding-element-count

java.lang.Long

gcp.pubsub.subscriber.*.flow-control.max-outstanding-request-bytes

java.lang.Long

gcp.pubsub.subscriber.*.flow-control.limit-exceeded-behavior

com.google.api.gax.batching.FlowController$LimitExceededBehavior

gcp.pubsub.subscriber.*.flow-control-settings

com.google.api.gax.batching.FlowControlSettings$Builder

Flow Control settings.

🔗
Table 6. Configuration Properties for PublisherConfigurationProperties
Property Type Description

gcp.pubsub.publisher.*.retry.total-timeout

org.threeten.bp.Duration

gcp.pubsub.publisher.*.retry.initial-retry-delay

org.threeten.bp.Duration

gcp.pubsub.publisher.*.retry.retry-delay-multiplier

double

gcp.pubsub.publisher.*.retry.max-retry-delay

org.threeten.bp.Duration

gcp.pubsub.publisher.*.retry.max-attempts

int

gcp.pubsub.publisher.*.retry.initial-rpc-timeout

org.threeten.bp.Duration

gcp.pubsub.publisher.*.retry.rpc-timeout-multiplier

double

gcp.pubsub.publisher.*.retry.max-rpc-timeout

org.threeten.bp.Duration

gcp.pubsub.publisher.*.retry.logical-timeout

org.threeten.bp.Duration

gcp.pubsub.publisher.*.batching.element-count-threshold

java.lang.Long

gcp.pubsub.publisher.*.batching.request-byte-threshold

java.lang.Long

gcp.pubsub.publisher.*.batching.delay-threshold

org.threeten.bp.Duration

gcp.pubsub.publisher.*.batching.is-enabled

java.lang.Boolean

gcp.pubsub.publisher.*.batching.flow-control-settings

com.google.api.gax.batching.FlowControlSettings

gcp.pubsub.publisher.*.flow-control.max-outstanding-element-count

java.lang.Long

gcp.pubsub.publisher.*.flow-control.max-outstanding-request-bytes

java.lang.Long

gcp.pubsub.publisher.*.flow-control.limit-exceeded-behavior

com.google.api.gax.batching.FlowController$LimitExceededBehavior

gcp.pubsub.publisher.*.executor

java.lang.String

name to be set

gcp.pubsub.publisher.*.retry-settings

com.google.api.gax.retrying.RetrySettings$Builder

Retry policies.

gcp.pubsub.publisher.*.batching-settings

com.google.api.gax.batching.BatchingSettings$Builder

Controls message publishing batch.

gcp.pubsub.publisher.*.flow-control-settings

com.google.api.gax.batching.FlowControlSettings$Builder

Flow Control settings.

Gcp Secret Manager Config Properties

🔗
Table 7. Configuration Properties for SecretManagerConfigurationProperties
Property Type Description

gcp.secret-manager.custom-configs

java.util.Set

configs to be set

gcp.secret-manager.keys

java.util.Set

keys to be set