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

package NWebmaster.NLandings.NProto;

message TDssmEmbeddings {
    repeated float Ctr                              = 1;
    repeated float CtrNoMiner                       = 2;
    repeated float Uta                              = 3;
    repeated float XfOneSE                          = 4;
}

message TQuery {
    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 uint64 Clicks                          = 4 [(NYT.column_name) = "Clicks"];
    optional uint64 Shows                           = 5 [(NYT.column_name) = "Shows"];
    optional uint64 QueryId                         = 6 [(NYT.column_name) = "QueryId"];
    optional uint64 UrlId                           = 8 [(NYT.column_name) = "UrlId"];
    optional uint64 OwnerId                         = 9 [(NYT.column_name) = "OwnerId"];
    optional TDssmEmbeddings DssmQueryEmbeddings    = 10 [(NYT.column_name) = "DssmQueryEmbeddings"];
    optional float L2ToCentroid                     = 11 [(NYT.column_name) = "L2ToCentroid"];
    optional float L2ToCentroidMean                 = 12 [(NYT.column_name) = "L2ToCentroidMean"];
    optional float L2SigmaDistance                  = 13 [(NYT.column_name) = "L2SigmaDistance"];
    optional float L2Sigma                          = 14 [(NYT.column_name) = "L2Sigma"];
    optional uint64 ParentGroupSize                 = 15 [(NYT.column_name) = "ParentGroupSize"];
    optional uint64 ParentClicks                    = 16 [(NYT.column_name) = "ParentClicks"];
    optional uint64 ParentShows                     = 17 [(NYT.column_name) = "ParentShows"];
}

message TOwnerFilter {
    optional uint64 QueryId                         = 1 [(NYT.column_name) = "QueryId"];
    optional uint64 Owners                          = 2 [(NYT.column_name) = "Owners"];
}

message TLandingQuery {
    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 uint64 QueryId                         = 4 [(NYT.column_name) = "QueryId"];
    optional uint64 UrlId                           = 5 [(NYT.column_name) = "UrlId"];
    optional uint64 OwnerId                         = 6 [(NYT.column_name) = "OwnerId"];
    optional uint64 LandingClicks                   = 7 [(NYT.column_name) = "LandingClicks"];
    optional uint64 LandingShows                    = 8 [(NYT.column_name) = "LandingShows"];
    optional uint64 LandingId                       = 9 [(NYT.column_name) = "LandingId"];
    optional TDssmEmbeddings DssmQueryEmbeddings    = 10 [(NYT.column_name) = "DssmQueryEmbeddings"];
    optional float L2ToCentroidMean                 = 12 [(NYT.column_name) = "L2ToCentroidMean"];
    optional float L2Sigma                          = 14 [(NYT.column_name) = "L2Sigma"];
}

message TLandingCentroid {
    optional string Host                            = 1 [(NYT.column_name) = "Host"];
    optional uint64 LandingClicks                   = 7 [(NYT.column_name) = "LandingClicks"];
    optional uint64 LandingShows                    = 8 [(NYT.column_name) = "LandingShows"];
    optional uint64 LandingId                       = 9 [(NYT.column_name) = "LandingId"];
    optional TDssmEmbeddings DssmQueryEmbeddings    = 10 [(NYT.column_name) = "DssmQueryEmbeddings"];
    optional uint64 Sources                         = 11 [(NYT.column_name) = "Sources"];
    optional float L2ToCentroidMean                 = 12 [(NYT.column_name) = "L2ToCentroidMean"];
    optional float L2Sigma                          = 14 [(NYT.column_name) = "L2Sigma"];
}

message TQueries {
    repeated string Query                           = 1;
}

message TGeneratedLanding {
    optional string Host                            = 1 [(NYT.column_name) = "Host"];
    optional uint64 LandingClicks                   = 7 [(NYT.column_name) = "LandingClicks"];
    optional uint64 LandingShows                    = 8 [(NYT.column_name) = "LandingShows"];
    optional uint64 LandingId                       = 9 [(NYT.column_name) = "LandingId"];
    optional TQueries OwnQueries                    = 10 [(NYT.column_name) = "OwnQueries"];
    optional TQueries NewQueries                    = 11 [(NYT.column_name) = "NewQueries"];
    optional uint64 OwnQueriesCount                 = 12 [(NYT.column_name) = "OwnQueriesCount"];
    optional uint64 NewQueriesCount                 = 13 [(NYT.column_name) = "NewQueriesCount"];
    optional uint64 CommonQueriesCount              = 14 [(NYT.column_name) = "CommonQueriesCount"];
}
