Skip to content

Commit

Permalink
docs(pubsub): include admin options (#14359)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbolduc committed Jun 24, 2024
1 parent 1cb72b5 commit 1b2db9a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion google/cloud/pubsub/doc/pubsub-options.dox
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
@defgroup pubsub-options Pub/Sub Client Library Configuration Options
@defgroup google-cloud-pubsub-options Pub/Sub Client Library Configuration Options

The Pub/Sub client library uses the same mechanism as all other C++ client
libraries for configuration. As usual for the C++ client libraries, it adds a
Expand Down
44 changes: 22 additions & 22 deletions google/cloud/pubsub/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
/**
* The retry policy
*
* @ingroup pubsub-options
* @ingroup google-cloud-pubsub-options
*/
struct RetryPolicyOption {
using Type = std::shared_ptr<pubsub::RetryPolicy>;
Expand All @@ -62,7 +62,7 @@ struct RetryPolicyOption {
/**
* The backoff policy
*
* @ingroup pubsub-options
* @ingroup google-cloud-pubsub-options
*/
struct BackoffPolicyOption {
using Type = std::shared_ptr<pubsub::BackoffPolicy>;
Expand All @@ -84,7 +84,7 @@ using PolicyOptionList = OptionList<RetryPolicyOption, BackoffPolicyOption>;
* and publish a second message 5 milliseconds later, the second message
* will be flushed approximately 5 milliseconds after it is published.
*
* @ingroup pubsub-options
* @ingroup google-cloud-pubsub-options
*/
struct MaxHoldTimeOption {
using Type = std::chrono::microseconds;
Expand All @@ -100,7 +100,7 @@ struct MaxHoldTimeOption {
*
* [pubsub-quota-link]: https://cloud.google.com/pubsub/quotas#resource_limits
*
* @ingroup pubsub-options
* @ingroup google-cloud-pubsub-options
*/
struct MaxBatchMessagesOption {
using Type = std::size_t;
Expand All @@ -116,7 +116,7 @@ struct MaxBatchMessagesOption {
*
* [pubsub-quota-link]: https://cloud.google.com/pubsub/quotas#resource_limits
*
* @ingroup pubsub-options
* @ingroup google-cloud-pubsub-options
*/
struct MaxBatchBytesOption {
using Type = std::size_t;
Expand All @@ -133,7 +133,7 @@ struct MaxBatchBytesOption {
* messages they can tolerate in this pending state, and may prefer to block
* or reject messages.
*
* @ingroup pubsub-options
* @ingroup google-cloud-pubsub-options
*/
struct MaxPendingMessagesOption {
using Type = std::size_t;
Expand All @@ -150,7 +150,7 @@ struct MaxPendingMessagesOption {
* messages they can tolerate in this pending state, and may prefer to block
* or reject messages.
*
* @ingroup pubsub-options
* @ingroup google-cloud-pubsub-options
*/
struct MaxPendingBytesOption {
using Type = std::size_t;
Expand All @@ -170,7 +170,7 @@ struct MaxPendingBytesOption {
*
* @see the documentation for the `Publisher` class for details.
*
* @ingroup pubsub-options
* @ingroup google-cloud-pubsub-options
*/
struct MessageOrderingOption {
using Type = bool;
Expand All @@ -188,7 +188,7 @@ enum class FullPublisherAction {
/**
* The action taken by a full publisher.
*
* @ingroup pubsub-options
* @ingroup google-cloud-pubsub-options
*/
struct FullPublisherActionOption {
using Type = FullPublisherAction;
Expand All @@ -200,7 +200,7 @@ struct FullPublisherActionOption {
* If set, the client library turns on gRPC compression for batches larger (in
* bytes) than the give threshold.
*
* @ingroup pubsub-options
* @ingroup google-cloud-pubsub-options
*/
struct CompressionThresholdOption {
using Type = std::size_t;
Expand All @@ -214,7 +214,7 @@ struct CompressionThresholdOption {
* Other values may be added in the future and should be settable via this
* feature.
*
* @ingroup pubsub-options
* @ingroup google-cloud-pubsub-options
*/
struct CompressionAlgorithmOption {
using Type = int;
Expand All @@ -230,7 +230,7 @@ struct CompressionAlgorithmOption {
* (128). Additionally, Open Telemetry sets the default
* [limit][otel-quota-link] to 128.
*
* @ingroup pubsub-options
* @ingroup google-cloud-pubsub-options
*
* @par Environment variable
* This option is controlled by the `OTEL_SPAN_LINK_COUNT_LIMIT`
Expand Down Expand Up @@ -268,7 +268,7 @@ using PublisherOptionList =
* deadline for all the messages is extended repeatedly. Only once the
* message is delivered to a callback does the deadline become immutable.
*
* @ingroup pubsub-options
* @ingroup google-cloud-pubsub-options
*/
struct MaxDeadlineTimeOption {
using Type = std::chrono::seconds;
Expand All @@ -287,7 +287,7 @@ struct MaxDeadlineTimeOption {
* The value is clamped between 10 seconds and 10 minutes. Note that this option
* also affects the effective range for `MinDeadlineExtensionOption`.
*
* @ingroup pubsub-options
* @ingroup google-cloud-pubsub-options
*/
struct MaxDeadlineExtensionOption {
using Type = std::chrono::seconds;
Expand All @@ -308,7 +308,7 @@ struct MaxDeadlineExtensionOption {
* `MinDeadlineExtensionOption` is clamped between 10 seconds and the value of
* `MaxDeadlineExtensionOption`.
*
* @ingroup pubsub-options
* @ingroup google-cloud-pubsub-options
*/
struct MinDeadlineExtensionOption {
using Type = std::chrono::seconds;
Expand All @@ -327,7 +327,7 @@ struct MinDeadlineExtensionOption {
* @par Example
* @snippet samples.cc subscriber-flow-control
*
* @ingroup pubsub-options
* @ingroup google-cloud-pubsub-options
*/
struct MaxOutstandingMessagesOption {
using Type = std::int64_t;
Expand All @@ -345,7 +345,7 @@ struct MaxOutstandingMessagesOption {
* @par Example
* @snippet samples.cc subscriber-flow-control
*
* @ingroup pubsub-options
* @ingroup google-cloud-pubsub-options
*/
struct MaxOutstandingBytesOption {
using Type = std::int64_t;
Expand All @@ -370,7 +370,7 @@ struct MaxOutstandingBytesOption {
* @par Example
* @snippet samples.cc subscriber-concurrency
*
* @ingroup pubsub-options
* @ingroup google-cloud-pubsub-options
*/
struct MaxConcurrencyOption {
using Type = std::size_t;
Expand All @@ -385,7 +385,7 @@ struct MaxConcurrencyOption {
* down. In this latter case the session polls periodically to detect if the CQ
* has shutdown. This controls how often this polling happens.
*
* @ingroup pubsub-options
* @ingroup google-cloud-pubsub-options
*/
struct ShutdownPollingPeriodOption {
using Type = std::chrono::milliseconds;
Expand All @@ -398,14 +398,14 @@ struct ShutdownPollingPeriodOption {
* this case they can use this option to override the default subscription
* in a `Subscriber::Pull()` or `Subscriber::Subscribe()` call.
*
* @ingroup pubsub-options
* @ingroup google-cloud-pubsub-options
*/
struct SubscriptionOption {
using Type = Subscription;
};

/// The list of options specific to subscribers.
/// @ingroup pubsub-options
/// @ingroup google-cloud-pubsub-options
using SubscriberOptionList =
OptionList<MaxDeadlineTimeOption, MaxDeadlineExtensionOption,
MinDeadlineExtensionOption, MaxOutstandingMessagesOption,
Expand All @@ -424,7 +424,7 @@ using SubscriberOptionList =
* can provide additional configuration, or override some of the values before
* passing the object to `google::cloud::iam::MakeIAMPolicyConnection`.
*
* @ingroup pubsub-options
* @ingroup google-cloud-pubsub-options
*/
Options IAMPolicyOptions(Options opts = {});

Expand Down

0 comments on commit 1b2db9a

Please sign in to comment.