message.h | 80 // // reflection interface. 98 // // Use the reflection interface to examine the contents. 99 // const Reflection* reflection = foo->GetReflection(); 100 // assert(reflection->GetString(foo, text_field) == "Hello World!"); 101 // assert(reflection->FieldSize(foo, numbers_field) == 3); 102 // assert(reflection->GetRepeatedInt32(foo, numbers_field, 0) == 1); 103 // assert(reflection->GetRepeatedInt32(foo, numbers_field, 1) == 5); 104 // assert(reflection->GetRepeatedInt32(foo, numbers_field, 2) == 42); 128 // function. This is necessary because Reflection has a method calle 169 const Reflection* reflection; member in struct:google::protobuf::Metadata [all...] |