TrinityCore
message_options.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: global_extensions/message_options.proto
3
4#ifndef PROTOBUF_global_5fextensions_2fmessage_5foptions_2eproto__INCLUDED
5#define PROTOBUF_global_5fextensions_2fmessage_5foptions_2eproto__INCLUDED
6
7#include <string>
8
9#include <google/protobuf/stubs/common.h>
10
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
14#error your headers.
15#endif
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.
20#endif
21
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>
27#include "google/protobuf/descriptor.pb.h"
28#include "Define.h" // for TC_PROTO_API
29// @@protoc_insertion_point(includes)
30
31namespace bgs {
32namespace protocol {
33
34// Internal implementation detail -- do not call these.
38
40
41// ===================================================================
42
43class TC_PROTO_API BGSMessageOptions : public ::google::protobuf::Message {
44 public:
47
49
51 CopyFrom(from);
52 return *this;
53 }
54
55 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
56 return _unknown_fields_;
57 }
58
59 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
60 return &_unknown_fields_;
61 }
62
63 static const ::google::protobuf::Descriptor* descriptor();
65
66 void Swap(BGSMessageOptions* other);
67
68 // implements Message ----------------------------------------------
69
71 int GetCachedSize() const { return _cached_size_; }
72 private:
73 void SharedCtor();
74 void SharedDtor();
75 void SetCachedSize(int size) const;
76 public:
77 ::google::protobuf::Metadata GetMetadata() const;
78
79 // nested types ----------------------------------------------------
80
81 // accessors -------------------------------------------------------
82
83 // optional bool custom_select_shard = 1;
84 inline bool has_custom_select_shard() const;
85 inline void clear_custom_select_shard();
86 static const int kCustomSelectShardFieldNumber = 1;
87 inline bool custom_select_shard() const;
88 inline void set_custom_select_shard(bool value);
89
90 // optional bool custom_validator = 2;
91 inline bool has_custom_validator() const;
92 inline void clear_custom_validator();
93 static const int kCustomValidatorFieldNumber = 2;
94 inline bool custom_validator() const;
95 inline void set_custom_validator(bool value);
96
97 // @@protoc_insertion_point(class_scope:bgs.protocol.BGSMessageOptions)
98 private:
99 inline void set_has_custom_select_shard();
100 inline void clear_has_custom_select_shard();
101 inline void set_has_custom_validator();
102 inline void clear_has_custom_validator();
103
104 ::google::protobuf::UnknownFieldSet _unknown_fields_;
105
107 mutable int _cached_size_;
113
116};
117// ===================================================================
118
119// ===================================================================
120
121static const int kMessageOptionsFieldNumber = 90000;
122TC_PROTO_API extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
123 ::google::protobuf::internal::MessageTypeTraits< ::bgs::protocol::BGSMessageOptions >, 11, false >
125
126// ===================================================================
127
128// BGSMessageOptions
129
130// optional bool custom_select_shard = 1;
132 return (_has_bits_[0] & 0x00000001u) != 0;
133}
135 _has_bits_[0] |= 0x00000001u;
136}
138 _has_bits_[0] &= ~0x00000001u;
139}
141 custom_select_shard_ = false;
143}
145 // @@protoc_insertion_point(field_get:bgs.protocol.BGSMessageOptions.custom_select_shard)
147}
150 custom_select_shard_ = value;
151 // @@protoc_insertion_point(field_set:bgs.protocol.BGSMessageOptions.custom_select_shard)
152}
153
154// optional bool custom_validator = 2;
156 return (_has_bits_[0] & 0x00000002u) != 0;
157}
159 _has_bits_[0] |= 0x00000002u;
160}
162 _has_bits_[0] &= ~0x00000002u;
163}
165 custom_validator_ = false;
167}
169 // @@protoc_insertion_point(field_get:bgs.protocol.BGSMessageOptions.custom_validator)
170 return custom_validator_;
171}
174 custom_validator_ = value;
175 // @@protoc_insertion_point(field_set:bgs.protocol.BGSMessageOptions.custom_validator)
176}
177
178// @@protoc_insertion_point(namespace_scope)
179
180} // namespace protocol
181} // namespace bgs
182
183#ifndef SWIG
184namespace google {
185namespace protobuf {
186} // namespace google
187} // namespace protobuf
188#endif // SWIG
189
190// @@protoc_insertion_point(global_scope)
191
192#endif // PROTOBUF_global_5fextensions_2fmessage_5foptions_2eproto__INCLUDED
#define TC_PROTO_API
Definition: Define.h:105
uint32_t uint32
Definition: Define.h:142
::google::protobuf::uint32 _has_bits_[1]
static BGSMessageOptions * default_instance_
BGSMessageOptions * New() const
::google::protobuf::UnknownFieldSet _unknown_fields_
::google::protobuf::Metadata GetMetadata() const
void SetCachedSize(int size) const
friend void protobuf_ShutdownFile_global_5fextensions_2fmessage_5foptions_2eproto()
friend void protobuf_AssignDesc_global_5fextensions_2fmessage_5foptions_2eproto()
void Swap(BGSMessageOptions *other)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
BGSMessageOptions(const BGSMessageOptions &from)
static const ::google::protobuf::Descriptor * descriptor()
static const BGSMessageOptions & default_instance()
friend void TC_PROTO_API protobuf_AddDesc_global_5fextensions_2fmessage_5foptions_2eproto()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
BGSMessageOptions & operator=(const BGSMessageOptions &from)
constexpr std::size_t size()
Definition: UpdateField.h:796
TC_PROTO_API ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions, ::google::protobuf::internal::MessageTypeTraits< ::bgs::protocol::BGSMessageOptions >, 11, false > message_options
void protobuf_AssignDesc_global_5fextensions_2fmessage_5foptions_2eproto()
void protobuf_ShutdownFile_global_5fextensions_2fmessage_5foptions_2eproto()
void TC_PROTO_API protobuf_AddDesc_global_5fextensions_2fmessage_5foptions_2eproto()
static const int kMessageOptionsFieldNumber
Definition: Session.h:36