private MessageElement getMessageAtIndex(List<TypeElement> types, int index) {
        int i = 0;
        for (TypeElement type : types) {
            if (type instanceof MessageElement) {
                if (index == i) {
                    return (MessageElement) type;
                }
                i++;
            }
        }
        return null;
    }
Gets the descriptor for the Protobuf message.
This method builds a descriptor from the schema definition, potentially using
cached values for better performance.

@return The Protobuf Descriptor for the message
core/src/main/java/kafka/automq/table/deserializer/proto/ProtobufSchemaWrapper.java