syntax = "proto3"; import "action.proto"; import "state.proto"; message ServerHelloPB { uint32 version = 1; SyncableStatePB state = 2; } message ServerRefreshPB { SyncableStatePB state = 1; } message ServerOKPB { repeated uint32 ids = 1; } message ServerFailedPB { repeated uint32 ids = 1; string error = 2; } message ServerActPB { repeated ServerActionPB actions = 1; } message ServerCommandPB { oneof command { ServerHelloPB hello = 1; ServerRefreshPB refresh = 2; ServerOKPB ok = 3; ServerFailedPB failed = 4; ServerActPB act = 5; } }