TrinityCore
club_type.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: club_type.proto
3
4#ifndef PROTOBUF_club_5ftype_2eproto__INCLUDED
5#define PROTOBUF_club_5ftype_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 "Define.h" // for TC_PROTO_API
28// @@protoc_insertion_point(includes)
29
30namespace bgs {
31namespace protocol {
32namespace club {
33namespace v1 {
34
35// Internal implementation detail -- do not call these.
39
40class UniqueClubType;
41
42// ===================================================================
43
44class TC_PROTO_API UniqueClubType : public ::google::protobuf::Message {
45 public:
47 virtual ~UniqueClubType();
48
50
52 CopyFrom(from);
53 return *this;
54 }
55
56 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
57 return _unknown_fields_;
58 }
59
60 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
61 return &_unknown_fields_;
62 }
63
64 static const ::google::protobuf::Descriptor* descriptor();
66
67 void Swap(UniqueClubType* other);
68
69 // implements Message ----------------------------------------------
70
72 int GetCachedSize() const { return _cached_size_; }
73 private:
74 void SharedCtor();
75 void SharedDtor();
76 void SetCachedSize(int size) const;
77 public:
78 ::google::protobuf::Metadata GetMetadata() const;
79
80 // nested types ----------------------------------------------------
81
82 // accessors -------------------------------------------------------
83
84 // optional fixed32 program = 1;
85 inline bool has_program() const;
86 inline void clear_program();
87 static const int kProgramFieldNumber = 1;
89 inline void set_program(::google::protobuf::uint32 value);
90
91 // optional string name = 2;
92 inline bool has_name() const;
93 inline void clear_name();
94 static const int kNameFieldNumber = 2;
95 inline const ::std::string& name() const;
96 inline void set_name(const ::std::string& value);
97 inline void set_name(const char* value);
98 inline void set_name(const char* value, size_t size);
99 inline ::std::string* mutable_name();
100 inline ::std::string* release_name();
101 inline void set_allocated_name(::std::string* name);
102
103 // @@protoc_insertion_point(class_scope:bgs.protocol.club.v1.UniqueClubType)
104 private:
105 inline void set_has_program();
106 inline void clear_has_program();
107 inline void set_has_name();
108 inline void clear_has_name();
109
110 ::google::protobuf::UnknownFieldSet _unknown_fields_;
111
113 mutable int _cached_size_;
114 ::std::string* name_;
119
122};
123// ===================================================================
124
125// ===================================================================
126
127// ===================================================================
128
129// UniqueClubType
130
131// optional fixed32 program = 1;
132inline bool UniqueClubType::has_program() const {
133 return (_has_bits_[0] & 0x00000001u) != 0;
134}
136 _has_bits_[0] |= 0x00000001u;
137}
139 _has_bits_[0] &= ~0x00000001u;
140}
142 program_ = 0u;
144}
146 // @@protoc_insertion_point(field_get:bgs.protocol.club.v1.UniqueClubType.program)
147 return program_;
148}
151 program_ = value;
152 // @@protoc_insertion_point(field_set:bgs.protocol.club.v1.UniqueClubType.program)
153}
154
155// optional string name = 2;
156inline bool UniqueClubType::has_name() const {
157 return (_has_bits_[0] & 0x00000002u) != 0;
158}
160 _has_bits_[0] |= 0x00000002u;
161}
163 _has_bits_[0] &= ~0x00000002u;
164}
166 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
167 name_->clear();
168 }
170}
171inline const ::std::string& UniqueClubType::name() const {
172 // @@protoc_insertion_point(field_get:bgs.protocol.club.v1.UniqueClubType.name)
173 return *name_;
174}
175inline void UniqueClubType::set_name(const ::std::string& value) {
176 set_has_name();
177 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
178 name_ = new ::std::string;
179 }
180 name_->assign(value);
181 // @@protoc_insertion_point(field_set:bgs.protocol.club.v1.UniqueClubType.name)
182}
183inline void UniqueClubType::set_name(const char* value) {
184 set_has_name();
185 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
186 name_ = new ::std::string;
187 }
188 name_->assign(value);
189 // @@protoc_insertion_point(field_set_char:bgs.protocol.club.v1.UniqueClubType.name)
190}
191inline void UniqueClubType::set_name(const char* value, size_t size) {
192 set_has_name();
193 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
194 name_ = new ::std::string;
195 }
196 name_->assign(reinterpret_cast<const char*>(value), size);
197 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.club.v1.UniqueClubType.name)
198}
199inline ::std::string* UniqueClubType::mutable_name() {
200 set_has_name();
201 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
202 name_ = new ::std::string;
203 }
204 // @@protoc_insertion_point(field_mutable:bgs.protocol.club.v1.UniqueClubType.name)
205 return name_;
206}
207inline ::std::string* UniqueClubType::release_name() {
209 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
210 return NULL;
211 } else {
212 ::std::string* temp = name_;
213 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
214 return temp;
215 }
216}
217inline void UniqueClubType::set_allocated_name(::std::string* name) {
218 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
219 delete name_;
220 }
221 if (name) {
222 set_has_name();
223 name_ = name;
224 } else {
226 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
227 }
228 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.club.v1.UniqueClubType.name)
229}
230
231// @@protoc_insertion_point(namespace_scope)
232
233} // namespace v1
234} // namespace club
235} // namespace protocol
236} // namespace bgs
237
238#ifndef SWIG
239namespace google {
240namespace protobuf {
241} // namespace google
242} // namespace protobuf
243#endif // SWIG
244
245// @@protoc_insertion_point(global_scope)
246
247#endif // PROTOBUF_club_5ftype_2eproto__INCLUDED
#define TC_PROTO_API
Definition: Define.h:105
uint32_t uint32
Definition: Define.h:142
static const UniqueClubType & default_instance()
inline ::std::string * mutable_name()
Definition: club_type.pb.h:199
UniqueClubType & operator=(const UniqueClubType &from)
Definition: club_type.pb.h:51
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: club_type.pb.h:56
inline ::std::string * release_name()
Definition: club_type.pb.h:207
static UniqueClubType * default_instance_
Definition: club_type.pb.h:121
void set_name(const ::std::string &value)
Definition: club_type.pb.h:175
inline ::google::protobuf::uint32 program() const
Definition: club_type.pb.h:145
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: club_type.pb.h:110
friend void TC_PROTO_API protobuf_AddDesc_club_5ftype_2eproto()
::google::protobuf::Metadata GetMetadata() const
void set_allocated_name(::std::string *name)
Definition: club_type.pb.h:217
void Swap(UniqueClubType *other)
const ::std::string & name() const
Definition: club_type.pb.h:171
friend void protobuf_ShutdownFile_club_5ftype_2eproto()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: club_type.pb.h:60
void set_program(::google::protobuf::uint32 value)
Definition: club_type.pb.h:149
static const ::google::protobuf::Descriptor * descriptor()
::google::protobuf::uint32 program_
Definition: club_type.pb.h:115
::google::protobuf::uint32 _has_bits_[1]
Definition: club_type.pb.h:112
UniqueClubType(const UniqueClubType &from)
constexpr std::size_t size()
Definition: UpdateField.h:796
void protobuf_ShutdownFile_club_5ftype_2eproto()
void protobuf_AssignDesc_club_5ftype_2eproto()
void TC_PROTO_API protobuf_AddDesc_club_5ftype_2eproto()
Definition: Session.h:36