protobuf repeated defines an array element. What if the element may be an object or null?
protobuf repeated defines an array element. What if the element may be an object or null?
recently, while learning grpc, I found that V2ray s API was written in grpc, so I gave it a try. Encountered the following problems when a reply is received after the message is sent, php throws fatalerror <?php require_once __DIR__ . vendor...
< H1 > question < H1 > Message user is like this message User { int32 uid = 1; string username = 2; string password = 3; } The go code generated by looks like this: type User struct { Uid int32 `protobuf:"va...
the proto file I now define is as follows syntax = "proto2"; message Test1 {} message Test2 { required Test1 test1 = 1; } message Test3 { required Test2 test2 = 1; } then I will get a go file with the approximate content type Test...