TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
bgs::protocol::Attribute Class Reference

#include <attribute_types.pb.h>

Public Member Functions

 Attribute ()
 
virtual ~Attribute ()
 
 Attribute (const Attribute &from)
 
Attributeoperator= (const Attribute &from)
 
const
::google::protobuf::UnknownFieldSet
unknown_fields () const
 
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields ()
 
void Swap (Attribute *other)
 
AttributeNew () const
 
void CopyFrom (const ::google::protobuf::Message &from)
 
void MergeFrom (const ::google::protobuf::Message &from)
 
void CopyFrom (const Attribute &from)
 
void MergeFrom (const Attribute &from)
 
void Clear ()
 
bool IsInitialized () const
 
int ByteSize () const
 
bool MergePartialFromCodedStream (::google::protobuf::io::CodedInputStream *input)
 
void SerializeWithCachedSizes (::google::protobuf::io::CodedOutputStream *output) const
 
::google::protobuf::uint8SerializeWithCachedSizesToArray (::google::protobuf::uint8 *output) const
 
int GetCachedSize () const
 
::google::protobuf::Metadata GetMetadata () const
 
bool has_name () const
 
void clear_name ()
 
const ::std::string & name () const
 
void set_name (const ::std::string &value)
 
void set_name (const char *value)
 
void set_name (const char *value, size_t size)
 
inline::std::string * mutable_name ()
 
inline::std::string * release_name ()
 
void set_allocated_name (::std::string *name)
 
bool has_value () const
 
void clear_value ()
 
const ::bgs::protocol::Variantvalue () const
 
inline::bgs::protocol::Variant * mutable_value ()
 
inline::bgs::protocol::Variant * release_value ()
 
void set_allocated_value (::bgs::protocol::Variant *value)
 
- Public Member Functions inherited from google::protobuf::Message
 Message ()
 
virtual ~Message ()
 
virtual void CopyFrom (const Message &from)
 
virtual void MergeFrom (const Message &from)
 
void CheckInitialized () const
 
void FindInitializationErrors (vector< string > *errors) const
 
string InitializationErrorString () const
 
virtual void DiscardUnknownFields ()
 
virtual int SpaceUsed () const
 
string DebugString () const
 
string ShortDebugString () const
 
string Utf8DebugString () const
 
void PrintDebugString () const
 
bool ParseFromFileDescriptor (int file_descriptor)
 
bool ParsePartialFromFileDescriptor (int file_descriptor)
 
bool ParseFromIstream (istream *input)
 
bool ParsePartialFromIstream (istream *input)
 
bool SerializeToFileDescriptor (int file_descriptor) const
 
bool SerializePartialToFileDescriptor (int file_descriptor) const
 
bool SerializeToOstream (ostream *output) const
 
bool SerializePartialToOstream (ostream *output) const
 
virtual string GetTypeName () const
 
virtual void CheckTypeAndMergeFrom (const MessageLite &other)
 
virtual bool MergePartialFromCodedStream (io::CodedInputStream *input)
 
virtual void SerializeWithCachedSizes (io::CodedOutputStream *output) const
 
const DescriptorGetDescriptor () const
 
virtual const ReflectionGetReflection () const
 
- Public Member Functions inherited from google::protobuf::MessageLite
 MessageLite ()
 
virtual ~MessageLite ()
 
bool ParseFromCodedStream (io::CodedInputStream *input)
 
bool ParsePartialFromCodedStream (io::CodedInputStream *input)
 
bool ParseFromZeroCopyStream (io::ZeroCopyInputStream *input)
 
bool ParsePartialFromZeroCopyStream (io::ZeroCopyInputStream *input)
 
bool ParseFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
bool ParsePartialFromBoundedZeroCopyStream (io::ZeroCopyInputStream *input, int size)
 
bool ParseFromString (const string &data)
 
bool ParsePartialFromString (const string &data)
 
bool ParseFromArray (const void *data, int size)
 
bool ParsePartialFromArray (const void *data, int size)
 
bool MergeFromCodedStream (io::CodedInputStream *input)
 
bool SerializeToCodedStream (io::CodedOutputStream *output) const
 
bool SerializePartialToCodedStream (io::CodedOutputStream *output) const
 
bool SerializeToZeroCopyStream (io::ZeroCopyOutputStream *output) const
 
bool SerializePartialToZeroCopyStream (io::ZeroCopyOutputStream *output) const
 
bool SerializeToString (string *output) const
 
bool SerializePartialToString (string *output) const
 
bool SerializeToArray (void *data, int size) const
 
bool SerializePartialToArray (void *data, int size) const
 
string SerializeAsString () const
 
string SerializePartialAsString () const
 
bool AppendToString (string *output) const
 
bool AppendPartialToString (string *output) const
 
