...
1syntax = "proto3";
2
3// This file is used for testing discovery of log fields from requests using reflection and gogo proto more tags.
4package mwitkow.testproto;
5
6import "github.com/gogo/protobuf/gogoproto/gogo.proto";
7import "google/protobuf/timestamp.proto";
8
9option (gogoproto.gogoproto_import) = false;
10
11message Metadata {
12 repeated string tags = 1 [(gogoproto.moretags) = "log_field:\"meta_tags\""];
13}
14
15message PingId {
16 int32 id = 1 [(gogoproto.moretags) = "log_field:\"ping_id\""];
17}
18
19message Ping {
20 PingId id = 1;
21 string value = 2;
22}
23
24message PingRequest {
25 Ping ping = 1;
26 Metadata meta = 2;
27}
28
29message Pong {
30 string id = 1 [(gogoproto.moretags) = "log_field:\"pong_id\""];
31}
32
33message OneOfLogField {
34 oneof identifier {
35 string bar_id = 1 [(gogoproto.moretags) = "log_field:\"bar_id\""];
36 string baz_id = 2 [(gogoproto.moretags) = "log_field:\"baz_id\""];
37 }
38}
39
40message PongRequest {
41 Pong pong = 1;
42 Metadata meta = 2;
43}
44
45message GoGoProtoStdTime {
46 google.protobuf.Timestamp timestamp = 1 [(gogoproto.stdtime) = true];
47}
View as plain text