TrinityCore
bgs::protocol::v2::Variant Class Reference

#include <attribute_types.pb.h>

+ Inheritance diagram for bgs::protocol::v2::Variant:

Classes

union  TypeUnion
 

Public Types

enum  TypeCase {
  kBoolValue = 1 , kIntValue = 2 , kFloatValue = 3 , kStringValue = 4 ,
  kBlobValue = 5 , kUintValue = 6 , TYPE_NOT_SET = 0
}
 

Public Member Functions

 Variant ()
 
virtual ~Variant ()
 
 Variant (const Variant &from)
 
Variantoperator= (const Variant &from)
 
const ::google::protobuf::UnknownFieldSet & unknown_fields () const
 
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields ()
 
void Swap (Variant *other)
 
VariantNew () const
 
int GetCachedSize () const
 
::google::protobuf::Metadata GetMetadata () const
 
bool has_bool_value () const
 
void clear_bool_value ()
 
bool bool_value () const
 
void set_bool_value (bool value)
 
bool has_int_value () const
 
void clear_int_value ()
 
inline ::google::protobuf::int64 int_value () const
 
void set_int_value (::google::protobuf::int64 value)
 
bool has_float_value () const
 
void clear_float_value ()
 
double float_value () const
 
void set_float_value (double value)
 
bool has_string_value () const
 
void clear_string_value ()
 
const ::std::string & string_value () const
 
void set_string_value (const ::std::string &value)
 
void set_string_value (const char *value)
 
void set_string_value (const char *value, size_t size)
 
inline ::std::string * mutable_string_value ()
 
inline ::std::string * release_string_value ()
 
void set_allocated_string_value (::std::string *string_value)
 
bool has_blob_value () const
 
void clear_blob_value ()
 
const ::std::string & blob_value () const
 
void set_blob_value (const ::std::string &value)
 
void set_blob_value (const char *value)
 
void set_blob_value (const void *value, size_t size)
 
inline ::std::string * mutable_blob_value ()
 
inline ::std::string * release_blob_value ()
 
void set_allocated_blob_value (::std::string *blob_value)
 
bool has_uint_value () const
 
void clear_uint_value ()
 
inline ::google::protobuf::uint64 uint_value () const
 
void set_uint_value (::google::protobuf::uint64 value)
 
TypeCase type_case () const
 

Static Public Member Functions

static const ::google::protobuf::Descriptor * descriptor ()
 
static const Variantdefault_instance ()
 

Static Public Attributes

static const int kBoolValueFieldNumber = 1
 
static const int kIntValueFieldNumber = 2
 
static const int kFloatValueFieldNumber = 3
 
static const int kStringValueFieldNumber = 4
 
static const int kBlobValueFieldNumber = 5
 
static const int kUintValueFieldNumber = 6
 

Private Member Functions

void SharedCtor ()
 
void SharedDtor ()
 
void SetCachedSize (int size) const
 
void set_has_bool_value ()
 
void set_has_int_value ()
 
void set_has_float_value ()
 
void set_has_string_value ()
 
void set_has_blob_value ()
 
void set_has_uint_value ()
 
bool has_type ()
 
void clear_type ()
 
void clear_has_type ()
 
void InitAsDefaultInstance ()
 

Private Attributes

::google::protobuf::UnknownFieldSet _unknown_fields_
 
::google::protobuf::uint32 _has_bits_ [1]
 
int _cached_size_
 
union bgs::protocol::v2::Variant::TypeUnion type_
 
::google::protobuf::uint32 _oneof_case_ [1]
 

Static Private Attributes

static Variantdefault_instance_
 

Friends

void TC_PROTO_API protobuf_AddDesc_api_2fclient_2fv2_2fattribute_5ftypes_2eproto ()
 
void protobuf_AssignDesc_api_2fclient_2fv2_2fattribute_5ftypes_2eproto ()
 
void protobuf_ShutdownFile_api_2fclient_2fv2_2fattribute_5ftypes_2eproto ()
 

Detailed Description

