15#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PUBSUB_BLOCKING_PUBLISHER_H
16#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PUBSUB_BLOCKING_PUBLISHER_H
18#include "google/cloud/pubsub/blocking_publisher_connection.h"
19#include "google/cloud/pubsub/publisher_options.h"
20#include "google/cloud/pubsub/version.h"
26GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
83 return a.connection_ == b.connection_;
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
117GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
A connection to the Cloud Pub/Sub service to publish events.
Definition: blocking_publisher_connection.h:56
Publish messages to the Cloud Pub/Sub service.
Definition: blocking_publisher.h:70
BlockingPublisher & operator=(BlockingPublisher const &)=default
StatusOr< std::string > Publish(Topic topic, Message message, Options opts={})
Publishes the message on the topic topic.
BlockingPublisher(BlockingPublisher const &)=default
BlockingPublisher & operator=(BlockingPublisher &&)=default
BlockingPublisher(std::shared_ptr< BlockingPublisherConnection > connection, Options opts={})
friend bool operator!=(BlockingPublisher const &a, BlockingPublisher const &b)
Definition: blocking_publisher.h:85
BlockingPublisher(BlockingPublisher &&)=default
friend bool operator==(BlockingPublisher const &a, BlockingPublisher const &b)
Definition: blocking_publisher.h:81
The C++ representation for a Cloud Pub/Sub messages.
Definition: message.h:78
Objects of this class identify a Cloud Pub/Sub topic.
Definition: topic.h:37
Contains all the Cloud Pub/Sub C++ client types and functions.
Definition: ack_handler.h:25
The namespace Google Cloud Platform C++ client libraries.