public SerializableFunction<Row, T> getFromRowFunction() {
    return fromRowFunction;
  }
@Test
  public void testNonContiguousOneOfRowToProto() {
    ProtoDynamicMessageSchema schemaProvider =
        schemaFromDescriptor(NonContiguousOneOf.getDescriptor());
    SerializableFunction<Row, DynamicMessage> fromRow = schemaProvider.getFromRowFunction();
    assertEquals(
        NONCONTIGUOUS_ONEOF_PROTO.toString(), fromRow.apply(NONCONTIGUOUS_ONEOF_ROW).toString());
  }