virtual uint8SerializeWithCachedSizesToArray (uint8 *target) const
 

Static Public Member Functions

static const
::google::protobuf::Descriptor
descriptor ()
 
static const Attributedefault_instance ()
 

Static Public Attributes

static const int kNameFieldNumber = 1
 
static const int kValueFieldNumber = 2
 

Private Member Functions

void SharedCtor ()
 
void SharedDtor ()
 
void SetCachedSize (int size) const
 
void set_has_name ()
 
void clear_has_name ()
 
void set_has_value ()
 
void clear_has_value ()
 
void InitAsDefaultInstance ()
 

Private Attributes

::google::protobuf::UnknownFieldSet _unknown_fields_
 
::google::protobuf::uint32 _has_bits_ [1]
 
int _cached_size_
 
::std::string * name_
 
::bgs::protocol::Variantvalue_
 

Static Private Attributes

static Attributedefault_instance_
 

Friends

void TC_SHARED_API protobuf_AddDesc_attribute_5ftypes_2eproto ()
 
void protobuf_AssignDesc_attribute_5ftypes_2eproto ()
 
void protobuf_ShutdownFile_attribute_5ftypes_2eproto ()
 

Additional Inherited Members

- Public Types inherited from google::protobuf::Message
typedef
google::protobuf::Reflection 
Reflection
 

Constructor & Destructor Documentation

bgs::protocol::Attribute::Attribute ( )
virtual bgs::protocol::Attribute::~Attribute ( )
virtual
bgs::protocol::Attribute::Attribute ( const Attribute from)

Member Function Documentation

int bgs::protocol::Attribute::ByteSize ( ) const
virtual

Reimplemented from google::protobuf::Message.

void bgs::protocol::Attribute::Clear ( )
virtual

Reimplemented from google::protobuf::Message.

void bgs::protocol::Attribute::clear_has_name ( )
inlineprivate
922  {
923  _has_bits_[0] &= ~0x00000001u;
924 }
::google::protobuf::uint32 _has_bits_[1]
Definition: attribute_types.pb.h:331

+ Here is the caller graph for this function:

void bgs::protocol::Attribute::clear_has_value ( )
inlineprivate
998  {
999  _has_bits_[0] &= ~0x00000002u;
1000 }
::google::protobuf::uint32 _has_bits_[1]
Definition: attribute_types.pb.h:331

+ Here is the caller graph for this function:

void bgs::protocol::Attribute::clear_name ( )
inline
925  {
927  name_->clear();
928  }
929  clear_has_name();
930 }
LIBPROTOBUF_EXPORTconst::std::string & GetEmptyStringAlreadyInited()
Definition: generated_message_util.h:79
void clear_has_name()
Definition: attribute_types.pb.h:922
::std::string * name_
Definition: attribute_types.pb.h:333

+ Here is the call graph for this function:

void bgs::protocol::Attribute::clear_value ( )
inline
1001  {
1002  if (value_ != NULL) value_->::bgs::protocol::Variant::Clear();
1003  clear_has_value();
1004 }
arena_t NULL
Definition: jemalloc_internal.h:624
::bgs::protocol::Variant * value_
Definition: attribute_types.pb.h:334
void clear_has_value()
Definition: attribute_types.pb.h:998

+ Here is the call graph for this function:

void bgs::protocol::Attribute::CopyFrom ( const ::google::protobuf::Message from)
void bgs::protocol::Attribute::CopyFrom ( const Attribute from)
static const Attribute& bgs::protocol::Attribute::default_instance ( )
static
static const ::google::protobuf::Descriptor* bgs::protocol::Attribute::descriptor ( )
static
int bgs::protocol::Attribute::GetCachedSize ( ) const
inlinevirtual

Implements google::protobuf::MessageLite.

289 { return _cached_size_; }
int _cached_size_
Definition: attribute_types.pb.h:332
::google::protobuf::Metadata bgs::protocol::Attribute::GetMetadata ( ) const
virtual
bool bgs::protocol::Attribute::has_name ( ) const
inline
916  {
917  return (_has_bits_[0] & 0x00000001u) != 0;
918 }
::google::protobuf::uint32 _has_bits_[1]
Definition: attribute_types.pb.h:331
bool bgs::protocol::Attribute::has_value ( ) const
inline
992  {
993  return (_has_bits_[0] & 0x00000002u) != 0;
994 }
::google::protobuf::uint32 _has_bits_[1]
Definition: attribute_types.pb.h:331
void bgs::protocol::Attribute::InitAsDefaultInstance ( )
private
bool bgs::protocol::Attribute::IsInitialized ( ) const
virtual

Reimplemented from google::protobuf::Message.

