public static void writeProto(Message content,String outputName) throws IOException {
  try (OutputStream outputStream=new FileOutputStream(outputName)){
    content.writeTo(outputStream);
  }
 }

public static void writeProto ( Message content , String outputName ) throws IOException { try ( OutputStream outputStream = new FileOutputStream ( outputName ) ) { content . writeTo ( outputStream ) ; } }
writes a proto out to a file .
