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 < 2006000
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 2006001 < 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/message.h>
24 #include <google/protobuf/repeated_field.h>
25 #include <google/protobuf/extension_set.h>
26 #include <google/protobuf/unknown_field_set.h>
33 void protobuf_AddDesc_replication_5foptions_2eproto();
34 void protobuf_AssignDesc_replication_5foptions_2eproto();
35 void protobuf_ShutdownFile_replication_5foptions_2eproto();
37 class ReplicationOptions;
53 inline const ::google::protobuf::UnknownFieldSet& unknown_fields()
const {
54 return _unknown_fields_;
57 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
58 return &_unknown_fields_;
61 static const ::google::protobuf::Descriptor* descriptor();
69 void CopyFrom(const ::google::protobuf::Message& from);
70 void MergeFrom(const ::google::protobuf::Message& from);
74 bool IsInitialized()
const;
77 bool MergePartialFromCodedStream(
78 ::google::protobuf::io::CodedInputStream* input);
79 void SerializeWithCachedSizes(
80 ::google::protobuf::io::CodedOutputStream* output)
const;
81 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
const;
82 int GetCachedSize()
const {
return _cached_size_; }
86 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_;
108 ::google::protobuf::uint32 _has_bits_[1];
109 mutable int _cached_size_;
111 friend void protobuf_AddDesc_replication_5foptions_2eproto();
112 friend void protobuf_AssignDesc_replication_5foptions_2eproto();
113 friend void protobuf_ShutdownFile_replication_5foptions_2eproto();
115 void InitAsDefaultInstance();
126 inline bool ReplicationOptions::has_is_replicated()
const {
127 return (_has_bits_[0] & 0x00000001u) != 0;
129 inline void ReplicationOptions::set_has_is_replicated() {
130 _has_bits_[0] |= 0x00000001u;
132 inline void ReplicationOptions::clear_has_is_replicated() {
133 _has_bits_[0] &= ~0x00000001u;
135 inline void ReplicationOptions::clear_is_replicated() {
136 is_replicated_ =
false;
137 clear_has_is_replicated();
139 inline bool ReplicationOptions::is_replicated()
const {
141 return is_replicated_;
143 inline void ReplicationOptions::set_is_replicated(
bool value) {
144 set_has_is_replicated();
145 is_replicated_ = value;
166 #endif // PROTOBUF_replication_5foptions_2eproto__INCLUDED
TODO: Rename this file - func.h is stupid.