Google Cloud Pub/Sub C++ Client 2.13.0
A C++ Client Library for Google Cloud Pub/Sub
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
google::cloud::pubsub::Snapshot Class Reference

Objects of this class identify a Cloud Pub/Sub snapshot. More...

#include <google/cloud/pubsub/snapshot.h>

Public Member Functions

 Snapshot (std::string project_id, std::string snapshot_id)
 
std::string const & project_id () const
 Returns the Project ID. More...
 
std::string const & snapshot_id () const
 Returns the Snapshot ID. More...
 
std::string FullName () const
 Returns the fully qualified snapshot name as a string of the form: "projects/<project-id>/snapshots/<snapshot-id>". More...
 
Copy and move
 Snapshot (Snapshot const &)=default
 
Snapshotoperator= (Snapshot const &)=default
 
 Snapshot (Snapshot &&)=default
 
Snapshotoperator= (Snapshot &&)=default
 

Friends

std::ostream & operator<< (std::ostream &os, Snapshot const &rhs)
 Output the FullName() format. More...
 
Equality operators
bool operator== (Snapshot const &a, Snapshot const &b)
 
bool operator!= (Snapshot const &a, Snapshot const &b)
 

Detailed Description

Objects of this class identify a Cloud Pub/Sub snapshot.

Note
This class makes no effort to validate the ids provided. The application should verify that any ids passed to this application conform to the Cloud Pub/Sub resource name restrictions.

Constructor & Destructor Documentation

◆ Snapshot() [1/3]

google::cloud::pubsub::Snapshot::Snapshot ( std::string  project_id,
std::string  snapshot_id 
)
inline

◆ Snapshot() [2/3]

google::cloud::pubsub::Snapshot::Snapshot ( Snapshot const &  )
default

◆ Snapshot() [3/3]

google::cloud::pubsub::Snapshot::Snapshot ( Snapshot &&  )
default

Member Function Documentation

◆ FullName()

std::string google::cloud::pubsub::Snapshot::FullName ( ) const

Returns the fully qualified snapshot name as a string of the form: "projects/<project-id>/snapshots/<snapshot-id>".

◆ operator=() [1/2]

Snapshot & google::cloud::pubsub::Snapshot::operator= ( Snapshot &&  )
default

◆ operator=() [2/2]

Snapshot & google::cloud::pubsub::Snapshot::operator= ( Snapshot const &  )
default

◆ project_id()

std::string const & google::cloud::pubsub::Snapshot::project_id ( ) const
inline

Returns the Project ID.

◆ snapshot_id()

std::string const & google::cloud::pubsub::Snapshot::snapshot_id ( ) const
inline

Returns the Snapshot ID.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( Snapshot const &  a,
Snapshot const &  b 
)
friend

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
Snapshot const &  rhs 
)
friend

Output the FullName() format.

◆ operator==

bool operator== ( Snapshot const &  a,
Snapshot const &  b 
)
friend