4 #ifndef PROTOBUF_replication_5foptions_2eproto__INCLUDED
5 #define PROTOBUF_replication_5foptions_2eproto__INCLUDED
9 #include <google/protobuf/stubs/common.h>
11 #if GOOGLE_PROTOBUF_VERSION < 2004000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 2004001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/generated_message_util.h>
23 #include <google/protobuf/repeated_field.h>
24 #include <google/protobuf/extension_set.h>
25 #include <google/protobuf/generated_message_reflection.h>
32 void protobuf_AddDesc_replication_5foptions_2eproto();
33 void protobuf_AssignDesc_replication_5foptions_2eproto();
34 void protobuf_ShutdownFile_replication_5foptions_2eproto();
36 class ReplicationOptions;
52 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
53 return _unknown_fields_;
56 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
57 return &_unknown_fields_;
60 static const ::google::protobuf::Descriptor* descriptor();
68 void CopyFrom(const ::google::protobuf::Message& from);
69 void MergeFrom(const ::google::protobuf::Message& from);
73 bool IsInitialized()
const;
76 bool MergePartialFromCodedStream(
77 ::google::protobuf::io::CodedInputStream* input);
78 void SerializeWithCachedSizes(
79 ::google::protobuf::io::CodedOutputStream* output)
const;
80 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
81 int GetCachedSize()
const {
return _cached_size_; }
85 void SetCachedSize(
int size)
const;
88 ::google::protobuf::Metadata GetMetadata()
const;
95 inline bool has_is_replicated()
const;
96 inline void clear_is_replicated();
97 static const int kIsReplicatedFieldNumber = 2;
98 inline bool is_replicated()
const;
99 inline void set_is_replicated(
bool value);
103 inline void set_has_is_replicated();
104 inline void clear_has_is_replicated();
106 ::google::protobuf::UnknownFieldSet _unknown_fields_;
110 mutable int _cached_size_;
111 ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
113 friend void protobuf_AddDesc_replication_5foptions_2eproto();
114 friend void protobuf_AssignDesc_replication_5foptions_2eproto();
115 friend void protobuf_ShutdownFile_replication_5foptions_2eproto();
117 void InitAsDefaultInstance();
128 inline bool ReplicationOptions::has_is_replicated()
const {
129 return (_has_bits_[0] & 0x00000001u) != 0;
131 inline void ReplicationOptions::set_has_is_replicated() {
132 _has_bits_[0] |= 0x00000001u;
134 inline void ReplicationOptions::clear_has_is_replicated() {
135 _has_bits_[0] &= ~0x00000001u;
137 inline void ReplicationOptions::clear_is_replicated() {
138 is_replicated_ =
false;
139 clear_has_is_replicated();
141 inline bool ReplicationOptions::is_replicated()
const {
142 return is_replicated_;
144 inline void ReplicationOptions::set_is_replicated(
bool value) {
145 set_has_is_replicated();
146 is_replicated_ = value;
166 #endif // PROTOBUF_replication_5foptions_2eproto__INCLUDED