github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/go-grpc-middleware/testing/gogotestproto/fields.proto (about) 1 syntax = "proto3"; 2 3 // This file is used for testing discovery of log fields from requests using reflection and gogo proto more tags. 4 package mwitkow.testproto; 5 6 import "github.com/gogo/protobuf/gogoproto/gogo.proto"; 7 8 option (gogoproto.gogoproto_import) = false; 9 10 message Metadata { 11 repeated string tags = 1 [(gogoproto.moretags) = "log_field:\"meta_tags\""]; 12 } 13 14 message PingId { 15 int32 id = 1 [(gogoproto.moretags) = "log_field:\"ping_id\""]; 16 } 17 18 message Ping { 19 PingId id = 1; 20 string value = 2; 21 } 22 23 message PingRequest { 24 Ping ping = 1; 25 Metadata meta = 2; 26 } 27 28 message Pong { 29 string id = 1 [(gogoproto.moretags) = "log_field:\"pong_id\""]; 30 } 31 32 message PongRequest { 33 Pong pong = 1; 34 Metadata meta = 2; 35 } 36