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

message SiteStructure {
    repeated NodeInfo cur_user_nodes        = 1;
    repeated NodeInfo cur_auto_nodes        = 2;
    repeated NodeInfo next_base_user_nodes  = 3;
    repeated NodeInfo next_base_auto_nodes  = 4;
    optional int64 next_base_date           = 5;
    optional int64 cur_base_date            = 6;
}

message NodeInfo {
    required string name                            =  1;
    required int64 node_id                          =  2;
    optional int64 parent_id                        =  3;
    required int64 doc_count                        =  4;
    required int64 search_doc_count                 =  5;
    repeated HttpCodeInfo httpcodes                 =  6;
    optional int64 new_urls                         =  7;
    optional int64 gone_urls                        =  8;
    repeated ExcludedUrlsInfo excluded_urls         =  9;
    optional int64 turbo_doc_count                  = 10;
    repeated TurboSourceInfo turbo_source_info      = 11;
}

message TurboSourceInfo {
    required uint64 source_id         = 1;
    required uint64 total             = 2;
}

message HttpCodeInfo {
    required int32 http_code    = 1;
    required int64 count        = 2;
}

message ExcludedUrlsInfo {
    required int32 status   = 1;
    required int64 count    = 2;
}
