TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
google::protobuf::EnumDescriptorProto Class Reference

#include <descriptor.pb.h>

Public Member Functions

 EnumDescriptorProto ()
 
virtual ~EnumDescriptorProto ()
 
 EnumDescriptorProto (const EnumDescriptorProto &from)
 
EnumDescriptorProtooperator= (const EnumDescriptorProto &from)
 
const
::google::protobuf::UnknownFieldSet
unknown_fields () const
 
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields ()
 
void Swap (EnumDescriptorProto *other)
 
EnumDescriptorProtoNew () const
 
void CopyFrom (const ::google::protobuf::Message &from)
 
void MergeFrom (const ::google::protobuf::Message &from)
 
void CopyFrom (const EnumDescriptorProto &from)
 
void MergeFrom (const EnumDescriptorProto &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)
 
int value_size () const
 
void clear_value ()
 
const
::google::protobuf::EnumValueDescriptorProto
value (int index) const
 
inline::google::protobuf::EnumValueDescriptorProto * mutable_value (int index)
 
inline::google::protobuf::EnumValueDescriptorProto * add_value ()
 
const
::google::protobuf::RepeatedPtrField
< ::google::protobuf::EnumValueDescriptorProto > & 
value () const
 
inline::google::protobuf::RepeatedPtrField
< ::google::protobuf::EnumValueDescriptorProto > * 
mutable_value ()
 
bool has_options () const
 
void clear_options ()
 
const
::google::protobuf::EnumOptions
options () const
 
inline::google::protobuf::EnumOptions * mutable_options ()
 
inline::google::protobuf::EnumOptions * release_options ()
 
void set_allocated_options (::google::protobuf::EnumOptions *options)
 
- 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 EnumDescriptorProtodefault_instance ()
 

Static Public Attributes

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

Private Member Functions

void SharedCtor ()
 
void SharedDtor ()
 
void SetCachedSize (int size) const
 
void set_has_name ()
 
void clear_has_name ()
 
void set_has_options ()
 
void clear_has_options ()
 
void InitAsDefaultInstance ()
 

Private Attributes

::google::protobuf::UnknownFieldSet _unknown_fields_
 
::google::protobuf::uint32 _has_bits_ [1]
 
int _cached_size_
 
::std::string * name_
 
::google::protobuf::RepeatedPtrField
< ::google::protobuf::EnumValueDescriptorProto
value_
 
::google::protobuf::EnumOptionsoptions_
 

Static Private Attributes

static EnumDescriptorProtodefault_instance_
 

Friends

void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto ()
 
void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto ()
 
void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto ()
 

Additional Inherited Members

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

Constructor & Destructor Documentation

google::protobuf::EnumDescriptorProto::EnumDescriptorProto ( )
virtual google::protobuf::EnumDescriptorProto::~EnumDescriptorProto ( )
virtual
google::protobuf::EnumDescriptorProto::EnumDescriptorProto ( const EnumDescriptorProto from)

Member Function Documentation

google::protobuf::EnumValueDescriptorProto * google::protobuf::EnumDescriptorProto::add_value ( )
inline
4363  {
4364  // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.value)
4365  return value_.Add();
4366 }
::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto > value_
Definition: descriptor.pb.h:1150
int google::protobuf::EnumDescriptorProto::ByteSize ( ) const
virtual

Reimplemented from google::protobuf::Message.

void google::protobuf::EnumDescriptorProto::Clear ( )
virtual

Reimplemented from google::protobuf::Message.

void google::protobuf::EnumDescriptorProto::clear_has_name ( )
inlineprivate
4279  {
4280  _has_bits_[0] &= ~0x00000001u;
4281 }
::google::protobuf::uint32 _has_bits_[1]
Definition: descriptor.pb.h:1147
void google::protobuf::EnumDescriptorProto::clear_has_options ( )
inlineprivate
4385  {
4386  _has_bits_[0] &= ~0x00000004u;
4387 }
::google::protobuf::uint32 _has_bits_[1]
Definition: descriptor.pb.h:1147
void google::protobuf::EnumDescriptorProto::clear_name ( )
inline
4282  {
4284  name_->clear();
4285  }
4286  clear_has_name();
4287 }
void clear_has_name()
Definition: descriptor.pb.h:4279
LIBPROTOBUF_EXPORTconst::std::string & GetEmptyStringAlreadyInited()
Definition: generated_message_util.h:79
::std::string * name_
Definition: descriptor.pb.h:1149

