Google Cloud Pub/Sub C++ Client  1.32.1
A C++ Client Library for Google Cloud Pub/Sub
Public Member Functions | List of all members
google::cloud::pubsub::v1::SnapshotBuilder Class Reference

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 CreateSnapshotRequest where the server assigns the snapshot id. More...
 
google::pubsub::v1::CreateSnapshotRequest BuildCreateRequest (Subscription const &subscription, Snapshot const &snapshot) &&
 Build a CreateSnapshotRequest where the application assigns the snapshot id. More...
 
google::pubsub::v1::UpdateSnapshotRequest BuildUpdateRequest (Snapshot const &snapshot) &&
 Build a UpdateSnapshotRequest. More...
 
SnapshotBuilderadd_label (std::string const &key, std::string const &value) &
 
SnapshotBuilder && add_label (std::string const &key, std::string const &value) &&
 
SnapshotBuilderclear_labels () &
 
SnapshotBuilder && clear_labels () &&
 

Detailed Description

Build a request to create a Cloud Pub/Sub snapshot.

Definition at line 35 of file snapshot_builder.h.

Constructor & Destructor Documentation

◆ SnapshotBuilder()

google::cloud::pubsub::v1::SnapshotBuilder::SnapshotBuilder ( )
default

Member Function Documentation

◆ add_label() [1/2]

SnapshotBuilder& google::cloud::pubsub::v1::SnapshotBuilder::add_label ( std::string const &  key,
std::string const &  value 
) &
inline

Definition at line 52 of file snapshot_builder.h.

◆ add_label() [2/2]

SnapshotBuilder&& google::cloud::pubsub::v1::SnapshotBuilder::add_label ( std::string const &  key,
std::string const &  value 
) &&
inline

Definition at line 59 of file snapshot_builder.h.

◆ BuildCreateRequest() [1/2]

google::pubsub::v1::CreateSnapshotRequest google::cloud::pubsub::v1::SnapshotBuilder::BuildCreateRequest ( Subscription const &  subscription) &&

Build a CreateSnapshotRequest where the server assigns the snapshot id.

Definition at line 23 of file snapshot_builder.cc.

◆ BuildCreateRequest() [2/2]

google::pubsub::v1::CreateSnapshotRequest google::cloud::pubsub::v1::SnapshotBuilder::BuildCreateRequest ( Subscription const &  subscription,
Snapshot const &  snapshot 
) &&

Build a CreateSnapshotRequest where the application assigns the snapshot id.

Definition at line 31 of file snapshot_builder.cc.

◆ BuildUpdateRequest()

google::pubsub::v1::UpdateSnapshotRequest google::cloud::pubsub::v1::SnapshotBuilder::BuildUpdateRequest ( Snapshot const &  snapshot) &&

Build a UpdateSnapshotRequest.

Definition at line 40 of file snapshot_builder.cc.

◆ clear_labels() [1/2]

SnapshotBuilder& google::cloud::pubsub::v1::SnapshotBuilder::clear_labels ( ) &
inline

Definition at line 64 of file snapshot_builder.h.

◆ clear_labels() [2/2]

SnapshotBuilder&& google::cloud::pubsub::v1::SnapshotBuilder::clear_labels ( ) &&
inline

Definition at line 69 of file snapshot_builder.h.