Definition at line 67 of file attribute_types.pb.h.

Member Enumeration Documentation

◆ TypeCase

Enumerator
kBoolValue 
kIntValue 
kFloatValue 
kStringValue 
kBlobValue 
kUintValue 
TYPE_NOT_SET 

Definition at line 90 of file attribute_types.pb.h.

Constructor & Destructor Documentation

◆ Variant() [1/2]

bgs::protocol::v2::Variant::Variant ( )

◆ ~Variant()

virtual bgs::protocol::v2::Variant::~Variant ( )
virtual

◆ Variant() [2/2]

bgs::protocol::v2::Variant::Variant ( const Variant from)

Member Function Documentation

◆ blob_value()

const ::std::string & bgs::protocol::v2::Variant::blob_value ( ) const
inline

Definition at line 564 of file attribute_types.pb.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ bool_value()

bool bgs::protocol::v2::Variant::bool_value ( ) const
inline

Definition at line 413 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ clear_blob_value()

void bgs::protocol::v2::Variant::clear_blob_value ( )
inline

Definition at line 558 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ clear_bool_value()

void bgs::protocol::v2::Variant::clear_bool_value ( )
inline

Definition at line 407 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ clear_float_value()

void bgs::protocol::v2::Variant::clear_float_value ( )
inline

Definition at line 461 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ clear_has_type()

void bgs::protocol::v2::Variant::clear_has_type ( )
inlineprivate

Definition at line 651 of file attribute_types.pb.h.

+ Here is the caller graph for this function:

◆ clear_int_value()

void bgs::protocol::v2::Variant::clear_int_value ( )
inline

Definition at line 434 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ clear_string_value()

void bgs::protocol::v2::Variant::clear_string_value ( )
inline

Definition at line 488 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ clear_type()

void bgs::protocol::v2::Variant::clear_type ( )
private
+ Here is the caller graph for this function:

◆ clear_uint_value()

void bgs::protocol::v2::Variant::clear_uint_value ( )
inline

Definition at line 628 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ default_instance()

static const Variant & bgs::protocol::v2::Variant::default_instance ( )
static

◆ descriptor()

static const ::google::protobuf::Descriptor * bgs::protocol::v2::Variant::descriptor ( )
static

◆ float_value()

double bgs::protocol::v2::Variant::float_value ( ) const
inline

Definition at line 467 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ GetCachedSize()

int bgs::protocol::v2::Variant::GetCachedSize ( ) const
inline

Definition at line 105 of file attribute_types.pb.h.

◆ GetMetadata()

::google::protobuf::Metadata bgs::protocol::v2::Variant::GetMetadata ( ) const

◆ has_blob_value()

bool bgs::protocol::v2::Variant::has_blob_value ( ) const
inline

Definition at line 552 of file attribute_types.pb.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ has_bool_value()

bool bgs::protocol::v2::Variant::has_bool_value ( ) const
inline

Definition at line 401 of file attribute_types.pb.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ has_float_value()

bool bgs::protocol::v2::Variant::has_float_value ( ) const
inline

Definition at line 455 of file attribute_types.pb.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ has_int_value()

bool bgs::protocol::v2::Variant::has_int_value ( ) const
inline

Definition at line 428 of file attribute_types.pb.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ has_string_value()

bool bgs::protocol::v2::Variant::has_string_value ( ) const
inline

Definition at line 482 of file attribute_types.pb.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ has_type()

bool bgs::protocol::v2::Variant::has_type ( )
inlineprivate

Definition at line 648 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ has_uint_value()

bool bgs::protocol::v2::Variant::has_uint_value ( ) const
inline

Definition at line 622 of file attribute_types.pb.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitAsDefaultInstance()

void bgs::protocol::v2::Variant::InitAsDefaultInstance ( )
private

◆ int_value()

google::protobuf::int64 bgs::protocol::v2::Variant::int_value ( ) const
inline

Definition at line 440 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ mutable_blob_value()

std::string * bgs::protocol::v2::Variant::mutable_blob_value ( )
inline

