Home | History | Annotate | Download | only in protobuf

Lines Matching refs:reflection

37 // reflection interface.  This is much easier and more maintainable than
42 // compiler/cpp/unittest, except using the reflection interface
75 const Reflection* reflection = message.GetReflection();
81 &reflection->GetMessage(message, F("optionalgroup")));
83 &reflection->GetMessage(message, F("optional_nested_message")));
85 &reflection->GetMessage(message, F("optional_foreign_message")));
87 &reflection->GetMessage(message, F("optional_import_message")));
112 const Reflection* reflection = message.GetReflection();
116 &reflection->GetStringReference(message, F("optional_string"), &scratch))
120 &reflection->GetRepeatedStringReference(message, F("repeated_string"),
137 const Reflection* reflection = message.GetReflection();
140 &reflection->GetMessage(message, F("optionalgroup")));
142 &reflection->GetMessage(message, F("optional_nested_message")));
144 &reflection->GetMessage(message, F("optional_foreign_message")));
146 &reflection->GetMessage(message, F("optional_import_message")));
156 const Reflection* reflection = message1.GetReflection();
157 reflection->Swap(&message1, &message2);
171 const Reflection* reflection = message1.GetReflection();
172 reflection->Swap(&message1, &message2);
179 reflection->Swap(&message1, &message2);
190 const Reflection* reflection = message1.GetReflection();
191 reflection->Swap(&message1, &message2);
204 const Reflection* reflection = message1.GetReflection();
205 reflection->Swap(&message1, &message2);
281 const Reflection* reflection =
292 reflection->FindKnownExtensionByNumber(extension1->number()));
294 reflection->FindKnownExtensionByNumber(extension2->number()));
297 EXPECT_TRUE(reflection->FindKnownExtensionByNumber(62341) == NULL);
306 const Reflection* reflection =
317 reflection->FindKnownExtensionByName(extension1->full_name()));
319 reflection->FindKnownExtensionByName(extension2->full_name()));
322 EXPECT_TRUE(reflection->FindKnownExtensionByName("no_such_ext") == NULL);
334 const Reflection* reflection = message.GetReflection();
342 reflection->GetInt32(
344 "Protocol Buffer reflection usage error:\n"
345 " Method : google::protobuf::Reflection::GetInt32\n"
352 reflection->GetInt32(
354 "Protocol Buffer reflection usage error:\n"
355 " Method : google::protobuf::Reflection::GetInt32\n"
360 reflection->GetInt32(
362 "Protocol Buffer reflection usage error:\n"
363 " Method : google::protobuf::Reflection::GetInt32\n"
368 reflection->HasField(
370 "Protocol Buffer reflection usage error:\n"
371 " Method : google::protobuf::Reflection::HasField\n"