Objects of this class identify a Cloud Pub/Sub subscription.
Constructors
Subscription(Subscription const &)
Copy and move
| Parameter | |
|---|---|
| Name | Description |
|
Subscription const &
|
Subscription(Subscription &&)
Copy and move
| Parameter | |
|---|---|
| Name | Description |
|
Subscription &&
|
Subscription()
The default constructor creates an invalid subscription.
Subscription(std::string, std::string)
| Parameters | |
|---|---|
| Name | Description |
project_id |
std::string
|
subscription_id |
std::string
|
Operators
operator=(Subscription const &)
Copy and move
| Parameter | |
|---|---|
| Name | Description |
|
Subscription const &
|
| Returns | |
|---|---|
| Type | Description |
Subscription & |
|
operator=(Subscription &&)
Copy and move
| Parameter | |
|---|---|
| Name | Description |
|
Subscription &&
|
| Returns | |
|---|---|
| Type | Description |
Subscription & |
|
Functions
project_id() const
Returns the Project ID.
| Returns | |
|---|---|
| Type | Description |
std::string const & |
|
subscription_id() const
Returns the Subscription ID.
| Returns | |
|---|---|
| Type | Description |
std::string const & |
|
FullName() const
Returns the fully qualified subscription name as a string of the form: "projects/
| Returns | |
|---|---|
| Type | Description |
std::string |
|