syntax = "proto3"; package datafortress; message SchemaEntry { enum Type { STRING = 0; INT = 1; } Type type = 1; string name = 2; } // Indicates a command message Command { enum Type { UNUSED = 0; STATUS = 1; SCHEMA_READ = 2; SCHEMA_WRITE = 3; QUERY = 4; WRITE = 5; } // unique identifier for the command supplied by the client. // Any response to the command will reference this ID. string id = 1; Type type = 2; optional string table_name = 3; repeated SchemaEntry schema_entry = 4; } message Error { int32 code = 1; string message = 2; } message CommandResponse { string id = 1; bool success = 2; optional Error error = 3; }