forked from alpancs/protoc-gen-pubsub-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
article_commented.pps
60 lines (50 loc) · 1.36 KB
/
article_commented.pps
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
52
53
54
55
56
57
58
59
60
// Code generated by protoc-gen-pubsub-schema. DO NOT EDIT.
// versions:
// protoc-gen-pubsub-schema v1.6.0
// source: example/article_commented.proto
syntax = "proto2";
package example;
message ArticleCommented {
required string article_id = 1;
required User user = 2;
required string comment = 3;
repeated ExampleCommonLabel labels = 4;
required GoogleProtobufTimestamp timestamp = 101;
message User {
required string first_name = 1;
optional string last_name = 2;
required InternalRole internal_role = 3;
required ExampleCommonRole external_role_major = 4;
required ExampleCommonRole external_role_minor = 5;
optional bytes avatar = 6;
optional Location location = 7;
optional GoogleProtobufTimestamp created_at = 8;
optional GoogleProtobufTimestamp updated_at = 9;
message GoogleProtobufTimestamp {
optional int64 seconds = 1;
optional int32 nanos = 2;
}
enum ExampleCommonRole {
OWNER = 0;
EDITOR = 1;
VIEWER = 2;
}
}
message Location {
required double longitude = 1;
required double latitude = 2;
}
message ExampleCommonLabel {
optional string key = 1;
optional string value = 2;
}
message GoogleProtobufTimestamp {
optional int64 seconds = 1;
optional int32 nanos = 2;
}
enum InternalRole {
OWNER = 0;
EDITOR = 1;
VIEWER = 2;
}
}