|
@@ -28,7 +28,7 @@ pub struct Revision {
|
|
|
// message fields
|
|
|
pub base_rev_id: i64,
|
|
|
pub rev_id: i64,
|
|
|
- pub delta: ::std::vec::Vec<u8>,
|
|
|
+ pub delta_data: ::std::vec::Vec<u8>,
|
|
|
pub md5: ::std::string::String,
|
|
|
pub doc_id: ::std::string::String,
|
|
|
pub ty: RevType,
|
|
@@ -78,30 +78,30 @@ impl Revision {
|
|
|
self.rev_id = v;
|
|
|
}
|
|
|
|
|
|
- // bytes delta = 3;
|
|
|
+ // bytes delta_data = 3;
|
|
|
|
|
|
|
|
|
- pub fn get_delta(&self) -> &[u8] {
|
|
|
- &self.delta
|
|
|
+ pub fn get_delta_data(&self) -> &[u8] {
|
|
|
+ &self.delta_data
|
|
|
}
|
|
|
- pub fn clear_delta(&mut self) {
|
|
|
- self.delta.clear();
|
|
|
+ pub fn clear_delta_data(&mut self) {
|
|
|
+ self.delta_data.clear();
|
|
|
}
|
|
|
|
|
|
// Param is passed by value, moved
|
|
|
- pub fn set_delta(&mut self, v: ::std::vec::Vec<u8>) {
|
|
|
- self.delta = v;
|
|
|
+ pub fn set_delta_data(&mut self, v: ::std::vec::Vec<u8>) {
|
|
|
+ self.delta_data = v;
|
|
|
}
|
|
|
|
|
|
// Mutable pointer to the field.
|
|
|
// If field is not initialized, it is initialized with default value first.
|
|
|
- pub fn mut_delta(&mut self) -> &mut ::std::vec::Vec<u8> {
|
|
|
- &mut self.delta
|
|
|
+ pub fn mut_delta_data(&mut self) -> &mut ::std::vec::Vec<u8> {
|
|
|
+ &mut self.delta_data
|
|
|
}
|
|
|
|
|
|
// Take field
|
|
|
- pub fn take_delta(&mut self) -> ::std::vec::Vec<u8> {
|
|
|
- ::std::mem::replace(&mut self.delta, ::std::vec::Vec::new())
|
|
|
+ pub fn take_delta_data(&mut self) -> ::std::vec::Vec<u8> {
|
|
|
+ ::std::mem::replace(&mut self.delta_data, ::std::vec::Vec::new())
|
|
|
}
|
|
|
|
|
|
// string md5 = 4;
|
|
@@ -196,7 +196,7 @@ impl ::protobuf::Message for Revision {
|
|
|
self.rev_id = tmp;
|
|
|
},
|
|
|
3 => {
|
|
|
- ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.delta)?;
|
|
|
+ ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.delta_data)?;
|
|
|
},
|
|
|
4 => {
|
|
|
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.md5)?;
|
|
@@ -225,8 +225,8 @@ impl ::protobuf::Message for Revision {
|
|
|
if self.rev_id != 0 {
|
|
|
my_size += ::protobuf::rt::value_size(2, self.rev_id, ::protobuf::wire_format::WireTypeVarint);
|
|
|
}
|
|
|
- if !self.delta.is_empty() {
|
|
|
- my_size += ::protobuf::rt::bytes_size(3, &self.delta);
|
|
|
+ if !self.delta_data.is_empty() {
|
|
|
+ my_size += ::protobuf::rt::bytes_size(3, &self.delta_data);
|
|
|
}
|
|
|
if !self.md5.is_empty() {
|
|
|
my_size += ::protobuf::rt::string_size(4, &self.md5);
|
|
@@ -249,8 +249,8 @@ impl ::protobuf::Message for Revision {
|
|
|
if self.rev_id != 0 {
|
|
|
os.write_int64(2, self.rev_id)?;
|
|
|
}
|
|
|
- if !self.delta.is_empty() {
|
|
|
- os.write_bytes(3, &self.delta)?;
|
|
|
+ if !self.delta_data.is_empty() {
|
|
|
+ os.write_bytes(3, &self.delta_data)?;
|
|
|
}
|
|
|
if !self.md5.is_empty() {
|
|
|
os.write_string(4, &self.md5)?;
|
|
@@ -310,9 +310,9 @@ impl ::protobuf::Message for Revision {
|
|
|
|m: &mut Revision| { &mut m.rev_id },
|
|
|
));
|
|
|
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
|
|
|
- "delta",
|
|
|
- |m: &Revision| { &m.delta },
|
|
|
- |m: &mut Revision| { &mut m.delta },
|
|
|
+ "delta_data",
|
|
|
+ |m: &Revision| { &m.delta_data },
|
|
|
+ |m: &mut Revision| { &mut m.delta_data },
|
|
|
));
|
|
|
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
|
|
|
"md5",
|
|
@@ -347,7 +347,7 @@ impl ::protobuf::Clear for Revision {
|
|
|
fn clear(&mut self) {
|
|
|
self.base_rev_id = 0;
|
|
|
self.rev_id = 0;
|
|
|
- self.delta.clear();
|
|
|
+ self.delta_data.clear();
|
|
|
self.md5.clear();
|
|
|
self.doc_id.clear();
|
|
|
self.ty = RevType::Local;
|
|
@@ -647,39 +647,39 @@ impl ::protobuf::reflect::ProtobufValue for RevType {
|
|
|
}
|
|
|
|
|
|
static file_descriptor_proto_data: &'static [u8] = b"\
|
|
|
- \n\x0erevision.proto\"\x9a\x01\n\x08Revision\x12\x1e\n\x0bbase_rev_id\
|
|
|
+ \n\x0erevision.proto\"\xa3\x01\n\x08Revision\x12\x1e\n\x0bbase_rev_id\
|
|
|
\x18\x01\x20\x01(\x03R\tbaseRevId\x12\x15\n\x06rev_id\x18\x02\x20\x01(\
|
|
|
- \x03R\x05revId\x12\x14\n\x05delta\x18\x03\x20\x01(\x0cR\x05delta\x12\x10\
|
|
|
- \n\x03md5\x18\x04\x20\x01(\tR\x03md5\x12\x15\n\x06doc_id\x18\x05\x20\x01\
|
|
|
- (\tR\x05docId\x12\x18\n\x02ty\x18\x06\x20\x01(\x0e2\x08.RevTypeR\x02ty\"\
|
|
|
- b\n\rRevisionRange\x12\x15\n\x06doc_id\x18\x01\x20\x01(\tR\x05docId\x12\
|
|
|
- \x1e\n\x0bfrom_rev_id\x18\x02\x20\x01(\x03R\tfromRevId\x12\x1a\n\tto_rev\
|
|
|
- _id\x18\x03\x20\x01(\x03R\x07toRevId*\x20\n\x07RevType\x12\t\n\x05Local\
|
|
|
- \x10\0\x12\n\n\x06Remote\x10\x01J\x9b\x05\n\x06\x12\x04\0\0\x12\x01\n\
|
|
|
- \x08\n\x01\x0c\x12\x03\0\0\x12\n\n\n\x02\x04\0\x12\x04\x02\0\t\x01\n\n\n\
|
|
|
- \x03\x04\0\x01\x12\x03\x02\x08\x10\n\x0b\n\x04\x04\0\x02\0\x12\x03\x03\
|
|
|
- \x04\x1a\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\x03\x04\t\n\x0c\n\x05\x04\0\
|
|
|
- \x02\0\x01\x12\x03\x03\n\x15\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x03\x18\
|
|
|
- \x19\n\x0b\n\x04\x04\0\x02\x01\x12\x03\x04\x04\x15\n\x0c\n\x05\x04\0\x02\
|
|
|
- \x01\x05\x12\x03\x04\x04\t\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03\x04\n\
|
|
|
- \x10\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\x04\x13\x14\n\x0b\n\x04\x04\0\
|
|
|
- \x02\x02\x12\x03\x05\x04\x14\n\x0c\n\x05\x04\0\x02\x02\x05\x12\x03\x05\
|
|
|
- \x04\t\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03\x05\n\x0f\n\x0c\n\x05\x04\0\
|
|
|
- \x02\x02\x03\x12\x03\x05\x12\x13\n\x0b\n\x04\x04\0\x02\x03\x12\x03\x06\
|
|
|
- \x04\x13\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03\x06\x04\n\n\x0c\n\x05\x04\
|
|
|
- \0\x02\x03\x01\x12\x03\x06\x0b\x0e\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03\
|
|
|
- \x06\x11\x12\n\x0b\n\x04\x04\0\x02\x04\x12\x03\x07\x04\x16\n\x0c\n\x05\
|
|
|
- \x04\0\x02\x04\x05\x12\x03\x07\x04\n\n\x0c\n\x05\x04\0\x02\x04\x01\x12\
|
|
|
- \x03\x07\x0b\x11\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03\x07\x14\x15\n\x0b\
|
|
|
- \n\x04\x04\0\x02\x05\x12\x03\x08\x04\x13\n\x0c\n\x05\x04\0\x02\x05\x06\
|
|
|
- \x12\x03\x08\x04\x0b\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03\x08\x0c\x0e\n\
|
|
|
- \x0c\n\x05\x04\0\x02\x05\x03\x12\x03\x08\x11\x12\n\n\n\x02\x04\x01\x12\
|
|
|
- \x04\n\0\x0e\x01\n\n\n\x03\x04\x01\x01\x12\x03\n\x08\x15\n\x0b\n\x04\x04\
|
|
|
- \x01\x02\0\x12\x03\x0b\x04\x16\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03\x0b\
|
|
|
- \x04\n\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03\x0b\x0b\x11\n\x0c\n\x05\x04\
|
|
|
- \x01\x02\0\x03\x12\x03\x0b\x14\x15\n\x0b\n\x04\x04\x01\x02\x01\x12\x03\
|
|
|
- \x0c\x04\x1a\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03\x0c\x04\t\n\x0c\n\
|
|
|
- \x05\x04\x01\x02\x01\x01\x12\x03\x0c\n\x15\n\x0c\n\x05\x04\x01\x02\x01\
|
|
|
+ \x03R\x05revId\x12\x1d\n\ndelta_data\x18\x03\x20\x01(\x0cR\tdeltaData\
|
|
|
+ \x12\x10\n\x03md5\x18\x04\x20\x01(\tR\x03md5\x12\x15\n\x06doc_id\x18\x05\
|
|
|
+ \x20\x01(\tR\x05docId\x12\x18\n\x02ty\x18\x06\x20\x01(\x0e2\x08.RevTypeR\
|
|
|
+ \x02ty\"b\n\rRevisionRange\x12\x15\n\x06doc_id\x18\x01\x20\x01(\tR\x05do\
|
|
|
+ cId\x12\x1e\n\x0bfrom_rev_id\x18\x02\x20\x01(\x03R\tfromRevId\x12\x1a\n\
|
|
|
+ \tto_rev_id\x18\x03\x20\x01(\x03R\x07toRevId*\x20\n\x07RevType\x12\t\n\
|
|
|
+ \x05Local\x10\0\x12\n\n\x06Remote\x10\x01J\x9b\x05\n\x06\x12\x04\0\0\x12\
|
|
|
+ \x01\n\x08\n\x01\x0c\x12\x03\0\0\x12\n\n\n\x02\x04\0\x12\x04\x02\0\t\x01\
|
|
|
+ \n\n\n\x03\x04\0\x01\x12\x03\x02\x08\x10\n\x0b\n\x04\x04\0\x02\0\x12\x03\
|
|
|
+ \x03\x04\x1a\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\x03\x04\t\n\x0c\n\x05\
|
|
|
+ \x04\0\x02\0\x01\x12\x03\x03\n\x15\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\
|
|
|
+ \x03\x18\x19\n\x0b\n\x04\x04\0\x02\x01\x12\x03\x04\x04\x15\n\x0c\n\x05\
|
|
|
+ \x04\0\x02\x01\x05\x12\x03\x04\x04\t\n\x0c\n\x05\x04\0\x02\x01\x01\x12\
|
|
|
+ \x03\x04\n\x10\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\x04\x13\x14\n\x0b\n\
|
|
|
+ \x04\x04\0\x02\x02\x12\x03\x05\x04\x19\n\x0c\n\x05\x04\0\x02\x02\x05\x12\
|
|
|
+ \x03\x05\x04\t\n\x0c\n\x05\x04\0\x02\x02\x01\x12\x03\x05\n\x14\n\x0c\n\
|
|
|
+ \x05\x04\0\x02\x02\x03\x12\x03\x05\x17\x18\n\x0b\n\x04\x04\0\x02\x03\x12\
|
|
|
+ \x03\x06\x04\x13\n\x0c\n\x05\x04\0\x02\x03\x05\x12\x03\x06\x04\n\n\x0c\n\
|
|
|
+ \x05\x04\0\x02\x03\x01\x12\x03\x06\x0b\x0e\n\x0c\n\x05\x04\0\x02\x03\x03\
|
|
|
+ \x12\x03\x06\x11\x12\n\x0b\n\x04\x04\0\x02\x04\x12\x03\x07\x04\x16\n\x0c\
|
|
|
+ \n\x05\x04\0\x02\x04\x05\x12\x03\x07\x04\n\n\x0c\n\x05\x04\0\x02\x04\x01\
|
|
|
+ \x12\x03\x07\x0b\x11\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03\x07\x14\x15\n\
|
|
|
+ \x0b\n\x04\x04\0\x02\x05\x12\x03\x08\x04\x13\n\x0c\n\x05\x04\0\x02\x05\
|
|
|
+ \x06\x12\x03\x08\x04\x0b\n\x0c\n\x05\x04\0\x02\x05\x01\x12\x03\x08\x0c\
|
|
|
+ \x0e\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03\x08\x11\x12\n\n\n\x02\x04\x01\
|
|
|
+ \x12\x04\n\0\x0e\x01\n\n\n\x03\x04\x01\x01\x12\x03\n\x08\x15\n\x0b\n\x04\
|
|
|
+ \x04\x01\x02\0\x12\x03\x0b\x04\x16\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03\
|
|
|
+ \x0b\x04\n\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03\x0b\x0b\x11\n\x0c\n\x05\
|
|
|
+ \x04\x01\x02\0\x03\x12\x03\x0b\x14\x15\n\x0b\n\x04\x04\x01\x02\x01\x12\
|
|
|
+ \x03\x0c\x04\x1a\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03\x0c\x04\t\n\x0c\
|
|
|
+ \n\x05\x04\x01\x02\x01\x01\x12\x03\x0c\n\x15\n\x0c\n\x05\x04\x01\x02\x01\
|
|
|
\x03\x12\x03\x0c\x18\x19\n\x0b\n\x04\x04\x01\x02\x02\x12\x03\r\x04\x18\n\
|
|
|
\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03\r\x04\t\n\x0c\n\x05\x04\x01\x02\
|
|
|
\x02\x01\x12\x03\r\n\x13\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03\r\x16\
|