32 lines
442 B
Protocol Buffer
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;
|
|
}
|
|
|
|
|
|
|
|
|
|
|