Lines Matching full:message
47 #include <google/protobuf/message.h>
86 // - Singular Message fields are stored as a pointer to a Message. These
100 // descriptor: The descriptor for the message type being implemented.
101 // default_instance: The default instance of the message. This is only
104 // sub-message has not been initialized yet. (Thus, all
105 // embedded message fields *must* have non-NULL pointers
108 // the start of the message object, of each field. These can
112 // has_bits_offset: Offset in the message of an array of uint32s of size
115 // corresponding field of the message has been initialized.
118 // unknown_fields_offset: Offset in the message of the UnknownFieldSet for
119 // the message.
120 // extensions_offset: Offset in the message of the ExtensionSet for the
121 // message, or -1 if the message type has no extension
127 // object_size: The size of a message object of this type, as measured
130 const Message* default_instance,
140 // message has oneof definition.
148 // the start of the message object. These can be computed
156 // for this message. It is only used to obtain pointers
159 // oneof_case_offset: Offset in the message of an array of uint32s of
164 const Message* default_instance,
178 const UnknownFieldSet& GetUnknownFields(const Message& message) const;
179 UnknownFieldSet* MutableUnknownFields(Message* message) const;
181 int SpaceUsed(const Message& message) const;
183 bool HasField(const Message& message, const FieldDescriptor* field) const;
184 int FieldSize(const Message& message, const FieldDescriptor* field) const;
185 void ClearField(Message* message, const FieldDescriptor* field) const;
186 bool HasOneof(const Message& message,
188 void ClearOneof(Message* message, const OneofDescriptor* field) const;
189 void RemoveLast(Message* message, const FieldDescriptor* field) const;
190 Message* ReleaseLast(Message* message, const FieldDescriptor* field) const;
191 void Swap(Message* message1, Message* message2) const;
192 void SwapFields(Message* message1, Message* message2,
194 void SwapElements(Message* message, const FieldDescriptor* field,
196 void ListFields(const Message& message,
199 int32 GetInt32 (const Message& message,
201 int64 GetInt64 (const Message& message,
203 uint32 GetUInt32(const Message& message,
205 uint64 GetUInt64(const Message& message,
207 float GetFloat (const Message& message,
209 double GetDouble(const Message& message,
211 bool GetBool (const Message& message,
213 string GetString(const Message& message,
215 const string& GetStringReference(const Message& message,
218 const EnumValueDescriptor* GetEnum(const Message& message,
220 const Message& GetMessage(const Message& message,
225 const Message& message,
229 void SetInt32 (Message* message,
231 void SetInt64 (Message* message,
233 void SetUInt32(Message* message,
235 void SetUInt64(Message* message,
237 void SetFloat (Message* message,
239 void SetDouble(Message* message,
241 void SetBool (Message* message,
243 void SetString(Message* message,
246 void SetEnum (Message* message, const FieldDescriptor* field,
248 Message* MutableMessage(Message* message, const FieldDescriptor* field,
250 void SetAllocatedMessage(Message* message,
251 Message* sub_message,
253 Message* ReleaseMessage(Message* message, const FieldDescriptor* field,
256 int32 GetRepeatedInt32 (const Message& message,
258 int64 GetRepeatedInt64 (const Message& message,
260 uint32 GetRepeatedUInt32(const Message& message,
262 uint64 GetRepeatedUInt64(const Message& message,
264 float GetRepeatedFloat (const Message& message,
266 double GetRepeatedDouble(const Message& message,
268 bool GetRepeatedBool (const Message& message,
270 string GetRepeatedString(const Message& message,
272 const string& GetRepeatedStringReference(const Message& message,
275 const EnumValueDescriptor* GetRepeatedEnum(const Message& message,
278 const Message& GetRepeatedMessage(const Message& message,
283 void SetRepeatedInt32 (Message* message,
285 void SetRepeatedInt64 (Message* message,
287 void SetRepeatedUInt32(Message* message,
289 void SetRepeatedUInt64(Message* message,
291 void SetRepeatedFloat (Message* message,
293 void SetRepeatedDouble(Message* message,
295 void SetRepeatedBool (Message* message,
297 void SetRepeatedString(Message* message,
300 void SetRepeatedEnum(Message* message, const FieldDescriptor* field,
302 // Get a mutable pointer to a field with a message type.
303 Message* MutableRepeatedMessage(Message* message,
307 void AddInt32 (Message* message,
309 void AddInt64 (Message* message,
311 void AddUInt32(Message* message,
313 void AddUInt64(Message* message,
315 void AddFloat (Message* message,
317 void AddDouble(Message* message,
319 void AddBool (Message* message,
321 void AddString(Message* message,
323 void AddEnum(Message* message,
326 Message* AddMessage(Message* message, const FieldDescriptor* field,
334 Message* message, const FieldDescriptor* field, FieldDescriptor::CppType,
345 const Message* default_instance_;
359 inline const Type& GetRaw(const Message& message,
362 inline Type* MutableRaw(Message* message,
369 inline const uint32* GetHasBits(const Message& message) const;
370 inline uint32* MutableHasBits(Message* message) const;
372 const Message& message,
375 Message* message,
377 inline const ExtensionSet& GetExtensionSet(const Message& message) const;
378 inline ExtensionSet* MutableExtensionSet(Message* message) const;
380 inline bool HasBit(const Message& message,
382 inline void SetBit(Message* message,
384 inline void ClearBit(Message* message,
386 inline void SwapBit(Message* message1,
387 Message* message2,
392 void SwapField(Message* message1,
393 Message* message2,
396 void SwapOneofField(Message* message1,
397 Message* message2,
400 inline bool HasOneofField(const Message& message,
402 inline void SetOneofCase(Message* message,
404 inline void ClearOneofField(Message* message,
408 inline const Type& GetField(const Message& message,
411 inline void SetField(Message* message,
414 inline Type* MutableField(Message* message,
417 inline const Type& GetRepeatedField(const Message& message,
421 inline const Type& GetRepeatedPtrField(const Message& message,
425 inline void SetRepeatedField(Message* message,
429 inline Type* MutableRepeatedField(Message* message,
433 inline void AddField(Message* message,
436 inline Type* AddField(Message* message,
469 // optimization. For example, take Message::MergeFrom(const Message& other).
470 // For a given generated message FooMessage, we generate these two methods:
472 // void MergeFrom(const Message& other);