void bgs::protocol::Attribute::MergeFrom ( const ::google::protobuf::Message from)
void bgs::protocol::Attribute::MergeFrom ( const Attribute from)
bool bgs::protocol::Attribute::MergePartialFromCodedStream ( ::google::protobuf::io::CodedInputStream input)
std::string * bgs::protocol::Attribute::mutable_name ( )
inline
959  {
960  set_has_name();
962  name_ = new ::std::string;
963  }
964  // @@protoc_insertion_point(field_mutable:bgs.protocol.Attribute.name)
965  return name_;
966 }
LIBPROTOBUF_EXPORTconst::std::string & GetEmptyStringAlreadyInited()
Definition: generated_message_util.h:79
void set_has_name()
Definition: attribute_types.pb.h:919
::std::string * name_
Definition: attribute_types.pb.h:333

+ Here is the call graph for this function:

inline ::google::protobuf::UnknownFieldSet* bgs::protocol::Attribute::mutable_unknown_fields ( )
inline
264  {
265  return &_unknown_fields_;
266  }
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: attribute_types.pb.h:329
bgs::protocol::Variant * bgs::protocol::Attribute::mutable_value ( )
inline
1009  {
1010  set_has_value();
1011  if (value_ == NULL) value_ = new ::bgs::protocol::Variant;
1012  // @@protoc_insertion_point(field_mutable:bgs.protocol.Attribute.value)
1013  return value_;
1014 }
arena_t NULL
Definition: jemalloc_internal.h:624
void set_has_value()
Definition: attribute_types.pb.h:995
::bgs::protocol::Variant * value_
Definition: attribute_types.pb.h:334

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const ::std::string & bgs::protocol::Attribute::name ( ) const
inline
931  {
932  // @@protoc_insertion_point(field_get:bgs.protocol.Attribute.name)
933  return *name_;
934 }
::std::string * name_
Definition: attribute_types.pb.h:333

+ Here is the caller graph for this function:

Attribute* bgs::protocol::Attribute::New ( ) const
virtual
Attribute& bgs::protocol::Attribute::operator= ( const Attribute from)
inline
255  {
256  CopyFrom(from);
257  return *this;
258  }
void CopyFrom(const ::google::protobuf::Message &from)
std::string * bgs::protocol::Attribute::release_name ( )
inline
967  {
968  clear_has_name();
970  return NULL;
971  } else {
972  ::std::string* temp = name_;
973  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
974  return temp;
975  }
976 }
arena_t NULL
Definition: jemalloc_internal.h:624
LIBPROTOBUF_EXPORTconst::std::string & GetEmptyStringAlreadyInited()
Definition: generated_message_util.h:79
void clear_has_name()
Definition: attribute_types.pb.h:922
::std::string * name_
Definition: attribute_types.pb.h:333

+ Here is the call graph for this function:

bgs::protocol::Variant * bgs::protocol::Attribute::release_value ( )
inline
1015  {
1016  clear_has_value();
1018  value_ = NULL;
1019  return temp;
1020 }
Definition: attribute_types.pb.h:67
arena_t NULL
Definition: jemalloc_internal.h:624
::bgs::protocol::Variant * value_
Definition: attribute_types.pb.h:334
void clear_has_value()
Definition: attribute_types.pb.h:998

+ Here is the call graph for this function:

void bgs::protocol::Attribute::SerializeWithCachedSizes ( ::google::protobuf::io::CodedOutputStream output) const
::google::protobuf::uint8* bgs::protocol::Attribute::SerializeWithCachedSizesToArray ( ::google::protobuf::uint8 output) const
void bgs::protocol::Attribute::set_allocated_name ( ::std::string *  name)
inline
977  {
979  delete name_;
980  }
981  if (name) {
982  set_has_name();
983  name_ = name;
984  } else {
985  clear_has_name();
986  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
987  }
988  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.Attribute.name)
989 }
const ::std::string & name() const
Definition: attribute_types.pb.h:931
LIBPROTOBUF_EXPORTconst::std::string & GetEmptyStringAlreadyInited()
Definition: generated_message_util.h:79
void clear_has_name()
Definition: attribute_types.pb.h:922
void set_has_name()
Definition: attribute_types.pb.h:919
::std::string * name_
Definition: attribute_types.pb.h:333

+ Here is the call graph for this function:

void bgs::protocol::Attribute::set_allocated_value ( ::bgs::protocol::Variant value)
inline
1021  {
1022  delete value_;
1023  value_ = value;
1024  if (value) {
1025  set_has_value();
1026  } else {
1027  clear_has_value();
1028  }
1029  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.Attribute.value)
1030 }
void set_has_value()
Definition: attribute_types.pb.h:995
const ::bgs::protocol::Variant & value() const
Definition: attribute_types.pb.h:1005
::bgs::protocol::Variant * value_
Definition: attribute_types.pb.h:334
void clear_has_value()
Definition: attribute_types.pb.h:998

