@Override
  public void initialize(Configuration configuration, Properties tableProperties, Properties partitionProperties)
      throws SerDeException {
    super.initialize(configuration, tableProperties, partitionProperties);

    try {
      @SuppressWarnings("unchecked")
      Parser<? extends Message> tmpParser = (Parser<? extends Message>)protoMessageClass
          .getField("PARSER").get(null);
      this.parser = tmpParser;
    } catch (IllegalArgumentException | IllegalAccessException | NoSuchFieldException
        | SecurityException e) {
      throw new SerDeException("Unable get PARSER from class: " + protoMessageClass.getName(), e);
    }
  }
Class to convert bytes writable containing a protobuf message to hive formats.
@see ProtobufSerDe
ql/src/java/org/apache/hadoop/hive/ql/io/protobuf/ProtobufBytesWritableSerDe.java