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 RequestData { BPoint tile = 1; uint64 from = 2; } message WebRTCRequest { oneof WebRTCRequestOneOf { RequestData requestData = 1; } } message WebRTCReply { oneof WebRTCReplyOneOf { RequestData requestData = 1; } } message WebSocketRequest { oneof WebSocketRequestOneOf { RequestData requestData = 1; } } message WebSocketReply { oneof WebSocketReplyOneOf { RequestData requestData = 1; } } message MonitorPoint { BPoint point = 1; BColor color = 2; } message MonitorReply { repeated MonitorPoint points = 1; BPoint tile = 2; } message MonitorRequest { int64 last = 1; BPoint tile = 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; }