package NRTYService;

message TFileCheck {
    required string ComponentName = 1;
    required string Hash = 2;
    required uint32 Version = 3;
}

message TFilesInfo {
    repeated TFileCheck Checkers = 2;
}

message TNamedErfBlockAddress {
    required string FValue = 1;
    required uint32 Address = 2;
}

message TNamedErfBlocksInfo {
    repeated TNamedErfBlockAddress Address = 1;
    required uint32 DocIdsSize = 2;
    required bytes AddressByDocId = 3;
}

message TBFSField {
    required string Name = 1;
    required uint32 WidthBytes = 2;
}

message TBFSFields {
    repeated TBFSField Fields = 1;
}

message TSuggestRecord {
    required string Suggest = 1;
    repeated uint32 Factors = 2;
    optional uint64 Kps = 3 [default = 0];
    optional uint32 DocId = 4;
}

message TSuggestZoneInfo {
    required string ZoneName = 1;
    required uint64 Weight = 2;
}

message TSuggestZonesInfo {
    repeated TSuggestZoneInfo Zones = 1;
    optional uint64 DefaultWeight = 2 [default = 0];
}