package NSaas;

message TUrlPolicy {
    enum TIndexMethod {
        WEB = 1;
        HTML = 2;
    }

    enum TUrlType {
        HOST = 1;
        DOC = 2;
        IMG = 3;
    }

    enum TAdditionAttributes {
        URL_SUBTREE = 1;
    }

    message TIndexingDestinations {
        required string Service = 1;
        repeated uint64 Kps = 2;
    }
    repeated TIndexingDestinations Destinations = 1;
    repeated TAdditionAttributes AdditionAttributes = 3;
    optional string DocUrl = 4;
    optional string ThumbName = 5;
    optional TIndexMethod IndexMethod = 2[default = HTML];
};

message THostProgress {
    optional uint32 UrlsKnown = 1[default = 0];
    optional uint32 UrlsLoaded = 2[default = 0];
}
