TrinityCore
Loading...
Searching...
No Matches
game_account_handle.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: api/common/v2/game_account_handle.proto
3
4#ifndef PROTOBUF_api_2fcommon_2fv2_2fgame_5faccount_5fhandle_2eproto__INCLUDED
5#define PROTOBUF_api_2fcommon_2fv2_2fgame_5faccount_5fhandle_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 "rpc_types.pb.h"
28#include "Define.h" // for TC_PROTO_API
29// @@protoc_insertion_point(includes)
30
31namespace bgs {
32namespace protocol {
33namespace account {
34namespace v2 {
35
36// Internal implementation detail -- do not call these.
40
42
43// ===================================================================
44
45class TC_PROTO_API GameAccountHandle : public ::google::protobuf::Message {
46 public:
49
51
53 CopyFrom(from);
54 return *this;
55 }
56
57 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
58 return _unknown_fields_;
59 }
60
61 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
62 return &_unknown_fields_;
63 }
64
65 static const ::google::protobuf::Descriptor* descriptor();
67
68 void Swap(GameAccountHandle* other);
69
70 // implements Message ----------------------------------------------
71
73 int GetCachedSize() const { return _cached_size_; }
74 private:
75 void SharedCtor();
76 void SharedDtor();
77 void SetCachedSize(int size) const;
78 public:
79 ::google::protobuf::Metadata GetMetadata() const;
80
81 // nested types ----------------------------------------------------
82
83 // accessors -------------------------------------------------------
84
85 // optional uint64 id = 1;
86 inline bool has_id() const;
87 inline void clear_id();
88 static const int kIdFieldNumber = 1;
89 inline ::google::protobuf::uint64 id() const;
90 inline void set_id(::google::protobuf::uint64 value);
91
92 // optional uint32 title_id = 2;
93 inline bool has_title_id() const;
94 inline void clear_title_id();
95 static const int kTitleIdFieldNumber = 2;
96 inline ::google::protobuf::uint32 title_id() const;
97 inline void set_title_id(::google::protobuf::uint32 value);
98
99 // optional uint32 region = 3;
100 inline bool has_region() const;
101 inline void clear_region();
102 static const int kRegionFieldNumber = 3;
103 inline ::google::protobuf::uint32 region() const;
104 inline void set_region(::google::protobuf::uint32 value);
105
106 // @@protoc_insertion_point(class_scope:bgs.protocol.account.v2.GameAccountHandle)
107 private:
108 inline void set_has_id();
109 inline void clear_has_id();
110 inline void set_has_title_id();
111 inline void clear_has_title_id();
112 inline void set_has_region();
113 inline void clear_has_region();
114
115 ::google::protobuf::UnknownFieldSet _unknown_fields_;
116
117 ::google::protobuf::uint32 _has_bits_[1];
118 mutable int _cached_size_;
119 ::google::protobuf::uint64 id_;
120 ::google::protobuf::uint32 title_id_;
121 ::google::protobuf::uint32 region_;
125
128};
129// ===================================================================
130
131// ===================================================================
132
133// ===================================================================
134
135// GameAccountHandle
136
137// optional uint64 id = 1;
138inline bool GameAccountHandle::has_id() const {
139 return (_has_bits_[0] & 0x00000001u) != 0;
140}
142 _has_bits_[0] |= 0x00000001u;
143}
145 _has_bits_[0] &= ~0x00000001u;
146}
148 id_ = GOOGLE_ULONGLONG(0);
149 clear_has_id();
150}
151inline ::google::protobuf::uint64 GameAccountHandle::id() const {
152 // @@protoc_insertion_point(field_get:bgs.protocol.account.v2.GameAccountHandle.id)
153 return id_;
154}
155inline void GameAccountHandle::set_id(::google::protobuf::uint64 value) {
156 set_has_id();
157 id_ = value;
158 // @@protoc_insertion_point(field_set:bgs.protocol.account.v2.GameAccountHandle.id)
159}
160
161// optional uint32 title_id = 2;
163 return (_has_bits_[0] & 0x00000002u) != 0;
164}
166 _has_bits_[0] |= 0x00000002u;
167}
169 _has_bits_[0] &= ~0x00000002u;
170}
175inline ::google::protobuf::uint32 GameAccountHandle::title_id() const {
176 // @@protoc_insertion_point(field_get:bgs.protocol.account.v2.GameAccountHandle.title_id)
177 return title_id_;
178}
179inline void GameAccountHandle::set_title_id(::google::protobuf::uint32 value) {
181 title_id_ = value;
182 // @@protoc_insertion_point(field_set:bgs.protocol.account.v2.GameAccountHandle.title_id)
183}
184
185// optional uint32 region = 3;
186inline bool GameAccountHandle::has_region() const {
187 return (_has_bits_[0] & 0x00000004u) != 0;
188}
190 _has_bits_[0] |= 0x00000004u;
191}
193 _has_bits_[0] &= ~0x00000004u;
194}
196 region_ = 0u;
198}
199inline ::google::protobuf::uint32 GameAccountHandle::region() const {
200 // @@protoc_insertion_point(field_get:bgs.protocol.account.v2.GameAccountHandle.region)
201 return region_;
202}
203inline void GameAccountHandle::set_region(::google::protobuf::uint32 value) {
205 region_ = value;
206 // @@protoc_insertion_point(field_set:bgs.protocol.account.v2.GameAccountHandle.region)
207}
208
209// @@protoc_insertion_point(namespace_scope)
210
211} // namespace v2
212} // namespace account
213} // namespace protocol
214} // namespace bgs
215
216#ifndef SWIG
217namespace google {
218namespace protobuf {
219} // namespace google
220} // namespace protobuf
221#endif // SWIG
222
223// @@protoc_insertion_point(global_scope)
224
225#endif // PROTOBUF_api_2fcommon_2fv2_2fgame_5faccount_5fhandle_2eproto__INCLUDED
#define TC_PROTO_API
Definition Define.h:105
GameAccountHandle(const GameAccountHandle &from)
GameAccountHandle & operator=(const GameAccountHandle &from)
void set_id(::google::protobuf::uint64 value)
inline ::google::protobuf::uint32 region() const
::google::protobuf::Metadata GetMetadata() const
void Swap(GameAccountHandle *other)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
static const GameAccountHandle & default_instance()
void set_title_id(::google::protobuf::uint32 value)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
friend void protobuf_ShutdownFile_api_2fcommon_2fv2_2fgame_5faccount_5fhandle_2eproto()
::google::protobuf::UnknownFieldSet _unknown_fields_
static const ::google::protobuf::Descriptor * descriptor()
friend void protobuf_AssignDesc_api_2fcommon_2fv2_2fgame_5faccount_5fhandle_2eproto()
inline ::google::protobuf::uint32 title_id() const
friend void TC_PROTO_API protobuf_AddDesc_api_2fcommon_2fv2_2fgame_5faccount_5fhandle_2eproto()
inline ::google::protobuf::uint64 id() const
void set_region(::google::protobuf::uint32 value)
void protobuf_AssignDesc_api_2fcommon_2fv2_2fgame_5faccount_5fhandle_2eproto()
void protobuf_ShutdownFile_api_2fcommon_2fv2_2fgame_5faccount_5fhandle_2eproto()
void TC_PROTO_API protobuf_AddDesc_api_2fcommon_2fv2_2fgame_5faccount_5fhandle_2eproto()
Definition Session.h:37