go17/skills/protobuf/hello.proto

32 lines
442 B
Protocol Buffer
Raw Normal View History

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