38 #ifndef GOOGLE_PROTOBUF_UNKNOWN_FIELD_SET_H__
39 #define GOOGLE_PROTOBUF_UNKNOWN_FIELD_SET_H__
49 class CodedInputStream;
50 class CodedOutputStream;
51 class ZeroCopyInputStream;
55 class MessageSetFieldSkipperUsingCord;
83 void ClearAndFreeMemory();
86 inline bool empty()
const;
97 int SpaceUsedExcludingSelf()
const;
100 int SpaceUsed()
const;
103 inline int field_count()
const;
115 void AddFixed32(
int number,
uint32 value);
116 void AddFixed64(
int number,
uint64 value);
117 void AddLengthDelimited(
int number,
const string& value);
118 string* AddLengthDelimited(
int number);
126 void DeleteSubrange(
int start,
int num);
131 void DeleteByNumber(
int number);
139 bool ParseFromArray(
const void* data,
int size);
141 return ParseFromArray(data.data(),
static_cast<int>(data.size()));
146 void ClearFallback();
165 inline int number()
const;
168 inline Type type()
const;
173 inline uint64 varint()
const;
174 inline uint32 fixed32()
const;
175 inline uint64 fixed64()
const;
176 inline const string& length_delimited()
const;
182 inline void set_length_delimited(
const string&
value);
183 inline string* mutable_length_delimited();
191 uint8* SerializeLengthDelimitedNoTagToArray(
uint8* target)
const;
193 inline int GetLengthDelimitedSize()
const;
206 inline void SetType(
Type type);
245 return &(*fields_)[index];
249 int number,
const string&
value) {
318 #endif // GOOGLE_PROTOBUF_UNKNOWN_FIELD_SET_H__
const UnknownField & field(int index) const
Definition: unknown_field_set.h:241
void set_fixed32(uint32 value)
Definition: unknown_field_set.h:284
Type type() const
Definition: unknown_field_set.h:255
const string & length_delimited() const
Definition: unknown_field_set.h:271
#define GOOGLE_DCHECK_EQ
Definition: common.h:753
Definition: unknown_field_set.h:74
Definition: unknown_field_set.h:160
uint8_t uint8
Definition: common.h:175
arena_t NULL
Definition: jemalloc_internal.h:624
Type
Definition: unknown_field_set.h:156
#define GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TypeName)
Definition: common.h:89
UnknownFieldSet * mutable_group()
Definition: unknown_field_set.h:300
void set_varint(uint64 value)
Definition: unknown_field_set.h:280
uint64 varint_
Definition: unknown_field_set.h:211
UnknownFieldSet * group_
Definition: unknown_field_set.h:217
uint32 type_
Definition: unknown_field_set.h:209
int GetLengthDelimitedSize() const
Definition: unknown_field_set.h:305
uint64 fixed64() const
Definition: unknown_field_set.h:267
const UnknownFieldSet & group() const
Definition: unknown_field_set.h:275
void Clear()
Definition: unknown_field_set.h:224
Definition: unknown_field_set.h:158
uint64 fixed64_
Definition: unknown_field_set.h:213
uint32 fixed32_
Definition: unknown_field_set.h:212
Definition: coded_stream.h:621
string * mutable_length_delimited()
Definition: unknown_field_set.h:296
union google::protobuf::UnknownField::@39::@41 length_delimited_
uint32_t uint32
Definition: common.h:177
void Swap(UnknownFieldSet *x)
Definition: unknown_field_set.h:234
Definition: unknown_field_set.h:161
vector< UnknownField > * fields_
Definition: unknown_field_set.h:148
uint64_t uint64
Definition: common.h:178
uint32 number_
Definition: unknown_field_set.h:208
Definition: unknown_field_set.h:157
void set_length_delimited(const string &value)
Definition: unknown_field_set.h:292
void SetType(Type type)
Definition: unknown_field_set.h:310
uint32 fixed32() const
Definition: unknown_field_set.h:263
Definition: document.h:390
UnknownField * mutable_field(int index)
Definition: unknown_field_set.h:244
#define LIBPROTOBUF_EXPORT
Definition: common.h:105
int field_count() const
Definition: unknown_field_set.h:238
int number() const
Definition: unknown_field_set.h:254
bool empty() const
Definition: unknown_field_set.h:230
uint64 varint() const
Definition: unknown_field_set.h:259
Definition: unknown_field_set.h:154
Definition: unknown_field_set.h:159
void AddLengthDelimited(int number, const string &value)
Definition: unknown_field_set.h:248
Definition: BnetFileGenerator.h:47
const FieldDescriptor value
Definition: descriptor.h:1522
bool ParseFromString(const string &data)
Definition: unknown_field_set.h:140
G3D::int16 x
Definition: Vector2int16.h:37
void set_fixed64(uint64 value)
Definition: unknown_field_set.h:288
Type
Type of JSON value.
Definition: rapidjson.h:642
string * string_value_
Definition: unknown_field_set.h:215