TrinityCore
embed_types.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: embed_types.proto
3
4#ifndef PROTOBUF_embed_5ftypes_2eproto__INCLUDED
5#define PROTOBUF_embed_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>
27#include "Define.h" // for TC_PROTO_API
28// @@protoc_insertion_point(includes)
29
30namespace bgs {
31namespace protocol {
32
33// Internal implementation detail -- do not call these.
37
38class EmbedImage;
39class Provider;
40class EmbedHTML;
41class EmbedInfo;
42
43// ===================================================================
44
45class TC_PROTO_API EmbedImage : public ::google::protobuf::Message {
46 public:
48 virtual ~EmbedImage();
49
50 EmbedImage(const EmbedImage& from);
51
52 inline EmbedImage& operator=(const EmbedImage& 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();
67
68 void Swap(EmbedImage* other);
69
70 // implements Message ----------------------------------------------
71
72 EmbedImage* 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 string url = 1;
86 inline bool has_url() const;
87 inline void clear_url();
88 static const int kUrlFieldNumber = 1;
89 inline const ::std::string& url() const;
90 inline void set_url(const ::std::string& value);
91 inline void set_url(const char* value);
92 inline void set_url(const char* value, size_t size);
93 inline ::std::string* mutable_url();
94 inline ::std::string* release_url();
95 inline void set_allocated_url(::std::string* url);
96
97 // optional uint32 width = 2;
98 inline bool has_width() const;
99 inline void clear_width();
100 static const int kWidthFieldNumber = 2;
102 inline void set_width(::google::protobuf::uint32 value);
103
104 // optional uint32 height = 3;
105 inline bool has_height() const;
106 inline void clear_height();
107 static const int kHeightFieldNumber = 3;
109 inline void set_height(::google::protobuf::uint32 value);
110
111 // @@protoc_insertion_point(class_scope:bgs.protocol.EmbedImage)
112 private:
113 inline void set_has_url();
114 inline void clear_has_url();
115 inline void set_has_width();
116 inline void clear_has_width();
117 inline void set_has_height();
118 inline void clear_has_height();
119
120 ::google::protobuf::UnknownFieldSet _unknown_fields_;
121
123 mutable int _cached_size_;
124 ::std::string* url_;
130
133};
134// -------------------------------------------------------------------
135
136class TC_PROTO_API Provider : public ::google::protobuf::Message {
137 public:
139 virtual ~Provider();
140
141 Provider(const Provider& from);
142
143 inline Provider& operator=(const Provider& from) {
144 CopyFrom(from);
145 return *this;
146 }
147
148 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
149 return _unknown_fields_;
150 }
151
152 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
153 return &_unknown_fields_;
154 }
155
156 static const ::google::protobuf::Descriptor* descriptor();
157 static const Provider& default_instance();
158
159 void Swap(Provider* other);
160
161 // implements Message ----------------------------------------------
162
163 Provider* New() const;
164 int GetCachedSize() const { return _cached_size_; }
165 private:
168 void SetCachedSize(int size) const;
169 public:
170 ::google::protobuf::Metadata GetMetadata() const;
171
172 // nested types ----------------------------------------------------
173
174 // accessors -------------------------------------------------------
175
176 // optional string name = 1;
177 inline bool has_name() const;
178 inline void clear_name();
179 static const int kNameFieldNumber = 1;
180 inline const ::std::string& name() const;
181 inline void set_name(const ::std::string& value);
182 inline void set_name(const char* value);
183 inline void set_name(const char* value, size_t size);
184 inline ::std::string* mutable_name();
185 inline ::std::string* release_name();
186 inline void set_allocated_name(::std::string* name);
187
188 // @@protoc_insertion_point(class_scope:bgs.protocol.Provider)
189 private:
190 inline void set_has_name();
191 inline void clear_has_name();
192
193 ::google::protobuf::UnknownFieldSet _unknown_fields_;
194
196 mutable int _cached_size_;
197 ::std::string* name_;
201
204};
205// -------------------------------------------------------------------
206
207class TC_PROTO_API EmbedHTML : public ::google::protobuf::Message {
208 public:
210 virtual ~EmbedHTML();
211
212 EmbedHTML(const EmbedHTML& from);
213
214 inline EmbedHTML& operator=(const EmbedHTML& from) {
215 CopyFrom(from);
216 return *this;
217 }
218
219 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
220 return _unknown_fields_;
221 }
222
223 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
224 return &_unknown_fields_;
225 }
226
227 static const ::google::protobuf::Descriptor* descriptor();
229
230 void Swap(EmbedHTML* other);
231
232 // implements Message ----------------------------------------------
233
234 EmbedHTML* New() const;
235 int GetCachedSize() const { return _cached_size_; }
236 private:
239 void SetCachedSize(int size) const;
240 public:
241 ::google::protobuf::Metadata GetMetadata() const;
242
243 // nested types ----------------------------------------------------
244
245 // accessors -------------------------------------------------------
246
247 // optional string content = 1;
248 inline bool has_content() const;
249 inline void clear_content();
250 static const int kContentFieldNumber = 1;
251 inline const ::std::string& content() const;
252 inline void set_content(const ::std::string& value);
253 inline void set_content(const char* value);
254 inline void set_content(const char* value, size_t size);
255 inline ::std::string* mutable_content();
256 inline ::std::string* release_content();
257 inline void set_allocated_content(::std::string* content);
258
259 // optional uint32 width = 2;
260 inline bool has_width() const;
261 inline void clear_width();
262 static const int kWidthFieldNumber = 2;
264 inline void set_width(::google::protobuf::uint32 value);
265
266 // optional uint32 height = 3;
267 inline bool has_height() const;
268 inline void clear_height();
269 static const int kHeightFieldNumber = 3;
271 inline void set_height(::google::protobuf::uint32 value);
272
273 // @@protoc_insertion_point(class_scope:bgs.protocol.EmbedHTML)
274 private:
275 inline void set_has_content();
276 inline void clear_has_content();
277 inline void set_has_width();
278 inline void clear_has_width();
279 inline void set_has_height();
280 inline void clear_has_height();
281
282 ::google::protobuf::UnknownFieldSet _unknown_fields_;
283
285 mutable int _cached_size_;
286 ::std::string* content_;
292
295};
296// -------------------------------------------------------------------
297
298class TC_PROTO_API EmbedInfo : public ::google::protobuf::Message {
299 public:
301 virtual ~EmbedInfo();
302
303 EmbedInfo(const EmbedInfo& from);
304
305 inline EmbedInfo& operator=(const EmbedInfo& from) {
306 CopyFrom(from);
307 return *this;
308 }
309
310 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
311 return _unknown_fields_;
312 }
313
314 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
315 return &_unknown_fields_;
316 }
317
318 static const ::google::protobuf::Descriptor* descriptor();
320
321 void Swap(EmbedInfo* other);
322
323 // implements Message ----------------------------------------------
324
325 EmbedInfo* New() const;
326 int GetCachedSize() const { return _cached_size_; }
327 private:
330 void SetCachedSize(int size) const;
331 public:
332 ::google::protobuf::Metadata GetMetadata() const;
333
334 // nested types ----------------------------------------------------
335
336 // accessors -------------------------------------------------------
337
338 // optional string title = 1;
339 inline bool has_title() const;
340 inline void clear_title();
341 static const int kTitleFieldNumber = 1;
342 inline const ::std::string& title() const;
343 inline void set_title(const ::std::string& value);
344 inline void set_title(const char* value);
345 inline void set_title(const char* value, size_t size);
346 inline ::std::string* mutable_title();
347 inline ::std::string* release_title();
348 inline void set_allocated_title(::std::string* title);
349
350 // optional string type = 2;
351 inline bool has_type() const;
352 inline void clear_type();
353 static const int kTypeFieldNumber = 2;
354 inline const ::std::string& type() const;
355 inline void set_type(const ::std::string& value);
356 inline void set_type(const char* value);
357 inline void set_type(const char* value, size_t size);
358 inline ::std::string* mutable_type();
359 inline ::std::string* release_type();
360 inline void set_allocated_type(::std::string* type);
361
362 // optional string original_url = 3;
363 inline bool has_original_url() const;
364 inline void clear_original_url();
365 static const int kOriginalUrlFieldNumber = 3;
366 inline const ::std::string& original_url() const;
367 inline void set_original_url(const ::std::string& value);
368 inline void set_original_url(const char* value);
369 inline void set_original_url(const char* value, size_t size);
370 inline ::std::string* mutable_original_url();
371 inline ::std::string* release_original_url();
372 inline void set_allocated_original_url(::std::string* original_url);
373
374 // optional .bgs.protocol.EmbedImage thumbnail = 4;
375 inline bool has_thumbnail() const;
376 inline void clear_thumbnail();
377 static const int kThumbnailFieldNumber = 4;
378 inline const ::bgs::protocol::EmbedImage& thumbnail() const;
379 inline ::bgs::protocol::EmbedImage* mutable_thumbnail();
380 inline ::bgs::protocol::EmbedImage* release_thumbnail();
381 inline void set_allocated_thumbnail(::bgs::protocol::EmbedImage* thumbnail);
382
383 // optional .bgs.protocol.Provider provider = 5;
384 inline bool has_provider() const;
385 inline void clear_provider();
386 static const int kProviderFieldNumber = 5;
387 inline const ::bgs::protocol::Provider& provider() const;
388 inline ::bgs::protocol::Provider* mutable_provider();
389 inline ::bgs::protocol::Provider* release_provider();
390 inline void set_allocated_provider(::bgs::protocol::Provider* provider);
391
392 // optional string description = 6;
393 inline bool has_description() const;
394 inline void clear_description();
395 static const int kDescriptionFieldNumber = 6;
396 inline const ::std::string& description() const;
397 inline void set_description(const ::std::string& value);
398 inline void set_description(const char* value);
399 inline void set_description(const char* value, size_t size);
400 inline ::std::string* mutable_description();
401 inline ::std::string* release_description();
402 inline void set_allocated_description(::std::string* description);
403
404 // optional .bgs.protocol.EmbedHTML html = 8;
405 inline bool has_html() const;
406 inline void clear_html();
407 static const int kHtmlFieldNumber = 8;
408 inline const ::bgs::protocol::EmbedHTML& html() const;
409 inline ::bgs::protocol::EmbedHTML* mutable_html();
410 inline ::bgs::protocol::EmbedHTML* release_html();
411 inline void set_allocated_html(::bgs::protocol::EmbedHTML* html);
412
413 // @@protoc_insertion_point(class_scope:bgs.protocol.EmbedInfo)
414 private:
415 inline void set_has_title();
416 inline void clear_has_title();
417 inline void set_has_type();
418 inline void clear_has_type();
419 inline void set_has_original_url();
420 inline void clear_has_original_url();
421 inline void set_has_thumbnail();
422 inline void clear_has_thumbnail();
423 inline void set_has_provider();
424 inline void clear_has_provider();
425 inline void set_has_description();
426 inline void clear_has_description();
427 inline void set_has_html();
428 inline void clear_has_html();
429
430 ::google::protobuf::UnknownFieldSet _unknown_fields_;
431
433 mutable int _cached_size_;
434 ::std::string* title_;
435 ::std::string* type_;
436 ::std::string* original_url_;
439 ::std::string* description_;
444
447};
448// ===================================================================
449
450// ===================================================================
451
452// ===================================================================
453
454// EmbedImage
455
456// optional string url = 1;
457inline bool EmbedImage::has_url() const {
458 return (_has_bits_[0] & 0x00000001u) != 0;
459}
461 _has_bits_[0] |= 0x00000001u;
462}
464 _has_bits_[0] &= ~0x00000001u;
465}
467 if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
468 url_->clear();
469 }
471}
472inline const ::std::string& EmbedImage::url() const {
473 // @@protoc_insertion_point(field_get:bgs.protocol.EmbedImage.url)
474 return *url_;
475}
476inline void EmbedImage::set_url(const ::std::string& value) {
477 set_has_url();
478 if (url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
479 url_ = new ::std::string;
480 }
481 url_->assign(value);
482 // @@protoc_insertion_point(field_set:bgs.protocol.EmbedImage.url)
483}
484inline void EmbedImage::set_url(const char* value) {
485 set_has_url();
486 if (url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
487 url_ = new ::std::string;
488 }
489 url_->assign(value);
490 // @@protoc_insertion_point(field_set_char:bgs.protocol.EmbedImage.url)
491}
492inline void EmbedImage::set_url(const char* value, size_t size) {
493 set_has_url();
494 if (url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
495 url_ = new ::std::string;
496 }
497 url_->assign(reinterpret_cast<const char*>(value), size);
498 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.EmbedImage.url)
499}
500inline ::std::string* EmbedImage::mutable_url() {
501 set_has_url();
502 if (url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
503 url_ = new ::std::string;
504 }
505 // @@protoc_insertion_point(field_mutable:bgs.protocol.EmbedImage.url)
506 return url_;
507}
508inline ::std::string* EmbedImage::release_url() {
510 if (url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
511 return NULL;
512 } else {
513 ::std::string* temp = url_;
514 url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
515 return temp;
516 }
517}
518inline void EmbedImage::set_allocated_url(::std::string* url) {
519 if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
520 delete url_;
521 }
522 if (url) {
523 set_has_url();
524 url_ = url;
525 } else {
527 url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
528 }
529 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.EmbedImage.url)
530}
531
532// optional uint32 width = 2;
533inline bool EmbedImage::has_width() const {
534 return (_has_bits_[0] & 0x00000002u) != 0;
535}
537 _has_bits_[0] |= 0x00000002u;
538}
540 _has_bits_[0] &= ~0x00000002u;
541}
543 width_ = 0u;
545}
547 // @@protoc_insertion_point(field_get:bgs.protocol.EmbedImage.width)
548 return width_;
549}
552 width_ = value;
553 // @@protoc_insertion_point(field_set:bgs.protocol.EmbedImage.width)
554}
555
556// optional uint32 height = 3;
557inline bool EmbedImage::has_height() const {
558 return (_has_bits_[0] & 0x00000004u) != 0;
559}
561 _has_bits_[0] |= 0x00000004u;
562}
564 _has_bits_[0] &= ~0x00000004u;
565}
567 height_ = 0u;
569}
571 // @@protoc_insertion_point(field_get:bgs.protocol.EmbedImage.height)
572 return height_;
573}
576 height_ = value;
577 // @@protoc_insertion_point(field_set:bgs.protocol.EmbedImage.height)
578}
579
580// -------------------------------------------------------------------
581
582// Provider
583
584// optional string name = 1;
585inline bool Provider::has_name() const {
586 return (_has_bits_[0] & 0x00000001u) != 0;
587}
589 _has_bits_[0] |= 0x00000001u;
590}
592 _has_bits_[0] &= ~0x00000001u;
593}
594inline void Provider::clear_name() {
595 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
596 name_->clear();
597 }
599}
600inline const ::std::string& Provider::name() const {
601 // @@protoc_insertion_point(field_get:bgs.protocol.Provider.name)
602 return *name_;
603}
604inline void Provider::set_name(const ::std::string& value) {
605 set_has_name();
606 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
607 name_ = new ::std::string;
608 }
609 name_->assign(value);
610 // @@protoc_insertion_point(field_set:bgs.protocol.Provider.name)
611}
612inline void Provider::set_name(const char* value) {
613 set_has_name();
614 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
615 name_ = new ::std::string;
616 }
617 name_->assign(value);
618 // @@protoc_insertion_point(field_set_char:bgs.protocol.Provider.name)
619}
620inline void Provider::set_name(const char* value, size_t size) {
621 set_has_name();
622 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
623 name_ = new ::std::string;
624 }
625 name_->assign(reinterpret_cast<const char*>(value), size);
626 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.Provider.name)
627}
628inline ::std::string* Provider::mutable_name() {
629 set_has_name();
630 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
631 name_ = new ::std::string;
632 }
633 // @@protoc_insertion_point(field_mutable:bgs.protocol.Provider.name)
634 return name_;
635}
636inline ::std::string* Provider::release_name() {
638 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
639 return NULL;
640 } else {
641 ::std::string* temp = name_;
642 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
643 return temp;
644 }
645}
646inline void Provider::set_allocated_name(::std::string* name) {
647 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
648 delete name_;
649 }
650 if (name) {
651 set_has_name();
652 name_ = name;
653 } else {
655 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
656 }
657 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.Provider.name)
658}
659
660// -------------------------------------------------------------------
661
662// EmbedHTML
663
664// optional string content = 1;
665inline bool EmbedHTML::has_content() const {
666 return (_has_bits_[0] & 0x00000001u) != 0;
667}
669 _has_bits_[0] |= 0x00000001u;
670}
672 _has_bits_[0] &= ~0x00000001u;
673}
675 if (content_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
676 content_->clear();
677 }
679}
680inline const ::std::string& EmbedHTML::content() const {
681 // @@protoc_insertion_point(field_get:bgs.protocol.EmbedHTML.content)
682 return *content_;
683}
684inline void EmbedHTML::set_content(const ::std::string& value) {
686 if (content_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
687 content_ = new ::std::string;
688 }
689 content_->assign(value);
690 // @@protoc_insertion_point(field_set:bgs.protocol.EmbedHTML.content)
691}
692inline void EmbedHTML::set_content(const char* value) {
694 if (content_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
695 content_ = new ::std::string;
696 }
697 content_->assign(value);
698 // @@protoc_insertion_point(field_set_char:bgs.protocol.EmbedHTML.content)
699}
700inline void EmbedHTML::set_content(const char* value, size_t size) {
702 if (content_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
703 content_ = new ::std::string;
704 }
705 content_->assign(reinterpret_cast<const char*>(value), size);
706 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.EmbedHTML.content)
707}
708inline ::std::string* EmbedHTML::mutable_content() {
710 if (content_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
711 content_ = new ::std::string;
712 }
713 // @@protoc_insertion_point(field_mutable:bgs.protocol.EmbedHTML.content)
714 return content_;
715}
716inline ::std::string* EmbedHTML::release_content() {
718 if (content_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
719 return NULL;
720 } else {
721 ::std::string* temp = content_;
722 content_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
723 return temp;
724 }
725}
726inline void EmbedHTML::set_allocated_content(::std::string* content) {
727 if (content_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
728 delete content_;
729 }
730 if (content) {
733 } else {
735 content_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
736 }
737 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.EmbedHTML.content)
738}
739
740// optional uint32 width = 2;
741inline bool EmbedHTML::has_width() const {
742 return (_has_bits_[0] & 0x00000002u) != 0;
743}
745 _has_bits_[0] |= 0x00000002u;
746}
748 _has_bits_[0] &= ~0x00000002u;
749}
751 width_ = 0u;
753}
755 // @@protoc_insertion_point(field_get:bgs.protocol.EmbedHTML.width)
756 return width_;
757}
760 width_ = value;
761 // @@protoc_insertion_point(field_set:bgs.protocol.EmbedHTML.width)
762}
763
764// optional uint32 height = 3;
765inline bool EmbedHTML::has_height() const {
766 return (_has_bits_[0] & 0x00000004u) != 0;
767}
769 _has_bits_[0] |= 0x00000004u;
770}
772 _has_bits_[0] &= ~0x00000004u;
773}
775 height_ = 0u;
777}
779 // @@protoc_insertion_point(field_get:bgs.protocol.EmbedHTML.height)
780 return height_;
781}
784 height_ = value;
785 // @@protoc_insertion_point(field_set:bgs.protocol.EmbedHTML.height)
786}
787
788// -------------------------------------------------------------------
789
790// EmbedInfo
791
792// optional string title = 1;
793inline bool EmbedInfo::has_title() const {
794 return (_has_bits_[0] & 0x00000001u) != 0;
795}
797 _has_bits_[0] |= 0x00000001u;
798}
800 _has_bits_[0] &= ~0x00000001u;
801}
803 if (title_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
804 title_->clear();
805 }
807}
808inline const ::std::string& EmbedInfo::title() const {
809 // @@protoc_insertion_point(field_get:bgs.protocol.EmbedInfo.title)
810 return *title_;
811}
812inline void EmbedInfo::set_title(const ::std::string& value) {
814 if (title_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
815 title_ = new ::std::string;
816 }
817 title_->assign(value);
818 // @@protoc_insertion_point(field_set:bgs.protocol.EmbedInfo.title)
819}
820inline void EmbedInfo::set_title(const char* value) {
822 if (title_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
823 title_ = new ::std::string;
824 }
825 title_->assign(value);
826 // @@protoc_insertion_point(field_set_char:bgs.protocol.EmbedInfo.title)
827}
828inline void EmbedInfo::set_title(const char* value, size_t size) {
830 if (title_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
831 title_ = new ::std::string;
832 }
833 title_->assign(reinterpret_cast<const char*>(value), size);
834 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.EmbedInfo.title)
835}
836inline ::std::string* EmbedInfo::mutable_title() {
838 if (title_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
839 title_ = new ::std::string;
840 }
841 // @@protoc_insertion_point(field_mutable:bgs.protocol.EmbedInfo.title)
842 return title_;
843}
844inline ::std::string* EmbedInfo::release_title() {
846 if (title_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
847 return NULL;
848 } else {
849 ::std::string* temp = title_;
850 title_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
851 return temp;
852 }
853}
854inline void EmbedInfo::set_allocated_title(::std::string* title) {
855 if (title_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
856 delete title_;
857 }
858 if (title) {
860 title_ = title;
861 } else {
863 title_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
864 }
865 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.EmbedInfo.title)
866}
867
868// optional string type = 2;
869inline bool EmbedInfo::has_type() const {
870 return (_has_bits_[0] & 0x00000002u) != 0;
871}
873 _has_bits_[0] |= 0x00000002u;
874}
876 _has_bits_[0] &= ~0x00000002u;
877}
879 if (type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
880 type_->clear();
881 }
883}
884inline const ::std::string& EmbedInfo::type() const {
885 // @@protoc_insertion_point(field_get:bgs.protocol.EmbedInfo.type)
886 return *type_;
887}
888inline void EmbedInfo::set_type(const ::std::string& value) {
889 set_has_type();
890 if (type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
891 type_ = new ::std::string;
892 }
893 type_->assign(value);
894 // @@protoc_insertion_point(field_set:bgs.protocol.EmbedInfo.type)
895}
896inline void EmbedInfo::set_type(const char* value) {
897 set_has_type();
898 if (type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
899 type_ = new ::std::string;
900 }
901 type_->assign(value);
902 // @@protoc_insertion_point(field_set_char:bgs.protocol.EmbedInfo.type)
903}
904inline void EmbedInfo::set_type(const char* value, size_t size) {
905 set_has_type();
906 if (type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
907 type_ = new ::std::string;
908 }
909 type_->assign(reinterpret_cast<const char*>(value), size);
910 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.EmbedInfo.type)
911}
912inline ::std::string* EmbedInfo::mutable_type() {
913 set_has_type();
914 if (type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
915 type_ = new ::std::string;
916 }
917 // @@protoc_insertion_point(field_mutable:bgs.protocol.EmbedInfo.type)
918 return type_;
919}
920inline ::std::string* EmbedInfo::release_type() {
922 if (type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
923 return NULL;
924 } else {
925 ::std::string* temp = type_;
926 type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
927 return temp;
928 }
929}
930inline void EmbedInfo::set_allocated_type(::std::string* type) {
931 if (type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
932 delete type_;
933 }
934 if (type) {
935 set_has_type();
936 type_ = type;
937 } else {
939 type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
940 }
941 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.EmbedInfo.type)
942}
943
944// optional string original_url = 3;
945inline bool EmbedInfo::has_original_url() const {
946 return (_has_bits_[0] & 0x00000004u) != 0;
947}
949 _has_bits_[0] |= 0x00000004u;
950}
952 _has_bits_[0] &= ~0x00000004u;
953}
955 if (original_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
956 original_url_->clear();
957 }
959}
960inline const ::std::string& EmbedInfo::original_url() const {
961 // @@protoc_insertion_point(field_get:bgs.protocol.EmbedInfo.original_url)
962 return *original_url_;
963}
964inline void EmbedInfo::set_original_url(const ::std::string& value) {
966 if (original_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
967 original_url_ = new ::std::string;
968 }
969 original_url_->assign(value);
970 // @@protoc_insertion_point(field_set:bgs.protocol.EmbedInfo.original_url)
971}
972inline void EmbedInfo::set_original_url(const char* value) {
974 if (original_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
975 original_url_ = new ::std::string;
976 }
977 original_url_->assign(value);
978 // @@protoc_insertion_point(field_set_char:bgs.protocol.EmbedInfo.original_url)
979}
980inline void EmbedInfo::set_original_url(const char* value, size_t size) {
982 if (original_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
983 original_url_ = new ::std::string;
984 }
985 original_url_->assign(reinterpret_cast<const char*>(value), size);
986 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.EmbedInfo.original_url)
987}
988inline ::std::string* EmbedInfo::mutable_original_url() {
990 if (original_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
991 original_url_ = new ::std::string;
992 }
993 // @@protoc_insertion_point(field_mutable:bgs.protocol.EmbedInfo.original_url)
994 return original_url_;
995}
996inline ::std::string* EmbedInfo::release_original_url() {
998 if (original_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
999 return NULL;
1000 } else {
1001 ::std::string* temp = original_url_;
1002 original_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1003 return temp;
1004 }
1005}
1006inline void EmbedInfo::set_allocated_original_url(::std::string* original_url) {
1007 if (original_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1008 delete original_url_;
1009 }
1010 if (original_url) {
1013 } else {
1015 original_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1016 }
1017 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.EmbedInfo.original_url)
1018}
1019
1020// optional .bgs.protocol.EmbedImage thumbnail = 4;
1021inline bool EmbedInfo::has_thumbnail() const {
1022 return (_has_bits_[0] & 0x00000008u) != 0;
1023}
1025 _has_bits_[0] |= 0x00000008u;
1026}
1028 _has_bits_[0] &= ~0x00000008u;
1029}
1031 if (thumbnail_ != NULL) thumbnail_->::bgs::protocol::EmbedImage::Clear();
1033}
1034inline const ::bgs::protocol::EmbedImage& EmbedInfo::thumbnail() const {
1035 // @@protoc_insertion_point(field_get:bgs.protocol.EmbedInfo.thumbnail)
1036 return thumbnail_ != NULL ? *thumbnail_ : *default_instance_->thumbnail_;
1037}
1038inline ::bgs::protocol::EmbedImage* EmbedInfo::mutable_thumbnail() {
1040 if (thumbnail_ == NULL) thumbnail_ = new ::bgs::protocol::EmbedImage;
1041 // @@protoc_insertion_point(field_mutable:bgs.protocol.EmbedInfo.thumbnail)
1042 return thumbnail_;
1043}
1044inline ::bgs::protocol::EmbedImage* EmbedInfo::release_thumbnail() {
1047 thumbnail_ = NULL;
1048 return temp;
1049}
1051 delete thumbnail_;
1053 if (thumbnail) {
1055 } else {
1057 }
1058 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.EmbedInfo.thumbnail)
1059}
1060
1061// optional .bgs.protocol.Provider provider = 5;
1062inline bool EmbedInfo::has_provider() const {
1063 return (_has_bits_[0] & 0x00000010u) != 0;
1064}
1066 _has_bits_[0] |= 0x00000010u;
1067}
1069 _has_bits_[0] &= ~0x00000010u;
1070}
1072 if (provider_ != NULL) provider_->::bgs::protocol::Provider::Clear();
1074}
1075inline const ::bgs::protocol::Provider& EmbedInfo::provider() const {
1076 // @@protoc_insertion_point(field_get:bgs.protocol.EmbedInfo.provider)
1077 return provider_ != NULL ? *provider_ : *default_instance_->provider_;
1078}
1079inline ::bgs::protocol::Provider* EmbedInfo::mutable_provider() {
1081 if (provider_ == NULL) provider_ = new ::bgs::protocol::Provider;
1082 // @@protoc_insertion_point(field_mutable:bgs.protocol.EmbedInfo.provider)
1083 return provider_;
1084}
1085inline ::bgs::protocol::Provider* EmbedInfo::release_provider() {
1088 provider_ = NULL;
1089 return temp;
1090}
1092 delete provider_;
1094 if (provider) {
1096 } else {
1098 }
1099 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.EmbedInfo.provider)
1100}
1101
1102// optional string description = 6;
1103inline bool EmbedInfo::has_description() const {
1104 return (_has_bits_[0] & 0x00000020u) != 0;
1105}
1107 _has_bits_[0] |= 0x00000020u;
1108}
1110 _has_bits_[0] &= ~0x00000020u;
1111}
1113 if (description_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1114 description_->clear();
1115 }
1117}
1118inline const ::std::string& EmbedInfo::description() const {
1119 // @@protoc_insertion_point(field_get:bgs.protocol.EmbedInfo.description)
1120 return *description_;
1121}
1122inline void EmbedInfo::set_description(const ::std::string& value) {
1124 if (description_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1125 description_ = new ::std::string;
1126 }
1127 description_->assign(value);
1128 // @@protoc_insertion_point(field_set:bgs.protocol.EmbedInfo.description)
1129}
1130inline void EmbedInfo::set_description(const char* value) {
1132 if (description_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1133 description_ = new ::std::string;
1134 }
1135 description_->assign(value);
1136 // @@protoc_insertion_point(field_set_char:bgs.protocol.EmbedInfo.description)
1137}
1138inline void EmbedInfo::set_description(const char* value, size_t size) {
1140 if (description_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1141 description_ = new ::std::string;
1142 }
1143 description_->assign(reinterpret_cast<const char*>(value), size);
1144 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.EmbedInfo.description)
1145}
1146inline ::std::string* EmbedInfo::mutable_description() {
1148 if (description_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1149 description_ = new ::std::string;
1150 }
1151 // @@protoc_insertion_point(field_mutable:bgs.protocol.EmbedInfo.description)
1152 return description_;
1153}
1154inline ::std::string* EmbedInfo::release_description() {
1156 if (description_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1157 return NULL;
1158 } else {
1159 ::std::string* temp = description_;
1160 description_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1161 return temp;
1162 }
1163}
1164inline void EmbedInfo::set_allocated_description(::std::string* description) {
1165 if (description_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1166 delete description_;
1167 }
1168 if (description) {
1171 } else {
1173 description_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1174 }
1175 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.EmbedInfo.description)
1176}
1177
1178// optional .bgs.protocol.EmbedHTML html = 8;
1179inline bool EmbedInfo::has_html() const {
1180 return (_has_bits_[0] & 0x00000040u) != 0;
1181}
1183 _has_bits_[0] |= 0x00000040u;
1184}
1186 _has_bits_[0] &= ~0x00000040u;
1187}
1189 if (html_ != NULL) html_->::bgs::protocol::EmbedHTML::Clear();
1191}
1192inline const ::bgs::protocol::EmbedHTML& EmbedInfo::html() const {
1193 // @@protoc_insertion_point(field_get:bgs.protocol.EmbedInfo.html)
1194 return html_ != NULL ? *html_ : *default_instance_->html_;
1195}
1196inline ::bgs::protocol::EmbedHTML* EmbedInfo::mutable_html() {
1197 set_has_html();
1198 if (html_ == NULL) html_ = new ::bgs::protocol::EmbedHTML;
1199 // @@protoc_insertion_point(field_mutable:bgs.protocol.EmbedInfo.html)
1200 return html_;
1201}
1202inline ::bgs::protocol::EmbedHTML* EmbedInfo::release_html() {
1205 html_ = NULL;
1206 return temp;
1207}
1209 delete html_;
1210 html_ = html;
1211 if (html) {
1212 set_has_html();
1213 } else {
1215 }
1216 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.EmbedInfo.html)
1217}
1218
1219// @@protoc_insertion_point(namespace_scope)
1220
1221} // namespace protocol
1222} // namespace bgs
1223
1224#ifndef SWIG
1225namespace google {
1226namespace protobuf {
1227} // namespace google
1228} // namespace protobuf
1229#endif // SWIG
1230
1231// @@protoc_insertion_point(global_scope)
1232
1233#endif // PROTOBUF_embed_5ftypes_2eproto__INCLUDED
#define TC_PROTO_API
Definition: Define.h:105
uint32_t uint32
Definition: Define.h:142
EmbedHTML(const EmbedHTML &from)
friend void TC_PROTO_API protobuf_AddDesc_embed_5ftypes_2eproto()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
::google::protobuf::Metadata GetMetadata() const
friend void protobuf_ShutdownFile_embed_5ftypes_2eproto()
::google::protobuf::uint32 _has_bits_[1]
::google::protobuf::uint32 height_
inline ::std::string * mutable_content()
const ::std::string & content() const
void Swap(EmbedHTML *other)
::google::protobuf::uint32 width_
void SetCachedSize(int size) const
static const EmbedHTML & default_instance()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline ::google::protobuf::uint32 width() const
::google::protobuf::UnknownFieldSet _unknown_fields_
inline ::google::protobuf::uint32 height() const
inline ::std::string * release_content()
EmbedHTML * New() const
EmbedHTML & operator=(const EmbedHTML &from)
void set_height(::google::protobuf::uint32 value)
static EmbedHTML * default_instance_
::std::string * content_
friend void protobuf_AssignDesc_embed_5ftypes_2eproto()
void set_allocated_content(::std::string *content)
static const ::google::protobuf::Descriptor * descriptor()
void set_content(const ::std::string &value)
void set_width(::google::protobuf::uint32 value)
EmbedImage & operator=(const EmbedImage &from)
::google::protobuf::uint32 width_
friend void TC_PROTO_API protobuf_AddDesc_embed_5ftypes_2eproto()
inline ::google::protobuf::uint32 width() const
void set_width(::google::protobuf::uint32 value)
friend void protobuf_ShutdownFile_embed_5ftypes_2eproto()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
void Swap(EmbedImage *other)
inline ::google::protobuf::uint32 height() const
const ::std::string & url() const
void set_url(const ::std::string &value)
static const ::google::protobuf::Descriptor * descriptor()
::google::protobuf::Metadata GetMetadata() const
EmbedImage(const EmbedImage &from)
EmbedImage * New() const
::google::protobuf::UnknownFieldSet _unknown_fields_
static const EmbedImage & default_instance()
void set_allocated_url(::std::string *url)
void set_height(::google::protobuf::uint32 value)
::google::protobuf::uint32 _has_bits_[1]
inline ::std::string * release_url()
void SetCachedSize(int size) const
inline ::std::string * mutable_url()
friend void protobuf_AssignDesc_embed_5ftypes_2eproto()
::google::protobuf::uint32 height_
static EmbedImage * default_instance_
inline ::std::string * release_description()
const ::std::string & type() const
inline ::std::string * mutable_description()
friend void TC_PROTO_API protobuf_AddDesc_embed_5ftypes_2eproto()
EmbedInfo & operator=(const EmbedInfo &from)
void Swap(EmbedInfo *other)
::bgs::protocol::EmbedHTML * html_
const ::bgs::protocol::Provider & provider() const
inline ::std::string * release_type()
friend void protobuf_ShutdownFile_embed_5ftypes_2eproto()
inline ::bgs::protocol::EmbedImage * mutable_thumbnail()
EmbedInfo * New() const
::std::string * description_
const ::std::string & title() const
void set_allocated_thumbnail(::bgs::protocol::EmbedImage *thumbnail)
static const ::google::protobuf::Descriptor * descriptor()
::bgs::protocol::EmbedImage * thumbnail_
void set_allocated_html(::bgs::protocol::EmbedHTML *html)
const ::std::string & description() const
inline ::std::string * mutable_original_url()
inline ::std::string * mutable_title()
inline ::bgs::protocol::Provider * mutable_provider()
void set_allocated_provider(::bgs::protocol::Provider *provider)
static EmbedInfo * default_instance_
void set_title(const ::std::string &value)
void set_allocated_type(::std::string *type)
void set_original_url(const ::std::string &value)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
inline ::bgs::protocol::EmbedHTML * release_html()
EmbedInfo(const EmbedInfo &from)
::bgs::protocol::Provider * provider_
const ::std::string & original_url() const
const ::bgs::protocol::EmbedImage & thumbnail() const
void set_allocated_original_url(::std::string *original_url)
inline ::bgs::protocol::EmbedHTML * mutable_html()
void set_allocated_description(::std::string *description)
::google::protobuf::UnknownFieldSet _unknown_fields_
inline ::bgs::protocol::Provider * release_provider()
::google::protobuf::Metadata GetMetadata() const
::google::protobuf::uint32 _has_bits_[1]
inline ::std::string * release_title()
void set_description(const ::std::string &value)
inline ::std::string * mutable_type()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
static const EmbedInfo & default_instance()
inline ::std::string * release_original_url()
inline ::bgs::protocol::EmbedImage * release_thumbnail()
friend void protobuf_AssignDesc_embed_5ftypes_2eproto()
::std::string * original_url_
void SetCachedSize(int size) const
void set_type(const ::std::string &value)
void set_allocated_title(::std::string *title)
const ::bgs::protocol::EmbedHTML & html() const
friend void TC_PROTO_API protobuf_AddDesc_embed_5ftypes_2eproto()
void Swap(Provider *other)
Provider(const Provider &from)
friend void protobuf_ShutdownFile_embed_5ftypes_2eproto()
::google::protobuf::uint32 _has_bits_[1]
static const Provider & default_instance()
void set_allocated_name(::std::string *name)
static const ::google::protobuf::Descriptor * descriptor()
Provider * New() const
::google::protobuf::UnknownFieldSet _unknown_fields_
inline ::std::string * release_name()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline ::std::string * mutable_name()
Provider & operator=(const Provider &from)
const ::std::string & name() const
::google::protobuf::Metadata GetMetadata() const
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
void set_name(const ::std::string &value)
friend void protobuf_AssignDesc_embed_5ftypes_2eproto()
static Provider * default_instance_
void SetCachedSize(int size) const
constexpr std::size_t size()
Definition: UpdateField.h:796
void protobuf_ShutdownFile_embed_5ftypes_2eproto()
void TC_PROTO_API protobuf_AddDesc_embed_5ftypes_2eproto()
void protobuf_AssignDesc_embed_5ftypes_2eproto()
Definition: Session.h:36