+ Here is the call graph for this function:

void bgs::protocol::Attribute::set_has_name ( )
inlineprivate
919  {
920  _has_bits_[0] |= 0x00000001u;
921 }
::google::protobuf::uint32 _has_bits_[1]
Definition: attribute_types.pb.h:331

+ Here is the caller graph for this function:

void bgs::protocol::Attribute::set_has_value ( )
inlineprivate
995  {
996  _has_bits_[0] |= 0x00000002u;
997 }
::google::protobuf::uint32 _has_bits_[1]
Definition: attribute_types.pb.h:331

+ Here is the caller graph for this function:

void bgs::protocol::Attribute::set_name ( const ::std::string &  value)
inline
935  {
936  set_has_name();
938  name_ = new ::std::string;
939  }
940  name_->assign(value);
941  // @@protoc_insertion_point(field_set:bgs.protocol.Attribute.name)
942 }
LIBPROTOBUF_EXPORTconst::std::string & GetEmptyStringAlreadyInited()
Definition: generated_message_util.h:79
const ::bgs::protocol::Variant & value() const
Definition: attribute_types.pb.h:1005
void set_has_name()
Definition: attribute_types.pb.h:919
::std::string * name_
Definition: attribute_types.pb.h:333

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void bgs::protocol::Attribute::set_name ( const char *  value)
inline
943  {
944  set_has_name();
946  name_ = new ::std::string;
947  }
948  name_->assign(value);
949  // @@protoc_insertion_point(field_set_char:bgs.protocol.Attribute.name)
950 }
LIBPROTOBUF_EXPORTconst::std::string & GetEmptyStringAlreadyInited()
Definition: generated_message_util.h:79
const ::bgs::protocol::Variant & value() const
Definition: attribute_types.pb.h:1005
void set_has_name()
Definition: attribute_types.pb.h:919
::std::string * name_
Definition: attribute_types.pb.h:333

+ Here is the call graph for this function:

void bgs::protocol::Attribute::set_name ( const char *  value,
size_t  size 
)
inline
951  {
952  set_has_name();
954  name_ = new ::std::string;
955  }
956  name_->assign(reinterpret_cast<const char*>(value), size);
957  // @@protoc_insertion_point(field_set_pointer:bgs.protocol.Attribute.name)
958 }
LIBPROTOBUF_EXPORTconst::std::string & GetEmptyStringAlreadyInited()
Definition: generated_message_util.h:79
const ::bgs::protocol::Variant & value() const
Definition: attribute_types.pb.h:1005
void set_has_name()
Definition: attribute_types.pb.h:919
::std::string * name_
Definition: attribute_types.pb.h:333

+ Here is the call graph for this function:

void bgs::protocol::Attribute::SetCachedSize ( int  size) const
privatevirtual

Reimplemented from google::protobuf::Message.

void bgs::protocol::Attribute::SharedCtor ( )
private
void bgs::protocol::Attribute::SharedDtor ( )
private
void bgs::protocol::Attribute::Swap ( Attribute other)
const ::google::protobuf::UnknownFieldSet& bgs::protocol::Attribute::unknown_fields ( ) const
inline
260  {
261  return _unknown_fields_;
262  }
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: attribute_types.pb.h:329
const ::bgs::protocol::Variant & bgs::protocol::Attribute::value ( ) const
inline
1005  {
1006  // @@protoc_insertion_point(field_get:bgs.protocol.Attribute.value)
1007  return value_ != NULL ? *value_ : *default_instance_->value_;
1008 }
arena_t NULL
Definition: jemalloc_internal.h:624
static Attribute * default_instance_
Definition: attribute_types.pb.h:340
::bgs::protocol::Variant * value_
Definition: attribute_types.pb.h:334

+ Here is the caller graph for this function:

Friends And Related Function Documentation

void TC_SHARED_API protobuf_AddDesc_attribute_5ftypes_2eproto ( )
friend
void protobuf_AssignDesc_attribute_5ftypes_2eproto ( )
friend
void protobuf_ShutdownFile_attribute_5ftypes_2eproto ( )
friend

Member Data Documentation

int bgs::protocol::Attribute::_cached_size_
mutableprivate
::google::protobuf::uint32 bgs::protocol::Attribute::_has_bits_[1]
private
::google::protobuf::UnknownFieldSet bgs::protocol::Attribute::_unknown_fields_
private
Attribute* bgs::protocol::Attribute::default_instance_
staticprivate
const int bgs::protocol::Attribute::kNameFieldNumber = 1
static
const int bgs::protocol::Attribute::kValueFieldNumber = 2
static
::std::string* bgs::protocol::Attribute::name_
private
::bgs::protocol::Variant* bgs::protocol::Attribute::value_
private

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