Classes
AdminServiceClient
The service that a client application uses to manage topics and subscriptions, such creating, listing, and deleting topics and subscriptions.
AdminServiceConnection
The AdminServiceConnection
object for AdminServiceClient
.
AdminServiceConnectionIdempotencyPolicy
Topic
Objects of this class identify a Cloud Pub/Sub Lite topic.
TopicStatsServiceClient
This service allows users to get stats about messages in their topic.
TopicStatsServiceConnection
The TopicStatsServiceConnection
object for TopicStatsServiceClient
.
TopicStatsServiceConnectionIdempotencyPolicy
Structs
AdminServiceBackoffPolicyOption
Use with google::cloud::Options
to configure the backoff policy.
AdminServiceConnectionIdempotencyPolicyOption
Use with google::cloud::Options
to configure which operations are retried.
AdminServicePollingPolicyOption
Use with google::cloud::Options
to configure the long-running operations polling policy.
AdminServiceRetryPolicyOption
Use with google::cloud::Options
to configure the retry policy.
MaxBatchBytesOption
Publish a batch when its size in bytes reaches this value.
MaxBatchMessagesOption
Publish a batch when it has this many messages.
MessageMetadata
This struct stores the partition and Cursor
of a published Pub/Sub Lite message.
PublishFlushAlarmPeriodOption
The interval at which Flush
will be called on single-partition Publisher
s to publish all remaining messages.
PublishMessageTransformerOption
TopicStatsServiceBackoffPolicyOption
Use with google::cloud::Options
to configure the backoff policy.
TopicStatsServiceConnectionIdempotencyPolicyOption
Use with google::cloud::Options
to configure which operations are retried.
TopicStatsServiceRetryPolicyOption
Use with google::cloud::Options
to configure the retry policy.
Functions
MakeAdminServiceConnection(Options)
A factory function to construct an object of type AdminServiceConnection
.
The returned connection object should not be used directly; instead it should be passed as an argument to the constructor of AdminServiceClient.
The optional options
argument may be used to configure aspects of the returned AdminServiceConnection
. Expected options are any of the types in the following option lists:
Parameter | |
---|---|
Name | Description |
options |
(optional) Configure the |
Returns | |
---|---|
Type | Description |
std::shared_ptr< AdminServiceConnection > |
MakeDefaultAdminServiceConnectionIdempotencyPolicy()
Returns | |
---|---|
Type | Description |
std::unique_ptr< AdminServiceConnectionIdempotencyPolicy > |
EndpointFromZone(std::string const &)
Returns the appropriate endpoint given a zone name.
Given a zone name in ${region}-[a-z] form it returns the appropriate regional endpoint to contact the Pub/Sub Lite service. Use the value returned to initialize the library via google::cloud::EndpointOption
.
Parameter | |
---|---|
Name | Description |
zone_id |
|
Returns | |
---|---|
Type | Description |
StatusOr< std::string > |
EndpointFromRegion(std::string const &)
Returns the appropriate endpoint given a region name.
Given a region name it returns the appropriate regional endpoint to contact the Pub/Sub Lite service. Use the value returned to initialize the library via google::cloud::EndpointOption
.
Parameter | |
---|---|
Name | Description |
region_id |
|
Returns | |
---|---|
Type | Description |
StatusOr< std::string > |
MakeMessageMetadata(std::string const &)
Parses a string into a MessageMetadata object.
The formatting of this string is not stable cross-binary.
Parameter | |
---|---|
Name | Description |
input |
|
Returns | |
---|---|
Type | Description |
StatusOr< MessageMetadata > |
MakePublisherConnection(Topic, Options)
Creates a new PublisherConnection
object to work with Publisher
.
Parameters | |
---|---|
Name | Description |
topic |
the Cloud Pub/Sub Lite topic used by the returned |
opts |
The options to use for this call. Expected options are any of the types in the following option lists and in google/cloud/pubsublite/options.h. |
Returns | |
---|---|
Type | Description |
StatusOr< std::unique_ptr< google::cloud::pubsub::PublisherConnection > > |
MakeTopicStatsServiceConnection(Options)
A factory function to construct an object of type TopicStatsServiceConnection
.
The returned connection object should not be used directly; instead it should be passed as an argument to the constructor of TopicStatsServiceClient.
The optional options
argument may be used to configure aspects of the returned TopicStatsServiceConnection
. Expected options are any of the types in the following option lists:
Parameter | |
---|---|
Name | Description |
options |
(optional) Configure the |
Returns | |
---|---|
Type | Description |
std::shared_ptr< TopicStatsServiceConnection > |
MakeDefaultTopicStatsServiceConnectionIdempotencyPolicy()
Returns | |
---|---|
Type | Description |
std::unique_ptr< TopicStatsServiceConnectionIdempotencyPolicy > |
Type Aliases
AdminServiceRetryPolicy
::google::cloud::internal::TraitBasedRetryPolicy< pubsublite_internal::AdminServiceRetryTraits >
AdminServiceLimitedTimeRetryPolicy
::google::cloud::internal::LimitedTimeRetryPolicy< pubsublite_internal::AdminServiceRetryTraits >
AdminServiceLimitedErrorCountRetryPolicy
::google::cloud::internal::LimitedErrorCountRetryPolicy< pubsublite_internal::AdminServiceRetryTraits >
AdminServicePolicyOptionList
OptionList< AdminServiceRetryPolicyOption, AdminServiceBackoffPolicyOption, AdminServicePollingPolicyOption, AdminServiceConnectionIdempotencyPolicyOption >
The options applicable to AdminService.
PublishMessageTransformer
std::function< StatusOr< google::cloud::pubsublite::v1::PubSubMessage >(google::cloud::pubsub::Message)>
Converts a Google Cloud Pub/Sub Message
into a Google Cloud Pub/Sub Lite protobuf PubSubMessage
.
TopicStatsServiceRetryPolicy
::google::cloud::internal::TraitBasedRetryPolicy< pubsublite_internal::TopicStatsServiceRetryTraits >
TopicStatsServiceLimitedTimeRetryPolicy
::google::cloud::internal::LimitedTimeRetryPolicy< pubsublite_internal::TopicStatsServiceRetryTraits >
TopicStatsServiceLimitedErrorCountRetryPolicy
::google::cloud::internal::LimitedErrorCountRetryPolicy< pubsublite_internal::TopicStatsServiceRetryTraits >
TopicStatsServicePolicyOptionList
OptionList< TopicStatsServiceRetryPolicyOption, TopicStatsServiceBackoffPolicyOption, TopicStatsServiceConnectionIdempotencyPolicyOption >
The options applicable to TopicStatsService.