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