2024-11-21 21:27:30 +01:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2024-12-08 13:49:46 +01:00
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
|
|
|
|
option cc_generic_services = true;
|
|
|
|
|
2024-11-21 21:27:30 +01:00
|
|
|
package mesytec.mnode;
|
|
|
|
|
2024-12-08 13:49:46 +01:00
|
|
|
service PingService {
|
|
|
|
rpc Ping(mesytec.mnode.Ping) returns (Pong);
|
2024-11-21 21:27:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
message Ping {
|
2024-11-21 22:23:52 +01:00
|
|
|
int32 peer_id = 1;
|
|
|
|
uint32 sequence_number = 2;
|
2024-12-08 13:49:46 +01:00
|
|
|
google.protobuf.Timestamp timestamp = 3;
|
2024-11-21 21:27:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
message Pong {
|
2024-11-21 22:23:52 +01:00
|
|
|
int32 peer_id = 1;
|
|
|
|
uint32 sequence_number = 2;
|
2024-11-21 21:27:30 +01:00
|
|
|
}
|
2024-12-08 13:49:46 +01:00
|
|
|
service FooService {
|
|
|
|
rpc Foo(FooRequest) returns (FooResponse);
|
|
|
|
}
|
|
|
|
|
|
|
|
message FooRequest {
|
|
|
|
int32 foo_value = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message FooResponse {
|
|
|
|
int32 bar_value = 1;
|
|
|
|
}
|