TrinityCore
Loading...
Searching...
No Matches
whisper_types.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: api/common/v2/whisper_types.proto
3
4#ifndef PROTOBUF_api_2fcommon_2fv2_2fwhisper_5ftypes_2eproto__INCLUDED
5#define PROTOBUF_api_2fcommon_2fv2_2fwhisper_5ftypes_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>
30#include "rpc_types.pb.h"
31#include "Define.h" // for TC_PROTO_API
32// @@protoc_insertion_point(includes)
33
34namespace bgs {
35namespace protocol {
36namespace whisper {
37namespace v2 {
38
39// Internal implementation detail -- do not call these.
43
44class Whisper;
45class WhisperView;
47
48// ===================================================================
49
50class TC_PROTO_API Whisper : public ::google::protobuf::Message {
51 public:
53 virtual ~Whisper();
54
55 Whisper(const Whisper& from);
56
57 inline Whisper& operator=(const Whisper& from) {
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();
71 static const Whisper& default_instance();
72
73 void Swap(Whisper* other);
74
75 // implements Message ----------------------------------------------
76
77 Whisper* New() const;
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.MessageId whisper_id = 1;
91 inline bool has_whisper_id() const;
92 inline void clear_whisper_id();
93 static const int kWhisperIdFieldNumber = 1;
94 inline const ::bgs::protocol::MessageId& whisper_id() const;
95 inline ::bgs::protocol::MessageId* mutable_whisper_id();
96 inline ::bgs::protocol::MessageId* release_whisper_id();
97 inline void set_allocated_whisper_id(::bgs::protocol::MessageId* whisper_id);
98
99 // optional uint64 sender_account_id = 2;
100 inline bool has_sender_account_id() const;
101 inline void clear_sender_account_id();
102 static const int kSenderAccountIdFieldNumber = 2;
103 inline ::google::protobuf::uint64 sender_account_id() const;
104 inline void set_sender_account_id(::google::protobuf::uint64 value);
105
106 // optional uint64 receiver_account_id = 3;
107 inline bool has_receiver_account_id() const;
108 inline void clear_receiver_account_id();
109 static const int kReceiverAccountIdFieldNumber = 3;
110 inline ::google::protobuf::uint64 receiver_account_id() const;
111 inline void set_receiver_account_id(::google::protobuf::uint64 value);
112
113 // optional uint32 title_id = 4;
114 inline bool has_title_id() const;
115 inline void clear_title_id();
116 static const int kTitleIdFieldNumber = 4;
117 inline ::google::protobuf::uint32 title_id() const;
118 inline void set_title_id(::google::protobuf::uint32 value);
119
120 // optional string content = 5;
121 inline bool has_content() const;
122 inline void clear_content();
123 static const int kContentFieldNumber = 5;
124 inline const ::std::string& content() const;
125 inline void set_content(const ::std::string& value);
126 inline void set_content(const char* value);
127 inline void set_content(const char* value, size_t size);
128 inline ::std::string* mutable_content();
129 inline ::std::string* release_content();
130 inline void set_allocated_content(::std::string* content);
131
132 // repeated .bgs.protocol.EmbedInfo embeds = 6;
133 inline int embeds_size() const;
134 inline void clear_embeds();
135 static const int kEmbedsFieldNumber = 6;
136 inline const ::bgs::protocol::EmbedInfo& embeds(int index) const;
137 inline ::bgs::protocol::EmbedInfo* mutable_embeds(int index);
138 inline ::bgs::protocol::EmbedInfo* add_embeds();
139 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::EmbedInfo >&
140 embeds() const;
141 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::EmbedInfo >*
142 mutable_embeds();
143
144 // @@protoc_insertion_point(class_scope:bgs.protocol.whisper.v2.Whisper)
145 private:
146 inline void set_has_whisper_id();
147 inline void clear_has_whisper_id();
148 inline void set_has_sender_account_id();
149 inline void clear_has_sender_account_id();
150 inline void set_has_receiver_account_id();
151 inline void clear_has_receiver_account_id();
152 inline void set_has_title_id();
153 inline void clear_has_title_id();
154 inline void set_has_content();
155 inline void clear_has_content();
156
157 ::google::protobuf::UnknownFieldSet _unknown_fields_;
158
159 ::google::protobuf::uint32 _has_bits_[1];
160 mutable int _cached_size_;
162 ::google::protobuf::uint64 sender_account_id_;
163 ::google::protobuf::uint64 receiver_account_id_;
164 ::std::string* content_;
165 ::google::protobuf::RepeatedPtrField< ::bgs::protocol::EmbedInfo > embeds_;
166 ::google::protobuf::uint32 title_id_;
170
173};
174// -------------------------------------------------------------------
175
176class TC_PROTO_API WhisperView : public ::google::protobuf::Message {
177 public:
179 virtual ~WhisperView();
180
182
183 inline WhisperView& operator=(const WhisperView& from) {
184 CopyFrom(from);
185 return *this;
186 }
187
188 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
189 return _unknown_fields_;
190 }
191
192 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
193 return &_unknown_fields_;
194 }
195
196 static const ::google::protobuf::Descriptor* descriptor();
198
199 void Swap(WhisperView* other);
200
201 // implements Message ----------------------------------------------
202
203 WhisperView* New() const;
204 int GetCachedSize() const { return _cached_size_; }
205 private:
208 void SetCachedSize(int size) const;
209 public:
210 ::google::protobuf::Metadata GetMetadata() const;
211
212 // nested types ----------------------------------------------------
213
214 // accessors -------------------------------------------------------
215
216 // optional uint64 target_account_id = 1;
217 inline bool has_target_account_id() const;
218 inline void clear_target_account_id();
219 static const int kTargetAccountIdFieldNumber = 1;
220 inline ::google::protobuf::uint64 target_account_id() const;
221 inline void set_target_account_id(::google::protobuf::uint64 value);
222
223 // optional .bgs.protocol.ViewMarker view_marker = 2;
224 inline bool has_view_marker() const;
225 inline void clear_view_marker();
226 static const int kViewMarkerFieldNumber = 2;
227 inline const ::bgs::protocol::ViewMarker& view_marker() const;
228 inline ::bgs::protocol::ViewMarker* mutable_view_marker();
229 inline ::bgs::protocol::ViewMarker* release_view_marker();
230 inline void set_allocated_view_marker(::bgs::protocol::ViewMarker* view_marker);
231
232 // optional string target_battle_tag = 3;
233 inline bool has_target_battle_tag() const;
234 inline void clear_target_battle_tag();
235 static const int kTargetBattleTagFieldNumber = 3;
236 inline const ::std::string& target_battle_tag() const;
237 inline void set_target_battle_tag(const ::std::string& value);
238 inline void set_target_battle_tag(const char* value);
239 inline void set_target_battle_tag(const char* value, size_t size);
240 inline ::std::string* mutable_target_battle_tag();
241 inline ::std::string* release_target_battle_tag();
242 inline void set_allocated_target_battle_tag(::std::string* target_battle_tag);
243
244 // @@protoc_insertion_point(class_scope:bgs.protocol.whisper.v2.WhisperView)
245 private:
246 inline void set_has_target_account_id();
247 inline void clear_has_target_account_id();
248 inline void set_has_view_marker();
249 inline void clear_has_view_marker();
250 inline void set_has_target_battle_tag();
251 inline void clear_has_target_battle_tag();
252
253 ::google::protobuf::UnknownFieldSet _unknown_fields_;
254
255 ::google::protobuf::uint32 _has_bits_[1];
256 mutable int _cached_size_;
257 ::google::protobuf::uint64 target_account_id_;
259 ::std::string* target_battle_tag_;
263
266};
267// -------------------------------------------------------------------
268
269class TC_PROTO_API SendWhisperOptions : public ::google::protobuf::Message {
270 public:
273
275
277 CopyFrom(from);
278 return *this;
279 }
280
281 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
282 return _unknown_fields_;
283 }
284
285 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
286 return &_unknown_fields_;
287 }
288
289 static const ::google::protobuf::Descriptor* descriptor();
291
293
294 // implements Message ----------------------------------------------
295
297 int GetCachedSize() const { return _cached_size_; }
298 private:
301 void SetCachedSize(int size) const;
302 public:
303 ::google::protobuf::Metadata GetMetadata() const;
304
305 // nested types ----------------------------------------------------
306
307 // accessors -------------------------------------------------------
308
309 // optional string content = 1;
310 inline bool has_content() const;
311 inline void clear_content();
312 static const int kContentFieldNumber = 1;
313 inline const ::std::string& content() const;
314 inline void set_content(const ::std::string& value);
315 inline void set_content(const char* value);
316 inline void set_content(const char* value, size_t size);
317 inline ::std::string* mutable_content();
318 inline ::std::string* release_content();
319 inline void set_allocated_content(::std::string* content);
320
321 // @@protoc_insertion_point(class_scope:bgs.protocol.whisper.v2.SendWhisperOptions)
322 private:
323 inline void set_has_content();
324 inline void clear_has_content();
325
326 ::google::protobuf::UnknownFieldSet _unknown_fields_;
327
328 ::google::protobuf::uint32 _has_bits_[1];
329 mutable int _cached_size_;
330 ::std::string* content_;
334
337};
338// ===================================================================
339
340// ===================================================================
341
342// ===================================================================
343
344// Whisper
345
346// optional .bgs.protocol.MessageId whisper_id = 1;
347inline bool Whisper::has_whisper_id() const {
348 return (_has_bits_[0] & 0x00000001u) != 0;
349}
351 _has_bits_[0] |= 0x00000001u;
352}
354 _has_bits_[0] &= ~0x00000001u;
355}
357 if (whisper_id_ != NULL) whisper_id_->::bgs::protocol::MessageId::Clear();
359}
360inline const ::bgs::protocol::MessageId& Whisper::whisper_id() const {
361 // @@protoc_insertion_point(field_get:bgs.protocol.whisper.v2.Whisper.whisper_id)
363}
364inline ::bgs::protocol::MessageId* Whisper::mutable_whisper_id() {
366 if (whisper_id_ == NULL) whisper_id_ = new ::bgs::protocol::MessageId;
367 // @@protoc_insertion_point(field_mutable:bgs.protocol.whisper.v2.Whisper.whisper_id)
368 return whisper_id_;
369}
370inline ::bgs::protocol::MessageId* Whisper::release_whisper_id() {
373 whisper_id_ = NULL;
374 return temp;
375}
377 delete whisper_id_;
379 if (whisper_id) {
381 } else {
383 }
384 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.whisper.v2.Whisper.whisper_id)
385}
386
387// optional uint64 sender_account_id = 2;
389 return (_has_bits_[0] & 0x00000002u) != 0;
390}
392 _has_bits_[0] |= 0x00000002u;
393}
395 _has_bits_[0] &= ~0x00000002u;
396}
398 sender_account_id_ = GOOGLE_ULONGLONG(0);
400}
401inline ::google::protobuf::uint64 Whisper::sender_account_id() const {
402 // @@protoc_insertion_point(field_get:bgs.protocol.whisper.v2.Whisper.sender_account_id)
403 return sender_account_id_;
404}
405inline void Whisper::set_sender_account_id(::google::protobuf::uint64 value) {
407 sender_account_id_ = value;
408 // @@protoc_insertion_point(field_set:bgs.protocol.whisper.v2.Whisper.sender_account_id)
409}
410
411// optional uint64 receiver_account_id = 3;
413 return (_has_bits_[0] & 0x00000004u) != 0;
414}
416 _has_bits_[0] |= 0x00000004u;
417}
419 _has_bits_[0] &= ~0x00000004u;
420}
422 receiver_account_id_ = GOOGLE_ULONGLONG(0);
424}
425inline ::google::protobuf::uint64 Whisper::receiver_account_id() const {
426 // @@protoc_insertion_point(field_get:bgs.protocol.whisper.v2.Whisper.receiver_account_id)
428}
429inline void Whisper::set_receiver_account_id(::google::protobuf::uint64 value) {
431 receiver_account_id_ = value;
432 // @@protoc_insertion_point(field_set:bgs.protocol.whisper.v2.Whisper.receiver_account_id)
433}
434
435// optional uint32 title_id = 4;
436inline bool Whisper::has_title_id() const {
437 return (_has_bits_[0] & 0x00000008u) != 0;
438}
440 _has_bits_[0] |= 0x00000008u;
441}
443 _has_bits_[0] &= ~0x00000008u;
444}
446 title_id_ = 0u;
448}
449inline ::google::protobuf::uint32 Whisper::title_id() const {
450 // @@protoc_insertion_point(field_get:bgs.protocol.whisper.v2.Whisper.title_id)
451 return title_id_;
452}
453inline void Whisper::set_title_id(::google::protobuf::uint32 value) {
455 title_id_ = value;
456 // @@protoc_insertion_point(field_set:bgs.protocol.whisper.v2.Whisper.title_id)
457}
458
459// optional string content = 5;
460inline bool Whisper::has_content() const {
461 return (_has_bits_[0] & 0x00000010u) != 0;
462}
464 _has_bits_[0] |= 0x00000010u;
465}
467 _has_bits_[0] &= ~0x00000010u;
468}
470 if (content_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
471 content_->clear();
472 }
474}
475inline const ::std::string& Whisper::content() const {
476 // @@protoc_insertion_point(field_get:bgs.protocol.whisper.v2.Whisper.content)
477 return *content_;
478}
479inline void Whisper::set_content(const ::std::string& value) {
481 if (content_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
482 content_ = new ::std::string;
483 }
484 content_->assign(value);
485 // @@protoc_insertion_point(field_set:bgs.protocol.whisper.v2.Whisper.content)
486}
487inline void Whisper::set_content(const char* value) {
489 if (content_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
490 content_ = new ::std::string;
491 }
492 content_->assign(value);
493 // @@protoc_insertion_point(field_set_char:bgs.protocol.whisper.v2.Whisper.content)
494}
495inline void Whisper::set_content(const char* value, size_t size) {
497 if (content_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
498 content_ = new ::std::string;
499 }
500 content_->assign(reinterpret_cast<const char*>(value), size);
501 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.whisper.v2.Whisper.content)
502}
503inline ::std::string* Whisper::mutable_content() {
505 if (content_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
506 content_ = new ::std::string;
507 }
508 // @@protoc_insertion_point(field_mutable:bgs.protocol.whisper.v2.Whisper.content)
509 return content_;
510}
511inline ::std::string* Whisper::release_content() {
513 if (content_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
514 return NULL;
515 } else {
516 ::std::string* temp = content_;
517 content_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
518 return temp;
519 }
520}
521inline void Whisper::set_allocated_content(::std::string* content) {
522 if (content_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
523 delete content_;
524 }
525 if (content) {
528 } else {
530 content_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
531 }
532 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.whisper.v2.Whisper.content)
533}
534
535// repeated .bgs.protocol.EmbedInfo embeds = 6;
536inline int Whisper::embeds_size() const {
537 return embeds_.size();
538}
540 embeds_.Clear();
541}
542inline const ::bgs::protocol::EmbedInfo& Whisper::embeds(int index) const {
543 // @@protoc_insertion_point(field_get:bgs.protocol.whisper.v2.Whisper.embeds)
544 return embeds_.Get(index);
545}
546inline ::bgs::protocol::EmbedInfo* Whisper::mutable_embeds(int index) {
547 // @@protoc_insertion_point(field_mutable:bgs.protocol.whisper.v2.Whisper.embeds)
548 return embeds_.Mutable(index);
549}
550inline ::bgs::protocol::EmbedInfo* Whisper::add_embeds() {
551 // @@protoc_insertion_point(field_add:bgs.protocol.whisper.v2.Whisper.embeds)
552 return embeds_.Add();
553}
554inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::EmbedInfo >&
556 // @@protoc_insertion_point(field_list:bgs.protocol.whisper.v2.Whisper.embeds)
557 return embeds_;
558}
559inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::EmbedInfo >*
561 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.whisper.v2.Whisper.embeds)
562 return &embeds_;
563}
564
565// -------------------------------------------------------------------
566
567// WhisperView
568
569// optional uint64 target_account_id = 1;
571 return (_has_bits_[0] & 0x00000001u) != 0;
572}
574 _has_bits_[0] |= 0x00000001u;
575}
577 _has_bits_[0] &= ~0x00000001u;
578}
580 target_account_id_ = GOOGLE_ULONGLONG(0);
582}
583inline ::google::protobuf::uint64 WhisperView::target_account_id() const {
584 // @@protoc_insertion_point(field_get:bgs.protocol.whisper.v2.WhisperView.target_account_id)
585 return target_account_id_;
586}
587inline void WhisperView::set_target_account_id(::google::protobuf::uint64 value) {
589 target_account_id_ = value;
590 // @@protoc_insertion_point(field_set:bgs.protocol.whisper.v2.WhisperView.target_account_id)
591}
592
593// optional .bgs.protocol.ViewMarker view_marker = 2;
594inline bool WhisperView::has_view_marker() const {
595 return (_has_bits_[0] & 0x00000002u) != 0;
596}
598 _has_bits_[0] |= 0x00000002u;
599}
601 _has_bits_[0] &= ~0x00000002u;
602}
604 if (view_marker_ != NULL) view_marker_->::bgs::protocol::ViewMarker::Clear();
606}
607inline const ::bgs::protocol::ViewMarker& WhisperView::view_marker() const {
608 // @@protoc_insertion_point(field_get:bgs.protocol.whisper.v2.WhisperView.view_marker)
610}
611inline ::bgs::protocol::ViewMarker* WhisperView::mutable_view_marker() {
613 if (view_marker_ == NULL) view_marker_ = new ::bgs::protocol::ViewMarker;
614 // @@protoc_insertion_point(field_mutable:bgs.protocol.whisper.v2.WhisperView.view_marker)
615 return view_marker_;
616}
617inline ::bgs::protocol::ViewMarker* WhisperView::release_view_marker() {
620 view_marker_ = NULL;
621 return temp;
622}
624 delete view_marker_;
626 if (view_marker) {
628 } else {
630 }
631 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.whisper.v2.WhisperView.view_marker)
632}
633
634// optional string target_battle_tag = 3;
636 return (_has_bits_[0] & 0x00000004u) != 0;
637}
639 _has_bits_[0] |= 0x00000004u;
640}
642 _has_bits_[0] &= ~0x00000004u;
643}
645 if (target_battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
646 target_battle_tag_->clear();
647 }
649}
650inline const ::std::string& WhisperView::target_battle_tag() const {
651 // @@protoc_insertion_point(field_get:bgs.protocol.whisper.v2.WhisperView.target_battle_tag)
652 return *target_battle_tag_;
653}
654inline void WhisperView::set_target_battle_tag(const ::std::string& value) {
656 if (target_battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
657 target_battle_tag_ = new ::std::string;
658 }
659 target_battle_tag_->assign(value);
660 // @@protoc_insertion_point(field_set:bgs.protocol.whisper.v2.WhisperView.target_battle_tag)
661}
662inline void WhisperView::set_target_battle_tag(const char* value) {
664 if (target_battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
665 target_battle_tag_ = new ::std::string;
666 }
667 target_battle_tag_->assign(value);
668 // @@protoc_insertion_point(field_set_char:bgs.protocol.whisper.v2.WhisperView.target_battle_tag)
669}
670inline void WhisperView::set_target_battle_tag(const char* value, size_t size) {
672 if (target_battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
673 target_battle_tag_ = new ::std::string;
674 }
675 target_battle_tag_->assign(reinterpret_cast<const char*>(value), size);
676 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.whisper.v2.WhisperView.target_battle_tag)
677}
680 if (target_battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
681 target_battle_tag_ = new ::std::string;
682 }
683 // @@protoc_insertion_point(field_mutable:bgs.protocol.whisper.v2.WhisperView.target_battle_tag)
684 return target_battle_tag_;
685}
688 if (target_battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
689 return NULL;
690 } else {
691 ::std::string* temp = target_battle_tag_;
692 target_battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
693 return temp;
694 }
695}
696inline void WhisperView::set_allocated_target_battle_tag(::std::string* target_battle_tag) {
697 if (target_battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
698 delete target_battle_tag_;
699 }
700 if (target_battle_tag) {
703 } else {
705 target_battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
706 }
707 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.whisper.v2.WhisperView.target_battle_tag)
708}
709
710// -------------------------------------------------------------------
711
712// SendWhisperOptions
713
714// optional string content = 1;
716 return (_has_bits_[0] & 0x00000001u) != 0;
717}
719 _has_bits_[0] |= 0x00000001u;
720}
722 _has_bits_[0] &= ~0x00000001u;
723}
725 if (content_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
726 content_->clear();
727 }
729}
730inline const ::std::string& SendWhisperOptions::content() const {
731 // @@protoc_insertion_point(field_get:bgs.protocol.whisper.v2.SendWhisperOptions.content)
732 return *content_;
733}
734inline void SendWhisperOptions::set_content(const ::std::string& value) {
736 if (content_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
737 content_ = new ::std::string;
738 }
739 content_->assign(value);
740 // @@protoc_insertion_point(field_set:bgs.protocol.whisper.v2.SendWhisperOptions.content)
741}
742inline void SendWhisperOptions::set_content(const char* value) {
744 if (content_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
745 content_ = new ::std::string;
746 }
747 content_->assign(value);
748 // @@protoc_insertion_point(field_set_char:bgs.protocol.whisper.v2.SendWhisperOptions.content)
749}
750inline void SendWhisperOptions::set_content(const char* value, size_t size) {
752 if (content_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
753 content_ = new ::std::string;
754 }
755 content_->assign(reinterpret_cast<const char*>(value), size);
756 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.whisper.v2.SendWhisperOptions.content)
757}
758inline ::std::string* SendWhisperOptions::mutable_content() {
760 if (content_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
761 content_ = new ::std::string;
762 }
763 // @@protoc_insertion_point(field_mutable:bgs.protocol.whisper.v2.SendWhisperOptions.content)
764 return content_;
765}
766inline ::std::string* SendWhisperOptions::release_content() {
768 if (content_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
769 return NULL;
770 } else {
771 ::std::string* temp = content_;
772 content_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
773 return temp;
774 }
775}
776inline void SendWhisperOptions::set_allocated_content(::std::string* content) {
777 if (content_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
778 delete content_;
779 }
780 if (content) {
783 } else {
785 content_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
786 }
787 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.whisper.v2.SendWhisperOptions.content)
788}
789
790// @@protoc_insertion_point(namespace_scope)
791
792} // namespace v2
793} // namespace whisper
794} // namespace protocol
795} // namespace bgs
796
797#ifndef SWIG
798namespace google {
799namespace protobuf {
800} // namespace google
801} // namespace protobuf
802#endif // SWIG
803
804// @@protoc_insertion_point(global_scope)
805
806#endif // PROTOBUF_api_2fcommon_2fv2_2fwhisper_5ftypes_2eproto__INCLUDED
#define TC_PROTO_API
Definition Define.h:105
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
friend void TC_PROTO_API protobuf_AddDesc_api_2fcommon_2fv2_2fwhisper_5ftypes_2eproto()
friend void protobuf_AssignDesc_api_2fcommon_2fv2_2fwhisper_5ftypes_2eproto()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
::google::protobuf::Metadata GetMetadata() const
void set_content(const ::std::string &value)
SendWhisperOptions(const SendWhisperOptions &from)
::google::protobuf::UnknownFieldSet _unknown_fields_
friend void protobuf_ShutdownFile_api_2fcommon_2fv2_2fwhisper_5ftypes_2eproto()
SendWhisperOptions & operator=(const SendWhisperOptions &from)
void Swap(SendWhisperOptions *other)
static const SendWhisperOptions & default_instance()
void set_allocated_content(::std::string *content)
static const ::google::protobuf::Descriptor * descriptor()
void set_target_battle_tag(const ::std::string &value)
::bgs::protocol::ViewMarker * view_marker_
friend void TC_PROTO_API protobuf_AddDesc_api_2fcommon_2fv2_2fwhisper_5ftypes_2eproto()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
inline ::bgs::protocol::ViewMarker * mutable_view_marker()
static const WhisperView & default_instance()
::google::protobuf::Metadata GetMetadata() const
const ::bgs::protocol::ViewMarker & view_marker() const
friend void protobuf_AssignDesc_api_2fcommon_2fv2_2fwhisper_5ftypes_2eproto()
inline ::google::protobuf::uint64 target_account_id() const
void set_allocated_target_battle_tag(::std::string *target_battle_tag)
const ::std::string & target_battle_tag() const
WhisperView & operator=(const WhisperView &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
static const ::google::protobuf::Descriptor * descriptor()
inline ::std::string * mutable_target_battle_tag()
friend void protobuf_ShutdownFile_api_2fcommon_2fv2_2fwhisper_5ftypes_2eproto()
WhisperView(const WhisperView &from)
::google::protobuf::UnknownFieldSet _unknown_fields_
inline ::std::string * release_target_battle_tag()
inline ::bgs::protocol::ViewMarker * release_view_marker()
::google::protobuf::uint64 target_account_id_
void set_allocated_view_marker(::bgs::protocol::ViewMarker *view_marker)
::google::protobuf::uint32 _has_bits_[1]
void set_target_account_id(::google::protobuf::uint64 value)
void set_sender_account_id(::google::protobuf::uint64 value)
friend void TC_PROTO_API protobuf_AddDesc_api_2fcommon_2fv2_2fwhisper_5ftypes_2eproto()
static const Whisper & default_instance()
inline ::google::protobuf::uint32 title_id() const
inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::EmbedInfo > * mutable_embeds()
friend void protobuf_AssignDesc_api_2fcommon_2fv2_2fwhisper_5ftypes_2eproto()
inline ::std::string * mutable_content()
inline ::bgs::protocol::MessageId * release_whisper_id()
Whisper & operator=(const Whisper &from)
static const ::google::protobuf::Descriptor * descriptor()
inline ::google::protobuf::uint64 sender_account_id() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void set_receiver_account_id(::google::protobuf::uint64 value)
::google::protobuf::uint32 title_id_
void set_content(const ::std::string &value)
inline ::std::string * release_content()
::google::protobuf::Metadata GetMetadata() const
void set_title_id(::google::protobuf::uint32 value)
::bgs::protocol::MessageId * whisper_id_
void SetCachedSize(int size) const
inline ::bgs::protocol::MessageId * mutable_whisper_id()
void set_allocated_content(::std::string *content)
::google::protobuf::RepeatedPtrField< ::bgs::protocol::EmbedInfo > embeds_
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::EmbedInfo > & embeds() const
friend void protobuf_ShutdownFile_api_2fcommon_2fv2_2fwhisper_5ftypes_2eproto()
::google::protobuf::uint64 sender_account_id_
const ::bgs::protocol::MessageId & whisper_id() const
inline ::google::protobuf::uint64 receiver_account_id() const
inline ::bgs::protocol::EmbedInfo * add_embeds()
::google::protobuf::UnknownFieldSet _unknown_fields_
::google::protobuf::uint64 receiver_account_id_
const ::std::string & content() const
void set_allocated_whisper_id(::bgs::protocol::MessageId *whisper_id)
::google::protobuf::uint32 _has_bits_[1]
void protobuf_ShutdownFile_api_2fcommon_2fv2_2fwhisper_5ftypes_2eproto()
void TC_PROTO_API protobuf_AddDesc_api_2fcommon_2fv2_2fwhisper_5ftypes_2eproto()
void protobuf_AssignDesc_api_2fcommon_2fv2_2fwhisper_5ftypes_2eproto()
Definition Session.h:37