TrinityCore
channel_id.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: api/client/v1/channel_id.proto
3
4#ifndef PROTOBUF_api_2fclient_2fv1_2fchannel_5fid_2eproto__INCLUDED
5#define PROTOBUF_api_2fclient_2fv1_2fchannel_5fid_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 channel {
34namespace v1 {
35
36// Internal implementation detail -- do not call these.
40
41class ChannelId;
42
43// ===================================================================
44
45class TC_PROTO_API ChannelId : public ::google::protobuf::Message {
46 public:
48 virtual ~ChannelId();
49
50 ChannelId(const ChannelId& from);
51
52 inline ChannelId& operator=(const ChannelId& from) {
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();
66 static const ChannelId& default_instance();
67
68 void Swap(ChannelId* other);
69
70 // implements Message ----------------------------------------------
71
72 ChannelId* New() const;
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 uint32 type = 1;
86 inline bool has_type() const;
87 inline void clear_type();
88 static const int kTypeFieldNumber = 1;
90 inline void set_type(::google::protobuf::uint32 value);
91
92 // optional .bgs.protocol.ProcessId host = 2;
93 inline bool has_host() const;
94 inline void clear_host();
95 static const int kHostFieldNumber = 2;
96 inline const ::bgs::protocol::ProcessId& host() const;
97 inline ::bgs::protocol::ProcessId* mutable_host();
98 inline ::bgs::protocol::ProcessId* release_host();
99 inline void set_allocated_host(::bgs::protocol::ProcessId* host);
100
101 // optional fixed32 id = 3;
102 inline bool has_id() const;
103 inline void clear_id();
104 static const int kIdFieldNumber = 3;
106 inline void set_id(::google::protobuf::uint32 value);
107
108 // optional uint32 region = 4;
109 inline bool has_region() const;
110 inline void clear_region();
111 static const int kRegionFieldNumber = 4;
113 inline void set_region(::google::protobuf::uint32 value);
114
115 // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.ChannelId)
116 private:
117 inline void set_has_type();
118 inline void clear_has_type();
119 inline void set_has_host();
120 inline void clear_has_host();
121 inline void set_has_id();
122 inline void clear_has_id();
123 inline void set_has_region();
124 inline void clear_has_region();
125
126 ::google::protobuf::UnknownFieldSet _unknown_fields_;
127
129 mutable int _cached_size_;
137
140};
141// ===================================================================
142
143// ===================================================================
144
145// ===================================================================
146
147// ChannelId
148
149// optional uint32 type = 1;
150inline bool ChannelId::has_type() const {
151 return (_has_bits_[0] & 0x00000001u) != 0;
152}
154 _has_bits_[0] |= 0x00000001u;
155}
157 _has_bits_[0] &= ~0x00000001u;
158}
160 type_ = 0u;
162}
164 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelId.type)
165 return type_;
166}
168 set_has_type();
169 type_ = value;
170 // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ChannelId.type)
171}
172
173// optional .bgs.protocol.ProcessId host = 2;
174inline bool ChannelId::has_host() const {
175 return (_has_bits_[0] & 0x00000002u) != 0;
176}
178 _has_bits_[0] |= 0x00000002u;
179}
181 _has_bits_[0] &= ~0x00000002u;
182}
184 if (host_ != NULL) host_->::bgs::protocol::ProcessId::Clear();
186}
187inline const ::bgs::protocol::ProcessId& ChannelId::host() const {
188 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelId.host)
189 return host_ != NULL ? *host_ : *default_instance_->host_;
190}
191inline ::bgs::protocol::ProcessId* ChannelId::mutable_host() {
192 set_has_host();
193 if (host_ == NULL) host_ = new ::bgs::protocol::ProcessId;
194 // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.ChannelId.host)
195 return host_;
196}
197inline ::bgs::protocol::ProcessId* ChannelId::release_host() {
200 host_ = NULL;
201 return temp;
202}
204 delete host_;
205 host_ = host;
206 if (host) {
207 set_has_host();
208 } else {
210 }
211 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.ChannelId.host)
212}
213
214// optional fixed32 id = 3;
215inline bool ChannelId::has_id() const {
216 return (_has_bits_[0] & 0x00000004u) != 0;
217}
219 _has_bits_[0] |= 0x00000004u;
220}
222 _has_bits_[0] &= ~0x00000004u;
223}
224inline void ChannelId::clear_id() {
225 id_ = 0u;
226 clear_has_id();
227}
229 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelId.id)
230 return id_;
231}
233 set_has_id();
234 id_ = value;
235 // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ChannelId.id)
236}
237
238// optional uint32 region = 4;
239inline bool ChannelId::has_region() const {
240 return (_has_bits_[0] & 0x00000008u) != 0;
241}
243 _has_bits_[0] |= 0x00000008u;
244}
246 _has_bits_[0] &= ~0x00000008u;
247}
249 region_ = 0u;
251}
253 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelId.region)
254 return region_;
255}
258 region_ = value;
259 // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ChannelId.region)
260}
261
262// @@protoc_insertion_point(namespace_scope)
263
264} // namespace v1
265} // namespace channel
266} // namespace protocol
267} // namespace bgs
268
269#ifndef SWIG
270namespace google {
271namespace protobuf {
272} // namespace google
273} // namespace protobuf
274#endif // SWIG
275
276// @@protoc_insertion_point(global_scope)
277
278#endif // PROTOBUF_api_2fclient_2fv1_2fchannel_5fid_2eproto__INCLUDED
#define TC_PROTO_API
Definition: Define.h:105
uint32_t uint32
Definition: Define.h:142
::google::protobuf::uint32 type_
::google::protobuf::uint32 _has_bits_[1]
friend void TC_PROTO_API protobuf_AddDesc_api_2fclient_2fv1_2fchannel_5fid_2eproto()
inline ::google::protobuf::uint32 region() const
void set_allocated_host(::bgs::protocol::ProcessId *host)
::google::protobuf::UnknownFieldSet _unknown_fields_
void set_type(::google::protobuf::uint32 value)
static const ChannelId & default_instance()
ChannelId & operator=(const ChannelId &from)
Definition: channel_id.pb.h:52
inline ::bgs::protocol::ProcessId * mutable_host()
::google::protobuf::uint32 region_
inline ::google::protobuf::uint32 id() const
static const ::google::protobuf::Descriptor * descriptor()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: channel_id.pb.h:57
void set_id(::google::protobuf::uint32 value)
::google::protobuf::Metadata GetMetadata() const
void set_region(::google::protobuf::uint32 value)
inline ::google::protobuf::uint32 type() const
ChannelId(const ChannelId &from)
::bgs::protocol::ProcessId * host_
friend void protobuf_AssignDesc_api_2fclient_2fv1_2fchannel_5fid_2eproto()
const ::bgs::protocol::ProcessId & host() const
::google::protobuf::uint32 id_
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: channel_id.pb.h:61
inline ::bgs::protocol::ProcessId * release_host()
friend void protobuf_ShutdownFile_api_2fclient_2fv1_2fchannel_5fid_2eproto()
constexpr std::size_t size()
Definition: UpdateField.h:796
void protobuf_AssignDesc_api_2fclient_2fv1_2fchannel_5fid_2eproto()
void protobuf_ShutdownFile_api_2fclient_2fv1_2fchannel_5fid_2eproto()
void TC_PROTO_API protobuf_AddDesc_api_2fclient_2fv1_2fchannel_5fid_2eproto()
Definition: Session.h:36