static int getWireFormatForFieldType ( final WireFormat . FieldType type , boolean isPacked ) { if ( isPacked ) { return WireFormat . WIRETYPE_LENGTH_DELIMITED ; } else { return type . getWireType ( ) ; } }
Given a field type return the wire type .