12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- syntax = "proto3";
- // protoc --dart_out=grpc:lib/src/generated -I server/protos/ -Iproto
- // client.proto
- //export PATH="$PATH":"$HOME/development/flutter/.pub-cache/bin"
- option go_package = "./protos/client";
- // protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=.
- // --go-grpc_opt=paths=source_relative protos/client.proto
- // The greeting service definition.
- service PaintClient {
- // Sends a greeting
- rpc Paint(PaintRequest) returns (PaintReply) {}
- rpc Monitor(MonitorSub) returns (stream MonitorReply) {}
- rpc RequestRTC(stream RTCData) returns (stream RTCData) {}
- }
- message MonitorSub {
- BPoint tile = 1;
- bool susbscribed = 2;
- }
- message MonitorPoint {
- BPoint point = 1;
- BColor color = 2;
- }
- message MonitorReply {
- repeated MonitorPoint points = 1;
- bytes bytes_points = 2;
- }
- message MonitorPointList {
- repeated MonitorPoint points = 1;
- }
- message BPoint {
- int32 x = 1;
- int32 y = 2;
- }
- message BColor { uint32 rgba = 1; }
- message PaintRequest {
- BPoint point = 1;
- BColor color = 2;
- }
- // The response message containing the greetings
- message PaintReply { string message = 1; }
- message RTCData {
- string event = 1;
- string data = 2;
- }
|