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

package NWebmaster.NProto;

message TSearchRule {
    optional string Rule            = 1 [(NYT.column_name) = "Rule"];
    optional string Keys            = 2 [(NYT.column_name) = "Keys"];
    optional int32 Tag              = 3 [(NYT.column_name) = "Tag"];
}

message TProcessedTable {
    optional string TableName       = 1 [(NYT.column_name) = "TableName"];
    optional string Timestamp       = 2 [(NYT.column_name) = "Timestamp"];
}

message TParsed {
    optional int64 CandidateId      = 1 [(NYT.column_name) = "CandidateId"];
    optional int64 AttachmentId     = 2 [(NYT.column_name) = "AttachmentId"];
    optional string FullName        = 3 [(NYT.column_name) = "FullName"];
    optional string MDSLink         = 4 [(NYT.column_name) = "MDSLink"];
    optional string MDSMimeType     = 5 [(NYT.column_name) = "MDSMimeType"];
    optional string Uploader        = 6 [(NYT.column_name) = "Uploader"];
    optional string Responsibles    = 7 [(NYT.column_name) = "Responsibles"];

    optional string HitsHow         = 8 [(NYT.column_name) = "HitsHow"];
    optional string HitsWhat        = 9 [(NYT.column_name) = "HitsWhat"];
    optional string HitsWhere       = 10 [(NYT.column_name) = "HitsWhere"];
    optional string HitsWho         = 11 [(NYT.column_name) = "HitsWho"];
    optional int32 HitsTotal        = 12 [(NYT.column_name) = "HitsTotal"];
    optional string TextTokens      = 13 [(NYT.column_name) = "TextTokens"];

    optional string SourceTable     = 14 [(NYT.column_name) = "SourceTable"];
}
