15#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_READ_MODIFY_WRITE_RULE_H
16#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_READ_MODIFY_WRITE_RULE_H
18#include "google/cloud/bigtable/version.h"
19#include <google/bigtable/v2/data.pb.h>
20#include <google/protobuf/util/message_differencer.h>
26GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
29
30
31
32
33
34
35
36
46 return google::protobuf::util::MessageDifferencer::Equivalent(a.rule_,
56 std::string column_qualifier,
59 tmp.rule_.set_family_name(std::move(family_name));
60 tmp.rule_.set_column_qualifier(std::move(column_qualifier));
61 tmp.rule_.set_append_value(std::move(value));
67 std::string column_qualifier,
68 std::int64_t amount) {
70 tmp.rule_.set_family_name(std::move(family_name));
71 tmp.rule_.set_column_qualifier(std::move(column_qualifier));
72 tmp.rule_.set_increment_amount(amount);
77 google::bigtable::v2::ReadModifyWriteRule
const&
as_proto()
const& {
83 return std::move(rule_);
88
89
90
91
92 ReadModifyWriteRule() =
default;
94 google::bigtable::v2::ReadModifyWriteRule rule_;
97GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Define the interfaces to create ReadWriteModifyRule operations.
Definition: read_modify_write_rule.h:37
friend bool operator!=(ReadModifyWriteRule const &a, ReadModifyWriteRule const &b) noexcept
Definition: read_modify_write_rule.h:49
google::bigtable::v2::ReadModifyWriteRule const & as_proto() const &
Return the filter expression as a protobuf.
Definition: read_modify_write_rule.h:77
friend bool operator==(ReadModifyWriteRule const &a, ReadModifyWriteRule const &b) noexcept
Definition: read_modify_write_rule.h:44
ReadModifyWriteRule(ReadModifyWriteRule &&)=default
static ReadModifyWriteRule IncrementAmount(std::string family_name, std::string column_qualifier, std::int64_t amount)
Create an operation that increments an integer value.
Definition: read_modify_write_rule.h:66
ReadModifyWriteRule(ReadModifyWriteRule const &)=default
ReadModifyWriteRule & operator=(ReadModifyWriteRule &&)=default
ReadModifyWriteRule & operator=(ReadModifyWriteRule const &)=default
static ReadModifyWriteRule AppendValue(std::string family_name, std::string column_qualifier, std::string value)
Create an operation that appends a string value.
Definition: read_modify_write_rule.h:55
google::bigtable::v2::ReadModifyWriteRule && as_proto() &&
Move out the underlying protobuf value.
Definition: read_modify_write_rule.h:82
Contains all the Cloud Bigtable C++ client APIs.
Definition: admin_client.h:28