+ Here is the call graph for this function:

void google::protobuf::EnumDescriptorProto::clear_options ( )
inline
4388  {
4389  if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear();
4391 }
arena_t NULL
Definition: jemalloc_internal.h:624
::google::protobuf::EnumOptions * options_
Definition: descriptor.pb.h:1151
void clear_has_options()
Definition: descriptor.pb.h:4385
void google::protobuf::EnumDescriptorProto::clear_value ( )
inline
4352  {
4353  value_.Clear();
4354 }
::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto > value_
Definition: descriptor.pb.h:1150
void google::protobuf::EnumDescriptorProto::CopyFrom ( const ::google::protobuf::Message from)
void google::protobuf::EnumDescriptorProto::CopyFrom ( const EnumDescriptorProto from)
static const EnumDescriptorProto& google::protobuf::EnumDescriptorProto::default_instance ( )
static
static const ::google::protobuf::Descriptor* google::protobuf::EnumDescriptorProto::descriptor ( )
static
int google::protobuf::EnumDescriptorProto::GetCachedSize ( ) const
inlinevirtual

Implements google::protobuf::MessageLite.

1093 { return _cached_size_; }
int _cached_size_
Definition: descriptor.pb.h:1148
::google::protobuf::Metadata google::protobuf::EnumDescriptorProto::GetMetadata ( ) const
virtual
bool google::protobuf::EnumDescriptorProto::has_name ( ) const
inline
4273  {
4274  return (_has_bits_[0] & 0x00000001u) != 0;
4275 }
::google::protobuf::uint32 _has_bits_[1]
Definition: descriptor.pb.h:1147
bool google::protobuf::EnumDescriptorProto::has_options ( ) const
inline
4379  {
4380  return (_has_bits_[0] & 0x00000004u) != 0;
4381 }
::google::protobuf::uint32 _has_bits_[1]
Definition: descriptor.pb.h:1147
void google::protobuf::EnumDescriptorProto::InitAsDefaultInstance ( )
private
bool google::protobuf::EnumDescriptorProto::IsInitialized ( ) const
virtual

Reimplemented from google::protobuf::Message.

void google::protobuf::EnumDescriptorProto::MergeFrom ( const ::google::protobuf::Message from)
void google::protobuf::EnumDescriptorProto::MergeFrom ( const EnumDescriptorProto from)
bool google::protobuf::EnumDescriptorProto::MergePartialFromCodedStream ( ::google::protobuf::io::CodedInputStream input)
std::string * google::protobuf::EnumDescriptorProto::mutable_name ( )
inline
4316  {
4317  set_has_name();
4319  name_ = new ::std::string;
4320  }
4321  // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.name)
4322  return name_;
4323 }
void set_has_name()
Definition: descriptor.pb.h:4276
LIBPROTOBUF_EXPORTconst::std::string & GetEmptyStringAlreadyInited()
Definition: generated_message_util.h:79
::std::string * name_
Definition: descriptor.pb.h:1149

+ Here is the call graph for this function:

