#NEWLINE# def GetField( self , name ) : #NEWLINE# #INDENT# field_descriptor = self . descriptor . fields_by_name [ name ] #NEWLINE# wire_type = type_checkers . FIELD_TYPE_TO_WIRE_TYPE [ field_descriptor . type ] #NEWLINE# field_tag = encoder . TagBytes ( field_descriptor . number , wire_type ) #NEWLINE# result_dict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( tag_bytes , value ) in self . unknown_fields : #NEWLINE# #INDENT# if ( tag_bytes == field_tag ) : #NEWLINE# #INDENT# decoder = unittest_pb2 . TestAllTypes . _decoders_by_tag [ tag_bytes ] #NEWLINE# decoder ( value , 0 , len ( value ) , self . all_fields , result_dict ) #NEWLINE# #UNINDENT# #UNINDENT# return tag_bytes [ field_descriptor ]