import "wmconsole/version3/protos/common.proto";

package NWebmaster.proto.geodata;
option java_package = "ru.yandex.webmaster3.proto";

enum AttributeSourceType {
    CATALOG         = 1;
    DICTIONARY      = 2;
    AUTOCLASSIFIER  = 3;
    WEBMASTER       = 4;
    UNKNOWN         = 100;
}

message GeoDataMessage {
    required ApplicationInfo application_info   = 1;
    required MessageInfo message_info           = 2;

    repeated HostInfo hosts                     = 10;
}

message HostInfo {
    required string hostname            = 1;
    required bool visible               = 2;

    optional string error               = 3;

    repeated AttributeInfo attributes   = 10;
}

message AttributeInfo {
    required AttributeSourceType source_type = 1;
    required int32 region_id                 = 2;
}