Definition at line 595 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ mutable_string_value()

std::string * bgs::protocol::v2::Variant::mutable_string_value ( )
inline

Definition at line 525 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ mutable_unknown_fields()

inline ::google::protobuf::UnknownFieldSet * bgs::protocol::v2::Variant::mutable_unknown_fields ( )
inline

Definition at line 83 of file attribute_types.pb.h.

◆ New()

Variant * bgs::protocol::v2::Variant::New ( ) const

◆ operator=()

Variant & bgs::protocol::v2::Variant::operator= ( const Variant from)
inline

Definition at line 74 of file attribute_types.pb.h.

◆ release_blob_value()

std::string * bgs::protocol::v2::Variant::release_blob_value ( )
inline

Definition at line 603 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ release_string_value()

std::string * bgs::protocol::v2::Variant::release_string_value ( )
inline

Definition at line 533 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ set_allocated_blob_value()

void bgs::protocol::v2::Variant::set_allocated_blob_value ( ::std::string *  blob_value)
inline

Definition at line 613 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ set_allocated_string_value()

void bgs::protocol::v2::Variant::set_allocated_string_value ( ::std::string *  string_value)
inline

Definition at line 543 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ set_blob_value() [1/3]

void bgs::protocol::v2::Variant::set_blob_value ( const ::std::string &  value)
inline

Definition at line 570 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ set_blob_value() [2/3]

void bgs::protocol::v2::Variant::set_blob_value ( const char *  value)
inline

Definition at line 578 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ set_blob_value() [3/3]

void bgs::protocol::v2::Variant::set_blob_value ( const void *  value,
size_t  size 
)
inline

Definition at line 586 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ set_bool_value()

void bgs::protocol::v2::Variant::set_bool_value ( bool  value)
inline

Definition at line 419 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ set_float_value()

void bgs::protocol::v2::Variant::set_float_value ( double  value)
inline

Definition at line 473 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ set_has_blob_value()

void bgs::protocol::v2::Variant::set_has_blob_value ( )
inlineprivate

Definition at line 555 of file attribute_types.pb.h.

+ Here is the caller graph for this function:

◆ set_has_bool_value()

void bgs::protocol::v2::Variant::set_has_bool_value ( )
inlineprivate

Definition at line 404 of file attribute_types.pb.h.

+ Here is the caller graph for this function:

◆ set_has_float_value()

void bgs::protocol::v2::Variant::set_has_float_value ( )
inlineprivate

Definition at line 458 of file attribute_types.pb.h.

+ Here is the caller graph for this function:

◆ set_has_int_value()

void bgs::protocol::v2::Variant::set_has_int_value ( )
inlineprivate

Definition at line 431 of file attribute_types.pb.h.

+ Here is the caller graph for this function:

◆ set_has_string_value()

void bgs::protocol::v2::Variant::set_has_string_value ( )
inlineprivate

Definition at line 485 of file attribute_types.pb.h.

+ Here is the caller graph for this function:

◆ set_has_uint_value()

void bgs::protocol::v2::Variant::set_has_uint_value ( )
inlineprivate

Definition at line 625 of file attribute_types.pb.h.

+ Here is the caller graph for this function:

◆ set_int_value()

void bgs::protocol::v2::Variant::set_int_value ( ::google::protobuf::int64  value)
inline

Definition at line 446 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ set_string_value() [1/3]

void bgs::protocol::v2::Variant::set_string_value ( const ::std::string &  value)
inline

Definition at line 500 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ set_string_value() [2/3]

void bgs::protocol::v2::Variant::set_string_value ( const char *  value)
inline

Definition at line 508 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ set_string_value() [3/3]

void bgs::protocol::v2::Variant::set_string_value ( const char *  value,
size_t  size 
)
inline

Definition at line 516 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ set_uint_value()

void bgs::protocol::v2::Variant::set_uint_value ( ::google::protobuf::uint64  value)
inline

Definition at line 640 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ SetCachedSize()

