|
@@ -27,7 +27,7 @@
|
|
|
pub struct CreateDocParams {
|
|
|
// message fields
|
|
|
pub id: ::std::string::String,
|
|
|
- pub data: ::protobuf::SingularPtrField<super::revision::RepeatedRevision>,
|
|
|
+ pub revisions: ::protobuf::SingularPtrField<super::revision::RepeatedRevision>,
|
|
|
// special fields
|
|
|
pub unknown_fields: ::protobuf::UnknownFields,
|
|
|
pub cached_size: ::protobuf::CachedSize,
|
|
@@ -70,43 +70,43 @@ impl CreateDocParams {
|
|
|
::std::mem::replace(&mut self.id, ::std::string::String::new())
|
|
|
}
|
|
|
|
|
|
- // .RepeatedRevision data = 2;
|
|
|
+ // .RepeatedRevision revisions = 2;
|
|
|
|
|
|
|
|
|
- pub fn get_data(&self) -> &super::revision::RepeatedRevision {
|
|
|
- self.data.as_ref().unwrap_or_else(|| <super::revision::RepeatedRevision as ::protobuf::Message>::default_instance())
|
|
|
+ pub fn get_revisions(&self) -> &super::revision::RepeatedRevision {
|
|
|
+ self.revisions.as_ref().unwrap_or_else(|| <super::revision::RepeatedRevision as ::protobuf::Message>::default_instance())
|
|
|
}
|
|
|
- pub fn clear_data(&mut self) {
|
|
|
- self.data.clear();
|
|
|
+ pub fn clear_revisions(&mut self) {
|
|
|
+ self.revisions.clear();
|
|
|
}
|
|
|
|
|
|
- pub fn has_data(&self) -> bool {
|
|
|
- self.data.is_some()
|
|
|
+ pub fn has_revisions(&self) -> bool {
|
|
|
+ self.revisions.is_some()
|
|
|
}
|
|
|
|
|
|
// Param is passed by value, moved
|
|
|
- pub fn set_data(&mut self, v: super::revision::RepeatedRevision) {
|
|
|
- self.data = ::protobuf::SingularPtrField::some(v);
|
|
|
+ pub fn set_revisions(&mut self, v: super::revision::RepeatedRevision) {
|
|
|
+ self.revisions = ::protobuf::SingularPtrField::some(v);
|
|
|
}
|
|
|
|
|
|
// Mutable pointer to the field.
|
|
|
// If field is not initialized, it is initialized with default value first.
|
|
|
- pub fn mut_data(&mut self) -> &mut super::revision::RepeatedRevision {
|
|
|
- if self.data.is_none() {
|
|
|
- self.data.set_default();
|
|
|
+ pub fn mut_revisions(&mut self) -> &mut super::revision::RepeatedRevision {
|
|
|
+ if self.revisions.is_none() {
|
|
|
+ self.revisions.set_default();
|
|
|
}
|
|
|
- self.data.as_mut().unwrap()
|
|
|
+ self.revisions.as_mut().unwrap()
|
|
|
}
|
|
|
|
|
|
// Take field
|
|
|
- pub fn take_data(&mut self) -> super::revision::RepeatedRevision {
|
|
|
- self.data.take().unwrap_or_else(|| super::revision::RepeatedRevision::new())
|
|
|
+ pub fn take_revisions(&mut self) -> super::revision::RepeatedRevision {
|
|
|
+ self.revisions.take().unwrap_or_else(|| super::revision::RepeatedRevision::new())
|
|
|
}
|
|
|
}
|
|
|
|
|
|
impl ::protobuf::Message for CreateDocParams {
|
|
|
fn is_initialized(&self) -> bool {
|
|
|
- for v in &self.data {
|
|
|
+ for v in &self.revisions {
|
|
|
if !v.is_initialized() {
|
|
|
return false;
|
|
|
}
|
|
@@ -122,7 +122,7 @@ impl ::protobuf::Message for CreateDocParams {
|
|
|
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;
|
|
|
},
|
|
|
2 => {
|
|
|
- ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.data)?;
|
|
|
+ ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.revisions)?;
|
|
|
},
|
|
|
_ => {
|
|
|
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
|
|
@@ -139,7 +139,7 @@ impl ::protobuf::Message for CreateDocParams {
|
|
|
if !self.id.is_empty() {
|
|
|
my_size += ::protobuf::rt::string_size(1, &self.id);
|
|
|
}
|
|
|
- if let Some(ref v) = self.data.as_ref() {
|
|
|
+ if let Some(ref v) = self.revisions.as_ref() {
|
|
|
let len = v.compute_size();
|
|
|
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
|
|
|
}
|
|
@@ -152,7 +152,7 @@ impl ::protobuf::Message for CreateDocParams {
|
|
|
if !self.id.is_empty() {
|
|
|
os.write_string(1, &self.id)?;
|
|
|
}
|
|
|
- if let Some(ref v) = self.data.as_ref() {
|
|
|
+ if let Some(ref v) = self.revisions.as_ref() {
|
|
|
os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
|
|
|
os.write_raw_varint32(v.get_cached_size())?;
|
|
|
v.write_to_with_cached_sizes(os)?;
|
|
@@ -201,9 +201,9 @@ impl ::protobuf::Message for CreateDocParams {
|
|
|
|m: &mut CreateDocParams| { &mut m.id },
|
|
|
));
|
|
|
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::revision::RepeatedRevision>>(
|
|
|
- "data",
|
|
|
- |m: &CreateDocParams| { &m.data },
|
|
|
- |m: &mut CreateDocParams| { &mut m.data },
|
|
|
+ "revisions",
|
|
|
+ |m: &CreateDocParams| { &m.revisions },
|
|
|
+ |m: &mut CreateDocParams| { &mut m.revisions },
|
|
|
));
|
|
|
::protobuf::reflect::MessageDescriptor::new_pb_name::<CreateDocParams>(
|
|
|
"CreateDocParams",
|
|
@@ -222,7 +222,7 @@ impl ::protobuf::Message for CreateDocParams {
|
|
|
impl ::protobuf::Clear for CreateDocParams {
|
|
|
fn clear(&mut self) {
|
|
|
self.id.clear();
|
|
|
- self.data.clear();
|
|
|
+ self.revisions.clear();
|
|
|
self.unknown_fields.clear();
|
|
|
}
|
|
|
}
|
|
@@ -243,7 +243,7 @@ impl ::protobuf::reflect::ProtobufValue for CreateDocParams {
|
|
|
pub struct Doc {
|
|
|
// message fields
|
|
|
pub id: ::std::string::String,
|
|
|
- pub data: ::std::string::String,
|
|
|
+ pub text: ::std::string::String,
|
|
|
pub rev_id: i64,
|
|
|
pub base_rev_id: i64,
|
|
|
// special fields
|
|
@@ -288,30 +288,30 @@ impl Doc {
|
|
|
::std::mem::replace(&mut self.id, ::std::string::String::new())
|
|
|
}
|
|
|
|
|
|
- // string data = 2;
|
|
|
+ // string text = 2;
|
|
|
|
|
|
|
|
|
- pub fn get_data(&self) -> &str {
|
|
|
- &self.data
|
|
|
+ pub fn get_text(&self) -> &str {
|
|
|
+ &self.text
|
|
|
}
|
|
|
- pub fn clear_data(&mut self) {
|
|
|
- self.data.clear();
|
|
|
+ pub fn clear_text(&mut self) {
|
|
|
+ self.text.clear();
|
|
|
}
|
|
|
|
|
|
// Param is passed by value, moved
|
|
|
- pub fn set_data(&mut self, v: ::std::string::String) {
|
|
|
- self.data = v;
|
|
|
+ pub fn set_text(&mut self, v: ::std::string::String) {
|
|
|
+ self.text = v;
|
|
|
}
|
|
|
|
|
|
// Mutable pointer to the field.
|
|
|
// If field is not initialized, it is initialized with default value first.
|
|
|
- pub fn mut_data(&mut self) -> &mut ::std::string::String {
|
|
|
- &mut self.data
|
|
|
+ pub fn mut_text(&mut self) -> &mut ::std::string::String {
|
|
|
+ &mut self.text
|
|
|
}
|
|
|
|
|
|
// Take field
|
|
|
- pub fn take_data(&mut self) -> ::std::string::String {
|
|
|
- ::std::mem::replace(&mut self.data, ::std::string::String::new())
|
|
|
+ pub fn take_text(&mut self) -> ::std::string::String {
|
|
|
+ ::std::mem::replace(&mut self.text, ::std::string::String::new())
|
|
|
}
|
|
|
|
|
|
// int64 rev_id = 3;
|
|
@@ -358,7 +358,7 @@ impl ::protobuf::Message for Doc {
|
|
|
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.id)?;
|
|
|
},
|
|
|
2 => {
|
|
|
- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.data)?;
|
|
|
+ ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.text)?;
|
|
|
},
|
|
|
3 => {
|
|
|
if wire_type != ::protobuf::wire_format::WireTypeVarint {
|
|
@@ -389,8 +389,8 @@ impl ::protobuf::Message for Doc {
|
|
|
if !self.id.is_empty() {
|
|
|
my_size += ::protobuf::rt::string_size(1, &self.id);
|
|
|
}
|
|
|
- if !self.data.is_empty() {
|
|
|
- my_size += ::protobuf::rt::string_size(2, &self.data);
|
|
|
+ if !self.text.is_empty() {
|
|
|
+ my_size += ::protobuf::rt::string_size(2, &self.text);
|
|
|
}
|
|
|
if self.rev_id != 0 {
|
|
|
my_size += ::protobuf::rt::value_size(3, self.rev_id, ::protobuf::wire_format::WireTypeVarint);
|
|
@@ -407,8 +407,8 @@ impl ::protobuf::Message for Doc {
|
|
|
if !self.id.is_empty() {
|
|
|
os.write_string(1, &self.id)?;
|
|
|
}
|
|
|
- if !self.data.is_empty() {
|
|
|
- os.write_string(2, &self.data)?;
|
|
|
+ if !self.text.is_empty() {
|
|
|
+ os.write_string(2, &self.text)?;
|
|
|
}
|
|
|
if self.rev_id != 0 {
|
|
|
os.write_int64(3, self.rev_id)?;
|
|
@@ -460,9 +460,9 @@ impl ::protobuf::Message for Doc {
|
|
|
|m: &mut Doc| { &mut m.id },
|
|
|
));
|
|
|
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
|
|
|
- "data",
|
|
|
- |m: &Doc| { &m.data },
|
|
|
- |m: &mut Doc| { &mut m.data },
|
|
|
+ "text",
|
|
|
+ |m: &Doc| { &m.text },
|
|
|
+ |m: &mut Doc| { &mut m.text },
|
|
|
));
|
|
|
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
|
|
|
"rev_id",
|
|
@@ -491,7 +491,7 @@ impl ::protobuf::Message for Doc {
|
|
|
impl ::protobuf::Clear for Doc {
|
|
|
fn clear(&mut self) {
|
|
|
self.id.clear();
|
|
|
- self.data.clear();
|
|
|
+ self.text.clear();
|
|
|
self.rev_id = 0;
|
|
|
self.base_rev_id = 0;
|
|
|
self.unknown_fields.clear();
|
|
@@ -511,24 +511,23 @@ impl ::protobuf::reflect::ProtobufValue for Doc {
|
|
|
}
|
|
|
|
|
|
#[derive(PartialEq,Clone,Default)]
|
|
|
-pub struct UpdateDocParams {
|
|
|
+pub struct ResetDocumentParams {
|
|
|
// message fields
|
|
|
pub doc_id: ::std::string::String,
|
|
|
- pub data: ::std::string::String,
|
|
|
- pub rev_id: i64,
|
|
|
+ pub revisions: ::protobuf::SingularPtrField<super::revision::RepeatedRevision>,
|
|
|
// special fields
|
|
|
pub unknown_fields: ::protobuf::UnknownFields,
|
|
|
pub cached_size: ::protobuf::CachedSize,
|
|
|
}
|
|
|
|
|
|
-impl<'a> ::std::default::Default for &'a UpdateDocParams {
|
|
|
- fn default() -> &'a UpdateDocParams {
|
|
|
- <UpdateDocParams as ::protobuf::Message>::default_instance()
|
|
|
+impl<'a> ::std::default::Default for &'a ResetDocumentParams {
|
|
|
+ fn default() -> &'a ResetDocumentParams {
|
|
|
+ <ResetDocumentParams as ::protobuf::Message>::default_instance()
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-impl UpdateDocParams {
|
|
|
- pub fn new() -> UpdateDocParams {
|
|
|
+impl ResetDocumentParams {
|
|
|
+ pub fn new() -> ResetDocumentParams {
|
|
|
::std::default::Default::default()
|
|
|
}
|
|
|
|
|
@@ -558,50 +557,47 @@ impl UpdateDocParams {
|
|
|
::std::mem::replace(&mut self.doc_id, ::std::string::String::new())
|
|
|
}
|
|
|
|
|
|
- // string data = 2;
|
|
|
+ // .RepeatedRevision revisions = 2;
|
|
|
|
|
|
|
|
|
- pub fn get_data(&self) -> &str {
|
|
|
- &self.data
|
|
|
+ pub fn get_revisions(&self) -> &super::revision::RepeatedRevision {
|
|
|
+ self.revisions.as_ref().unwrap_or_else(|| <super::revision::RepeatedRevision as ::protobuf::Message>::default_instance())
|
|
|
}
|
|
|
- pub fn clear_data(&mut self) {
|
|
|
- self.data.clear();
|
|
|
+ pub fn clear_revisions(&mut self) {
|
|
|
+ self.revisions.clear();
|
|
|
+ }
|
|
|
+
|
|
|
+ pub fn has_revisions(&self) -> bool {
|
|
|
+ self.revisions.is_some()
|
|
|
}
|
|
|
|
|
|
// Param is passed by value, moved
|
|
|
- pub fn set_data(&mut self, v: ::std::string::String) {
|
|
|
- self.data = v;
|
|
|
+ pub fn set_revisions(&mut self, v: super::revision::RepeatedRevision) {
|
|
|
+ self.revisions = ::protobuf::SingularPtrField::some(v);
|
|
|
}
|
|
|
|
|
|
// Mutable pointer to the field.
|
|
|
// If field is not initialized, it is initialized with default value first.
|
|
|
- pub fn mut_data(&mut self) -> &mut ::std::string::String {
|
|
|
- &mut self.data
|
|
|
+ pub fn mut_revisions(&mut self) -> &mut super::revision::RepeatedRevision {
|
|
|
+ if self.revisions.is_none() {
|
|
|
+ self.revisions.set_default();
|
|
|
+ }
|
|
|
+ self.revisions.as_mut().unwrap()
|
|
|
}
|
|
|
|
|
|
// Take field
|
|
|
- pub fn take_data(&mut self) -> ::std::string::String {
|
|
|
- ::std::mem::replace(&mut self.data, ::std::string::String::new())
|
|
|
- }
|
|
|
-
|
|
|
- // int64 rev_id = 3;
|
|
|
-
|
|
|
-
|
|
|
- pub fn get_rev_id(&self) -> i64 {
|
|
|
- self.rev_id
|
|
|
- }
|
|
|
- pub fn clear_rev_id(&mut self) {
|
|
|
- self.rev_id = 0;
|
|
|
- }
|
|
|
-
|
|
|
- // Param is passed by value, moved
|
|
|
- pub fn set_rev_id(&mut self, v: i64) {
|
|
|
- self.rev_id = v;
|
|
|
+ pub fn take_revisions(&mut self) -> super::revision::RepeatedRevision {
|
|
|
+ self.revisions.take().unwrap_or_else(|| super::revision::RepeatedRevision::new())
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-impl ::protobuf::Message for UpdateDocParams {
|
|
|
+impl ::protobuf::Message for ResetDocumentParams {
|
|
|
fn is_initialized(&self) -> bool {
|
|
|
+ for v in &self.revisions {
|
|
|
+ if !v.is_initialized() {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ };
|
|
|
true
|
|
|
}
|
|
|
|
|
@@ -613,14 +609,7 @@ impl ::protobuf::Message for UpdateDocParams {
|
|
|
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.doc_id)?;
|
|
|
},
|
|
|
2 => {
|
|
|
- ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.data)?;
|
|
|
- },
|
|
|
- 3 => {
|
|
|
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
|
|
|
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
|
|
|
- }
|
|
|
- let tmp = is.read_int64()?;
|
|
|
- self.rev_id = tmp;
|
|
|
+ ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.revisions)?;
|
|
|
},
|
|
|
_ => {
|
|
|
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
|
|
@@ -637,11 +626,9 @@ impl ::protobuf::Message for UpdateDocParams {
|
|
|
if !self.doc_id.is_empty() {
|
|
|
my_size += ::protobuf::rt::string_size(1, &self.doc_id);
|
|
|
}
|
|
|
- if !self.data.is_empty() {
|
|
|
- my_size += ::protobuf::rt::string_size(2, &self.data);
|
|
|
- }
|
|
|
- if self.rev_id != 0 {
|
|
|
- my_size += ::protobuf::rt::value_size(3, self.rev_id, ::protobuf::wire_format::WireTypeVarint);
|
|
|
+ if let Some(ref v) = self.revisions.as_ref() {
|
|
|
+ let len = v.compute_size();
|
|
|
+ my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
|
|
|
}
|
|
|
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
|
|
|
self.cached_size.set(my_size);
|
|
@@ -652,11 +639,10 @@ impl ::protobuf::Message for UpdateDocParams {
|
|
|
if !self.doc_id.is_empty() {
|
|
|
os.write_string(1, &self.doc_id)?;
|
|
|
}
|
|
|
- if !self.data.is_empty() {
|
|
|
- os.write_string(2, &self.data)?;
|
|
|
- }
|
|
|
- if self.rev_id != 0 {
|
|
|
- os.write_int64(3, self.rev_id)?;
|
|
|
+ if let Some(ref v) = self.revisions.as_ref() {
|
|
|
+ os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
|
|
|
+ os.write_raw_varint32(v.get_cached_size())?;
|
|
|
+ v.write_to_with_cached_sizes(os)?;
|
|
|
}
|
|
|
os.write_unknown_fields(self.get_unknown_fields())?;
|
|
|
::std::result::Result::Ok(())
|
|
@@ -688,8 +674,8 @@ impl ::protobuf::Message for UpdateDocParams {
|
|
|
Self::descriptor_static()
|
|
|
}
|
|
|
|
|
|
- fn new() -> UpdateDocParams {
|
|
|
- UpdateDocParams::new()
|
|
|
+ fn new() -> ResetDocumentParams {
|
|
|
+ ResetDocumentParams::new()
|
|
|
}
|
|
|
|
|
|
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
|
|
@@ -698,49 +684,43 @@ impl ::protobuf::Message for UpdateDocParams {
|
|
|
let mut fields = ::std::vec::Vec::new();
|
|
|
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
|
|
|
"doc_id",
|
|
|
- |m: &UpdateDocParams| { &m.doc_id },
|
|
|
- |m: &mut UpdateDocParams| { &mut m.doc_id },
|
|
|
- ));
|
|
|
- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
|
|
|
- "data",
|
|
|
- |m: &UpdateDocParams| { &m.data },
|
|
|
- |m: &mut UpdateDocParams| { &mut m.data },
|
|
|
+ |m: &ResetDocumentParams| { &m.doc_id },
|
|
|
+ |m: &mut ResetDocumentParams| { &mut m.doc_id },
|
|
|
));
|
|
|
- fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt64>(
|
|
|
- "rev_id",
|
|
|
- |m: &UpdateDocParams| { &m.rev_id },
|
|
|
- |m: &mut UpdateDocParams| { &mut m.rev_id },
|
|
|
+ fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::revision::RepeatedRevision>>(
|
|
|
+ "revisions",
|
|
|
+ |m: &ResetDocumentParams| { &m.revisions },
|
|
|
+ |m: &mut ResetDocumentParams| { &mut m.revisions },
|
|
|
));
|
|
|
- ::protobuf::reflect::MessageDescriptor::new_pb_name::<UpdateDocParams>(
|
|
|
- "UpdateDocParams",
|
|
|
+ ::protobuf::reflect::MessageDescriptor::new_pb_name::<ResetDocumentParams>(
|
|
|
+ "ResetDocumentParams",
|
|
|
fields,
|
|
|
file_descriptor_proto()
|
|
|
)
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- fn default_instance() -> &'static UpdateDocParams {
|
|
|
- static instance: ::protobuf::rt::LazyV2<UpdateDocParams> = ::protobuf::rt::LazyV2::INIT;
|
|
|
- instance.get(UpdateDocParams::new)
|
|
|
+ fn default_instance() -> &'static ResetDocumentParams {
|
|
|
+ static instance: ::protobuf::rt::LazyV2<ResetDocumentParams> = ::protobuf::rt::LazyV2::INIT;
|
|
|
+ instance.get(ResetDocumentParams::new)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-impl ::protobuf::Clear for UpdateDocParams {
|
|
|
+impl ::protobuf::Clear for ResetDocumentParams {
|
|
|
fn clear(&mut self) {
|
|
|
self.doc_id.clear();
|
|
|
- self.data.clear();
|
|
|
- self.rev_id = 0;
|
|
|
+ self.revisions.clear();
|
|
|
self.unknown_fields.clear();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-impl ::std::fmt::Debug for UpdateDocParams {
|
|
|
+impl ::std::fmt::Debug for ResetDocumentParams {
|
|
|
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
|
|
::protobuf::text_format::fmt(self, f)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-impl ::protobuf::reflect::ProtobufValue for UpdateDocParams {
|
|
|
+impl ::protobuf::reflect::ProtobufValue for ResetDocumentParams {
|
|
|
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
|
|
|
::protobuf::reflect::ReflectValueRef::Message(self)
|
|
|
}
|
|
@@ -1343,69 +1323,66 @@ impl ::protobuf::reflect::ProtobufValue for DocIdentifier {
|
|
|
}
|
|
|
|
|
|
static file_descriptor_proto_data: &'static [u8] = b"\
|
|
|
- \n\tdoc.proto\x1a\x0erevision.proto\"H\n\x0fCreateDocParams\x12\x0e\n\
|
|
|
- \x02id\x18\x01\x20\x01(\tR\x02id\x12%\n\x04data\x18\x02\x20\x01(\x0b2\
|
|
|
- \x11.RepeatedRevisionR\x04data\"`\n\x03Doc\x12\x0e\n\x02id\x18\x01\x20\
|
|
|
- \x01(\tR\x02id\x12\x12\n\x04data\x18\x02\x20\x01(\tR\x04data\x12\x15\n\
|
|
|
- \x06rev_id\x18\x03\x20\x01(\x03R\x05revId\x12\x1e\n\x0bbase_rev_id\x18\
|
|
|
- \x04\x20\x01(\x03R\tbaseRevId\"S\n\x0fUpdateDocParams\x12\x15\n\x06doc_i\
|
|
|
- d\x18\x01\x20\x01(\tR\x05docId\x12\x12\n\x04data\x18\x02\x20\x01(\tR\x04\
|
|
|
- data\x12\x15\n\x06rev_id\x18\x03\x20\x01(\x03R\x05revId\"5\n\x08DocDelta\
|
|
|
- \x12\x15\n\x06doc_id\x18\x01\x20\x01(\tR\x05docId\x12\x12\n\x04data\x18\
|
|
|
- \x02\x20\x01(\tR\x04data\"S\n\nNewDocUser\x12\x17\n\x07user_id\x18\x01\
|
|
|
- \x20\x01(\tR\x06userId\x12\x15\n\x06rev_id\x18\x02\x20\x01(\x03R\x05revI\
|
|
|
- d\x12\x15\n\x06doc_id\x18\x03\x20\x01(\tR\x05docId\"&\n\rDocIdentifier\
|
|
|
- \x12\x15\n\x06doc_id\x18\x01\x20\x01(\tR\x05docIdJ\xe6\x07\n\x06\x12\x04\
|
|
|
- \0\0\x1d\x01\n\x08\n\x01\x0c\x12\x03\0\0\x12\n\t\n\x02\x03\0\x12\x03\x01\
|
|
|
- \0\x18\n\n\n\x02\x04\0\x12\x04\x03\0\x06\x01\n\n\n\x03\x04\0\x01\x12\x03\
|
|
|
- \x03\x08\x17\n\x0b\n\x04\x04\0\x02\0\x12\x03\x04\x04\x12\n\x0c\n\x05\x04\
|
|
|
- \0\x02\0\x05\x12\x03\x04\x04\n\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x04\
|
|
|
- \x0b\r\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x04\x10\x11\n\x0b\n\x04\x04\0\
|
|
|
- \x02\x01\x12\x03\x05\x04\x1e\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03\x05\
|
|
|
- \x04\x14\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03\x05\x15\x19\n\x0c\n\x05\
|
|
|
- \x04\0\x02\x01\x03\x12\x03\x05\x1c\x1d\n\n\n\x02\x04\x01\x12\x04\x07\0\
|
|
|
- \x0c\x01\n\n\n\x03\x04\x01\x01\x12\x03\x07\x08\x0b\n\x0b\n\x04\x04\x01\
|
|
|
- \x02\0\x12\x03\x08\x04\x12\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03\x08\x04\
|
|
|
- \n\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03\x08\x0b\r\n\x0c\n\x05\x04\x01\
|
|
|
- \x02\0\x03\x12\x03\x08\x10\x11\n\x0b\n\x04\x04\x01\x02\x01\x12\x03\t\x04\
|
|
|
- \x14\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03\t\x04\n\n\x0c\n\x05\x04\x01\
|
|
|
- \x02\x01\x01\x12\x03\t\x0b\x0f\n\x0c\n\x05\x04\x01\x02\x01\x03\x12\x03\t\
|
|
|
- \x12\x13\n\x0b\n\x04\x04\x01\x02\x02\x12\x03\n\x04\x15\n\x0c\n\x05\x04\
|
|
|
- \x01\x02\x02\x05\x12\x03\n\x04\t\n\x0c\n\x05\x04\x01\x02\x02\x01\x12\x03\
|
|
|
- \n\n\x10\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03\n\x13\x14\n\x0b\n\x04\
|
|
|
- \x04\x01\x02\x03\x12\x03\x0b\x04\x1a\n\x0c\n\x05\x04\x01\x02\x03\x05\x12\
|
|
|
- \x03\x0b\x04\t\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\x03\x0b\n\x15\n\x0c\n\
|
|
|
- \x05\x04\x01\x02\x03\x03\x12\x03\x0b\x18\x19\n\n\n\x02\x04\x02\x12\x04\r\
|
|
|
- \0\x11\x01\n\n\n\x03\x04\x02\x01\x12\x03\r\x08\x17\n\x0b\n\x04\x04\x02\
|
|
|
- \x02\0\x12\x03\x0e\x04\x16\n\x0c\n\x05\x04\x02\x02\0\x05\x12\x03\x0e\x04\
|
|
|
- \n\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03\x0e\x0b\x11\n\x0c\n\x05\x04\x02\
|
|
|
- \x02\0\x03\x12\x03\x0e\x14\x15\n\x0b\n\x04\x04\x02\x02\x01\x12\x03\x0f\
|
|
|
- \x04\x14\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03\x0f\x04\n\n\x0c\n\x05\
|
|
|
- \x04\x02\x02\x01\x01\x12\x03\x0f\x0b\x0f\n\x0c\n\x05\x04\x02\x02\x01\x03\
|
|
|
- \x12\x03\x0f\x12\x13\n\x0b\n\x04\x04\x02\x02\x02\x12\x03\x10\x04\x15\n\
|
|
|
- \x0c\n\x05\x04\x02\x02\x02\x05\x12\x03\x10\x04\t\n\x0c\n\x05\x04\x02\x02\
|
|
|
- \x02\x01\x12\x03\x10\n\x10\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03\x10\
|
|
|
- \x13\x14\n\n\n\x02\x04\x03\x12\x04\x12\0\x15\x01\n\n\n\x03\x04\x03\x01\
|
|
|
- \x12\x03\x12\x08\x10\n\x0b\n\x04\x04\x03\x02\0\x12\x03\x13\x04\x16\n\x0c\
|
|
|
- \n\x05\x04\x03\x02\0\x05\x12\x03\x13\x04\n\n\x0c\n\x05\x04\x03\x02\0\x01\
|
|
|
- \x12\x03\x13\x0b\x11\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03\x13\x14\x15\n\
|
|
|
- \x0b\n\x04\x04\x03\x02\x01\x12\x03\x14\x04\x14\n\x0c\n\x05\x04\x03\x02\
|
|
|
- \x01\x05\x12\x03\x14\x04\n\n\x0c\n\x05\x04\x03\x02\x01\x01\x12\x03\x14\
|
|
|
- \x0b\x0f\n\x0c\n\x05\x04\x03\x02\x01\x03\x12\x03\x14\x12\x13\n\n\n\x02\
|
|
|
- \x04\x04\x12\x04\x16\0\x1a\x01\n\n\n\x03\x04\x04\x01\x12\x03\x16\x08\x12\
|
|
|
- \n\x0b\n\x04\x04\x04\x02\0\x12\x03\x17\x04\x17\n\x0c\n\x05\x04\x04\x02\0\
|
|
|
- \x05\x12\x03\x17\x04\n\n\x0c\n\x05\x04\x04\x02\0\x01\x12\x03\x17\x0b\x12\
|
|
|
- \n\x0c\n\x05\x04\x04\x02\0\x03\x12\x03\x17\x15\x16\n\x0b\n\x04\x04\x04\
|
|
|
- \x02\x01\x12\x03\x18\x04\x15\n\x0c\n\x05\x04\x04\x02\x01\x05\x12\x03\x18\
|
|
|
- \x04\t\n\x0c\n\x05\x04\x04\x02\x01\x01\x12\x03\x18\n\x10\n\x0c\n\x05\x04\
|
|
|
- \x04\x02\x01\x03\x12\x03\x18\x13\x14\n\x0b\n\x04\x04\x04\x02\x02\x12\x03\
|
|
|
- \x19\x04\x16\n\x0c\n\x05\x04\x04\x02\x02\x05\x12\x03\x19\x04\n\n\x0c\n\
|
|
|
- \x05\x04\x04\x02\x02\x01\x12\x03\x19\x0b\x11\n\x0c\n\x05\x04\x04\x02\x02\
|
|
|
- \x03\x12\x03\x19\x14\x15\n\n\n\x02\x04\x05\x12\x04\x1b\0\x1d\x01\n\n\n\
|
|
|
- \x03\x04\x05\x01\x12\x03\x1b\x08\x15\n\x0b\n\x04\x04\x05\x02\0\x12\x03\
|
|
|
- \x1c\x04\x16\n\x0c\n\x05\x04\x05\x02\0\x05\x12\x03\x1c\x04\n\n\x0c\n\x05\
|
|
|
- \x04\x05\x02\0\x01\x12\x03\x1c\x0b\x11\n\x0c\n\x05\x04\x05\x02\0\x03\x12\
|
|
|
- \x03\x1c\x14\x15b\x06proto3\
|
|
|
+ \n\tdoc.proto\x1a\x0erevision.proto\"R\n\x0fCreateDocParams\x12\x0e\n\
|
|
|
+ \x02id\x18\x01\x20\x01(\tR\x02id\x12/\n\trevisions\x18\x02\x20\x01(\x0b2\
|
|
|
+ \x11.RepeatedRevisionR\trevisions\"`\n\x03Doc\x12\x0e\n\x02id\x18\x01\
|
|
|
+ \x20\x01(\tR\x02id\x12\x12\n\x04text\x18\x02\x20\x01(\tR\x04text\x12\x15\
|
|
|
+ \n\x06rev_id\x18\x03\x20\x01(\x03R\x05revId\x12\x1e\n\x0bbase_rev_id\x18\
|
|
|
+ \x04\x20\x01(\x03R\tbaseRevId\"]\n\x13ResetDocumentParams\x12\x15\n\x06d\
|
|
|
+ oc_id\x18\x01\x20\x01(\tR\x05docId\x12/\n\trevisions\x18\x02\x20\x01(\
|
|
|
+ \x0b2\x11.RepeatedRevisionR\trevisions\"5\n\x08DocDelta\x12\x15\n\x06doc\
|
|
|
+ _id\x18\x01\x20\x01(\tR\x05docId\x12\x12\n\x04data\x18\x02\x20\x01(\tR\
|
|
|
+ \x04data\"S\n\nNewDocUser\x12\x17\n\x07user_id\x18\x01\x20\x01(\tR\x06us\
|
|
|
+ erId\x12\x15\n\x06rev_id\x18\x02\x20\x01(\x03R\x05revId\x12\x15\n\x06doc\
|
|
|
+ _id\x18\x03\x20\x01(\tR\x05docId\"&\n\rDocIdentifier\x12\x15\n\x06doc_id\
|
|
|
+ \x18\x01\x20\x01(\tR\x05docIdJ\xaf\x07\n\x06\x12\x04\0\0\x1c\x01\n\x08\n\
|
|
|
+ \x01\x0c\x12\x03\0\0\x12\n\t\n\x02\x03\0\x12\x03\x01\0\x18\n\n\n\x02\x04\
|
|
|
+ \0\x12\x04\x03\0\x06\x01\n\n\n\x03\x04\0\x01\x12\x03\x03\x08\x17\n\x0b\n\
|
|
|
+ \x04\x04\0\x02\0\x12\x03\x04\x04\x12\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\
|
|
|
+ \x04\x04\n\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x04\x0b\r\n\x0c\n\x05\x04\
|
|
|
+ \0\x02\0\x03\x12\x03\x04\x10\x11\n\x0b\n\x04\x04\0\x02\x01\x12\x03\x05\
|
|
|
+ \x04#\n\x0c\n\x05\x04\0\x02\x01\x06\x12\x03\x05\x04\x14\n\x0c\n\x05\x04\
|
|
|
+ \0\x02\x01\x01\x12\x03\x05\x15\x1e\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\
|
|
|
+ \x05!\"\n\n\n\x02\x04\x01\x12\x04\x07\0\x0c\x01\n\n\n\x03\x04\x01\x01\
|
|
|
+ \x12\x03\x07\x08\x0b\n\x0b\n\x04\x04\x01\x02\0\x12\x03\x08\x04\x12\n\x0c\
|
|
|
+ \n\x05\x04\x01\x02\0\x05\x12\x03\x08\x04\n\n\x0c\n\x05\x04\x01\x02\0\x01\
|
|
|
+ \x12\x03\x08\x0b\r\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03\x08\x10\x11\n\
|
|
|
+ \x0b\n\x04\x04\x01\x02\x01\x12\x03\t\x04\x14\n\x0c\n\x05\x04\x01\x02\x01\
|
|
|
+ \x05\x12\x03\t\x04\n\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03\t\x0b\x0f\n\
|
|
|
+ \x0c\n\x05\x04\x01\x02\x01\x03\x12\x03\t\x12\x13\n\x0b\n\x04\x04\x01\x02\
|
|
|
+ \x02\x12\x03\n\x04\x15\n\x0c\n\x05\x04\x01\x02\x02\x05\x12\x03\n\x04\t\n\
|
|
|
+ \x0c\n\x05\x04\x01\x02\x02\x01\x12\x03\n\n\x10\n\x0c\n\x05\x04\x01\x02\
|
|
|
+ \x02\x03\x12\x03\n\x13\x14\n\x0b\n\x04\x04\x01\x02\x03\x12\x03\x0b\x04\
|
|
|
+ \x1a\n\x0c\n\x05\x04\x01\x02\x03\x05\x12\x03\x0b\x04\t\n\x0c\n\x05\x04\
|
|
|
+ \x01\x02\x03\x01\x12\x03\x0b\n\x15\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\
|
|
|
+ \x03\x0b\x18\x19\n\n\n\x02\x04\x02\x12\x04\r\0\x10\x01\n\n\n\x03\x04\x02\
|
|
|
+ \x01\x12\x03\r\x08\x1b\n\x0b\n\x04\x04\x02\x02\0\x12\x03\x0e\x04\x16\n\
|
|
|
+ \x0c\n\x05\x04\x02\x02\0\x05\x12\x03\x0e\x04\n\n\x0c\n\x05\x04\x02\x02\0\
|
|
|
+ \x01\x12\x03\x0e\x0b\x11\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03\x0e\x14\
|
|
|
+ \x15\n\x0b\n\x04\x04\x02\x02\x01\x12\x03\x0f\x04#\n\x0c\n\x05\x04\x02\
|
|
|
+ \x02\x01\x06\x12\x03\x0f\x04\x14\n\x0c\n\x05\x04\x02\x02\x01\x01\x12\x03\
|
|
|
+ \x0f\x15\x1e\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03\x0f!\"\n\n\n\x02\
|
|
|
+ \x04\x03\x12\x04\x11\0\x14\x01\n\n\n\x03\x04\x03\x01\x12\x03\x11\x08\x10\
|
|
|
+ \n\x0b\n\x04\x04\x03\x02\0\x12\x03\x12\x04\x16\n\x0c\n\x05\x04\x03\x02\0\
|
|
|
+ \x05\x12\x03\x12\x04\n\n\x0c\n\x05\x04\x03\x02\0\x01\x12\x03\x12\x0b\x11\
|
|
|
+ \n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03\x12\x14\x15\n\x0b\n\x04\x04\x03\
|
|
|
+ \x02\x01\x12\x03\x13\x04\x14\n\x0c\n\x05\x04\x03\x02\x01\x05\x12\x03\x13\
|
|
|
+ \x04\n\n\x0c\n\x05\x04\x03\x02\x01\x01\x12\x03\x13\x0b\x0f\n\x0c\n\x05\
|
|
|
+ \x04\x03\x02\x01\x03\x12\x03\x13\x12\x13\n\n\n\x02\x04\x04\x12\x04\x15\0\
|
|
|
+ \x19\x01\n\n\n\x03\x04\x04\x01\x12\x03\x15\x08\x12\n\x0b\n\x04\x04\x04\
|
|
|
+ \x02\0\x12\x03\x16\x04\x17\n\x0c\n\x05\x04\x04\x02\0\x05\x12\x03\x16\x04\
|
|
|
+ \n\n\x0c\n\x05\x04\x04\x02\0\x01\x12\x03\x16\x0b\x12\n\x0c\n\x05\x04\x04\
|
|
|
+ \x02\0\x03\x12\x03\x16\x15\x16\n\x0b\n\x04\x04\x04\x02\x01\x12\x03\x17\
|
|
|
+ \x04\x15\n\x0c\n\x05\x04\x04\x02\x01\x05\x12\x03\x17\x04\t\n\x0c\n\x05\
|
|
|
+ \x04\x04\x02\x01\x01\x12\x03\x17\n\x10\n\x0c\n\x05\x04\x04\x02\x01\x03\
|
|
|
+ \x12\x03\x17\x13\x14\n\x0b\n\x04\x04\x04\x02\x02\x12\x03\x18\x04\x16\n\
|
|
|
+ \x0c\n\x05\x04\x04\x02\x02\x05\x12\x03\x18\x04\n\n\x0c\n\x05\x04\x04\x02\
|
|
|
+ \x02\x01\x12\x03\x18\x0b\x11\n\x0c\n\x05\x04\x04\x02\x02\x03\x12\x03\x18\
|
|
|
+ \x14\x15\n\n\n\x02\x04\x05\x12\x04\x1a\0\x1c\x01\n\n\n\x03\x04\x05\x01\
|
|
|
+ \x12\x03\x1a\x08\x15\n\x0b\n\x04\x04\x05\x02\0\x12\x03\x1b\x04\x16\n\x0c\
|
|
|
+ \n\x05\x04\x05\x02\0\x05\x12\x03\x1b\x04\n\n\x0c\n\x05\x04\x05\x02\0\x01\
|
|
|
+ \x12\x03\x1b\x0b\x11\n\x0c\n\x05\x04\x05\x02\0\x03\x12\x03\x1b\x14\x15b\
|
|
|
+ \x06proto3\
|
|
|
";
|
|
|
|
|
|
static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
|