package NWebmaster.NCatalogia.NProto;

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

message TLink {
    optional string Domain          = 1 [(NYT.column_name) = "Domain"];
    optional string TargetUrl       = 2 [(NYT.column_name) = "TargetUrl"];
    optional string Text            = 3 [(NYT.column_name) = "Text"];
    optional uint32 TargetHttpCode  = 4 [(NYT.column_name) = "TargetHttpCode"];
}

message TLinkStat {
    optional uint32 TargetHttpCode  = 1 [(NYT.column_name) = "TargetHttpCode"];
    optional uint64 InternalLinks   = 2 [(NYT.column_name) = "InternalLinks"];
}

message TCatalogiaText {
    optional string url             = 1 [(NYT.column_name) = "url"];
    optional string metaDescription = 2 [(NYT.column_name) = "metaDescription"];
    optional string title           = 3 [(NYT.column_name) = "title"];
}

message TCatalogiaRobots {
    optional string Host        = 1 [(NYT.column_name) = "Host"];
    optional uint64 LastAccess  = 2 [(NYT.column_name) = "LastAccess"];
    optional string Robots      = 3 [(NYT.column_name) = "Robots"];
}

message TCatalogiaMirror {
    optional string Host        = 1 [(NYT.column_name) = "Host"];
    optional string MainHost    = 2 [(NYT.column_name) = "MainHost"];
}

message TCatalogiaQuery {
    optional string Domain              = 1 [(NYT.column_name) = "domain"];
    optional string Host                = 2 [(NYT.column_name) = "host"];
    optional string Query               = 3 [(NYT.column_name) = "query"];
    optional string Url                 = 4 [(NYT.column_name) = "url"];
    optional uint32 RegionId            = 5 [(NYT.column_name) = "region_id"];
    optional uint32 Position            = 6 [(NYT.column_name) = "position"];
    optional uint32 Shows               = 7 [(NYT.column_name) = "shows"];
    optional uint32 Clicks              = 8 [(NYT.column_name) = "clicks"];
    optional string MetaDescription     = 9 [(NYT.column_name) = "metaDescription"];
    optional string Title               = 10 [(NYT.column_name) = "title"];
    optional uint64 QueryId             = 11 [(NYT.column_name) = "query_id"];
    optional uint64 UrlId               = 12 [(NYT.column_name) = "url_id"];
}

message TCatalogiaQueryIntm {
    optional string Host                = 1 [(NYT.column_name) = "Host"];
    optional string Path                = 2 [(NYT.column_name) = "Path"];
    optional string Domain              = 3 [(NYT.column_name) = "Domain"];
    optional string Query               = 4 [(NYT.column_name) = "Query"];
    optional uint32 RegionId            = 5 [(NYT.column_name) = "RegionId"];
    optional uint32 Position            = 6 [(NYT.column_name) = "Position"];
    optional uint32 Clicks              = 7 [(NYT.column_name) = "Clicks"];
    optional uint32 Shows               = 8 [(NYT.column_name) = "Shows"];
    optional string MetaDescription     = 9 [(NYT.column_name) = "MetaDescription"];
    optional string Title               = 10 [(NYT.column_name) = "Title"];
    optional uint64 QueryId             = 11 [(NYT.column_name) = "QueryId"];
    optional uint64 UrlId               = 12 [(NYT.column_name) = "UrlId"];
    optional uint32 UrlMaxTimestamp     = 13 [(NYT.column_name) = "UrlMaxTimestamp"];
    optional uint32 UrlAgeSeconds       = 15 [(NYT.column_name) = "UrlAgeSeconds"];
    optional uint32 QueryMinTimestamp   = 14 [(NYT.column_name) = "QueryMinTimestamp"];
    optional uint32 QueryAgeSeconds     = 16 [(NYT.column_name) = "QueryAgeSeconds"];
    optional double DssmCtr             = 17 [(NYT.column_name) = "DssmCtr"];
    optional double DssmCtrNoMiner      = 18 [(NYT.column_name) = "DssmCtrNoMiner"];
    optional double DssmUta             = 19 [(NYT.column_name) = "DssmUta"];
    optional double DssmTopL2           = 20 [(NYT.column_name) = "DssmTopL2"];
    optional int32 UpperPornoUpperPl    = 21 [(NYT.column_name) = "UpperPornoUpperPl"];
    optional float UpperQueryNavPred    = 22 [(NYT.column_name) = "UpperQueryNavPred"];
    optional float UpperDocNavPred0     = 23 [(NYT.column_name) = "UpperDocNavPred0"];
    optional float PrsLogL2Relevance    = 24 [(NYT.column_name) = "PrsLogL2Relevance"];
}

message TCatalogiaFilter {
    optional string Host                = 1 [(NYT.column_name) = "Host"];
    optional string Path                = 2 [(NYT.column_name) = "Path"];
    optional string Query               = 3 [(NYT.column_name) = "Query"];
    optional uint32 UrlMaxTimestamp     = 4 [(NYT.column_name) = "UrlMaxTimestamp"];
    optional uint32 QueryMinTimestamp   = 5 [(NYT.column_name) = "QueryMinTimestamp"];
    optional uint32 Records             = 6 [(NYT.column_name) = "Records"];
}

message TCatalogiaHost {
    optional string Host                = 1 [(NYT.column_name) = "Host"];
    optional uint32 Timestamp           = 2 [(NYT.column_name) = "Timestamp"];
}
