Home
last modified time | relevance | path

Searched refs:MessageLite (Results 1 – 25 of 103) sorted by relevance

12345

/third_party/protobuf/src/google/protobuf/
Dmessage_lite.cc63 std::string MessageLite::InitializationErrorString() const { in InitializationErrorString()
67 std::string MessageLite::DebugString() const { in DebugString()
83 const MessageLite& message) { in ByteSizeConsistencyError()
96 const MessageLite& message) { in InitializationErrorMessage()
122 const MessageLite& msg, in CheckFieldPresence()
123 MessageLite::ParseFlags parse_flags) { in CheckFieldPresence()
124 if (PROTOBUF_PREDICT_FALSE((parse_flags & MessageLite::kMergePartial) != 0)) { in CheckFieldPresence()
132 void MessageLite::LogInitializationErrorMessage() const { in LogInitializationErrorMessage()
139 bool MergeFromImpl(StringPiece input, MessageLite* msg, in MergeFromImpl()
140 MessageLite::ParseFlags parse_flags) { in MergeFromImpl()
[all …]
Dmessage_lite.h188 class PROTOBUF_EXPORT MessageLite {
190 inline MessageLite() {} in MessageLite() function
191 virtual ~MessageLite() = default;
200 virtual MessageLite* New() const = 0;
204 virtual MessageLite* New(Arena* arena) const;
243 virtual void CheckTypeAndMergeFrom(const MessageLite& other) = 0;
465 inline explicit MessageLite(Arena* arena) : _internal_metadata_(arena) {} in MessageLite() function
508 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(MessageLite);
514 bool MergeFromImpl(StringPiece input, MessageLite* msg,
515 MessageLite::ParseFlags parse_flags);
[all …]
Dimplicit_weak_message.h57 class PROTOBUF_EXPORT ImplicitWeakMessage : public MessageLite {
60 explicit ImplicitWeakMessage(Arena* arena) : MessageLite(arena) {} in ImplicitWeakMessage()
66 MessageLite* New() const override { return new ImplicitWeakMessage; } in New()
67 MessageLite* New(Arena* arena) const override { in New()
75 void CheckTypeAndMergeFrom(const MessageLite& other) override { in CheckTypeAndMergeFrom()
102 typedef MessageLite Type;
105 static inline MessageLite* NewFromPrototype(const MessageLite* prototype,
110 static inline void Delete(MessageLite* value, Arena* arena) { in Delete()
115 static inline Arena* GetArena(MessageLite* value) { in GetArena()
118 static inline void* GetMaybeArenaPointer(MessageLite* value) { in GetMaybeArenaPointer()
[all …]
Dgenerated_message_table_driven_lite.h73 inline Type* Raw(MessageLite* msg, int64 offset) { in Raw()
78 inline const Type* Raw(const MessageLite* msg, int64 offset) { in Raw()
83 inline ExtensionSet* GetExtensionSet(MessageLite* msg, int64 extension_offset) { in GetExtensionSet()
92 inline Type* AddField(MessageLite* msg, int64 offset) { in AddField()
102 inline std::string* AddField<std::string>(MessageLite* msg, int64 offset) {
110 inline void AddField(MessageLite* msg, int64 offset, Type value) { in AddField()
124 inline Type* MutableField(MessageLite* msg, uint32* has_bits, in MutableField()
131 inline void SetField(MessageLite* msg, uint32* has_bits, uint32 has_bit_index, in SetField()
139 inline void SetOneofField(MessageLite* msg, uint32* oneof_case, in SetOneofField()
149 MessageLite* msg) { in ClearOneofField()
[all …]
Dextension_set.h68 class MessageLite; // message_lite.h variable
118 const MessageLite* prototype;
146 GeneratedExtensionFinder(const MessageLite* containing_type) in GeneratedExtensionFinder()
154 const MessageLite* containing_type_;
185 static void RegisterExtension(const MessageLite* containing_type, int number,
188 static void RegisterEnumExtension(const MessageLite* containing_type,
192 static void RegisterMessageExtension(const MessageLite* containing_type,
195 const MessageLite* prototype);
253 const MessageLite& GetMessage(int number,
254 const MessageLite& default_value) const;
[all …]
Dgenerated_message_table_driven_lite.cc46 std::string* MutableUnknownFields(MessageLite* msg, int64 arena_offset) { in MutableUnknownFields()
56 static bool Skip(MessageLite* msg, const ParseTable& table, in Skip()
67 static void Varint(MessageLite* msg, const ParseTable& table, int tag, in Varint()
78 static bool ParseExtension(MessageLite* msg, const ParseTable& table, in ParseExtension()
85 const MessageLite* prototype = table.default_instance(); in ParseExtension()
98 bool MergePartialFromCodedStreamLite(MessageLite* msg, const ParseTable& table, in MergePartialFromCodedStreamLite()
Dgenerated_message_util.h148 PROTOBUF_EXPORT MessageLite* DuplicateIfNonNullInternal(MessageLite* message);
149 PROTOBUF_EXPORT MessageLite* GetOwnedMessageInternal(Arena* message_arena,
150 MessageLite* submessage,
152 PROTOBUF_EXPORT void GenericSwap(MessageLite* m1, MessageLite* m2);
161 DuplicateIfNonNullInternal(reinterpret_cast<MessageLite*>(message))); in DuplicateIfNonNull()
170 message_arena, reinterpret_cast<MessageLite*>(submessage), in GetOwnedMessage()
Dgenerated_message_table_driven.cc48 UnknownFieldSet* MutableUnknownFields(MessageLite* msg, int64 arena_offset) { in MutableUnknownFields()
58 static bool Skip(MessageLite* msg, const ParseTable& table, in Skip()
66 static void Varint(MessageLite* msg, const ParseTable& table, int tag, in Varint()
74 static bool ParseExtension(MessageLite* msg, const ParseTable& table, in ParseExtension()
95 bool MergePartialFromCodedStream(MessageLite* msg, const ParseTable& table, in MergePartialFromCodedStream()
Dgenerated_message_util.cc65 static_cast<const MessageLite*>(message)->~MessageLite(); in DestroyMessage()
295 void SerializeMessageNoTable(const MessageLite* msg, in SerializeMessageNoTable()
300 void SerializeMessageNoTable(const MessageLite* msg, ArrayOutput* output) { in SerializeMessageNoTable()
309 void SerializeMessageDispatch(const MessageLite& msg, in SerializeMessageDispatch()
318 void SerializeMessageDispatch(const MessageLite& msg, in SerializeMessageDispatch()
329 void SerializeMessageTo(const MessageLite* msg, const void* table_ptr, in SerializeMessageTo()
350 void SerializeGroupTo(const MessageLite* msg, const void* table_ptr, in SerializeGroupTo()
395 SerializeGroupTo(Get<const MessageLite*>(field), in Serialize()
406 SerializeMessageTo(Get<const MessageLite*>(field), in Serialize()
469 static_cast<const MessageLite*>(AccessorHelper::Get(array, i)), in Serialize()
[all …]
Dgenerated_message_table_driven.h155 const MessageLite* default_message() const { in default_message()
156 return static_cast<const MessageLite*>(default_message_void); in default_message()
199 const MessageLite* default_instance() const { in default_instance()
200 return static_cast<const MessageLite*>(default_instance_void); in default_instance()
218 bool MergePartialFromCodedStream(MessageLite* msg, const ParseTable& table,
220 bool MergePartialFromCodedStreamLite(MessageLite* msg, const ParseTable& table,
244 inline void TableSerialize(const MessageLite& msg, in TableSerialize()
263 inline uint8* TableSerializeToArray(const MessageLite& msg, in TableSerializeToArray()
Dextension_set_heavy.cc149 const MessageLite& ExtensionSet::GetMessage(int number, in GetMessage()
167 MessageLite* ExtensionSet::MutableMessage(const FieldDescriptor* descriptor, in MutableMessage()
175 const MessageLite* prototype = in MutableMessage()
193 MessageLite* ExtensionSet::ReleaseMessage(const FieldDescriptor* descriptor, in ReleaseMessage()
201 MessageLite* ret = NULL; in ReleaseMessage()
221 MessageLite* ExtensionSet::UnsafeArenaReleaseMessage( in UnsafeArenaReleaseMessage()
229 MessageLite* ret = NULL; in UnsafeArenaReleaseMessage()
252 Arena::CreateMessage<RepeatedPtrField<MessageLite> >(arena_); in MaybeNewRepeatedExtension()
259 MessageLite* ExtensionSet::AddMessage(const FieldDescriptor* descriptor, in AddMessage()
265 MessageLite* result = in AddMessage()
[all …]
Dextension_set.cc88 std::size_t operator()(const std::pair<const MessageLite*, int>& p) const { in operator ()()
89 return std::hash<const MessageLite*>{}(p.first) ^ in operator ()()
94 typedef std::unordered_map<std::pair<const MessageLite*, int>, ExtensionInfo,
102 void Register(const MessageLite* containing_type, int number, in Register()
114 const ExtensionInfo* FindRegisteredExtension(const MessageLite* containing_type, in FindRegisteredExtension()
137 void ExtensionSet::RegisterExtension(const MessageLite* containing_type, in RegisterExtension()
160 void ExtensionSet::RegisterEnumExtension(const MessageLite* containing_type, in RegisterEnumExtension()
172 void ExtensionSet::RegisterMessageExtension(const MessageLite* containing_type, in RegisterMessageExtension()
175 const MessageLite* prototype) { in RegisterMessageExtension()
429 Arena::CreateMessage<RepeatedPtrField<MessageLite>>(arena_); in MutableRawRepeatedField()
[all …]
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DLazyFieldLite.java108 protected volatile MessageLite value;
131 public static LazyFieldLite fromValue(MessageLite value) { in fromValue()
153 MessageLite value1 = value; in equals()
154 MessageLite value2 = other.value; in equals()
222 public MessageLite getValue(MessageLite defaultInstance) { in getValue()
233 public MessageLite setValue(MessageLite value) { in setValue()
234 MessageLite originalValue = this.value; in setValue()
330 private static MessageLite mergeValueAndBytes( in mergeValueAndBytes()
331 MessageLite value, ByteString otherBytes, ExtensionRegistryLite extensionRegistry) { in mergeValueAndBytes()
405 protected void ensureInitialized(MessageLite defaultInstance) { in ensureInitialized()
[all …]
DMessageLite.java65 public interface MessageLite extends MessageLiteOrBuilder { interface
80 Parser<? extends MessageLite> getParserForType(); in getParserForType()
145 MessageLite build(); in build()
152 MessageLite buildPartial(); in buildPartial()
282 Builder mergeFrom(MessageLite other); in mergeFrom()
DFieldSet.java71 MessageLite.Builder internalMergeFrom(MessageLite.Builder to, MessageLite from); in internalMergeFrom()
429 return (value instanceof MessageLite) || (value instanceof LazyField); in isValidType()
462 for (final MessageLite element : (List<MessageLite>) entry.getValue()) { in isInitialized()
469 if (value instanceof MessageLite) { in isInitialized()
470 if (!((MessageLite) value).isInitialized()) { in isInitialized()
543 .internalMergeFrom(((MessageLite) value).toBuilder(), (MessageLite) otherValue) in mergeFromField()
607 output.writeMessageSetExtension(entry.getKey().getNumber(), (MessageLite) value); in writeMessageSetTo()
631 output.writeGroup(number, (MessageLite) value); in writeElement()
675 output.writeGroupNoTag((MessageLite) value); in writeElementNoTag()
678 output.writeMessageNoTag((MessageLite) value); in writeElementNoTag()
[all …]
DLazyField.java52 private final MessageLite defaultInstance;
55 MessageLite defaultInstance, ExtensionRegistryLite extensionRegistry, ByteString bytes) { in LazyField()
66 public MessageLite getValue() { in getValue()
118 if (!(value instanceof MessageLite)) { in setValue()
123 return entry.getValue().setValue((MessageLite) value); in setValue()
DCodedOutputStream.java364 public abstract void writeMessage(final int fieldNumber, final MessageLite value) in writeMessage()
369 abstract void writeMessage(final int fieldNumber, final MessageLite value, Schema schema) in writeMessage()
377 public abstract void writeMessageSetExtension(final int fieldNumber, final MessageLite value) in writeMessageSetExtension()
474 public abstract void writeMessageNoTag(final MessageLite value) throws IOException; in writeMessageNoTag()
478 abstract void writeMessageNoTag(final MessageLite value, Schema schema) throws IOException; in writeMessageNoTag()
660 public static int computeMessageSize(final int fieldNumber, final MessageLite value) { in computeMessageSize()
669 final int fieldNumber, final MessageLite value, final Schema schema) { in computeMessageSize()
677 public static int computeMessageSetExtensionSize(final int fieldNumber, final MessageLite value) { in computeMessageSetExtensionSize()
876 public static int computeMessageSizeNoTag(final MessageLite value) { in computeMessageSizeNoTag()
881 static int computeMessageSizeNoTag(final MessageLite value, final Schema schema) { in computeMessageSizeNoTag()
[all …]
DGeneratedMessageLite.java322 MessageLite defaultInstance, String info, Object[] objects) { in newMessageInfo()
526 protected <MessageType extends MessageLite> boolean parseUnknownField( in parseUnknownField()
603 MessageLite.Builder subBuilder = null; in parseExtension()
605 MessageLite existingValue = (MessageLite) extensions.getField(extension.descriptor); in parseExtension()
655 protected <MessageType extends MessageLite> boolean parseUnknownFieldAsMessageSet( in parseUnknownFieldAsMessageSet()
685 private <MessageType extends MessageLite> void mergeMessageSetExtensionFromCodedStream( in mergeMessageSetExtensionFromCodedStream()
773 MessageLite.Builder subBuilder = null; in mergeMessageSetExtensionFromBytes()
774 MessageLite existingValue = (MessageLite) extensions.getField(extension.descriptor); in mergeMessageSetExtensionFromBytes()
782 MessageLite value = subBuilder.build(); in mergeMessageSetExtensionFromBytes()
882 output.writeMessageSetExtension(extension.getNumber(), (MessageLite) next.getValue()); in writeUntil()
[all …]
DRawMessageInfo.java39 private final MessageLite defaultInstance;
179 RawMessageInfo(MessageLite defaultInstance, String info, Object[] objects) { in RawMessageInfo()
207 public MessageLite getDefaultInstance() { in getDefaultInstance()
/third_party/protobuf/src/google/protobuf/util/
Ddelimited_message_util.h67 const MessageLite& message, int file_descriptor);
69 bool PROTOBUF_EXPORT SerializeDelimitedToOstream(const MessageLite& message,
85 MessageLite* message, io::ZeroCopyInputStream* input, bool* clean_eof);
87 bool PROTOBUF_EXPORT ParseDelimitedFromCodedStream(MessageLite* message,
97 const MessageLite& message, io::ZeroCopyOutputStream* output);
100 const MessageLite& message, io::CodedOutputStream* output);
Ddelimited_message_util.cc41 bool SerializeDelimitedToFileDescriptor(const MessageLite& message, in SerializeDelimitedToFileDescriptor()
47 bool SerializeDelimitedToOstream(const MessageLite& message, in SerializeDelimitedToOstream()
57 bool ParseDelimitedFromZeroCopyStream(MessageLite* message, in ParseDelimitedFromZeroCopyStream()
64 bool ParseDelimitedFromCodedStream(MessageLite* message, in ParseDelimitedFromCodedStream()
90 bool SerializeDelimitedToZeroCopyStream(const MessageLite& message, in SerializeDelimitedToZeroCopyStream()
96 bool SerializeDelimitedToCodedStream(const MessageLite& message, in SerializeDelimitedToCodedStream()
/third_party/grpc/include/grpcpp/impl/codegen/
Dproto_utils.h45 Status GenericSerialize(const grpc::protobuf::MessageLite& msg, ByteBuffer* bb, in GenericSerialize()
72 grpc::protobuf::MessageLite* msg) { in GenericDeserialize()
103 std::is_base_of<grpc::protobuf::MessageLite, T>::value>::type> {
105 static Status Serialize(const grpc::protobuf::MessageLite& msg, in Serialize()
111 grpc::protobuf::MessageLite* msg) { in Deserialize()
Dconfig_protobuf.h27 #define GRPC_CUSTOM_MESSAGE ::google::protobuf::MessageLite
28 #define GRPC_CUSTOM_MESSAGELITE ::google::protobuf::MessageLite
32 #define GRPC_CUSTOM_MESSAGELITE ::google::protobuf::MessageLite
77 typedef GRPC_CUSTOM_MESSAGELITE MessageLite; typedef
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DLazyFieldTest.java44 MessageLite message = TestUtil.getAllSet(); in testHashCode()
66 MessageLite message = TestUtil.getAllSet(); in testGetValue()
82 MessageLite message = TestUtil.getAllSet(); in testEqualsObject()
102 private LazyField createLazyFieldFromMessage(MessageLite message) { in createLazyFieldFromMessage()
111 MessageLite newMessage = builder.build(); in changeValue()
DLazyFieldLiteTest.java48 MessageLite message = TestUtil.getAllSet(); in testGetValue()
64 MessageLite message = TestUtil.getAllSet(); in testSetValue()
78 MessageLite value = lazyField.getValue(TestAllExtensions.getDefaultInstance()); in testSetValueEx()
84 MessageLite message = TestUtil.getAllSet(); in testGetSerializedSize()
100 MessageLite message = TestUtil.getAllSet(); in testGetByteString()
224 private LazyFieldLite createLazyFieldLiteFromMessage(MessageLite message) { in createLazyFieldLiteFromMessage()
229 ExtensionRegistryLite extensionRegistry, MessageLite message) { in createLazyFieldLiteFromMessage()
237 MessageLite newMessage = builder.build(); in changeValue()

12345