go17/skills/protobuf/hello.proto
2025-02-16 16:42:14 +08:00

32 lines
442 B
Protocol Buffer

syntax = "proto3";
package hello;
option go_package="gitlab.com/go-course-project/go17/skills/protobuf";
import "skills/protobuf/event.proto";
message HelloRequest {
string my_name = 1;
int64 age = 2;
repeated int64 magic_number = 3;
map<string,string> extras = 4;
}
message HelloResponse {
string message = 1;
}
enum DESCRIBE_BY {
ID = 0;
NAME = 1;
}
message EventSet {
repeated Event items = 1;
}