Google Cloud Pub/Sub C++ Client 2.13.0
A C++ Client Library for Google Cloud Pub/Sub
|
The C++ representation for a Cloud Pub/Sub messages. More...
#include <google/cloud/pubsub/message.h>
Public Member Functions | |
accessors | |
PubsubMessageDataType const & | data () const & |
PubsubMessageDataType && | data () && |
std::string const & | message_id () const |
std::string const & | ordering_key () const |
std::chrono::system_clock::time_point | publish_time () const |
std::map< std::string, std::string > | attributes () const |
Copy and move | |
Message (Message const &)=default | |
Message & | operator= (Message const &)=default |
Message (Message &&)=default | |
Message & | operator= (Message &&)=default |
Friends | |
class | MessageBuilder |
Construct Message objects. More... | |
std::ostream & | operator<< (std::ostream &os, Message const &rhs) |
Output in protobuf format, this is intended for debugging. More... | |
Equality operators | |
Compares two messages. | |
bool | operator== (Message const &a, Message const &b) |
Compares two messages. More... | |
bool | operator!= (Message const &a, Message const &b) |
Compares two messages. More... | |
The C++ representation for a Cloud Pub/Sub messages.
Cloud Pub/Sub applications communicate to each other using messages. Note that messages must provide at least some data or some attributes. Use MessageBuilder
to create instances of this class.
|
default |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::chrono::system_clock::time_point google::cloud::pubsub::Message::publish_time | ( | ) | const |
|
friend |
Construct Message
objects.
|
friend |
Output in protobuf format, this is intended for debugging.