TrinityCore
Loading...
Searching...
No Matches
notification_service.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: api/client/v2/notification_service.proto
3
4#ifndef PROTOBUF_api_2fclient_2fv2_2fnotification_5fservice_2eproto__INCLUDED
5#define PROTOBUF_api_2fclient_2fv2_2fnotification_5fservice_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>
28#include "rpc_types.pb.h"
29#include "ServiceBase.h"
30#include "MessageBuffer.h"
31#include <functional>
32#include <type_traits>
33// @@protoc_insertion_point(includes)
34
35namespace bgs {
36namespace protocol {
37namespace notification {
38namespace v2 {
39namespace client {
40
41// Internal implementation detail -- do not call these.
45
47
48// ===================================================================
49
50class TC_PROTO_API SendNotificationRequest : public ::google::protobuf::Message {
51 public:
54
56
58 CopyFrom(from);
59 return *this;
60 }
61
62 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
63 return _unknown_fields_;
64 }
65
66 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
67 return &_unknown_fields_;
68 }
69
70 static const ::google::protobuf::Descriptor* descriptor();
72
74
75 // implements Message ----------------------------------------------
76
78 int GetCachedSize() const { return _cached_size_; }
79 private:
80 void SharedCtor();
81 void SharedDtor();
82 void SetCachedSize(int size) const;
83 public:
84 ::google::protobuf::Metadata GetMetadata() const;
85
86 // nested types ----------------------------------------------------
87
88 // accessors -------------------------------------------------------
89
90 // optional .bgs.protocol.notification.v2.client.SendNotificationOptions options = 2;
91 inline bool has_options() const;
92 inline void clear_options();
93 static const int kOptionsFieldNumber = 2;
94 inline const ::bgs::protocol::notification::v2::client::SendNotificationOptions& options() const;
95 inline ::bgs::protocol::notification::v2::client::SendNotificationOptions* mutable_options();
96 inline ::bgs::protocol::notification::v2::client::SendNotificationOptions* release_options();
97 inline void set_allocated_options(::bgs::protocol::notification::v2::client::SendNotificationOptions* options);
98
99 // @@protoc_insertion_point(class_scope:bgs.protocol.notification.v2.client.SendNotificationRequest)
100 private:
101 inline void set_has_options();
102 inline void clear_has_options();
103
104 ::google::protobuf::UnknownFieldSet _unknown_fields_;
105
106 ::google::protobuf::uint32 _has_bits_[1];
107 mutable int _cached_size_;
112
115};
116// ===================================================================
117
119{
120 public:
121
122 explicit NotificationService(bool use_original_hash);
128
129 typedef std::integral_constant<uint32, 0xF8E1EB98u> OriginalHash;
130 typedef std::integral_constant<uint32, 0xBC7B33AFu> NameHash;
131
132 static google::protobuf::ServiceDescriptor const* descriptor();
133
134 void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final;
135
136 protected:
137 // server methods --------------------------------------------------
138 virtual uint32 HandleSendNotification(::bgs::protocol::notification::v2::client::SendNotificationRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
139
140 private:
142};
143
144// ===================================================================
145
146// ===================================================================
147
148// SendNotificationRequest
149
150// optional .bgs.protocol.notification.v2.client.SendNotificationOptions options = 2;
152 return (_has_bits_[0] & 0x00000001u) != 0;
153}
155 _has_bits_[0] |= 0x00000001u;
156}
158 _has_bits_[0] &= ~0x00000001u;
159}
161 if (options_ != NULL) options_->::bgs::protocol::notification::v2::client::SendNotificationOptions::Clear();
163}
164inline const ::bgs::protocol::notification::v2::client::SendNotificationOptions& SendNotificationRequest::options() const {
165 // @@protoc_insertion_point(field_get:bgs.protocol.notification.v2.client.SendNotificationRequest.options)
166 return options_ != NULL ? *options_ : *default_instance_->options_;
167}
168inline ::bgs::protocol::notification::v2::client::SendNotificationOptions* SendNotificationRequest::mutable_options() {
170 if (options_ == NULL) options_ = new ::bgs::protocol::notification::v2::client::SendNotificationOptions;
171 // @@protoc_insertion_point(field_mutable:bgs.protocol.notification.v2.client.SendNotificationRequest.options)
172 return options_;
173}
174inline ::bgs::protocol::notification::v2::client::SendNotificationOptions* SendNotificationRequest::release_options() {
177 options_ = NULL;
178 return temp;
179}
181 delete options_;
183 if (options) {
185 } else {
187 }
188 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.notification.v2.client.SendNotificationRequest.options)
189}
190
191// @@protoc_insertion_point(namespace_scope)
192
193} // namespace client
194} // namespace v2
195} // namespace notification
196} // namespace protocol
197} // namespace bgs
198
199#ifndef SWIG
200namespace google {
201namespace protobuf {
202} // namespace google
203} // namespace protobuf
204#endif // SWIG
205
206// @@protoc_insertion_point(global_scope)
207
208#endif // PROTOBUF_api_2fclient_2fv2_2fnotification_5fservice_2eproto__INCLUDED
#define TC_PROTO_API
Definition Define.h:105
uint32_t uint32
Definition Define.h:154
void ParseAndHandleSendNotification(uint32 token, uint32 methodId, MessageBuffer &buffer)
NotificationService(NotificationService const &)=delete
std::integral_constant< uint32, 0xF8E1EB98u > OriginalHash
void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final
static google::protobuf::ServiceDescriptor const * descriptor()
NotificationService & operator=(NotificationService &&)=delete
virtual uint32 HandleSendNotification(::bgs::protocol::notification::v2::client::SendNotificationRequest const *request, ::bgs::protocol::NoData *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
NotificationService & operator=(NotificationService const &)=delete
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
static const SendNotificationRequest & default_instance()
inline ::bgs::protocol::notification::v2::client::SendNotificationOptions * release_options()
inline ::bgs::protocol::notification::v2::client::SendNotificationOptions * mutable_options()
SendNotificationRequest & operator=(const SendNotificationRequest &from)
static const ::google::protobuf::Descriptor * descriptor()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
friend void TC_PROTO_API protobuf_AddDesc_api_2fclient_2fv2_2fnotification_5fservice_2eproto()
SendNotificationRequest(const SendNotificationRequest &from)
void set_allocated_options(::bgs::protocol::notification::v2::client::SendNotificationOptions *options)
::bgs::protocol::notification::v2::client::SendNotificationOptions * options_
const ::bgs::protocol::notification::v2::client::SendNotificationOptions & options() const
void TC_PROTO_API protobuf_AddDesc_api_2fclient_2fv2_2fnotification_5fservice_2eproto()
void protobuf_ShutdownFile_api_2fclient_2fv2_2fnotification_5fservice_2eproto()
void protobuf_AssignDesc_api_2fclient_2fv2_2fnotification_5fservice_2eproto()
Definition Session.h:37