From 29c10b7835ed4e9b43a724acf1d1894f173664f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Sat, 18 Jan 2014 12:11:44 +0100 Subject: update style protobuf --- proto/style.proto | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'proto/style.proto') diff --git a/proto/style.proto b/proto/style.proto index cf6a8db6de..c8926c767c 100644 --- a/proto/style.proto +++ b/proto/style.proto @@ -13,6 +13,19 @@ enum join_type { bevel = 2; } +message value { + // Exactly one of these values may be present in a valid message + optional string string_value = 1; + optional float float_value = 2; + optional double double_value = 3; + optional int64 int_value = 4; + optional uint64 uint_value = 5; + optional sint64 sint_value = 6; + optional bool bool_value = 7; + + extensions 8 to max; +} + message bucket { required string name = 1; required bucket_type type = 2; @@ -21,24 +34,24 @@ message bucket { required string source_name = 3; required string source_layer = 4; optional string source_field = 5; - repeated string source_values = 6; + repeated value source_value = 6; // Specifies how the geometry for this bucket should be created optional cap_type cap = 7; optional join_type join = 8; optional string font = 9; - optional float fontSize = 10; + optional float font_size = 10; } message structure { required string name = 1; optional string bucket_name = 2; - repeated structure child_layers = 3; + repeated structure child_layer = 3; } message width { optional string scaling = 1; - repeated float values = 2 [ packed = true ]; + repeated float value = 2 [ packed = true ]; } message layer { @@ -50,12 +63,12 @@ message layer { message class { required string name = 1; - repeated layer layers = 2; + repeated layer layer = 2; } // root level object message style { - repeated bucket buckets = 1; + repeated bucket bucket = 1; repeated structure structure = 2; - repeated class classes = 3; + repeated class class = 3; } -- cgit v1.2.1