123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- 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;
- }
|