Class Subscription (2.20.0-rc)

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

Constructors

Subscription(Subscription const &)

Copy and move

Parameter
NameDescription
Subscription const &

Subscription(Subscription &&)

Copy and move

Parameter
NameDescription
Subscription &&

Subscription()

The default constructor creates an invalid subscription.

Subscription(std::string, std::string)

Parameters
NameDescription
project_id std::string
subscription_id std::string

Operators

operator=(Subscription const &)

Copy and move

Parameter
NameDescription
Subscription const &
Returns
TypeDescription
Subscription &

operator=(Subscription &&)

Copy and move

Parameter
NameDescription
Subscription &&
Returns
TypeDescription
Subscription &

Functions

project_id() const

Returns the Project ID.

Returns
TypeDescription
std::string const &

subscription_id() const

Returns the Subscription ID.

Returns
TypeDescription
std::string const &

FullName() const

Returns the fully qualified subscription name as a string of the form: "projects/

Returns
TypeDescription
std::string