import "mapreduce/yt/interface/protos/extension.proto";
package NPatentParser;

message TFieldConfig {
    required string Name = 1;
    required string XPath = 2;
    
    optional string Comment = 3;
    optional string Separator = 4;
}

message TPatentParserConfig {
    repeated TFieldConfig Field = 1;
    optional string Comment = 2;
}

message TPatentFile {
    optional string Key = 1    [(NYT.key_column_name) = "key"];
    optional string Subkey = 2 [(NYT.key_column_name) = "subkey"];
    optional int64 PartId = 3 [(NYT.key_column_name) = "part_id"];
    optional string Value = 4  [(NYT.column_name) = "value"];
}
