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

#include <unknown_field_set.h>

Public Types

enum  Type {
  TYPE_VARINT, TYPE_FIXED32, TYPE_FIXED64, TYPE_LENGTH_DELIMITED,
  TYPE_GROUP
}
 

Public Member Functions

int number () const
 
Type type () const
 
uint64 varint () const
 
uint32 fixed32 () const
 
uint64 fixed64 () const
 
const string & length_delimited () const
 
const UnknownFieldSetgroup () const
 
void set_varint (uint64 value)
 
void set_fixed32 (uint32 value)
 
void set_fixed64 (uint64 value)
 
void set_length_delimited (const string &value)
 
string * mutable_length_delimited ()
 
UnknownFieldSetmutable_group ()
 
void SerializeLengthDelimitedNoTag (io::CodedOutputStream *output) const
 
uint8SerializeLengthDelimitedNoTagToArray (uint8 *target) const
 
int GetLengthDelimitedSize () const
 

Private Member Functions

void Delete ()
 
void DeepCopy ()
 
void SetType (Type type)
 

Private Attributes

uint32 number_
 
uint32 type_
 
union {
   uint64   varint_
 
   uint32   fixed32_
 
   uint64   fixed64_
 
   union {
      string *   string_value_
 
   }   length_delimited_
 
   UnknownFieldSet *   group_
 
}; 
 

Friends

class UnknownFieldSet
 

Member Enumeration Documentation

Enumerator
TYPE_VARINT 
TYPE_FIXED32 
TYPE_FIXED64 
TYPE_LENGTH_DELIMITED 
TYPE_GROUP 
156  {
157  TYPE_VARINT,
158  TYPE_FIXED32,
159  TYPE_FIXED64,
161  TYPE_GROUP
162  };
Definition: unknown_field_set.h:158
Definition: unknown_field_set.h:161
Definition: unknown_field_set.h:157
Definition: unknown_field_set.h:159

Member Function Documentation

void google::protobuf::UnknownField::DeepCopy ( )
private
void google::protobuf::UnknownField::Delete ( )
private
uint32 google::protobuf::UnknownField::fixed32 ( ) const
inline
263  {
264  assert(type() == TYPE_FIXED32);
265  return fixed32_;
266 }
Type type() const
Definition: unknown_field_set.h:255
Definition: unknown_field_set.h:158
uint32 fixed32_
Definition: unknown_field_set.h:212

+ Here is the call graph for this function:

uint64 google::protobuf::UnknownField::fixed64 ( ) const
inline
267  {
268  assert(type() == TYPE_FIXED64);
269  return fixed64_;
270 }
Type type() const
Definition: unknown_field_set.h:255
uint64 fixed64_
Definition: unknown_field_set.h:213
Definition: unknown_field_set.h:159

+ Here is the call graph for this function:

int google::protobuf::UnknownField::GetLengthDelimitedSize ( ) const
inline
305  {
307  return static_cast<int>(length_delimited_.string_value_->size());
308 }
Type type() const
Definition: unknown_field_set.h:255
#define GOOGLE_DCHECK_EQ
Definition: common.h:753
union google::protobuf::UnknownField::@39::@41 length_delimited_

+ Here is the call graph for this function:

const UnknownFieldSet & google::protobuf::UnknownField::group ( ) const
inline
275  {
276  assert(type() == TYPE_GROUP);
277  return *group_;
278 }
Type type() const
Definition: unknown_field_set.h:255
UnknownFieldSet * group_
Definition: unknown_field_set.h:217
Definition: unknown_field_set.h:161

+ Here is the call graph for this function:

const string & google::protobuf::UnknownField::length_delimited ( ) const
inline
271  {
272  assert(type() == TYPE_LENGTH_DELIMITED);
273  return *length_delimited_.string_value_;
274 }
Type type() const
Definition: unknown_field_set.h:255
union google::protobuf::UnknownField::@39::@41 length_delimited_

+ Here is the call graph for this function:

