code: def ConvertToWireFormat(self, value):
      
      output = _SerializeEntries(_GetOrderedEntries(value.GetRawData()))
      return (self.encoded_tag, VarintEncode(len(output)), output)
docs: Encode the nested protobuf into wire format.