TrinityCore
voice_types.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: voice_types.proto
3
4#ifndef PROTOBUF_voice_5ftypes_2eproto__INCLUDED
5#define PROTOBUF_voice_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/generated_enum_reflection.h>
27#include <google/protobuf/unknown_field_set.h>
28#include "Define.h" // for TC_PROTO_API
29// @@protoc_insertion_point(includes)
30
31namespace bgs {
32namespace protocol {
33
34// Internal implementation detail -- do not call these.
38
40
44};
49
50TC_PROTO_API const ::google::protobuf::EnumDescriptor* VoiceJoinType_descriptor();
51inline const ::std::string& VoiceJoinType_Name(VoiceJoinType value) {
52 return ::google::protobuf::internal::NameOfEnum(
54}
56 const ::std::string& name, VoiceJoinType* value) {
57 return ::google::protobuf::internal::ParseNamedEnum<VoiceJoinType>(
58 VoiceJoinType_descriptor(), name, value);
59}
65};
70
71TC_PROTO_API const ::google::protobuf::EnumDescriptor* VoiceMuteReason_descriptor();
72inline const ::std::string& VoiceMuteReason_Name(VoiceMuteReason value) {
73 return ::google::protobuf::internal::NameOfEnum(
75}
77 const ::std::string& name, VoiceMuteReason* value) {
78 return ::google::protobuf::internal::ParseNamedEnum<VoiceMuteReason>(
79 VoiceMuteReason_descriptor(), name, value);
80}
84};
89
90TC_PROTO_API const ::google::protobuf::EnumDescriptor* VoiceProviderVersion_descriptor();
91inline const ::std::string& VoiceProviderVersion_Name(VoiceProviderVersion value) {
92 return ::google::protobuf::internal::NameOfEnum(
94}
96 const ::std::string& name, VoiceProviderVersion* value) {
97 return ::google::protobuf::internal::ParseNamedEnum<VoiceProviderVersion>(
98 VoiceProviderVersion_descriptor(), name, value);
99}
100// ===================================================================
101
102class TC_PROTO_API VoiceCredentials : public ::google::protobuf::Message {
103 public:
106
108
110 CopyFrom(from);
111 return *this;
112 }
113
114 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
115 return _unknown_fields_;
116 }
117
118 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
119 return &_unknown_fields_;
120 }
121
122 static const ::google::protobuf::Descriptor* descriptor();
124
125 void Swap(VoiceCredentials* other);
126
127 // implements Message ----------------------------------------------
128
130 int GetCachedSize() const { return _cached_size_; }
131 private:
134 void SetCachedSize(int size) const;
135 public:
136 ::google::protobuf::Metadata GetMetadata() const;
137
138 // nested types ----------------------------------------------------
139
140 // accessors -------------------------------------------------------
141
142 // optional string voice_id = 1;
143 inline bool has_voice_id() const;
144 inline void clear_voice_id();
145 static const int kVoiceIdFieldNumber = 1;
146 inline const ::std::string& voice_id() const;
147 inline void set_voice_id(const ::std::string& value);
148 inline void set_voice_id(const char* value);
149 inline void set_voice_id(const char* value, size_t size);
150 inline ::std::string* mutable_voice_id();
151 inline ::std::string* release_voice_id();
152 inline void set_allocated_voice_id(::std::string* voice_id);
153
154 // optional string token = 2;
155 inline bool has_token() const;
156 inline void clear_token();
157 static const int kTokenFieldNumber = 2;
158 inline const ::std::string& token() const;
159 inline void set_token(const ::std::string& value);
160 inline void set_token(const char* value);
161 inline void set_token(const char* value, size_t size);
162 inline ::std::string* mutable_token();
163 inline ::std::string* release_token();
164 inline void set_allocated_token(::std::string* token);
165
166 // optional string url = 3;
167 inline bool has_url() const;
168 inline void clear_url();
169 static const int kUrlFieldNumber = 3;
170 inline const ::std::string& url() const;
171 inline void set_url(const ::std::string& value);
172 inline void set_url(const char* value);
173 inline void set_url(const char* value, size_t size);
174 inline ::std::string* mutable_url();
175 inline ::std::string* release_url();
176 inline void set_allocated_url(::std::string* url);
177
178 // optional .bgs.protocol.VoiceJoinType join_type = 4;
179 inline bool has_join_type() const;
180 inline void clear_join_type();
181 static const int kJoinTypeFieldNumber = 4;
183 inline void set_join_type(::bgs::protocol::VoiceJoinType value);
184
185 // optional .bgs.protocol.VoiceMuteReason mute_reason = 5;
186 inline bool has_mute_reason() const;
187 inline void clear_mute_reason();
188 static const int kMuteReasonFieldNumber = 5;
189 inline ::bgs::protocol::VoiceMuteReason mute_reason() const;
190 inline void set_mute_reason(::bgs::protocol::VoiceMuteReason value);
191
192 // @@protoc_insertion_point(class_scope:bgs.protocol.VoiceCredentials)
193 private:
194 inline void set_has_voice_id();
195 inline void clear_has_voice_id();
196 inline void set_has_token();
197 inline void clear_has_token();
198 inline void set_has_url();
199 inline void clear_has_url();
200 inline void set_has_join_type();
201 inline void clear_has_join_type();
202 inline void set_has_mute_reason();
203 inline void clear_has_mute_reason();
204
205 ::google::protobuf::UnknownFieldSet _unknown_fields_;
206
208 mutable int _cached_size_;
209 ::std::string* voice_id_;
210 ::std::string* token_;
211 ::std::string* url_;
217
220};
221// ===================================================================
222
223// ===================================================================
224
225// ===================================================================
226
227// VoiceCredentials
228
229// optional string voice_id = 1;
231 return (_has_bits_[0] & 0x00000001u) != 0;
232}
234 _has_bits_[0] |= 0x00000001u;
235}
237 _has_bits_[0] &= ~0x00000001u;
238}
240 if (voice_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
241 voice_id_->clear();
242 }
244}
245inline const ::std::string& VoiceCredentials::voice_id() const {
246 // @@protoc_insertion_point(field_get:bgs.protocol.VoiceCredentials.voice_id)
247 return *voice_id_;
248}
249inline void VoiceCredentials::set_voice_id(const ::std::string& value) {
251 if (voice_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
252 voice_id_ = new ::std::string;
253 }
254 voice_id_->assign(value);
255 // @@protoc_insertion_point(field_set:bgs.protocol.VoiceCredentials.voice_id)
256}
257inline void VoiceCredentials::set_voice_id(const char* value) {
259 if (voice_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
260 voice_id_ = new ::std::string;
261 }
262 voice_id_->assign(value);
263 // @@protoc_insertion_point(field_set_char:bgs.protocol.VoiceCredentials.voice_id)
264}
265inline void VoiceCredentials::set_voice_id(const char* value, size_t size) {
267 if (voice_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
268 voice_id_ = new ::std::string;
269 }
270 voice_id_->assign(reinterpret_cast<const char*>(value), size);
271 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.VoiceCredentials.voice_id)
272}
273inline ::std::string* VoiceCredentials::mutable_voice_id() {
275 if (voice_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
276 voice_id_ = new ::std::string;
277 }
278 // @@protoc_insertion_point(field_mutable:bgs.protocol.VoiceCredentials.voice_id)
279 return voice_id_;
280}
281inline ::std::string* VoiceCredentials::release_voice_id() {
283 if (voice_id_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
284 return NULL;
285 } else {
286 ::std::string* temp = voice_id_;
287 voice_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
288 return temp;
289 }
290}
291inline void VoiceCredentials::set_allocated_voice_id(::std::string* voice_id) {
292 if (voice_id_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
293 delete voice_id_;
294 }
295 if (voice_id) {
298 } else {
300 voice_id_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
301 }
302 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.VoiceCredentials.voice_id)
303}
304
305// optional string token = 2;
306inline bool VoiceCredentials::has_token() const {
307 return (_has_bits_[0] & 0x00000002u) != 0;
308}
310 _has_bits_[0] |= 0x00000002u;
311}
313 _has_bits_[0] &= ~0x00000002u;
314}
316 if (token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
317 token_->clear();
318 }
320}
321inline const ::std::string& VoiceCredentials::token() const {
322 // @@protoc_insertion_point(field_get:bgs.protocol.VoiceCredentials.token)
323 return *token_;
324}
325inline void VoiceCredentials::set_token(const ::std::string& value) {
327 if (token_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
328 token_ = new ::std::string;
329 }
330 token_->assign(value);
331 // @@protoc_insertion_point(field_set:bgs.protocol.VoiceCredentials.token)
332}
333inline void VoiceCredentials::set_token(const char* value) {
335 if (token_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
336 token_ = new ::std::string;
337 }
338 token_->assign(value);
339 // @@protoc_insertion_point(field_set_char:bgs.protocol.VoiceCredentials.token)
340}
341inline void VoiceCredentials::set_token(const char* value, size_t size) {
343 if (token_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
344 token_ = new ::std::string;
345 }
346 token_->assign(reinterpret_cast<const char*>(value), size);
347 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.VoiceCredentials.token)
348}
349inline ::std::string* VoiceCredentials::mutable_token() {
351 if (token_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
352 token_ = new ::std::string;
353 }
354 // @@protoc_insertion_point(field_mutable:bgs.protocol.VoiceCredentials.token)
355 return token_;
356}
357inline ::std::string* VoiceCredentials::release_token() {
359 if (token_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
360 return NULL;
361 } else {
362 ::std::string* temp = token_;
363 token_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
364 return temp;
365 }
366}
367inline void VoiceCredentials::set_allocated_token(::std::string* token) {
368 if (token_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
369 delete token_;
370 }
371 if (token) {
373 token_ = token;
374 } else {
376 token_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
377 }
378 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.VoiceCredentials.token)
379}
380
381// optional string url = 3;
382inline bool VoiceCredentials::has_url() const {
383 return (_has_bits_[0] & 0x00000004u) != 0;
384}
386 _has_bits_[0] |= 0x00000004u;
387}
389 _has_bits_[0] &= ~0x00000004u;
390}
392 if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
393 url_->clear();
394 }
396}
397inline const ::std::string& VoiceCredentials::url() const {
398 // @@protoc_insertion_point(field_get:bgs.protocol.VoiceCredentials.url)
399 return *url_;
400}
401inline void VoiceCredentials::set_url(const ::std::string& value) {
402 set_has_url();
403 if (url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
404 url_ = new ::std::string;
405 }
406 url_->assign(value);
407 // @@protoc_insertion_point(field_set:bgs.protocol.VoiceCredentials.url)
408}
409inline void VoiceCredentials::set_url(const char* value) {
410 set_has_url();
411 if (url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
412 url_ = new ::std::string;
413 }
414 url_->assign(value);
415 // @@protoc_insertion_point(field_set_char:bgs.protocol.VoiceCredentials.url)
416}
417inline void VoiceCredentials::set_url(const char* value, size_t size) {
418 set_has_url();
419 if (url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
420 url_ = new ::std::string;
421 }
422 url_->assign(reinterpret_cast<const char*>(value), size);
423 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.VoiceCredentials.url)
424}
425inline ::std::string* VoiceCredentials::mutable_url() {
426 set_has_url();
427 if (url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
428 url_ = new ::std::string;
429 }
430 // @@protoc_insertion_point(field_mutable:bgs.protocol.VoiceCredentials.url)
431 return url_;
432}
433inline ::std::string* VoiceCredentials::release_url() {
435 if (url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
436 return NULL;
437 } else {
438 ::std::string* temp = url_;
439 url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
440 return temp;
441 }
442}
443inline void VoiceCredentials::set_allocated_url(::std::string* url) {
444 if (url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
445 delete url_;
446 }
447 if (url) {
448 set_has_url();
449 url_ = url;
450 } else {
452 url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
453 }
454 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.VoiceCredentials.url)
455}
456
457// optional .bgs.protocol.VoiceJoinType join_type = 4;
459 return (_has_bits_[0] & 0x00000008u) != 0;
460}
462 _has_bits_[0] |= 0x00000008u;
463}
465 _has_bits_[0] &= ~0x00000008u;
466}
468 join_type_ = 0;
470}
472 // @@protoc_insertion_point(field_get:bgs.protocol.VoiceCredentials.join_type)
473 return static_cast< ::bgs::protocol::VoiceJoinType >(join_type_);
474}
478 join_type_ = value;
479 // @@protoc_insertion_point(field_set:bgs.protocol.VoiceCredentials.join_type)
480}
481
482// optional .bgs.protocol.VoiceMuteReason mute_reason = 5;
484 return (_has_bits_[0] & 0x00000010u) != 0;
485}
487 _has_bits_[0] |= 0x00000010u;
488}
490 _has_bits_[0] &= ~0x00000010u;
491}
493 mute_reason_ = 0;
495}
497 // @@protoc_insertion_point(field_get:bgs.protocol.VoiceCredentials.mute_reason)
498 return static_cast< ::bgs::protocol::VoiceMuteReason >(mute_reason_);
499}
503 mute_reason_ = value;
504 // @@protoc_insertion_point(field_set:bgs.protocol.VoiceCredentials.mute_reason)
505}
506
507// @@protoc_insertion_point(namespace_scope)
508
509} // namespace protocol
510} // namespace bgs
511
512#ifndef SWIG
513namespace google {
514namespace protobuf {
515template <> struct is_proto_enum< ::bgs::protocol::VoiceJoinType> : ::google::protobuf::internal::true_type {};
516template <>
517inline const EnumDescriptor* GetEnumDescriptor< ::bgs::protocol::VoiceJoinType>() {
519}
520template <> struct is_proto_enum< ::bgs::protocol::VoiceMuteReason> : ::google::protobuf::internal::true_type {};
521template <>
522inline const EnumDescriptor* GetEnumDescriptor< ::bgs::protocol::VoiceMuteReason>() {
524}
525template <> struct is_proto_enum< ::bgs::protocol::VoiceProviderVersion> : ::google::protobuf::internal::true_type {};
526template <>
527inline const EnumDescriptor* GetEnumDescriptor< ::bgs::protocol::VoiceProviderVersion>() {
529}
530} // namespace google
531} // namespace protobuf
532#endif // SWIG
533
534// @@protoc_insertion_point(global_scope)
535
536#endif // PROTOBUF_voice_5ftypes_2eproto__INCLUDED
#define TC_PROTO_API
Definition: Define.h:105
uint32_t uint32
Definition: Define.h:142
static const VoiceCredentials & default_instance()
static const ::google::protobuf::Descriptor * descriptor()
const ::std::string & url() const
VoiceCredentials * New() const
friend void protobuf_AssignDesc_voice_5ftypes_2eproto()
friend void protobuf_ShutdownFile_voice_5ftypes_2eproto()
void set_voice_id(const ::std::string &value)
inline ::bgs::protocol::VoiceJoinType join_type() const
void set_allocated_url(::std::string *url)
inline ::std::string * mutable_token()
::google::protobuf::UnknownFieldSet _unknown_fields_
inline ::std::string * release_url()
void set_allocated_voice_id(::std::string *voice_id)
::google::protobuf::uint32 _has_bits_[1]
friend void TC_PROTO_API protobuf_AddDesc_voice_5ftypes_2eproto()
const ::std::string & token() const
static VoiceCredentials * default_instance_
VoiceCredentials(const VoiceCredentials &from)
::google::protobuf::Metadata GetMetadata() const
inline ::std::string * release_token()
inline ::bgs::protocol::VoiceMuteReason mute_reason() const
void set_token(const ::std::string &value)
void SetCachedSize(int size) const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
const ::std::string & voice_id() const
void set_join_type(::bgs::protocol::VoiceJoinType value)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
void set_allocated_token(::std::string *token)
inline ::std::string * mutable_url()
void set_mute_reason(::bgs::protocol::VoiceMuteReason value)
void set_url(const ::std::string &value)
void Swap(VoiceCredentials *other)
inline ::std::string * release_voice_id()
inline ::std::string * mutable_voice_id()
VoiceCredentials & operator=(const VoiceCredentials &from)
constexpr std::size_t size()
Definition: UpdateField.h:796
const VoiceMuteReason VoiceMuteReason_MAX
const ::std::string & VoiceMuteReason_Name(VoiceMuteReason value)
const ::std::string & VoiceJoinType_Name(VoiceJoinType value)
TC_PROTO_APIconst ::google::protobuf::EnumDescriptor * VoiceJoinType_descriptor()
const int VoiceProviderVersion_ARRAYSIZE
TC_PROTO_APIconst ::google::protobuf::EnumDescriptor * VoiceProviderVersion_descriptor()
TC_PROTO_API bool VoiceMuteReason_IsValid(int value)
bool VoiceMuteReason_Parse(const ::std::string &name, VoiceMuteReason *value)
void protobuf_ShutdownFile_voice_5ftypes_2eproto()
bool VoiceProviderVersion_Parse(const ::std::string &name, VoiceProviderVersion *value)
void protobuf_AssignDesc_voice_5ftypes_2eproto()
bool VoiceJoinType_Parse(const ::std::string &name, VoiceJoinType *value)
const VoiceMuteReason VoiceMuteReason_MIN
@ VOICE_MUTE_REASON_REQUESTED
@ VOICE_MUTE_REASON_PARENTAL_CONTROL_LISTEN_ONLY
@ VOICE_MUTE_REASON_SQUELCHED
void TC_PROTO_API protobuf_AddDesc_voice_5ftypes_2eproto()
TC_PROTO_API bool VoiceProviderVersion_IsValid(int value)
TC_PROTO_APIconst ::google::protobuf::EnumDescriptor * VoiceMuteReason_descriptor()
const ::std::string & VoiceProviderVersion_Name(VoiceProviderVersion value)
const int VoiceJoinType_ARRAYSIZE
TC_PROTO_API bool VoiceJoinType_IsValid(int value)
const VoiceProviderVersion VoiceProviderVersion_MAX
const VoiceProviderVersion VoiceProviderVersion_MIN
const int VoiceMuteReason_ARRAYSIZE
const VoiceJoinType VoiceJoinType_MAX
const VoiceJoinType VoiceJoinType_MIN
Definition: Session.h:36