#NEWLINE# def PackTag( field_number , wire_type ) : #NEWLINE# #INDENT# 'Returns an unsigned 32-bit integer that encodes the field number and\n  wire type information in standard protocol message wire format.\n\n  Args:\n    field_number: Expected to be an integer in the range [1, 1 << 29)\n    wire_type: One of the WIRETYPE_* constants.\n  ' #NEWLINE# if ( not ( 0 <= wire_type <= _WIRETYPE_MAX ) ) : #NEWLINE# #INDENT# raise message . EncodeError ( ( 'Unknown wire type: %d' % wire_type ) ) #NEWLINE# #UNINDENT# return ( ( field_number << TAG_TYPE_BITS ) | wire_type )