Google Cloud Pub/Sub C++ Client 2.13.0
A C++ Client Library for Google Cloud Pub/Sub
|
Objects of this class identify a Cloud Pub/Sub subscription. More...
#include <google/cloud/pubsub/subscription.h>
Public Member Functions | |
Subscription () | |
The default constructor creates an invalid subscription. More... | |
Subscription (std::string project_id, std::string subscription_id) | |
std::string const & | project_id () const |
Returns the Project ID. More... | |
std::string const & | subscription_id () const |
Returns the Subscription ID. More... | |
std::string | FullName () const |
Returns the fully qualified subscription name as a string of the form: "projects/<project-id>/subscriptions/<subscription-id>". More... | |
Copy and move | |
Subscription (Subscription const &)=default | |
Subscription & | operator= (Subscription const &)=default |
Subscription (Subscription &&)=default | |
Subscription & | operator= (Subscription &&)=default |
Friends | |
std::ostream & | operator<< (std::ostream &os, Subscription const &rhs) |
Output the FullName() format. More... | |
Equality operators | |
bool | operator== (Subscription const &a, Subscription const &b) |
bool | operator!= (Subscription const &a, Subscription const &b) |
Objects of this class identify a Cloud Pub/Sub subscription.
google::cloud::pubsub::Subscription::Subscription | ( | ) |
The default constructor creates an invalid subscription.
|
inline |
|
default |
|
default |
std::string google::cloud::pubsub::Subscription::FullName | ( | ) | const |
Returns the fully qualified subscription name as a string of the form: "projects/<project-id>/subscriptions/<subscription-id>".
|
default |
|
default |
|
inline |
Returns the Project ID.
|
inline |
Returns the Subscription ID.
|
friend |
|
friend |
Output the FullName()
format.
|
friend |