Google Cloud Pub/Sub C++ Client
2.0.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 (std::string project_id, std::string subscription_id) | |
Copy and move | |
Subscription (Subscription const &)=default | |
Returns the Project ID. More... | |
Subscription & | operator= (Subscription const &)=default |
Returns the Project ID. More... | |
Subscription (Subscription &&)=default | |
Returns the Project ID. More... | |
Subscription & | operator= (Subscription &&)=default |
Returns the Project ID. More... | |
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... | |
Equality operators | |
bool | operator== (Subscription const &a, Subscription const &b) |
Output the FullName() format. More... | |
bool | operator!= (Subscription const &a, Subscription const &b) |
Output the FullName() format. More... | |
std::ostream & | operator<< (std::ostream &os, Subscription const &rhs) |
Output the FullName() format. More... | |
Objects of this class identify a Cloud Pub/Sub subscription.
Definition at line 37 of file subscription.h.
|
inline |
Definition at line 39 of file subscription.h.
|
default |
Returns the Project ID.
|
default |
Returns the Project ID.
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 |
Returns the Project ID.
|
default |
Returns the Project ID.
|
inline |
Returns the Project ID.
Definition at line 52 of file subscription.h.
|
inline |
Returns the Subscription ID.
Definition at line 55 of file subscription.h.
|
friend |
Output the FullName()
format.
Definition at line 66 of file subscription.h.
|
friend |
Output the FullName()
format.
|
friend |
Output the FullName()
format.