1// This defines protocol for a simple server that lists files. 2// 3// See also the nanopb-specific options in fileproto.options. 4 5syntax = "proto2"; 6 7message ListFilesRequest { 8 optional string path = 1 [default = "/"]; 9} 10 11message FileInfo { 12 required uint64 inode = 1; 13 required string name = 2; 14} 15 16message ListFilesResponse { 17 optional bool path_error = 1 [default = false]; 18 repeated FileInfo file = 2; 19} 20 21