UnknownFieldSet * google::protobuf::UnknownField::mutable_group ( )
inline
300  {
301  assert(type() == TYPE_GROUP);
302  return group_;
303 }
Type type() const
Definition: unknown_field_set.h:255
UnknownFieldSet * group_
Definition: unknown_field_set.h:217
Definition: unknown_field_set.h:161

+ Here is the call graph for this function:

string * google::protobuf::UnknownField::mutable_length_delimited ( )
inline
296  {
297  assert(type() == TYPE_LENGTH_DELIMITED);
298  return length_delimited_.string_value_;
299 }
Type type() const
Definition: unknown_field_set.h:255
union google::protobuf::UnknownField::@39::@41 length_delimited_

+ Here is the call graph for this function:

int google::protobuf::UnknownField::number ( ) const
inline
254 { return number_; }
uint32 number_
Definition: unknown_field_set.h:208
void google::protobuf::UnknownField::SerializeLengthDelimitedNoTag ( io::CodedOutputStream output) const
uint8* google::protobuf::UnknownField::SerializeLengthDelimitedNoTagToArray ( uint8 target) const
void google::protobuf::UnknownField::set_fixed32 ( uint32  value)
inline
284  {
285  assert(type() == TYPE_FIXED32);
286  fixed32_ = value;
287 }
Type type() const
Definition: unknown_field_set.h:255
Definition: unknown_field_set.h:158
uint32 fixed32_
Definition: unknown_field_set.h:212
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

void google::protobuf::UnknownField::set_fixed64 ( uint64  value)
inline
288  {
289  assert(type() == TYPE_FIXED64);
290  fixed64_ = value;
291 }
Type type() const
Definition: unknown_field_set.h:255
uint64 fixed64_
Definition: unknown_field_set.h:213
Definition: unknown_field_set.h:159
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

void google::protobuf::UnknownField::set_length_delimited ( const string &  value)
inline
292  {
293  assert(type() == TYPE_LENGTH_DELIMITED);
294  length_delimited_.string_value_->assign(value);
295 }
Type type() const
Definition: unknown_field_set.h:255
union google::protobuf::UnknownField::@39::@41 length_delimited_
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

void google::protobuf::UnknownField::set_varint ( uint64  value)
inline
280  {
281  assert(type() == TYPE_VARINT);
282  varint_ = value;
283 }
Type type() const
Definition: unknown_field_set.h:255
uint64 varint_
Definition: unknown_field_set.h:211
Definition: unknown_field_set.h:157
const FieldDescriptor value
Definition: descriptor.h:1522

+ Here is the call graph for this function:

void google::protobuf::UnknownField::SetType ( Type  type)
inlineprivate
310  {
311  type_ = type;
312 }
Type type() const
Definition: unknown_field_set.h:255
uint32 type_
Definition: unknown_field_set.h:209

+ Here is the call graph for this function:

UnknownField::Type google::protobuf::UnknownField::type ( ) const
inline
255  {
256  return static_cast<Type>(type_);
257 }
uint32 type_
Definition: unknown_field_set.h:209
Type
Type of JSON value.
Definition: rapidjson.h:642

+ Here is the caller graph for this function:

uint64 google::protobuf::UnknownField::varint ( ) const
inline
259  {
260  assert(type() == TYPE_VARINT);
261  return varint_;
262 }
Type type() const
Definition: unknown_field_set.h:255
uint64 varint_
Definition: unknown_field_set.h:211
Definition: unknown_field_set.h:157

+ Here is the call graph for this function:

Friends And Related Function Documentation

friend class UnknownFieldSet
friend

Member Data Documentation

union { ... }
uint32 google::protobuf::UnknownField::fixed32_
uint64 google::protobuf::UnknownField::fixed64_
UnknownFieldSet* google::protobuf::UnknownField::group_
union { ... } google::protobuf::UnknownField::length_delimited_
uint32 google::protobuf::UnknownField::number_
private
string* google::protobuf::UnknownField::string_value_
uint32 google::protobuf::UnknownField::type_
private
uint64 google::protobuf::UnknownField::varint_

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