void bgs::protocol::v2::Variant::SetCachedSize ( int  size) const
private

◆ SharedCtor()

void bgs::protocol::v2::Variant::SharedCtor ( )
private

◆ SharedDtor()

void bgs::protocol::v2::Variant::SharedDtor ( )
private

◆ string_value()

const ::std::string & bgs::protocol::v2::Variant::string_value ( ) const
inline

Definition at line 494 of file attribute_types.pb.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Swap()

void bgs::protocol::v2::Variant::Swap ( Variant other)

◆ type_case()

Variant::TypeCase bgs::protocol::v2::Variant::type_case ( ) const
inline

Definition at line 654 of file attribute_types.pb.h.

+ Here is the caller graph for this function:

◆ uint_value()

google::protobuf::uint64 bgs::protocol::v2::Variant::uint_value ( ) const
inline

Definition at line 634 of file attribute_types.pb.h.

+ Here is the call graph for this function:

◆ unknown_fields()

const ::google::protobuf::UnknownFieldSet & bgs::protocol::v2::Variant::unknown_fields ( ) const
inline

Definition at line 79 of file attribute_types.pb.h.

Friends And Related Function Documentation

◆ protobuf_AddDesc_api_2fclient_2fv2_2fattribute_5ftypes_2eproto

void TC_PROTO_API protobuf_AddDesc_api_2fclient_2fv2_2fattribute_5ftypes_2eproto ( )
friend

◆ protobuf_AssignDesc_api_2fclient_2fv2_2fattribute_5ftypes_2eproto

void protobuf_AssignDesc_api_2fclient_2fv2_2fattribute_5ftypes_2eproto ( )
friend

◆ protobuf_ShutdownFile_api_2fclient_2fv2_2fattribute_5ftypes_2eproto

void protobuf_ShutdownFile_api_2fclient_2fv2_2fattribute_5ftypes_2eproto ( )
friend

Member Data Documentation

◆ _cached_size_

int bgs::protocol::v2::Variant::_cached_size_
mutableprivate

Definition at line 186 of file attribute_types.pb.h.

◆ _has_bits_

::google::protobuf::uint32 bgs::protocol::v2::Variant::_has_bits_[1]
private

Definition at line 185 of file attribute_types.pb.h.

◆ _oneof_case_

::google::protobuf::uint32 bgs::protocol::v2::Variant::_oneof_case_[1]
private

Definition at line 195 of file attribute_types.pb.h.

◆ _unknown_fields_

::google::protobuf::UnknownFieldSet bgs::protocol::v2::Variant::_unknown_fields_
private

Definition at line 183 of file attribute_types.pb.h.

◆ default_instance_

Variant* bgs::protocol::v2::Variant::default_instance_
staticprivate

Definition at line 202 of file attribute_types.pb.h.

◆ kBlobValueFieldNumber

const int bgs::protocol::v2::Variant::kBlobValueFieldNumber = 5
static

Definition at line 153 of file attribute_types.pb.h.

◆ kBoolValueFieldNumber

const int bgs::protocol::v2::Variant::kBoolValueFieldNumber = 1
static

Definition at line 120 of file attribute_types.pb.h.

◆ kFloatValueFieldNumber

const int bgs::protocol::v2::Variant::kFloatValueFieldNumber = 3
static

Definition at line 134 of file attribute_types.pb.h.

◆ kIntValueFieldNumber

const int bgs::protocol::v2::Variant::kIntValueFieldNumber = 2
static

Definition at line 127 of file attribute_types.pb.h.

◆ kStringValueFieldNumber

const int bgs::protocol::v2::Variant::kStringValueFieldNumber = 4
static

Definition at line 141 of file attribute_types.pb.h.

◆ kUintValueFieldNumber

const int bgs::protocol::v2::Variant::kUintValueFieldNumber = 6
static

Definition at line 165 of file attribute_types.pb.h.

◆ type_

union bgs::protocol::v2::Variant::TypeUnion bgs::protocol::v2::Variant::type_
private

The documentation for this class was generated from the following file: