On Tue, Apr 4, 2017 at 11:10 AM, Valerii Valeev < valerii.val...@instrumentix.co.uk> wrote:
> Hello there, > > I found that Reflection class provides Get* methods not for most but not > all field types. > So I'm confused, how I'm supposed to get values of > > TYPE_SINT32, TYPE_SINT64, TYPE_FIXED32, TYPE_FIXED64 ? > > Do I simply call appropriate GetInt** or it's something less trivial? > You can use: GetInt32() for TYPE_SINT32 GetInt64() for TYPE_SINT64 GetUInt32() for TYPE_FIXED32 GetUInt64() for TYPE_FIXED64 The GetXXX() method in reflection uses the C++ type rather than field type so if a field's getter method returns int32, its corresponding reflection method is GetInt32(). > > Thanks, > Val. > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to protobuf+unsubscr...@googlegroups.com. > To post to this group, send email to protobuf@googlegroups.com. > Visit this group at https://groups.google.com/group/protobuf. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscr...@googlegroups.com. To post to this group, send email to protobuf@googlegroups.com. Visit this group at https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.