private Response.OTSResponse DecodeDeleteRow(byte[] body, out IMessage _message) { var builder = PB.DeleteRowResponse.CreateBuilder(); builder.MergeFrom(body); var message = builder.Build(); DataModel.Row row = null; if (message.HasRow && !message.Row.IsEmpty) { row = ParseRow(message.Row); } else { row = new DataModel.Row(new DataModel.PrimaryKey(), new List <DataModel.Column>()); } var response = new Response.DeleteRowResponse( ParseCapacityUnit(message.Consumed.CapacityUnit), row ); _message = message; return(response); }
private Response.OTSResponse DecodeDeleteRow(byte[] body, out IMessage _message) { var builder = PB.DeleteRowResponse.CreateBuilder(); builder.MergeFrom(body); var message = builder.Build(); var response = new Response.DeleteRowResponse( ParseCapacityUnit(message.Consumed.CapacityUnit) ); _message = message; return(response); }