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

package NWebmaster.NTurbo.NProto;

option java_package = "ru.yandex.webmaster3.proto";

// protos for YT tables schemas
message TurboUrl {
    optional string Host          = 1 [(NYT.column_name) = "Host"];
    optional string Path          = 2 [(NYT.column_name) = "Path"];
    optional string Source        = 3 [(NYT.column_name) = "Source"];
    optional bool IsSearchable    = 4 [(NYT.column_name) = "IsSearchable"];
    optional string Feed          = 5 [(NYT.column_name) = "Feed"];
    optional string OriginalHost  = 6 [(NYT.column_name) = "OriginalHost"];
}

message TurboUrlSample {
    optional string Domain        = 1 [(NYT.column_name) = "Domain"];
    optional string Url           = 2 [(NYT.column_name) = "Url"];
    optional string Source        = 3 [(NYT.column_name) = "Source"];
    optional bool IsSearchable    = 4 [(NYT.column_name) = "IsSearchable"];
    optional string Feed          = 5 [(NYT.column_name) = "Feed"];
    optional int64 UrlStatus      = 6 [(NYT.column_name) = "UrlStatus"];
    optional uint64 SourceFlags   = 7 [(NYT.column_name) = "SourceFlags"];
}

message TurboDomainStats {
    optional string Domain                             =  1 [(NYT.column_name) = "Domain"];
    optional uint64 TurboUrls                          =  2 [(NYT.column_name) = "TurboUrls"];
    optional uint64 TurboSearchUrls                    =  3 [(NYT.column_name) = "TurboSearchUrls"];
    optional uint64 TurboSearchUrlsNoAP                =  4 [(NYT.column_name) = "TurboSearchUrlsNoAP"];
    optional uint64 AutoparsedUrls                     =  5 [(NYT.column_name) = "AutoparsedUrls"];
    optional uint64 AutoparsedButtonUrls               =  6 [(NYT.column_name) = "AutoparsedButtonUrls"];
    optional uint64 RssUrls                            =  7 [(NYT.column_name) = "RssUrls"];
    optional uint64 YmlUrls                            =  8 [(NYT.column_name) = "YmlUrls"];
    optional uint64 ApiUrls                            =  9 [(NYT.column_name) = "ApiUrls"];
    optional uint64 YmlListingUrls                     = 10 [(NYT.column_name) = "YmlListingUrls"];
    optional uint64 AutoMordaUrls                      = 11 [(NYT.column_name) = "AutoMordaUrls"];
}