Class Topic (2.22.0)

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

Constructors

Topic(Topic const &)

Copy and move

Parameter
NameDescription
Topic const &

Topic(Topic &&)

Copy and move

Parameter
NameDescription
Topic &&

Topic(std::string, std::string)

Parameters
NameDescription
project_id std::string
topic_id std::string

Operators

operator=(Topic const &)

Copy and move

Parameter
NameDescription
Topic const &
Returns
TypeDescription
Topic &

operator=(Topic &&)

Copy and move

Parameter
NameDescription
Topic &&
Returns
TypeDescription
Topic &

Functions

project_id() const

Returns the Project ID.

Returns
TypeDescription
std::string const &

topic_id() const

Returns the Topic ID.

Returns
TypeDescription
std::string const &

FullName() const

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

Returns
TypeDescription
std::string