syntax = "proto3"; package core.todo.v1; message TodoListRequest {string user_id = 1;} message TodoAddRequest { string user_id = 1; string task = 2; } message TodoDeleteRequest { string user_id = 1; string id = 2; } message TodoObject { string user_id = 1; string id = 2; string task = 3; } message TodoChangeEvent { string idemponcy_id = 1; TodoObject current = 3; TodoObject original = 4; } message TodoAddResponse {TodoObject todo = 1;} message TodoListResponse {repeated TodoObject todos = 1;} message TodoDeleteResponse {string message = 1;} service TodoService { rpc TodoAdd (TodoAddRequest) returns (TodoAddResponse); rpc TodoDelete (TodoDeleteRequest) returns (TodoDeleteResponse); rpc TodoList (TodoListRequest) returns (TodoListResponse); }