google::protobuf::EnumOptions * google::protobuf::EnumDescriptorProto::mutable_options ( )
inline
4396  {
4397  set_has_options();
4398  if (options_ == NULL) options_ = new ::google::protobuf::EnumOptions;
4399  // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.options)
4400  return options_;
4401 }
void set_has_options()
Definition: descriptor.pb.h:4382
arena_t NULL
Definition: jemalloc_internal.h:624
::google::protobuf::EnumOptions * options_
Definition: descriptor.pb.h:1151
inline ::google::protobuf::UnknownFieldSet* google::protobuf::EnumDescriptorProto::mutable_unknown_fields ( )
inline
1068  {
1069  return &_unknown_fields_;
1070  }
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: descriptor.pb.h:1145
google::protobuf::EnumValueDescriptorProto * google::protobuf::EnumDescriptorProto::mutable_value ( int  index)
inline
4359  {
4360  // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.value)
4361  return value_.Mutable(index);
4362 }
::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto > value_
Definition: descriptor.pb.h:1150
google::protobuf::RepeatedPtrField<::google::protobuf::EnumValueDescriptorProto > * google::protobuf::EnumDescriptorProto::mutable_value ( )
inline
4373  {
4374  // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.value)
4375  return &value_;
4376 }
::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto > value_
Definition: descriptor.pb.h:1150
const ::std::string & google::protobuf::EnumDescriptorProto::name ( ) const
inline
4288  {
4289  // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name)
4290  return *name_;
4291 }
::std::string * name_
Definition: descriptor.pb.h:1149
EnumDescriptorProto* google::protobuf::EnumDescriptorProto::New ( ) const
virtual
EnumDescriptorProto& google::protobuf::EnumDescriptorProto::operator= ( const EnumDescriptorProto from)
inline
1059  {
1060  CopyFrom(from);
1061  return *this;
1062  }
void CopyFrom(const ::google::protobuf::Message &from)
const ::google::protobuf::EnumOptions & google::protobuf::EnumDescriptorProto::options ( ) const
inline
4392  {
4393  // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.options)
4394  return options_ != NULL ? *options_ : *default_instance_->options_;
4395 }
arena_t NULL
Definition: jemalloc_internal.h:624
::google::protobuf::EnumOptions * options_
Definition: descriptor.pb.h:1151
static EnumDescriptorProto * default_instance_
Definition: descriptor.pb.h:1157
std::string * google::protobuf::EnumDescriptorProto::release_name ( )
inline
4324  {
4325  clear_has_name();
4327  return NULL;
4328  } else {
4329  ::std::string* temp = name_;
4330  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4331  return temp;
4332  }
4333 }
void clear_has_name()
Definition: descriptor.pb.h:4279
arena_t NULL
Definition: jemalloc_internal.h:624
LIBPROTOBUF_EXPORTconst::std::string & GetEmptyStringAlreadyInited()
Definition: generated_message_util.h:79
::std::string * name_
Definition: descriptor.pb.h:1149

+ Here is the call graph for this function:

google::protobuf::EnumOptions * google::protobuf::EnumDescriptorProto::release_options ( )
inline
4402  {
4405  options_ = NULL;
4406  return temp;
4407 }
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: descriptor.pb.h:2027
::google::protobuf::EnumOptions * options_
Definition: descriptor.pb.h:1151
void clear_has_options()
Definition: descriptor.pb.h:4385
void google::protobuf::EnumDescriptorProto::SerializeWithCachedSizes ( ::google::protobuf::io::CodedOutputStream output) const
::google::protobuf::uint8* google::protobuf::EnumDescriptorProto::SerializeWithCachedSizesToArray ( ::google::protobuf::uint8 output) const
void google::protobuf::EnumDescriptorProto::set_allocated_name ( ::std::string *  name)
inline
4334  {
4336  delete name_;
4337  }
4338  if (name) {
4339  set_has_name();
4340  name_ = name;
4341  } else {
4342  clear_has_name();
4343  name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4344  }
4345  // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.name)
4346 }
void clear_has_name()
Definition: descriptor.pb.h:4279
void set_has_name()
Definition: descriptor.pb.h:4276
LIBPROTOBUF_EXPORTconst::std::string & GetEmptyStringAlreadyInited()
Definition: generated_message_util.h:79
::std::string * name_
Definition: descriptor.pb.h:1149
const ::std::string & name() const
Definition: descriptor.pb.h:4288

+ Here is the call graph for this function:

void google::protobuf::EnumDescriptorProto::set_allocated_options ( ::google::protobuf::EnumOptions options)
inline
4408  {
4409  delete options_;
4410  options_ = options;
4411  if (options) {
4412  set_has_options();
4413  } else {
4415  }
4416  // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.options)
4417 }
void set_has_options()
Definition: descriptor.pb.h:4382
const ::google::protobuf::EnumOptions & options() const
Definition: descriptor.pb.h:4392
::google::protobuf::EnumOptions * options_
Definition: descriptor.pb.h:1151
void clear_has_options()
Definition: descriptor.pb.h:4385
void google::protobuf::EnumDescriptorProto::set_has_name ( )
inlineprivate
4276  {
4277  _has_bits_[0] |= 0x00000001u;
4278 }
::google::protobuf::uint32 _has_bits_[1]
Definition: descriptor.pb.h:1147
void google::protobuf::EnumDescriptorProto::set_has_options ( )
inlineprivate
4382  {
4383  _has_bits_[0] |= 0x00000004u;
4384 }
::google::protobuf::uint32 _has_bits_[1]
Definition: descriptor.pb.h:1147
void google::protobuf::EnumDescriptorProto::set_name ( const ::std::string &  value)
inline
4292  {
4293  set_has_name();
4295  name_ = new ::std::string;
4296  }
4297  name_->assign(value);
4298  // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name)
4299 }
void set_has_name()
Definition: descriptor.pb.h:4276
LIBPROTOBUF_EXPORTconst::std::string & GetEmptyStringAlreadyInited()
Definition: generated_message_util.h:79
const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto > & value() const
Definition: descriptor.pb.h:4368
::std::string * name_
Definition: descriptor.pb.h:1149

