15#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PUBSUB_SCHEMA_H
16#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PUBSUB_SCHEMA_H
18#include "google/cloud/pubsub/version.h"
19#include <grpcpp/grpcpp.h>
26GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
29
30
31
32
33
34
35
36
37
40 Schema(std::string project_id, std::string schema_id)
41 : project_id_(std::move(project_id)), schema_id_(std::move(schema_id)) {}
52 std::string
const&
project_id()
const {
return project_id_; }
55 std::string
const&
schema_id()
const {
return schema_id_; }
58
59
60
70 friend std::ostream& operator<<(std::ostream& os,
Schema const& rhs);
73 std::string project_id_;
74 std::string schema_id_;
77GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Objects of this class identify a Cloud Pub/Sub schema.
Definition: schema.h:38
std::string FullName() const
Returns the fully qualified schema name as a string of the form: "projects/<project-id>/schemas/<sche...
Schema(Schema const &)=default
Schema(Schema &&)=default
Schema & operator=(Schema &&)=default
std::string const & project_id() const
Returns the Project ID.
Definition: schema.h:52
friend bool operator==(Schema const &a, Schema const &b)
std::string const & schema_id() const
Returns the Schema ID.
Definition: schema.h:55
Schema & operator=(Schema const &)=default
Schema(std::string project_id, std::string schema_id)
Definition: schema.h:40
friend bool operator!=(Schema const &a, Schema const &b)
Definition: schema.h:66
Contains all the Cloud Pub/Sub C++ client types and functions.
Definition: ack_handler.h:25
The namespace Google Cloud Platform C++ client libraries.