generated from SpineEventEngine/template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblizzard.proto
51 lines (32 loc) · 1.19 KB
/
blizzard.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
syntax = "proto3";
package spine.validation.test;
import "spine/options.proto";
option (type_url_prefix) = "type.spine.io";
option java_package = "io.spine.validation.test";
option java_outer_classname = "BlizzardProto";
option java_multiple_files = true;
import "google/protobuf/any.proto";
import "spine/validation/test/weather.proto";
message Snowflake {
int32 edges = 1 [(min) = { value: "3", error_msg: "Bad snow flake!" }];
int32 vertices = 2 [(min) = { value: "3", error_msg: "Bad snow flake!" }];
}
message Blizzard {
repeated Snowflake snowflake = 1 [(distinct) = true, (required) = true, (validate) = true];
}
message RainDrop {
int32 mass_in_grams = 1 [(min) = { value: "1" error_msg: "Bad rain drop!" }];
}
message Rain {
repeated RainDrop rain_drop = 1 [(required) = true, (validate) = true];
}
message Region {
string name = 1;
}
message MeteoStatistics {
RainDrop average_drop = 1 [(validate) = true];
google.protobuf.Any last_event = 2 [(validate) = true];
repeated google.protobuf.Any predicted_event = 3 [(validate) = true];
map<string, Region> included_regions = 4 [(required) = true];
repeated Cloud cloud = 5 [(validate) = true];
}