Google Cloud Pub/Sub C++ Client 2.13.0
A C++ Client Library for Google Cloud Pub/Sub
|
Build a request to create a Cloud Pub/Sub snapshot. More...
#include <google/cloud/pubsub/snapshot_builder.h>
Public Member Functions | |
SnapshotBuilder ()=default | |
google::pubsub::v1::CreateSnapshotRequest | BuildCreateRequest (Subscription const &subscription) && |
Build a protocol buffer message to create snapshots with server-assigned ids. More... | |
google::pubsub::v1::CreateSnapshotRequest | BuildCreateRequest (Subscription const &subscription, Snapshot const &snapshot) && |
Build a protocol buffer message to create snapshots with application-assigned ids. More... | |
google::pubsub::v1::UpdateSnapshotRequest | BuildUpdateRequest (Snapshot const &snapshot) && |
Build a protocol buffer message to update an existing snapshot. More... | |
Setters for each protocol buffer field. | |
SnapshotBuilder & | add_label (std::string const &key, std::string const &value) & |
SnapshotBuilder && | add_label (std::string const &key, std::string const &value) && |
SnapshotBuilder & | clear_labels () & |
SnapshotBuilder && | clear_labels () && |
Build a request to create a Cloud Pub/Sub snapshot.
Makes it easier to create the protobuf messages consumed by SubscriptionAdminClient
. The main advantages are:
|
default |
|
inline |
|
inline |
google::pubsub::v1::CreateSnapshotRequest google::cloud::pubsub::SnapshotBuilder::BuildCreateRequest | ( | Subscription const & | subscription | ) | && |
Build a protocol buffer message to create snapshots with server-assigned ids.
google::pubsub::v1::CreateSnapshotRequest google::cloud::pubsub::SnapshotBuilder::BuildCreateRequest | ( | Subscription const & | subscription, |
Snapshot const & | snapshot | ||
) | && |
Build a protocol buffer message to create snapshots with application-assigned ids.
google::pubsub::v1::UpdateSnapshotRequest google::cloud::pubsub::SnapshotBuilder::BuildUpdateRequest | ( | Snapshot const & | snapshot | ) | && |
Build a protocol buffer message to update an existing snapshot.
|
inline |
|
inline |