+ Here is the call graph for this function:

void google::protobuf::EnumDescriptorProto::set_name ( const char *  value)
inline
4300  {
4301  set_has_name();
4303  name_ = new ::std::string;
4304  }
4305  name_->assign(value);
4306  // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto.name)
4307 }
void set_has_name()
Definition: descriptor.pb.h:4276
LIBPROTOBUF_EXPORTconst::std::string & GetEmptyStringAlreadyInited()
Definition: generated_message_util.h:79
const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto > & value() const
Definition: descriptor.pb.h:4368
::std::string * name_
Definition: descriptor.pb.h:1149

+ Here is the call graph for this function:

void google::protobuf::EnumDescriptorProto::set_name ( const char *  value,
size_t  size 
)
inline
4308  {
4309  set_has_name();
4311  name_ = new ::std::string;
4312  }
4313  name_->assign(reinterpret_cast<const char*>(value), size);
4314  // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorProto.name)
4315 }
void set_has_name()
Definition: descriptor.pb.h:4276
LIBPROTOBUF_EXPORTconst::std::string & GetEmptyStringAlreadyInited()
Definition: generated_message_util.h:79
const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto > & value() const
Definition: descriptor.pb.h:4368
::std::string * name_
Definition: descriptor.pb.h:1149

+ Here is the call graph for this function:

void google::protobuf::EnumDescriptorProto::SetCachedSize ( int  size) const
privatevirtual

Reimplemented from google::protobuf::Message.

void google::protobuf::EnumDescriptorProto::SharedCtor ( )
private
void google::protobuf::EnumDescriptorProto::SharedDtor ( )
private
void google::protobuf::EnumDescriptorProto::Swap ( EnumDescriptorProto other)
const ::google::protobuf::UnknownFieldSet& google::protobuf::EnumDescriptorProto::unknown_fields ( ) const
inline
1064  {
1065  return _unknown_fields_;
1066  }
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: descriptor.pb.h:1145
const ::google::protobuf::EnumValueDescriptorProto & google::protobuf::EnumDescriptorProto::value ( int  index) const
inline
4355  {
4356  // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.value)
4357  return value_.Get(index);
4358 }
::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto > value_
Definition: descriptor.pb.h:1150
const ::google::protobuf::RepeatedPtrField<::google::protobuf::EnumValueDescriptorProto > & google::protobuf::EnumDescriptorProto::value ( ) const
inline
4368  {
4369  // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.value)
4370  return value_;
4371 }
::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto > value_
Definition: descriptor.pb.h:1150
int google::protobuf::EnumDescriptorProto::value_size ( ) const
inline
4349  {
4350  return value_.size();
4351 }
::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto > value_
Definition: descriptor.pb.h:1150

Friends And Related Function Documentation

void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto ( )
friend
void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto ( )
friend
void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto ( )
friend

Member Data Documentation

int google::protobuf::EnumDescriptorProto::_cached_size_
mutableprivate
::google::protobuf::uint32 google::protobuf::EnumDescriptorProto::_has_bits_[1]
private
::google::protobuf::UnknownFieldSet google::protobuf::EnumDescriptorProto::_unknown_fields_
private
EnumDescriptorProto* google::protobuf::EnumDescriptorProto::default_instance_
staticprivate
const int google::protobuf::EnumDescriptorProto::kNameFieldNumber = 1
static
const int google::protobuf::EnumDescriptorProto::kOptionsFieldNumber = 3
static
const int google::protobuf::EnumDescriptorProto::kValueFieldNumber = 2
static
::std::string* google::protobuf::EnumDescriptorProto::name_
private
::google::protobuf::EnumOptions* google::protobuf::EnumDescriptorProto::options_
private
::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto > google::protobuf::EnumDescriptorProto::value_
private

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