def MessageSetItemSizer(field_number):
 static_size = ((((_TagSize(1) * 2) + _TagSize(2)) + _VarintSize(field_number)) + _TagSize(3))
 local_VarintSize = _VarintSize
 def FieldSize(value):
  l = value.ByteSize()
  return ((static_size + local_VarintSize(l)) + l)
 return FieldSize

def MessageSetItemSizer ( field_number ) : static_size = ( ( ( ( _TagSize ( 1 ) * 2 ) + _TagSize ( 2 ) ) + _VarintSize ( field_number ) ) + _TagSize ( 3 ) ) local_VarintSize = _VarintSize def FieldSize ( value ) : l = value . ByteSize ( ) return ( ( static_size + local_VarintSize ( l ) ) + l ) return FieldSize
returns a sizer for extensions of messageset .