dgraph_rs/protos/
api.rs

1// This file is generated by rust-protobuf 2.8.2. Do not edit
2// @generated
3
4// https://github.com/Manishearth/rust-clippy/issues/702
5#![allow(unknown_lints)]
6#![allow(clippy::all)]
7
8#![cfg_attr(rustfmt, rustfmt_skip)]
9
10#![allow(box_pointers)]
11#![allow(dead_code)]
12#![allow(missing_docs)]
13#![allow(non_camel_case_types)]
14#![allow(non_snake_case)]
15#![allow(non_upper_case_globals)]
16#![allow(trivial_casts)]
17#![allow(unsafe_code)]
18#![allow(unused_imports)]
19#![allow(unused_results)]
20//! Generated file from `api.proto`
21
22use protobuf::Message as Message_imported_for_functions;
23use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
24
25/// Generated files are compatible only with the same version
26/// of protobuf runtime.
27const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_8_2;
28
29#[derive(PartialEq,Clone,Default)]
30pub struct Request {
31    // message fields
32    pub start_ts: u64,
33    pub query: ::std::string::String,
34    pub vars: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
35    pub read_only: bool,
36    pub best_effort: bool,
37    pub mutations: ::protobuf::RepeatedField<Mutation>,
38    pub commit_now: bool,
39    // special fields
40    pub unknown_fields: ::protobuf::UnknownFields,
41    pub cached_size: ::protobuf::CachedSize,
42}
43
44impl<'a> ::std::default::Default for &'a Request {
45    fn default() -> &'a Request {
46        <Request as ::protobuf::Message>::default_instance()
47    }
48}
49
50impl Request {
51    pub fn new() -> Request {
52        ::std::default::Default::default()
53    }
54
55    // uint64 start_ts = 1;
56
57
58    pub fn get_start_ts(&self) -> u64 {
59        self.start_ts
60    }
61    pub fn clear_start_ts(&mut self) {
62        self.start_ts = 0;
63    }
64
65    // Param is passed by value, moved
66    pub fn set_start_ts(&mut self, v: u64) {
67        self.start_ts = v;
68    }
69
70    // string query = 4;
71
72
73    pub fn get_query(&self) -> &str {
74        &self.query
75    }
76    pub fn clear_query(&mut self) {
77        self.query.clear();
78    }
79
80    // Param is passed by value, moved
81    pub fn set_query(&mut self, v: ::std::string::String) {
82        self.query = v;
83    }
84
85    // Mutable pointer to the field.
86    // If field is not initialized, it is initialized with default value first.
87    pub fn mut_query(&mut self) -> &mut ::std::string::String {
88        &mut self.query
89    }
90
91    // Take field
92    pub fn take_query(&mut self) -> ::std::string::String {
93        ::std::mem::replace(&mut self.query, ::std::string::String::new())
94    }
95
96    // repeated .api.Request.VarsEntry vars = 5;
97
98
99    pub fn get_vars(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
100        &self.vars
101    }
102    pub fn clear_vars(&mut self) {
103        self.vars.clear();
104    }
105
106    // Param is passed by value, moved
107    pub fn set_vars(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) {
108        self.vars = v;
109    }
110
111    // Mutable pointer to the field.
112    pub fn mut_vars(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> {
113        &mut self.vars
114    }
115
116    // Take field
117    pub fn take_vars(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> {
118        ::std::mem::replace(&mut self.vars, ::std::collections::HashMap::new())
119    }
120
121    // bool read_only = 6;
122
123
124    pub fn get_read_only(&self) -> bool {
125        self.read_only
126    }
127    pub fn clear_read_only(&mut self) {
128        self.read_only = false;
129    }
130
131    // Param is passed by value, moved
132    pub fn set_read_only(&mut self, v: bool) {
133        self.read_only = v;
134    }
135
136    // bool best_effort = 7;
137
138
139    pub fn get_best_effort(&self) -> bool {
140        self.best_effort
141    }
142    pub fn clear_best_effort(&mut self) {
143        self.best_effort = false;
144    }
145
146    // Param is passed by value, moved
147    pub fn set_best_effort(&mut self, v: bool) {
148        self.best_effort = v;
149    }
150
151    // repeated .api.Mutation mutations = 12;
152
153
154    pub fn get_mutations(&self) -> &[Mutation] {
155        &self.mutations
156    }
157    pub fn clear_mutations(&mut self) {
158        self.mutations.clear();
159    }
160
161    // Param is passed by value, moved
162    pub fn set_mutations(&mut self, v: ::protobuf::RepeatedField<Mutation>) {
163        self.mutations = v;
164    }
165
166    // Mutable pointer to the field.
167    pub fn mut_mutations(&mut self) -> &mut ::protobuf::RepeatedField<Mutation> {
168        &mut self.mutations
169    }
170
171    // Take field
172    pub fn take_mutations(&mut self) -> ::protobuf::RepeatedField<Mutation> {
173        ::std::mem::replace(&mut self.mutations, ::protobuf::RepeatedField::new())
174    }
175
176    // bool commit_now = 13;
177
178
179    pub fn get_commit_now(&self) -> bool {
180        self.commit_now
181    }
182    pub fn clear_commit_now(&mut self) {
183        self.commit_now = false;
184    }
185
186    // Param is passed by value, moved
187    pub fn set_commit_now(&mut self, v: bool) {
188        self.commit_now = v;
189    }
190}
191
192impl ::protobuf::Message for Request {
193    fn is_initialized(&self) -> bool {
194        for v in &self.mutations {
195            if !v.is_initialized() {
196                return false;
197            }
198        };
199        true
200    }
201
202    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
203        while !is.eof()? {
204            let (field_number, wire_type) = is.read_tag_unpack()?;
205            match field_number {
206                1 => {
207                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
208                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
209                    }
210                    let tmp = is.read_uint64()?;
211                    self.start_ts = tmp;
212                },
213                4 => {
214                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.query)?;
215                },
216                5 => {
217                    ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.vars)?;
218                },
219                6 => {
220                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
221                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
222                    }
223                    let tmp = is.read_bool()?;
224                    self.read_only = tmp;
225                },
226                7 => {
227                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
228                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
229                    }
230                    let tmp = is.read_bool()?;
231                    self.best_effort = tmp;
232                },
233                12 => {
234                    ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.mutations)?;
235                },
236                13 => {
237                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
238                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
239                    }
240                    let tmp = is.read_bool()?;
241                    self.commit_now = tmp;
242                },
243                _ => {
244                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
245                },
246            };
247        }
248        ::std::result::Result::Ok(())
249    }
250
251    // Compute sizes of nested messages
252    #[allow(unused_variables)]
253    fn compute_size(&self) -> u32 {
254        let mut my_size = 0;
255        if self.start_ts != 0 {
256            my_size += ::protobuf::rt::value_size(1, self.start_ts, ::protobuf::wire_format::WireTypeVarint);
257        }
258        if !self.query.is_empty() {
259            my_size += ::protobuf::rt::string_size(4, &self.query);
260        }
261        my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(5, &self.vars);
262        if self.read_only != false {
263            my_size += 2;
264        }
265        if self.best_effort != false {
266            my_size += 2;
267        }
268        for value in &self.mutations {
269            let len = value.compute_size();
270            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
271        };
272        if self.commit_now != false {
273            my_size += 2;
274        }
275        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
276        self.cached_size.set(my_size);
277        my_size
278    }
279
280    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
281        if self.start_ts != 0 {
282            os.write_uint64(1, self.start_ts)?;
283        }
284        if !self.query.is_empty() {
285            os.write_string(4, &self.query)?;
286        }
287        ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(5, &self.vars, os)?;
288        if self.read_only != false {
289            os.write_bool(6, self.read_only)?;
290        }
291        if self.best_effort != false {
292            os.write_bool(7, self.best_effort)?;
293        }
294        for v in &self.mutations {
295            os.write_tag(12, ::protobuf::wire_format::WireTypeLengthDelimited)?;
296            os.write_raw_varint32(v.get_cached_size())?;
297            v.write_to_with_cached_sizes(os)?;
298        };
299        if self.commit_now != false {
300            os.write_bool(13, self.commit_now)?;
301        }
302        os.write_unknown_fields(self.get_unknown_fields())?;
303        ::std::result::Result::Ok(())
304    }
305
306    fn get_cached_size(&self) -> u32 {
307        self.cached_size.get()
308    }
309
310    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
311        &self.unknown_fields
312    }
313
314    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
315        &mut self.unknown_fields
316    }
317
318    fn as_any(&self) -> &dyn (::std::any::Any) {
319        self as &dyn (::std::any::Any)
320    }
321    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
322        self as &mut dyn (::std::any::Any)
323    }
324    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
325        self
326    }
327
328    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
329        Self::descriptor_static()
330    }
331
332    fn new() -> Request {
333        Request::new()
334    }
335
336    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
337        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
338            lock: ::protobuf::lazy::ONCE_INIT,
339            ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
340        };
341        unsafe {
342            descriptor.get(|| {
343                let mut fields = ::std::vec::Vec::new();
344                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
345                    "start_ts",
346                    |m: &Request| { &m.start_ts },
347                    |m: &mut Request| { &mut m.start_ts },
348                ));
349                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
350                    "query",
351                    |m: &Request| { &m.query },
352                    |m: &mut Request| { &mut m.query },
353                ));
354                fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(
355                    "vars",
356                    |m: &Request| { &m.vars },
357                    |m: &mut Request| { &mut m.vars },
358                ));
359                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
360                    "read_only",
361                    |m: &Request| { &m.read_only },
362                    |m: &mut Request| { &mut m.read_only },
363                ));
364                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
365                    "best_effort",
366                    |m: &Request| { &m.best_effort },
367                    |m: &mut Request| { &mut m.best_effort },
368                ));
369                fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Mutation>>(
370                    "mutations",
371                    |m: &Request| { &m.mutations },
372                    |m: &mut Request| { &mut m.mutations },
373                ));
374                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
375                    "commit_now",
376                    |m: &Request| { &m.commit_now },
377                    |m: &mut Request| { &mut m.commit_now },
378                ));
379                ::protobuf::reflect::MessageDescriptor::new::<Request>(
380                    "Request",
381                    fields,
382                    file_descriptor_proto()
383                )
384            })
385        }
386    }
387
388    fn default_instance() -> &'static Request {
389        static mut instance: ::protobuf::lazy::Lazy<Request> = ::protobuf::lazy::Lazy {
390            lock: ::protobuf::lazy::ONCE_INIT,
391            ptr: 0 as *const Request,
392        };
393        unsafe {
394            instance.get(Request::new)
395        }
396    }
397}
398
399impl ::protobuf::Clear for Request {
400    fn clear(&mut self) {
401        self.start_ts = 0;
402        self.query.clear();
403        self.vars.clear();
404        self.read_only = false;
405        self.best_effort = false;
406        self.mutations.clear();
407        self.commit_now = false;
408        self.unknown_fields.clear();
409    }
410}
411
412impl ::std::fmt::Debug for Request {
413    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
414        ::protobuf::text_format::fmt(self, f)
415    }
416}
417
418impl ::protobuf::reflect::ProtobufValue for Request {
419    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
420        ::protobuf::reflect::ProtobufValueRef::Message(self)
421    }
422}
423
424#[derive(PartialEq,Clone,Default)]
425pub struct Uids {
426    // message fields
427    pub uids: ::protobuf::RepeatedField<::std::string::String>,
428    // special fields
429    pub unknown_fields: ::protobuf::UnknownFields,
430    pub cached_size: ::protobuf::CachedSize,
431}
432
433impl<'a> ::std::default::Default for &'a Uids {
434    fn default() -> &'a Uids {
435        <Uids as ::protobuf::Message>::default_instance()
436    }
437}
438
439impl Uids {
440    pub fn new() -> Uids {
441        ::std::default::Default::default()
442    }
443
444    // repeated string uids = 1;
445
446
447    pub fn get_uids(&self) -> &[::std::string::String] {
448        &self.uids
449    }
450    pub fn clear_uids(&mut self) {
451        self.uids.clear();
452    }
453
454    // Param is passed by value, moved
455    pub fn set_uids(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
456        self.uids = v;
457    }
458
459    // Mutable pointer to the field.
460    pub fn mut_uids(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
461        &mut self.uids
462    }
463
464    // Take field
465    pub fn take_uids(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
466        ::std::mem::replace(&mut self.uids, ::protobuf::RepeatedField::new())
467    }
468}
469
470impl ::protobuf::Message for Uids {
471    fn is_initialized(&self) -> bool {
472        true
473    }
474
475    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
476        while !is.eof()? {
477            let (field_number, wire_type) = is.read_tag_unpack()?;
478            match field_number {
479                1 => {
480                    ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.uids)?;
481                },
482                _ => {
483                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
484                },
485            };
486        }
487        ::std::result::Result::Ok(())
488    }
489
490    // Compute sizes of nested messages
491    #[allow(unused_variables)]
492    fn compute_size(&self) -> u32 {
493        let mut my_size = 0;
494        for value in &self.uids {
495            my_size += ::protobuf::rt::string_size(1, &value);
496        };
497        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
498        self.cached_size.set(my_size);
499        my_size
500    }
501
502    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
503        for v in &self.uids {
504            os.write_string(1, &v)?;
505        };
506        os.write_unknown_fields(self.get_unknown_fields())?;
507        ::std::result::Result::Ok(())
508    }
509
510    fn get_cached_size(&self) -> u32 {
511        self.cached_size.get()
512    }
513
514    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
515        &self.unknown_fields
516    }
517
518    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
519        &mut self.unknown_fields
520    }
521
522    fn as_any(&self) -> &dyn (::std::any::Any) {
523        self as &dyn (::std::any::Any)
524    }
525    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
526        self as &mut dyn (::std::any::Any)
527    }
528    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
529        self
530    }
531
532    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
533        Self::descriptor_static()
534    }
535
536    fn new() -> Uids {
537        Uids::new()
538    }
539
540    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
541        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
542            lock: ::protobuf::lazy::ONCE_INIT,
543            ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
544        };
545        unsafe {
546            descriptor.get(|| {
547                let mut fields = ::std::vec::Vec::new();
548                fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
549                    "uids",
550                    |m: &Uids| { &m.uids },
551                    |m: &mut Uids| { &mut m.uids },
552                ));
553                ::protobuf::reflect::MessageDescriptor::new::<Uids>(
554                    "Uids",
555                    fields,
556                    file_descriptor_proto()
557                )
558            })
559        }
560    }
561
562    fn default_instance() -> &'static Uids {
563        static mut instance: ::protobuf::lazy::Lazy<Uids> = ::protobuf::lazy::Lazy {
564            lock: ::protobuf::lazy::ONCE_INIT,
565            ptr: 0 as *const Uids,
566        };
567        unsafe {
568            instance.get(Uids::new)
569        }
570    }
571}
572
573impl ::protobuf::Clear for Uids {
574    fn clear(&mut self) {
575        self.uids.clear();
576        self.unknown_fields.clear();
577    }
578}
579
580impl ::std::fmt::Debug for Uids {
581    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
582        ::protobuf::text_format::fmt(self, f)
583    }
584}
585
586impl ::protobuf::reflect::ProtobufValue for Uids {
587    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
588        ::protobuf::reflect::ProtobufValueRef::Message(self)
589    }
590}
591
592#[derive(PartialEq,Clone,Default)]
593pub struct Response {
594    // message fields
595    pub json: ::std::vec::Vec<u8>,
596    pub txn: ::protobuf::SingularPtrField<TxnContext>,
597    pub latency: ::protobuf::SingularPtrField<Latency>,
598    pub metrics: ::protobuf::SingularPtrField<Metrics>,
599    pub uids: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
600    // special fields
601    pub unknown_fields: ::protobuf::UnknownFields,
602    pub cached_size: ::protobuf::CachedSize,
603}
604
605impl<'a> ::std::default::Default for &'a Response {
606    fn default() -> &'a Response {
607        <Response as ::protobuf::Message>::default_instance()
608    }
609}
610
611impl Response {
612    pub fn new() -> Response {
613        ::std::default::Default::default()
614    }
615
616    // bytes json = 1;
617
618
619    pub fn get_json(&self) -> &[u8] {
620        &self.json
621    }
622    pub fn clear_json(&mut self) {
623        self.json.clear();
624    }
625
626    // Param is passed by value, moved
627    pub fn set_json(&mut self, v: ::std::vec::Vec<u8>) {
628        self.json = v;
629    }
630
631    // Mutable pointer to the field.
632    // If field is not initialized, it is initialized with default value first.
633    pub fn mut_json(&mut self) -> &mut ::std::vec::Vec<u8> {
634        &mut self.json
635    }
636
637    // Take field
638    pub fn take_json(&mut self) -> ::std::vec::Vec<u8> {
639        ::std::mem::replace(&mut self.json, ::std::vec::Vec::new())
640    }
641
642    // .api.TxnContext txn = 2;
643
644
645    pub fn get_txn(&self) -> &TxnContext {
646        self.txn.as_ref().unwrap_or_else(|| TxnContext::default_instance())
647    }
648    pub fn clear_txn(&mut self) {
649        self.txn.clear();
650    }
651
652    pub fn has_txn(&self) -> bool {
653        self.txn.is_some()
654    }
655
656    // Param is passed by value, moved
657    pub fn set_txn(&mut self, v: TxnContext) {
658        self.txn = ::protobuf::SingularPtrField::some(v);
659    }
660
661    // Mutable pointer to the field.
662    // If field is not initialized, it is initialized with default value first.
663    pub fn mut_txn(&mut self) -> &mut TxnContext {
664        if self.txn.is_none() {
665            self.txn.set_default();
666        }
667        self.txn.as_mut().unwrap()
668    }
669
670    // Take field
671    pub fn take_txn(&mut self) -> TxnContext {
672        self.txn.take().unwrap_or_else(|| TxnContext::new())
673    }
674
675    // .api.Latency latency = 3;
676
677
678    pub fn get_latency(&self) -> &Latency {
679        self.latency.as_ref().unwrap_or_else(|| Latency::default_instance())
680    }
681    pub fn clear_latency(&mut self) {
682        self.latency.clear();
683    }
684
685    pub fn has_latency(&self) -> bool {
686        self.latency.is_some()
687    }
688
689    // Param is passed by value, moved
690    pub fn set_latency(&mut self, v: Latency) {
691        self.latency = ::protobuf::SingularPtrField::some(v);
692    }
693
694    // Mutable pointer to the field.
695    // If field is not initialized, it is initialized with default value first.
696    pub fn mut_latency(&mut self) -> &mut Latency {
697        if self.latency.is_none() {
698            self.latency.set_default();
699        }
700        self.latency.as_mut().unwrap()
701    }
702
703    // Take field
704    pub fn take_latency(&mut self) -> Latency {
705        self.latency.take().unwrap_or_else(|| Latency::new())
706    }
707
708    // .api.Metrics metrics = 4;
709
710
711    pub fn get_metrics(&self) -> &Metrics {
712        self.metrics.as_ref().unwrap_or_else(|| Metrics::default_instance())
713    }
714    pub fn clear_metrics(&mut self) {
715        self.metrics.clear();
716    }
717
718    pub fn has_metrics(&self) -> bool {
719        self.metrics.is_some()
720    }
721
722    // Param is passed by value, moved
723    pub fn set_metrics(&mut self, v: Metrics) {
724        self.metrics = ::protobuf::SingularPtrField::some(v);
725    }
726
727    // Mutable pointer to the field.
728    // If field is not initialized, it is initialized with default value first.
729    pub fn mut_metrics(&mut self) -> &mut Metrics {
730        if self.metrics.is_none() {
731            self.metrics.set_default();
732        }
733        self.metrics.as_mut().unwrap()
734    }
735
736    // Take field
737    pub fn take_metrics(&mut self) -> Metrics {
738        self.metrics.take().unwrap_or_else(|| Metrics::new())
739    }
740
741    // repeated .api.Response.UidsEntry uids = 12;
742
743
744    pub fn get_uids(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
745        &self.uids
746    }
747    pub fn clear_uids(&mut self) {
748        self.uids.clear();
749    }
750
751    // Param is passed by value, moved
752    pub fn set_uids(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) {
753        self.uids = v;
754    }
755
756    // Mutable pointer to the field.
757    pub fn mut_uids(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> {
758        &mut self.uids
759    }
760
761    // Take field
762    pub fn take_uids(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> {
763        ::std::mem::replace(&mut self.uids, ::std::collections::HashMap::new())
764    }
765}
766
767impl ::protobuf::Message for Response {
768    fn is_initialized(&self) -> bool {
769        for v in &self.txn {
770            if !v.is_initialized() {
771                return false;
772            }
773        };
774        for v in &self.latency {
775            if !v.is_initialized() {
776                return false;
777            }
778        };
779        for v in &self.metrics {
780            if !v.is_initialized() {
781                return false;
782            }
783        };
784        true
785    }
786
787    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
788        while !is.eof()? {
789            let (field_number, wire_type) = is.read_tag_unpack()?;
790            match field_number {
791                1 => {
792                    ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.json)?;
793                },
794                2 => {
795                    ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.txn)?;
796                },
797                3 => {
798                    ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.latency)?;
799                },
800                4 => {
801                    ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.metrics)?;
802                },
803                12 => {
804                    ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.uids)?;
805                },
806                _ => {
807                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
808                },
809            };
810        }
811        ::std::result::Result::Ok(())
812    }
813
814    // Compute sizes of nested messages
815    #[allow(unused_variables)]
816    fn compute_size(&self) -> u32 {
817        let mut my_size = 0;
818        if !self.json.is_empty() {
819            my_size += ::protobuf::rt::bytes_size(1, &self.json);
820        }
821        if let Some(ref v) = self.txn.as_ref() {
822            let len = v.compute_size();
823            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
824        }
825        if let Some(ref v) = self.latency.as_ref() {
826            let len = v.compute_size();
827            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
828        }
829        if let Some(ref v) = self.metrics.as_ref() {
830            let len = v.compute_size();
831            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
832        }
833        my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(12, &self.uids);
834        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
835        self.cached_size.set(my_size);
836        my_size
837    }
838
839    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
840        if !self.json.is_empty() {
841            os.write_bytes(1, &self.json)?;
842        }
843        if let Some(ref v) = self.txn.as_ref() {
844            os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
845            os.write_raw_varint32(v.get_cached_size())?;
846            v.write_to_with_cached_sizes(os)?;
847        }
848        if let Some(ref v) = self.latency.as_ref() {
849            os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
850            os.write_raw_varint32(v.get_cached_size())?;
851            v.write_to_with_cached_sizes(os)?;
852        }
853        if let Some(ref v) = self.metrics.as_ref() {
854            os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?;
855            os.write_raw_varint32(v.get_cached_size())?;
856            v.write_to_with_cached_sizes(os)?;
857        }
858        ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(12, &self.uids, os)?;
859        os.write_unknown_fields(self.get_unknown_fields())?;
860        ::std::result::Result::Ok(())
861    }
862
863    fn get_cached_size(&self) -> u32 {
864        self.cached_size.get()
865    }
866
867    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
868        &self.unknown_fields
869    }
870
871    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
872        &mut self.unknown_fields
873    }
874
875    fn as_any(&self) -> &dyn (::std::any::Any) {
876        self as &dyn (::std::any::Any)
877    }
878    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
879        self as &mut dyn (::std::any::Any)
880    }
881    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
882        self
883    }
884
885    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
886        Self::descriptor_static()
887    }
888
889    fn new() -> Response {
890        Response::new()
891    }
892
893    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
894        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
895            lock: ::protobuf::lazy::ONCE_INIT,
896            ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
897        };
898        unsafe {
899            descriptor.get(|| {
900                let mut fields = ::std::vec::Vec::new();
901                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
902                    "json",
903                    |m: &Response| { &m.json },
904                    |m: &mut Response| { &mut m.json },
905                ));
906                fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<TxnContext>>(
907                    "txn",
908                    |m: &Response| { &m.txn },
909                    |m: &mut Response| { &mut m.txn },
910                ));
911                fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Latency>>(
912                    "latency",
913                    |m: &Response| { &m.latency },
914                    |m: &mut Response| { &mut m.latency },
915                ));
916                fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Metrics>>(
917                    "metrics",
918                    |m: &Response| { &m.metrics },
919                    |m: &mut Response| { &mut m.metrics },
920                ));
921                fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(
922                    "uids",
923                    |m: &Response| { &m.uids },
924                    |m: &mut Response| { &mut m.uids },
925                ));
926                ::protobuf::reflect::MessageDescriptor::new::<Response>(
927                    "Response",
928                    fields,
929                    file_descriptor_proto()
930                )
931            })
932        }
933    }
934
935    fn default_instance() -> &'static Response {
936        static mut instance: ::protobuf::lazy::Lazy<Response> = ::protobuf::lazy::Lazy {
937            lock: ::protobuf::lazy::ONCE_INIT,
938            ptr: 0 as *const Response,
939        };
940        unsafe {
941            instance.get(Response::new)
942        }
943    }
944}
945
946impl ::protobuf::Clear for Response {
947    fn clear(&mut self) {
948        self.json.clear();
949        self.txn.clear();
950        self.latency.clear();
951        self.metrics.clear();
952        self.uids.clear();
953        self.unknown_fields.clear();
954    }
955}
956
957impl ::std::fmt::Debug for Response {
958    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
959        ::protobuf::text_format::fmt(self, f)
960    }
961}
962
963impl ::protobuf::reflect::ProtobufValue for Response {
964    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
965        ::protobuf::reflect::ProtobufValueRef::Message(self)
966    }
967}
968
969#[derive(PartialEq,Clone,Default)]
970pub struct Mutation {
971    // message fields
972    pub set_json: ::std::vec::Vec<u8>,
973    pub delete_json: ::std::vec::Vec<u8>,
974    pub set_nquads: ::std::vec::Vec<u8>,
975    pub del_nquads: ::std::vec::Vec<u8>,
976    pub set: ::protobuf::RepeatedField<NQuad>,
977    pub del: ::protobuf::RepeatedField<NQuad>,
978    pub cond: ::std::string::String,
979    pub commit_now: bool,
980    // special fields
981    pub unknown_fields: ::protobuf::UnknownFields,
982    pub cached_size: ::protobuf::CachedSize,
983}
984
985impl<'a> ::std::default::Default for &'a Mutation {
986    fn default() -> &'a Mutation {
987        <Mutation as ::protobuf::Message>::default_instance()
988    }
989}
990
991impl Mutation {
992    pub fn new() -> Mutation {
993        ::std::default::Default::default()
994    }
995
996    // bytes set_json = 1;
997
998
999    pub fn get_set_json(&self) -> &[u8] {
1000        &self.set_json
1001    }
1002    pub fn clear_set_json(&mut self) {
1003        self.set_json.clear();
1004    }
1005
1006    // Param is passed by value, moved
1007    pub fn set_set_json(&mut self, v: ::std::vec::Vec<u8>) {
1008        self.set_json = v;
1009    }
1010
1011    // Mutable pointer to the field.
1012    // If field is not initialized, it is initialized with default value first.
1013    pub fn mut_set_json(&mut self) -> &mut ::std::vec::Vec<u8> {
1014        &mut self.set_json
1015    }
1016
1017    // Take field
1018    pub fn take_set_json(&mut self) -> ::std::vec::Vec<u8> {
1019        ::std::mem::replace(&mut self.set_json, ::std::vec::Vec::new())
1020    }
1021
1022    // bytes delete_json = 2;
1023
1024
1025    pub fn get_delete_json(&self) -> &[u8] {
1026        &self.delete_json
1027    }
1028    pub fn clear_delete_json(&mut self) {
1029        self.delete_json.clear();
1030    }
1031
1032    // Param is passed by value, moved
1033    pub fn set_delete_json(&mut self, v: ::std::vec::Vec<u8>) {
1034        self.delete_json = v;
1035    }
1036
1037    // Mutable pointer to the field.
1038    // If field is not initialized, it is initialized with default value first.
1039    pub fn mut_delete_json(&mut self) -> &mut ::std::vec::Vec<u8> {
1040        &mut self.delete_json
1041    }
1042
1043    // Take field
1044    pub fn take_delete_json(&mut self) -> ::std::vec::Vec<u8> {
1045        ::std::mem::replace(&mut self.delete_json, ::std::vec::Vec::new())
1046    }
1047
1048    // bytes set_nquads = 3;
1049
1050
1051    pub fn get_set_nquads(&self) -> &[u8] {
1052        &self.set_nquads
1053    }
1054    pub fn clear_set_nquads(&mut self) {
1055        self.set_nquads.clear();
1056    }
1057
1058    // Param is passed by value, moved
1059    pub fn set_set_nquads(&mut self, v: ::std::vec::Vec<u8>) {
1060        self.set_nquads = v;
1061    }
1062
1063    // Mutable pointer to the field.
1064    // If field is not initialized, it is initialized with default value first.
1065    pub fn mut_set_nquads(&mut self) -> &mut ::std::vec::Vec<u8> {
1066        &mut self.set_nquads
1067    }
1068
1069    // Take field
1070    pub fn take_set_nquads(&mut self) -> ::std::vec::Vec<u8> {
1071        ::std::mem::replace(&mut self.set_nquads, ::std::vec::Vec::new())
1072    }
1073
1074    // bytes del_nquads = 4;
1075
1076
1077    pub fn get_del_nquads(&self) -> &[u8] {
1078        &self.del_nquads
1079    }
1080    pub fn clear_del_nquads(&mut self) {
1081        self.del_nquads.clear();
1082    }
1083
1084    // Param is passed by value, moved
1085    pub fn set_del_nquads(&mut self, v: ::std::vec::Vec<u8>) {
1086        self.del_nquads = v;
1087    }
1088
1089    // Mutable pointer to the field.
1090    // If field is not initialized, it is initialized with default value first.
1091    pub fn mut_del_nquads(&mut self) -> &mut ::std::vec::Vec<u8> {
1092        &mut self.del_nquads
1093    }
1094
1095    // Take field
1096    pub fn take_del_nquads(&mut self) -> ::std::vec::Vec<u8> {
1097        ::std::mem::replace(&mut self.del_nquads, ::std::vec::Vec::new())
1098    }
1099
1100    // repeated .api.NQuad set = 5;
1101
1102
1103    pub fn get_set(&self) -> &[NQuad] {
1104        &self.set
1105    }
1106    pub fn clear_set(&mut self) {
1107        self.set.clear();
1108    }
1109
1110    // Param is passed by value, moved
1111    pub fn set_set(&mut self, v: ::protobuf::RepeatedField<NQuad>) {
1112        self.set = v;
1113    }
1114
1115    // Mutable pointer to the field.
1116    pub fn mut_set(&mut self) -> &mut ::protobuf::RepeatedField<NQuad> {
1117        &mut self.set
1118    }
1119
1120    // Take field
1121    pub fn take_set(&mut self) -> ::protobuf::RepeatedField<NQuad> {
1122        ::std::mem::replace(&mut self.set, ::protobuf::RepeatedField::new())
1123    }
1124
1125    // repeated .api.NQuad del = 6;
1126
1127
1128    pub fn get_del(&self) -> &[NQuad] {
1129        &self.del
1130    }
1131    pub fn clear_del(&mut self) {
1132        self.del.clear();
1133    }
1134
1135    // Param is passed by value, moved
1136    pub fn set_del(&mut self, v: ::protobuf::RepeatedField<NQuad>) {
1137        self.del = v;
1138    }
1139
1140    // Mutable pointer to the field.
1141    pub fn mut_del(&mut self) -> &mut ::protobuf::RepeatedField<NQuad> {
1142        &mut self.del
1143    }
1144
1145    // Take field
1146    pub fn take_del(&mut self) -> ::protobuf::RepeatedField<NQuad> {
1147        ::std::mem::replace(&mut self.del, ::protobuf::RepeatedField::new())
1148    }
1149
1150    // string cond = 9;
1151
1152
1153    pub fn get_cond(&self) -> &str {
1154        &self.cond
1155    }
1156    pub fn clear_cond(&mut self) {
1157        self.cond.clear();
1158    }
1159
1160    // Param is passed by value, moved
1161    pub fn set_cond(&mut self, v: ::std::string::String) {
1162        self.cond = v;
1163    }
1164
1165    // Mutable pointer to the field.
1166    // If field is not initialized, it is initialized with default value first.
1167    pub fn mut_cond(&mut self) -> &mut ::std::string::String {
1168        &mut self.cond
1169    }
1170
1171    // Take field
1172    pub fn take_cond(&mut self) -> ::std::string::String {
1173        ::std::mem::replace(&mut self.cond, ::std::string::String::new())
1174    }
1175
1176    // bool commit_now = 14;
1177
1178
1179    pub fn get_commit_now(&self) -> bool {
1180        self.commit_now
1181    }
1182    pub fn clear_commit_now(&mut self) {
1183        self.commit_now = false;
1184    }
1185
1186    // Param is passed by value, moved
1187    pub fn set_commit_now(&mut self, v: bool) {
1188        self.commit_now = v;
1189    }
1190}
1191
1192impl ::protobuf::Message for Mutation {
1193    fn is_initialized(&self) -> bool {
1194        for v in &self.set {
1195            if !v.is_initialized() {
1196                return false;
1197            }
1198        };
1199        for v in &self.del {
1200            if !v.is_initialized() {
1201                return false;
1202            }
1203        };
1204        true
1205    }
1206
1207    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1208        while !is.eof()? {
1209            let (field_number, wire_type) = is.read_tag_unpack()?;
1210            match field_number {
1211                1 => {
1212                    ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.set_json)?;
1213                },
1214                2 => {
1215                    ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.delete_json)?;
1216                },
1217                3 => {
1218                    ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.set_nquads)?;
1219                },
1220                4 => {
1221                    ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.del_nquads)?;
1222                },
1223                5 => {
1224                    ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.set)?;
1225                },
1226                6 => {
1227                    ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.del)?;
1228                },
1229                9 => {
1230                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.cond)?;
1231                },
1232                14 => {
1233                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
1234                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1235                    }
1236                    let tmp = is.read_bool()?;
1237                    self.commit_now = tmp;
1238                },
1239                _ => {
1240                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1241                },
1242            };
1243        }
1244        ::std::result::Result::Ok(())
1245    }
1246
1247    // Compute sizes of nested messages
1248    #[allow(unused_variables)]
1249    fn compute_size(&self) -> u32 {
1250        let mut my_size = 0;
1251        if !self.set_json.is_empty() {
1252            my_size += ::protobuf::rt::bytes_size(1, &self.set_json);
1253        }
1254        if !self.delete_json.is_empty() {
1255            my_size += ::protobuf::rt::bytes_size(2, &self.delete_json);
1256        }
1257        if !self.set_nquads.is_empty() {
1258            my_size += ::protobuf::rt::bytes_size(3, &self.set_nquads);
1259        }
1260        if !self.del_nquads.is_empty() {
1261            my_size += ::protobuf::rt::bytes_size(4, &self.del_nquads);
1262        }
1263        for value in &self.set {
1264            let len = value.compute_size();
1265            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
1266        };
1267        for value in &self.del {
1268            let len = value.compute_size();
1269            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
1270        };
1271        if !self.cond.is_empty() {
1272            my_size += ::protobuf::rt::string_size(9, &self.cond);
1273        }
1274        if self.commit_now != false {
1275            my_size += 2;
1276        }
1277        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1278        self.cached_size.set(my_size);
1279        my_size
1280    }
1281
1282    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1283        if !self.set_json.is_empty() {
1284            os.write_bytes(1, &self.set_json)?;
1285        }
1286        if !self.delete_json.is_empty() {
1287            os.write_bytes(2, &self.delete_json)?;
1288        }
1289        if !self.set_nquads.is_empty() {
1290            os.write_bytes(3, &self.set_nquads)?;
1291        }
1292        if !self.del_nquads.is_empty() {
1293            os.write_bytes(4, &self.del_nquads)?;
1294        }
1295        for v in &self.set {
1296            os.write_tag(5, ::protobuf::wire_format::WireTypeLengthDelimited)?;
1297            os.write_raw_varint32(v.get_cached_size())?;
1298            v.write_to_with_cached_sizes(os)?;
1299        };
1300        for v in &self.del {
1301            os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?;
1302            os.write_raw_varint32(v.get_cached_size())?;
1303            v.write_to_with_cached_sizes(os)?;
1304        };
1305        if !self.cond.is_empty() {
1306            os.write_string(9, &self.cond)?;
1307        }
1308        if self.commit_now != false {
1309            os.write_bool(14, self.commit_now)?;
1310        }
1311        os.write_unknown_fields(self.get_unknown_fields())?;
1312        ::std::result::Result::Ok(())
1313    }
1314
1315    fn get_cached_size(&self) -> u32 {
1316        self.cached_size.get()
1317    }
1318
1319    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1320        &self.unknown_fields
1321    }
1322
1323    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1324        &mut self.unknown_fields
1325    }
1326
1327    fn as_any(&self) -> &dyn (::std::any::Any) {
1328        self as &dyn (::std::any::Any)
1329    }
1330    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1331        self as &mut dyn (::std::any::Any)
1332    }
1333    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1334        self
1335    }
1336
1337    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1338        Self::descriptor_static()
1339    }
1340
1341    fn new() -> Mutation {
1342        Mutation::new()
1343    }
1344
1345    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1346        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
1347            lock: ::protobuf::lazy::ONCE_INIT,
1348            ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
1349        };
1350        unsafe {
1351            descriptor.get(|| {
1352                let mut fields = ::std::vec::Vec::new();
1353                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
1354                    "set_json",
1355                    |m: &Mutation| { &m.set_json },
1356                    |m: &mut Mutation| { &mut m.set_json },
1357                ));
1358                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
1359                    "delete_json",
1360                    |m: &Mutation| { &m.delete_json },
1361                    |m: &mut Mutation| { &mut m.delete_json },
1362                ));
1363                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
1364                    "set_nquads",
1365                    |m: &Mutation| { &m.set_nquads },
1366                    |m: &mut Mutation| { &mut m.set_nquads },
1367                ));
1368                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
1369                    "del_nquads",
1370                    |m: &Mutation| { &m.del_nquads },
1371                    |m: &mut Mutation| { &mut m.del_nquads },
1372                ));
1373                fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<NQuad>>(
1374                    "set",
1375                    |m: &Mutation| { &m.set },
1376                    |m: &mut Mutation| { &mut m.set },
1377                ));
1378                fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<NQuad>>(
1379                    "del",
1380                    |m: &Mutation| { &m.del },
1381                    |m: &mut Mutation| { &mut m.del },
1382                ));
1383                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1384                    "cond",
1385                    |m: &Mutation| { &m.cond },
1386                    |m: &mut Mutation| { &mut m.cond },
1387                ));
1388                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
1389                    "commit_now",
1390                    |m: &Mutation| { &m.commit_now },
1391                    |m: &mut Mutation| { &mut m.commit_now },
1392                ));
1393                ::protobuf::reflect::MessageDescriptor::new::<Mutation>(
1394                    "Mutation",
1395                    fields,
1396                    file_descriptor_proto()
1397                )
1398            })
1399        }
1400    }
1401
1402    fn default_instance() -> &'static Mutation {
1403        static mut instance: ::protobuf::lazy::Lazy<Mutation> = ::protobuf::lazy::Lazy {
1404            lock: ::protobuf::lazy::ONCE_INIT,
1405            ptr: 0 as *const Mutation,
1406        };
1407        unsafe {
1408            instance.get(Mutation::new)
1409        }
1410    }
1411}
1412
1413impl ::protobuf::Clear for Mutation {
1414    fn clear(&mut self) {
1415        self.set_json.clear();
1416        self.delete_json.clear();
1417        self.set_nquads.clear();
1418        self.del_nquads.clear();
1419        self.set.clear();
1420        self.del.clear();
1421        self.cond.clear();
1422        self.commit_now = false;
1423        self.unknown_fields.clear();
1424    }
1425}
1426
1427impl ::std::fmt::Debug for Mutation {
1428    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1429        ::protobuf::text_format::fmt(self, f)
1430    }
1431}
1432
1433impl ::protobuf::reflect::ProtobufValue for Mutation {
1434    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
1435        ::protobuf::reflect::ProtobufValueRef::Message(self)
1436    }
1437}
1438
1439#[derive(PartialEq,Clone,Default)]
1440pub struct Operation {
1441    // message fields
1442    pub schema: ::std::string::String,
1443    pub drop_attr: ::std::string::String,
1444    pub drop_all: bool,
1445    pub drop_op: Operation_DropOp,
1446    pub drop_value: ::std::string::String,
1447    // special fields
1448    pub unknown_fields: ::protobuf::UnknownFields,
1449    pub cached_size: ::protobuf::CachedSize,
1450}
1451
1452impl<'a> ::std::default::Default for &'a Operation {
1453    fn default() -> &'a Operation {
1454        <Operation as ::protobuf::Message>::default_instance()
1455    }
1456}
1457
1458impl Operation {
1459    pub fn new() -> Operation {
1460        ::std::default::Default::default()
1461    }
1462
1463    // string schema = 1;
1464
1465
1466    pub fn get_schema(&self) -> &str {
1467        &self.schema
1468    }
1469    pub fn clear_schema(&mut self) {
1470        self.schema.clear();
1471    }
1472
1473    // Param is passed by value, moved
1474    pub fn set_schema(&mut self, v: ::std::string::String) {
1475        self.schema = v;
1476    }
1477
1478    // Mutable pointer to the field.
1479    // If field is not initialized, it is initialized with default value first.
1480    pub fn mut_schema(&mut self) -> &mut ::std::string::String {
1481        &mut self.schema
1482    }
1483
1484    // Take field
1485    pub fn take_schema(&mut self) -> ::std::string::String {
1486        ::std::mem::replace(&mut self.schema, ::std::string::String::new())
1487    }
1488
1489    // string drop_attr = 2;
1490
1491
1492    pub fn get_drop_attr(&self) -> &str {
1493        &self.drop_attr
1494    }
1495    pub fn clear_drop_attr(&mut self) {
1496        self.drop_attr.clear();
1497    }
1498
1499    // Param is passed by value, moved
1500    pub fn set_drop_attr(&mut self, v: ::std::string::String) {
1501        self.drop_attr = v;
1502    }
1503
1504    // Mutable pointer to the field.
1505    // If field is not initialized, it is initialized with default value first.
1506    pub fn mut_drop_attr(&mut self) -> &mut ::std::string::String {
1507        &mut self.drop_attr
1508    }
1509
1510    // Take field
1511    pub fn take_drop_attr(&mut self) -> ::std::string::String {
1512        ::std::mem::replace(&mut self.drop_attr, ::std::string::String::new())
1513    }
1514
1515    // bool drop_all = 3;
1516
1517
1518    pub fn get_drop_all(&self) -> bool {
1519        self.drop_all
1520    }
1521    pub fn clear_drop_all(&mut self) {
1522        self.drop_all = false;
1523    }
1524
1525    // Param is passed by value, moved
1526    pub fn set_drop_all(&mut self, v: bool) {
1527        self.drop_all = v;
1528    }
1529
1530    // .api.Operation.DropOp drop_op = 4;
1531
1532
1533    pub fn get_drop_op(&self) -> Operation_DropOp {
1534        self.drop_op
1535    }
1536    pub fn clear_drop_op(&mut self) {
1537        self.drop_op = Operation_DropOp::NONE;
1538    }
1539
1540    // Param is passed by value, moved
1541    pub fn set_drop_op(&mut self, v: Operation_DropOp) {
1542        self.drop_op = v;
1543    }
1544
1545    // string drop_value = 5;
1546
1547
1548    pub fn get_drop_value(&self) -> &str {
1549        &self.drop_value
1550    }
1551    pub fn clear_drop_value(&mut self) {
1552        self.drop_value.clear();
1553    }
1554
1555    // Param is passed by value, moved
1556    pub fn set_drop_value(&mut self, v: ::std::string::String) {
1557        self.drop_value = v;
1558    }
1559
1560    // Mutable pointer to the field.
1561    // If field is not initialized, it is initialized with default value first.
1562    pub fn mut_drop_value(&mut self) -> &mut ::std::string::String {
1563        &mut self.drop_value
1564    }
1565
1566    // Take field
1567    pub fn take_drop_value(&mut self) -> ::std::string::String {
1568        ::std::mem::replace(&mut self.drop_value, ::std::string::String::new())
1569    }
1570}
1571
1572impl ::protobuf::Message for Operation {
1573    fn is_initialized(&self) -> bool {
1574        true
1575    }
1576
1577    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1578        while !is.eof()? {
1579            let (field_number, wire_type) = is.read_tag_unpack()?;
1580            match field_number {
1581                1 => {
1582                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.schema)?;
1583                },
1584                2 => {
1585                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.drop_attr)?;
1586                },
1587                3 => {
1588                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
1589                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
1590                    }
1591                    let tmp = is.read_bool()?;
1592                    self.drop_all = tmp;
1593                },
1594                4 => {
1595                    ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.drop_op, 4, &mut self.unknown_fields)?
1596                },
1597                5 => {
1598                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.drop_value)?;
1599                },
1600                _ => {
1601                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1602                },
1603            };
1604        }
1605        ::std::result::Result::Ok(())
1606    }
1607
1608    // Compute sizes of nested messages
1609    #[allow(unused_variables)]
1610    fn compute_size(&self) -> u32 {
1611        let mut my_size = 0;
1612        if !self.schema.is_empty() {
1613            my_size += ::protobuf::rt::string_size(1, &self.schema);
1614        }
1615        if !self.drop_attr.is_empty() {
1616            my_size += ::protobuf::rt::string_size(2, &self.drop_attr);
1617        }
1618        if self.drop_all != false {
1619            my_size += 2;
1620        }
1621        if self.drop_op != Operation_DropOp::NONE {
1622            my_size += ::protobuf::rt::enum_size(4, self.drop_op);
1623        }
1624        if !self.drop_value.is_empty() {
1625            my_size += ::protobuf::rt::string_size(5, &self.drop_value);
1626        }
1627        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1628        self.cached_size.set(my_size);
1629        my_size
1630    }
1631
1632    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1633        if !self.schema.is_empty() {
1634            os.write_string(1, &self.schema)?;
1635        }
1636        if !self.drop_attr.is_empty() {
1637            os.write_string(2, &self.drop_attr)?;
1638        }
1639        if self.drop_all != false {
1640            os.write_bool(3, self.drop_all)?;
1641        }
1642        if self.drop_op != Operation_DropOp::NONE {
1643            os.write_enum(4, self.drop_op.value())?;
1644        }
1645        if !self.drop_value.is_empty() {
1646            os.write_string(5, &self.drop_value)?;
1647        }
1648        os.write_unknown_fields(self.get_unknown_fields())?;
1649        ::std::result::Result::Ok(())
1650    }
1651
1652    fn get_cached_size(&self) -> u32 {
1653        self.cached_size.get()
1654    }
1655
1656    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1657        &self.unknown_fields
1658    }
1659
1660    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1661        &mut self.unknown_fields
1662    }
1663
1664    fn as_any(&self) -> &dyn (::std::any::Any) {
1665        self as &dyn (::std::any::Any)
1666    }
1667    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1668        self as &mut dyn (::std::any::Any)
1669    }
1670    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1671        self
1672    }
1673
1674    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1675        Self::descriptor_static()
1676    }
1677
1678    fn new() -> Operation {
1679        Operation::new()
1680    }
1681
1682    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1683        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
1684            lock: ::protobuf::lazy::ONCE_INIT,
1685            ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
1686        };
1687        unsafe {
1688            descriptor.get(|| {
1689                let mut fields = ::std::vec::Vec::new();
1690                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1691                    "schema",
1692                    |m: &Operation| { &m.schema },
1693                    |m: &mut Operation| { &mut m.schema },
1694                ));
1695                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1696                    "drop_attr",
1697                    |m: &Operation| { &m.drop_attr },
1698                    |m: &mut Operation| { &mut m.drop_attr },
1699                ));
1700                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
1701                    "drop_all",
1702                    |m: &Operation| { &m.drop_all },
1703                    |m: &mut Operation| { &mut m.drop_all },
1704                ));
1705                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Operation_DropOp>>(
1706                    "drop_op",
1707                    |m: &Operation| { &m.drop_op },
1708                    |m: &mut Operation| { &mut m.drop_op },
1709                ));
1710                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
1711                    "drop_value",
1712                    |m: &Operation| { &m.drop_value },
1713                    |m: &mut Operation| { &mut m.drop_value },
1714                ));
1715                ::protobuf::reflect::MessageDescriptor::new::<Operation>(
1716                    "Operation",
1717                    fields,
1718                    file_descriptor_proto()
1719                )
1720            })
1721        }
1722    }
1723
1724    fn default_instance() -> &'static Operation {
1725        static mut instance: ::protobuf::lazy::Lazy<Operation> = ::protobuf::lazy::Lazy {
1726            lock: ::protobuf::lazy::ONCE_INIT,
1727            ptr: 0 as *const Operation,
1728        };
1729        unsafe {
1730            instance.get(Operation::new)
1731        }
1732    }
1733}
1734
1735impl ::protobuf::Clear for Operation {
1736    fn clear(&mut self) {
1737        self.schema.clear();
1738        self.drop_attr.clear();
1739        self.drop_all = false;
1740        self.drop_op = Operation_DropOp::NONE;
1741        self.drop_value.clear();
1742        self.unknown_fields.clear();
1743    }
1744}
1745
1746impl ::std::fmt::Debug for Operation {
1747    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1748        ::protobuf::text_format::fmt(self, f)
1749    }
1750}
1751
1752impl ::protobuf::reflect::ProtobufValue for Operation {
1753    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
1754        ::protobuf::reflect::ProtobufValueRef::Message(self)
1755    }
1756}
1757
1758#[derive(Clone,PartialEq,Eq,Debug,Hash)]
1759pub enum Operation_DropOp {
1760    NONE = 0,
1761    ALL = 1,
1762    DATA = 2,
1763    ATTR = 3,
1764    TYPE = 4,
1765}
1766
1767impl ::protobuf::ProtobufEnum for Operation_DropOp {
1768    fn value(&self) -> i32 {
1769        *self as i32
1770    }
1771
1772    fn from_i32(value: i32) -> ::std::option::Option<Operation_DropOp> {
1773        match value {
1774            0 => ::std::option::Option::Some(Operation_DropOp::NONE),
1775            1 => ::std::option::Option::Some(Operation_DropOp::ALL),
1776            2 => ::std::option::Option::Some(Operation_DropOp::DATA),
1777            3 => ::std::option::Option::Some(Operation_DropOp::ATTR),
1778            4 => ::std::option::Option::Some(Operation_DropOp::TYPE),
1779            _ => ::std::option::Option::None
1780        }
1781    }
1782
1783    fn values() -> &'static [Self] {
1784        static values: &'static [Operation_DropOp] = &[
1785            Operation_DropOp::NONE,
1786            Operation_DropOp::ALL,
1787            Operation_DropOp::DATA,
1788            Operation_DropOp::ATTR,
1789            Operation_DropOp::TYPE,
1790        ];
1791        values
1792    }
1793
1794    fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
1795        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
1796            lock: ::protobuf::lazy::ONCE_INIT,
1797            ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
1798        };
1799        unsafe {
1800            descriptor.get(|| {
1801                ::protobuf::reflect::EnumDescriptor::new("Operation_DropOp", file_descriptor_proto())
1802            })
1803        }
1804    }
1805}
1806
1807impl ::std::marker::Copy for Operation_DropOp {
1808}
1809
1810impl ::std::default::Default for Operation_DropOp {
1811    fn default() -> Self {
1812        Operation_DropOp::NONE
1813    }
1814}
1815
1816impl ::protobuf::reflect::ProtobufValue for Operation_DropOp {
1817    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
1818        ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
1819    }
1820}
1821
1822#[derive(PartialEq,Clone,Default)]
1823pub struct Payload {
1824    // message fields
1825    pub Data: ::std::vec::Vec<u8>,
1826    // special fields
1827    pub unknown_fields: ::protobuf::UnknownFields,
1828    pub cached_size: ::protobuf::CachedSize,
1829}
1830
1831impl<'a> ::std::default::Default for &'a Payload {
1832    fn default() -> &'a Payload {
1833        <Payload as ::protobuf::Message>::default_instance()
1834    }
1835}
1836
1837impl Payload {
1838    pub fn new() -> Payload {
1839        ::std::default::Default::default()
1840    }
1841
1842    // bytes Data = 1;
1843
1844
1845    pub fn get_Data(&self) -> &[u8] {
1846        &self.Data
1847    }
1848    pub fn clear_Data(&mut self) {
1849        self.Data.clear();
1850    }
1851
1852    // Param is passed by value, moved
1853    pub fn set_Data(&mut self, v: ::std::vec::Vec<u8>) {
1854        self.Data = v;
1855    }
1856
1857    // Mutable pointer to the field.
1858    // If field is not initialized, it is initialized with default value first.
1859    pub fn mut_Data(&mut self) -> &mut ::std::vec::Vec<u8> {
1860        &mut self.Data
1861    }
1862
1863    // Take field
1864    pub fn take_Data(&mut self) -> ::std::vec::Vec<u8> {
1865        ::std::mem::replace(&mut self.Data, ::std::vec::Vec::new())
1866    }
1867}
1868
1869impl ::protobuf::Message for Payload {
1870    fn is_initialized(&self) -> bool {
1871        true
1872    }
1873
1874    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1875        while !is.eof()? {
1876            let (field_number, wire_type) = is.read_tag_unpack()?;
1877            match field_number {
1878                1 => {
1879                    ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.Data)?;
1880                },
1881                _ => {
1882                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
1883                },
1884            };
1885        }
1886        ::std::result::Result::Ok(())
1887    }
1888
1889    // Compute sizes of nested messages
1890    #[allow(unused_variables)]
1891    fn compute_size(&self) -> u32 {
1892        let mut my_size = 0;
1893        if !self.Data.is_empty() {
1894            my_size += ::protobuf::rt::bytes_size(1, &self.Data);
1895        }
1896        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
1897        self.cached_size.set(my_size);
1898        my_size
1899    }
1900
1901    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
1902        if !self.Data.is_empty() {
1903            os.write_bytes(1, &self.Data)?;
1904        }
1905        os.write_unknown_fields(self.get_unknown_fields())?;
1906        ::std::result::Result::Ok(())
1907    }
1908
1909    fn get_cached_size(&self) -> u32 {
1910        self.cached_size.get()
1911    }
1912
1913    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
1914        &self.unknown_fields
1915    }
1916
1917    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
1918        &mut self.unknown_fields
1919    }
1920
1921    fn as_any(&self) -> &dyn (::std::any::Any) {
1922        self as &dyn (::std::any::Any)
1923    }
1924    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
1925        self as &mut dyn (::std::any::Any)
1926    }
1927    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
1928        self
1929    }
1930
1931    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
1932        Self::descriptor_static()
1933    }
1934
1935    fn new() -> Payload {
1936        Payload::new()
1937    }
1938
1939    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
1940        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
1941            lock: ::protobuf::lazy::ONCE_INIT,
1942            ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
1943        };
1944        unsafe {
1945            descriptor.get(|| {
1946                let mut fields = ::std::vec::Vec::new();
1947                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
1948                    "Data",
1949                    |m: &Payload| { &m.Data },
1950                    |m: &mut Payload| { &mut m.Data },
1951                ));
1952                ::protobuf::reflect::MessageDescriptor::new::<Payload>(
1953                    "Payload",
1954                    fields,
1955                    file_descriptor_proto()
1956                )
1957            })
1958        }
1959    }
1960
1961    fn default_instance() -> &'static Payload {
1962        static mut instance: ::protobuf::lazy::Lazy<Payload> = ::protobuf::lazy::Lazy {
1963            lock: ::protobuf::lazy::ONCE_INIT,
1964            ptr: 0 as *const Payload,
1965        };
1966        unsafe {
1967            instance.get(Payload::new)
1968        }
1969    }
1970}
1971
1972impl ::protobuf::Clear for Payload {
1973    fn clear(&mut self) {
1974        self.Data.clear();
1975        self.unknown_fields.clear();
1976    }
1977}
1978
1979impl ::std::fmt::Debug for Payload {
1980    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1981        ::protobuf::text_format::fmt(self, f)
1982    }
1983}
1984
1985impl ::protobuf::reflect::ProtobufValue for Payload {
1986    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
1987        ::protobuf::reflect::ProtobufValueRef::Message(self)
1988    }
1989}
1990
1991#[derive(PartialEq,Clone,Default)]
1992pub struct TxnContext {
1993    // message fields
1994    pub start_ts: u64,
1995    pub commit_ts: u64,
1996    pub aborted: bool,
1997    pub keys: ::protobuf::RepeatedField<::std::string::String>,
1998    pub preds: ::protobuf::RepeatedField<::std::string::String>,
1999    // special fields
2000    pub unknown_fields: ::protobuf::UnknownFields,
2001    pub cached_size: ::protobuf::CachedSize,
2002}
2003
2004impl<'a> ::std::default::Default for &'a TxnContext {
2005    fn default() -> &'a TxnContext {
2006        <TxnContext as ::protobuf::Message>::default_instance()
2007    }
2008}
2009
2010impl TxnContext {
2011    pub fn new() -> TxnContext {
2012        ::std::default::Default::default()
2013    }
2014
2015    // uint64 start_ts = 1;
2016
2017
2018    pub fn get_start_ts(&self) -> u64 {
2019        self.start_ts
2020    }
2021    pub fn clear_start_ts(&mut self) {
2022        self.start_ts = 0;
2023    }
2024
2025    // Param is passed by value, moved
2026    pub fn set_start_ts(&mut self, v: u64) {
2027        self.start_ts = v;
2028    }
2029
2030    // uint64 commit_ts = 2;
2031
2032
2033    pub fn get_commit_ts(&self) -> u64 {
2034        self.commit_ts
2035    }
2036    pub fn clear_commit_ts(&mut self) {
2037        self.commit_ts = 0;
2038    }
2039
2040    // Param is passed by value, moved
2041    pub fn set_commit_ts(&mut self, v: u64) {
2042        self.commit_ts = v;
2043    }
2044
2045    // bool aborted = 3;
2046
2047
2048    pub fn get_aborted(&self) -> bool {
2049        self.aborted
2050    }
2051    pub fn clear_aborted(&mut self) {
2052        self.aborted = false;
2053    }
2054
2055    // Param is passed by value, moved
2056    pub fn set_aborted(&mut self, v: bool) {
2057        self.aborted = v;
2058    }
2059
2060    // repeated string keys = 4;
2061
2062
2063    pub fn get_keys(&self) -> &[::std::string::String] {
2064        &self.keys
2065    }
2066    pub fn clear_keys(&mut self) {
2067        self.keys.clear();
2068    }
2069
2070    // Param is passed by value, moved
2071    pub fn set_keys(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
2072        self.keys = v;
2073    }
2074
2075    // Mutable pointer to the field.
2076    pub fn mut_keys(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
2077        &mut self.keys
2078    }
2079
2080    // Take field
2081    pub fn take_keys(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
2082        ::std::mem::replace(&mut self.keys, ::protobuf::RepeatedField::new())
2083    }
2084
2085    // repeated string preds = 5;
2086
2087
2088    pub fn get_preds(&self) -> &[::std::string::String] {
2089        &self.preds
2090    }
2091    pub fn clear_preds(&mut self) {
2092        self.preds.clear();
2093    }
2094
2095    // Param is passed by value, moved
2096    pub fn set_preds(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
2097        self.preds = v;
2098    }
2099
2100    // Mutable pointer to the field.
2101    pub fn mut_preds(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
2102        &mut self.preds
2103    }
2104
2105    // Take field
2106    pub fn take_preds(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
2107        ::std::mem::replace(&mut self.preds, ::protobuf::RepeatedField::new())
2108    }
2109}
2110
2111impl ::protobuf::Message for TxnContext {
2112    fn is_initialized(&self) -> bool {
2113        true
2114    }
2115
2116    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2117        while !is.eof()? {
2118            let (field_number, wire_type) = is.read_tag_unpack()?;
2119            match field_number {
2120                1 => {
2121                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
2122                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
2123                    }
2124                    let tmp = is.read_uint64()?;
2125                    self.start_ts = tmp;
2126                },
2127                2 => {
2128                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
2129                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
2130                    }
2131                    let tmp = is.read_uint64()?;
2132                    self.commit_ts = tmp;
2133                },
2134                3 => {
2135                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
2136                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
2137                    }
2138                    let tmp = is.read_bool()?;
2139                    self.aborted = tmp;
2140                },
2141                4 => {
2142                    ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.keys)?;
2143                },
2144                5 => {
2145                    ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.preds)?;
2146                },
2147                _ => {
2148                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
2149                },
2150            };
2151        }
2152        ::std::result::Result::Ok(())
2153    }
2154
2155    // Compute sizes of nested messages
2156    #[allow(unused_variables)]
2157    fn compute_size(&self) -> u32 {
2158        let mut my_size = 0;
2159        if self.start_ts != 0 {
2160            my_size += ::protobuf::rt::value_size(1, self.start_ts, ::protobuf::wire_format::WireTypeVarint);
2161        }
2162        if self.commit_ts != 0 {
2163            my_size += ::protobuf::rt::value_size(2, self.commit_ts, ::protobuf::wire_format::WireTypeVarint);
2164        }
2165        if self.aborted != false {
2166            my_size += 2;
2167        }
2168        for value in &self.keys {
2169            my_size += ::protobuf::rt::string_size(4, &value);
2170        };
2171        for value in &self.preds {
2172            my_size += ::protobuf::rt::string_size(5, &value);
2173        };
2174        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
2175        self.cached_size.set(my_size);
2176        my_size
2177    }
2178
2179    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2180        if self.start_ts != 0 {
2181            os.write_uint64(1, self.start_ts)?;
2182        }
2183        if self.commit_ts != 0 {
2184            os.write_uint64(2, self.commit_ts)?;
2185        }
2186        if self.aborted != false {
2187            os.write_bool(3, self.aborted)?;
2188        }
2189        for v in &self.keys {
2190            os.write_string(4, &v)?;
2191        };
2192        for v in &self.preds {
2193            os.write_string(5, &v)?;
2194        };
2195        os.write_unknown_fields(self.get_unknown_fields())?;
2196        ::std::result::Result::Ok(())
2197    }
2198
2199    fn get_cached_size(&self) -> u32 {
2200        self.cached_size.get()
2201    }
2202
2203    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
2204        &self.unknown_fields
2205    }
2206
2207    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
2208        &mut self.unknown_fields
2209    }
2210
2211    fn as_any(&self) -> &dyn (::std::any::Any) {
2212        self as &dyn (::std::any::Any)
2213    }
2214    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
2215        self as &mut dyn (::std::any::Any)
2216    }
2217    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
2218        self
2219    }
2220
2221    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
2222        Self::descriptor_static()
2223    }
2224
2225    fn new() -> TxnContext {
2226        TxnContext::new()
2227    }
2228
2229    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
2230        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
2231            lock: ::protobuf::lazy::ONCE_INIT,
2232            ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
2233        };
2234        unsafe {
2235            descriptor.get(|| {
2236                let mut fields = ::std::vec::Vec::new();
2237                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
2238                    "start_ts",
2239                    |m: &TxnContext| { &m.start_ts },
2240                    |m: &mut TxnContext| { &mut m.start_ts },
2241                ));
2242                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
2243                    "commit_ts",
2244                    |m: &TxnContext| { &m.commit_ts },
2245                    |m: &mut TxnContext| { &mut m.commit_ts },
2246                ));
2247                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
2248                    "aborted",
2249                    |m: &TxnContext| { &m.aborted },
2250                    |m: &mut TxnContext| { &mut m.aborted },
2251                ));
2252                fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
2253                    "keys",
2254                    |m: &TxnContext| { &m.keys },
2255                    |m: &mut TxnContext| { &mut m.keys },
2256                ));
2257                fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
2258                    "preds",
2259                    |m: &TxnContext| { &m.preds },
2260                    |m: &mut TxnContext| { &mut m.preds },
2261                ));
2262                ::protobuf::reflect::MessageDescriptor::new::<TxnContext>(
2263                    "TxnContext",
2264                    fields,
2265                    file_descriptor_proto()
2266                )
2267            })
2268        }
2269    }
2270
2271    fn default_instance() -> &'static TxnContext {
2272        static mut instance: ::protobuf::lazy::Lazy<TxnContext> = ::protobuf::lazy::Lazy {
2273            lock: ::protobuf::lazy::ONCE_INIT,
2274            ptr: 0 as *const TxnContext,
2275        };
2276        unsafe {
2277            instance.get(TxnContext::new)
2278        }
2279    }
2280}
2281
2282impl ::protobuf::Clear for TxnContext {
2283    fn clear(&mut self) {
2284        self.start_ts = 0;
2285        self.commit_ts = 0;
2286        self.aborted = false;
2287        self.keys.clear();
2288        self.preds.clear();
2289        self.unknown_fields.clear();
2290    }
2291}
2292
2293impl ::std::fmt::Debug for TxnContext {
2294    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2295        ::protobuf::text_format::fmt(self, f)
2296    }
2297}
2298
2299impl ::protobuf::reflect::ProtobufValue for TxnContext {
2300    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
2301        ::protobuf::reflect::ProtobufValueRef::Message(self)
2302    }
2303}
2304
2305#[derive(PartialEq,Clone,Default)]
2306pub struct Check {
2307    // special fields
2308    pub unknown_fields: ::protobuf::UnknownFields,
2309    pub cached_size: ::protobuf::CachedSize,
2310}
2311
2312impl<'a> ::std::default::Default for &'a Check {
2313    fn default() -> &'a Check {
2314        <Check as ::protobuf::Message>::default_instance()
2315    }
2316}
2317
2318impl Check {
2319    pub fn new() -> Check {
2320        ::std::default::Default::default()
2321    }
2322}
2323
2324impl ::protobuf::Message for Check {
2325    fn is_initialized(&self) -> bool {
2326        true
2327    }
2328
2329    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2330        while !is.eof()? {
2331            let (field_number, wire_type) = is.read_tag_unpack()?;
2332            match field_number {
2333                _ => {
2334                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
2335                },
2336            };
2337        }
2338        ::std::result::Result::Ok(())
2339    }
2340
2341    // Compute sizes of nested messages
2342    #[allow(unused_variables)]
2343    fn compute_size(&self) -> u32 {
2344        let mut my_size = 0;
2345        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
2346        self.cached_size.set(my_size);
2347        my_size
2348    }
2349
2350    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2351        os.write_unknown_fields(self.get_unknown_fields())?;
2352        ::std::result::Result::Ok(())
2353    }
2354
2355    fn get_cached_size(&self) -> u32 {
2356        self.cached_size.get()
2357    }
2358
2359    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
2360        &self.unknown_fields
2361    }
2362
2363    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
2364        &mut self.unknown_fields
2365    }
2366
2367    fn as_any(&self) -> &dyn (::std::any::Any) {
2368        self as &dyn (::std::any::Any)
2369    }
2370    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
2371        self as &mut dyn (::std::any::Any)
2372    }
2373    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
2374        self
2375    }
2376
2377    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
2378        Self::descriptor_static()
2379    }
2380
2381    fn new() -> Check {
2382        Check::new()
2383    }
2384
2385    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
2386        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
2387            lock: ::protobuf::lazy::ONCE_INIT,
2388            ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
2389        };
2390        unsafe {
2391            descriptor.get(|| {
2392                let fields = ::std::vec::Vec::new();
2393                ::protobuf::reflect::MessageDescriptor::new::<Check>(
2394                    "Check",
2395                    fields,
2396                    file_descriptor_proto()
2397                )
2398            })
2399        }
2400    }
2401
2402    fn default_instance() -> &'static Check {
2403        static mut instance: ::protobuf::lazy::Lazy<Check> = ::protobuf::lazy::Lazy {
2404            lock: ::protobuf::lazy::ONCE_INIT,
2405            ptr: 0 as *const Check,
2406        };
2407        unsafe {
2408            instance.get(Check::new)
2409        }
2410    }
2411}
2412
2413impl ::protobuf::Clear for Check {
2414    fn clear(&mut self) {
2415        self.unknown_fields.clear();
2416    }
2417}
2418
2419impl ::std::fmt::Debug for Check {
2420    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2421        ::protobuf::text_format::fmt(self, f)
2422    }
2423}
2424
2425impl ::protobuf::reflect::ProtobufValue for Check {
2426    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
2427        ::protobuf::reflect::ProtobufValueRef::Message(self)
2428    }
2429}
2430
2431#[derive(PartialEq,Clone,Default)]
2432pub struct Version {
2433    // message fields
2434    pub tag: ::std::string::String,
2435    // special fields
2436    pub unknown_fields: ::protobuf::UnknownFields,
2437    pub cached_size: ::protobuf::CachedSize,
2438}
2439
2440impl<'a> ::std::default::Default for &'a Version {
2441    fn default() -> &'a Version {
2442        <Version as ::protobuf::Message>::default_instance()
2443    }
2444}
2445
2446impl Version {
2447    pub fn new() -> Version {
2448        ::std::default::Default::default()
2449    }
2450
2451    // string tag = 1;
2452
2453
2454    pub fn get_tag(&self) -> &str {
2455        &self.tag
2456    }
2457    pub fn clear_tag(&mut self) {
2458        self.tag.clear();
2459    }
2460
2461    // Param is passed by value, moved
2462    pub fn set_tag(&mut self, v: ::std::string::String) {
2463        self.tag = v;
2464    }
2465
2466    // Mutable pointer to the field.
2467    // If field is not initialized, it is initialized with default value first.
2468    pub fn mut_tag(&mut self) -> &mut ::std::string::String {
2469        &mut self.tag
2470    }
2471
2472    // Take field
2473    pub fn take_tag(&mut self) -> ::std::string::String {
2474        ::std::mem::replace(&mut self.tag, ::std::string::String::new())
2475    }
2476}
2477
2478impl ::protobuf::Message for Version {
2479    fn is_initialized(&self) -> bool {
2480        true
2481    }
2482
2483    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2484        while !is.eof()? {
2485            let (field_number, wire_type) = is.read_tag_unpack()?;
2486            match field_number {
2487                1 => {
2488                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.tag)?;
2489                },
2490                _ => {
2491                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
2492                },
2493            };
2494        }
2495        ::std::result::Result::Ok(())
2496    }
2497
2498    // Compute sizes of nested messages
2499    #[allow(unused_variables)]
2500    fn compute_size(&self) -> u32 {
2501        let mut my_size = 0;
2502        if !self.tag.is_empty() {
2503            my_size += ::protobuf::rt::string_size(1, &self.tag);
2504        }
2505        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
2506        self.cached_size.set(my_size);
2507        my_size
2508    }
2509
2510    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2511        if !self.tag.is_empty() {
2512            os.write_string(1, &self.tag)?;
2513        }
2514        os.write_unknown_fields(self.get_unknown_fields())?;
2515        ::std::result::Result::Ok(())
2516    }
2517
2518    fn get_cached_size(&self) -> u32 {
2519        self.cached_size.get()
2520    }
2521
2522    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
2523        &self.unknown_fields
2524    }
2525
2526    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
2527        &mut self.unknown_fields
2528    }
2529
2530    fn as_any(&self) -> &dyn (::std::any::Any) {
2531        self as &dyn (::std::any::Any)
2532    }
2533    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
2534        self as &mut dyn (::std::any::Any)
2535    }
2536    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
2537        self
2538    }
2539
2540    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
2541        Self::descriptor_static()
2542    }
2543
2544    fn new() -> Version {
2545        Version::new()
2546    }
2547
2548    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
2549        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
2550            lock: ::protobuf::lazy::ONCE_INIT,
2551            ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
2552        };
2553        unsafe {
2554            descriptor.get(|| {
2555                let mut fields = ::std::vec::Vec::new();
2556                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
2557                    "tag",
2558                    |m: &Version| { &m.tag },
2559                    |m: &mut Version| { &mut m.tag },
2560                ));
2561                ::protobuf::reflect::MessageDescriptor::new::<Version>(
2562                    "Version",
2563                    fields,
2564                    file_descriptor_proto()
2565                )
2566            })
2567        }
2568    }
2569
2570    fn default_instance() -> &'static Version {
2571        static mut instance: ::protobuf::lazy::Lazy<Version> = ::protobuf::lazy::Lazy {
2572            lock: ::protobuf::lazy::ONCE_INIT,
2573            ptr: 0 as *const Version,
2574        };
2575        unsafe {
2576            instance.get(Version::new)
2577        }
2578    }
2579}
2580
2581impl ::protobuf::Clear for Version {
2582    fn clear(&mut self) {
2583        self.tag.clear();
2584        self.unknown_fields.clear();
2585    }
2586}
2587
2588impl ::std::fmt::Debug for Version {
2589    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2590        ::protobuf::text_format::fmt(self, f)
2591    }
2592}
2593
2594impl ::protobuf::reflect::ProtobufValue for Version {
2595    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
2596        ::protobuf::reflect::ProtobufValueRef::Message(self)
2597    }
2598}
2599
2600#[derive(PartialEq,Clone,Default)]
2601pub struct Latency {
2602    // message fields
2603    pub parsing_ns: u64,
2604    pub processing_ns: u64,
2605    pub encoding_ns: u64,
2606    pub assign_timestamp_ns: u64,
2607    pub total_ns: u64,
2608    // special fields
2609    pub unknown_fields: ::protobuf::UnknownFields,
2610    pub cached_size: ::protobuf::CachedSize,
2611}
2612
2613impl<'a> ::std::default::Default for &'a Latency {
2614    fn default() -> &'a Latency {
2615        <Latency as ::protobuf::Message>::default_instance()
2616    }
2617}
2618
2619impl Latency {
2620    pub fn new() -> Latency {
2621        ::std::default::Default::default()
2622    }
2623
2624    // uint64 parsing_ns = 1;
2625
2626
2627    pub fn get_parsing_ns(&self) -> u64 {
2628        self.parsing_ns
2629    }
2630    pub fn clear_parsing_ns(&mut self) {
2631        self.parsing_ns = 0;
2632    }
2633
2634    // Param is passed by value, moved
2635    pub fn set_parsing_ns(&mut self, v: u64) {
2636        self.parsing_ns = v;
2637    }
2638
2639    // uint64 processing_ns = 2;
2640
2641
2642    pub fn get_processing_ns(&self) -> u64 {
2643        self.processing_ns
2644    }
2645    pub fn clear_processing_ns(&mut self) {
2646        self.processing_ns = 0;
2647    }
2648
2649    // Param is passed by value, moved
2650    pub fn set_processing_ns(&mut self, v: u64) {
2651        self.processing_ns = v;
2652    }
2653
2654    // uint64 encoding_ns = 3;
2655
2656
2657    pub fn get_encoding_ns(&self) -> u64 {
2658        self.encoding_ns
2659    }
2660    pub fn clear_encoding_ns(&mut self) {
2661        self.encoding_ns = 0;
2662    }
2663
2664    // Param is passed by value, moved
2665    pub fn set_encoding_ns(&mut self, v: u64) {
2666        self.encoding_ns = v;
2667    }
2668
2669    // uint64 assign_timestamp_ns = 4;
2670
2671
2672    pub fn get_assign_timestamp_ns(&self) -> u64 {
2673        self.assign_timestamp_ns
2674    }
2675    pub fn clear_assign_timestamp_ns(&mut self) {
2676        self.assign_timestamp_ns = 0;
2677    }
2678
2679    // Param is passed by value, moved
2680    pub fn set_assign_timestamp_ns(&mut self, v: u64) {
2681        self.assign_timestamp_ns = v;
2682    }
2683
2684    // uint64 total_ns = 5;
2685
2686
2687    pub fn get_total_ns(&self) -> u64 {
2688        self.total_ns
2689    }
2690    pub fn clear_total_ns(&mut self) {
2691        self.total_ns = 0;
2692    }
2693
2694    // Param is passed by value, moved
2695    pub fn set_total_ns(&mut self, v: u64) {
2696        self.total_ns = v;
2697    }
2698}
2699
2700impl ::protobuf::Message for Latency {
2701    fn is_initialized(&self) -> bool {
2702        true
2703    }
2704
2705    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2706        while !is.eof()? {
2707            let (field_number, wire_type) = is.read_tag_unpack()?;
2708            match field_number {
2709                1 => {
2710                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
2711                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
2712                    }
2713                    let tmp = is.read_uint64()?;
2714                    self.parsing_ns = tmp;
2715                },
2716                2 => {
2717                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
2718                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
2719                    }
2720                    let tmp = is.read_uint64()?;
2721                    self.processing_ns = tmp;
2722                },
2723                3 => {
2724                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
2725                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
2726                    }
2727                    let tmp = is.read_uint64()?;
2728                    self.encoding_ns = tmp;
2729                },
2730                4 => {
2731                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
2732                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
2733                    }
2734                    let tmp = is.read_uint64()?;
2735                    self.assign_timestamp_ns = tmp;
2736                },
2737                5 => {
2738                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
2739                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
2740                    }
2741                    let tmp = is.read_uint64()?;
2742                    self.total_ns = tmp;
2743                },
2744                _ => {
2745                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
2746                },
2747            };
2748        }
2749        ::std::result::Result::Ok(())
2750    }
2751
2752    // Compute sizes of nested messages
2753    #[allow(unused_variables)]
2754    fn compute_size(&self) -> u32 {
2755        let mut my_size = 0;
2756        if self.parsing_ns != 0 {
2757            my_size += ::protobuf::rt::value_size(1, self.parsing_ns, ::protobuf::wire_format::WireTypeVarint);
2758        }
2759        if self.processing_ns != 0 {
2760            my_size += ::protobuf::rt::value_size(2, self.processing_ns, ::protobuf::wire_format::WireTypeVarint);
2761        }
2762        if self.encoding_ns != 0 {
2763            my_size += ::protobuf::rt::value_size(3, self.encoding_ns, ::protobuf::wire_format::WireTypeVarint);
2764        }
2765        if self.assign_timestamp_ns != 0 {
2766            my_size += ::protobuf::rt::value_size(4, self.assign_timestamp_ns, ::protobuf::wire_format::WireTypeVarint);
2767        }
2768        if self.total_ns != 0 {
2769            my_size += ::protobuf::rt::value_size(5, self.total_ns, ::protobuf::wire_format::WireTypeVarint);
2770        }
2771        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
2772        self.cached_size.set(my_size);
2773        my_size
2774    }
2775
2776    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2777        if self.parsing_ns != 0 {
2778            os.write_uint64(1, self.parsing_ns)?;
2779        }
2780        if self.processing_ns != 0 {
2781            os.write_uint64(2, self.processing_ns)?;
2782        }
2783        if self.encoding_ns != 0 {
2784            os.write_uint64(3, self.encoding_ns)?;
2785        }
2786        if self.assign_timestamp_ns != 0 {
2787            os.write_uint64(4, self.assign_timestamp_ns)?;
2788        }
2789        if self.total_ns != 0 {
2790            os.write_uint64(5, self.total_ns)?;
2791        }
2792        os.write_unknown_fields(self.get_unknown_fields())?;
2793        ::std::result::Result::Ok(())
2794    }
2795
2796    fn get_cached_size(&self) -> u32 {
2797        self.cached_size.get()
2798    }
2799
2800    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
2801        &self.unknown_fields
2802    }
2803
2804    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
2805        &mut self.unknown_fields
2806    }
2807
2808    fn as_any(&self) -> &dyn (::std::any::Any) {
2809        self as &dyn (::std::any::Any)
2810    }
2811    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
2812        self as &mut dyn (::std::any::Any)
2813    }
2814    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
2815        self
2816    }
2817
2818    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
2819        Self::descriptor_static()
2820    }
2821
2822    fn new() -> Latency {
2823        Latency::new()
2824    }
2825
2826    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
2827        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
2828            lock: ::protobuf::lazy::ONCE_INIT,
2829            ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
2830        };
2831        unsafe {
2832            descriptor.get(|| {
2833                let mut fields = ::std::vec::Vec::new();
2834                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
2835                    "parsing_ns",
2836                    |m: &Latency| { &m.parsing_ns },
2837                    |m: &mut Latency| { &mut m.parsing_ns },
2838                ));
2839                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
2840                    "processing_ns",
2841                    |m: &Latency| { &m.processing_ns },
2842                    |m: &mut Latency| { &mut m.processing_ns },
2843                ));
2844                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
2845                    "encoding_ns",
2846                    |m: &Latency| { &m.encoding_ns },
2847                    |m: &mut Latency| { &mut m.encoding_ns },
2848                ));
2849                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
2850                    "assign_timestamp_ns",
2851                    |m: &Latency| { &m.assign_timestamp_ns },
2852                    |m: &mut Latency| { &mut m.assign_timestamp_ns },
2853                ));
2854                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeUint64>(
2855                    "total_ns",
2856                    |m: &Latency| { &m.total_ns },
2857                    |m: &mut Latency| { &mut m.total_ns },
2858                ));
2859                ::protobuf::reflect::MessageDescriptor::new::<Latency>(
2860                    "Latency",
2861                    fields,
2862                    file_descriptor_proto()
2863                )
2864            })
2865        }
2866    }
2867
2868    fn default_instance() -> &'static Latency {
2869        static mut instance: ::protobuf::lazy::Lazy<Latency> = ::protobuf::lazy::Lazy {
2870            lock: ::protobuf::lazy::ONCE_INIT,
2871            ptr: 0 as *const Latency,
2872        };
2873        unsafe {
2874            instance.get(Latency::new)
2875        }
2876    }
2877}
2878
2879impl ::protobuf::Clear for Latency {
2880    fn clear(&mut self) {
2881        self.parsing_ns = 0;
2882        self.processing_ns = 0;
2883        self.encoding_ns = 0;
2884        self.assign_timestamp_ns = 0;
2885        self.total_ns = 0;
2886        self.unknown_fields.clear();
2887    }
2888}
2889
2890impl ::std::fmt::Debug for Latency {
2891    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2892        ::protobuf::text_format::fmt(self, f)
2893    }
2894}
2895
2896impl ::protobuf::reflect::ProtobufValue for Latency {
2897    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
2898        ::protobuf::reflect::ProtobufValueRef::Message(self)
2899    }
2900}
2901
2902#[derive(PartialEq,Clone,Default)]
2903pub struct Metrics {
2904    // message fields
2905    pub num_uids: ::std::collections::HashMap<::std::string::String, u64>,
2906    // special fields
2907    pub unknown_fields: ::protobuf::UnknownFields,
2908    pub cached_size: ::protobuf::CachedSize,
2909}
2910
2911impl<'a> ::std::default::Default for &'a Metrics {
2912    fn default() -> &'a Metrics {
2913        <Metrics as ::protobuf::Message>::default_instance()
2914    }
2915}
2916
2917impl Metrics {
2918    pub fn new() -> Metrics {
2919        ::std::default::Default::default()
2920    }
2921
2922    // repeated .api.Metrics.NumUidsEntry num_uids = 1;
2923
2924
2925    pub fn get_num_uids(&self) -> &::std::collections::HashMap<::std::string::String, u64> {
2926        &self.num_uids
2927    }
2928    pub fn clear_num_uids(&mut self) {
2929        self.num_uids.clear();
2930    }
2931
2932    // Param is passed by value, moved
2933    pub fn set_num_uids(&mut self, v: ::std::collections::HashMap<::std::string::String, u64>) {
2934        self.num_uids = v;
2935    }
2936
2937    // Mutable pointer to the field.
2938    pub fn mut_num_uids(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, u64> {
2939        &mut self.num_uids
2940    }
2941
2942    // Take field
2943    pub fn take_num_uids(&mut self) -> ::std::collections::HashMap<::std::string::String, u64> {
2944        ::std::mem::replace(&mut self.num_uids, ::std::collections::HashMap::new())
2945    }
2946}
2947
2948impl ::protobuf::Message for Metrics {
2949    fn is_initialized(&self) -> bool {
2950        true
2951    }
2952
2953    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2954        while !is.eof()? {
2955            let (field_number, wire_type) = is.read_tag_unpack()?;
2956            match field_number {
2957                1 => {
2958                    ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeUint64>(wire_type, is, &mut self.num_uids)?;
2959                },
2960                _ => {
2961                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
2962                },
2963            };
2964        }
2965        ::std::result::Result::Ok(())
2966    }
2967
2968    // Compute sizes of nested messages
2969    #[allow(unused_variables)]
2970    fn compute_size(&self) -> u32 {
2971        let mut my_size = 0;
2972        my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeUint64>(1, &self.num_uids);
2973        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
2974        self.cached_size.set(my_size);
2975        my_size
2976    }
2977
2978    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
2979        ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeUint64>(1, &self.num_uids, os)?;
2980        os.write_unknown_fields(self.get_unknown_fields())?;
2981        ::std::result::Result::Ok(())
2982    }
2983
2984    fn get_cached_size(&self) -> u32 {
2985        self.cached_size.get()
2986    }
2987
2988    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
2989        &self.unknown_fields
2990    }
2991
2992    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
2993        &mut self.unknown_fields
2994    }
2995
2996    fn as_any(&self) -> &dyn (::std::any::Any) {
2997        self as &dyn (::std::any::Any)
2998    }
2999    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
3000        self as &mut dyn (::std::any::Any)
3001    }
3002    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
3003        self
3004    }
3005
3006    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
3007        Self::descriptor_static()
3008    }
3009
3010    fn new() -> Metrics {
3011        Metrics::new()
3012    }
3013
3014    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
3015        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
3016            lock: ::protobuf::lazy::ONCE_INIT,
3017            ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
3018        };
3019        unsafe {
3020            descriptor.get(|| {
3021                let mut fields = ::std::vec::Vec::new();
3022                fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeUint64>(
3023                    "num_uids",
3024                    |m: &Metrics| { &m.num_uids },
3025                    |m: &mut Metrics| { &mut m.num_uids },
3026                ));
3027                ::protobuf::reflect::MessageDescriptor::new::<Metrics>(
3028                    "Metrics",
3029                    fields,
3030                    file_descriptor_proto()
3031                )
3032            })
3033        }
3034    }
3035
3036    fn default_instance() -> &'static Metrics {
3037        static mut instance: ::protobuf::lazy::Lazy<Metrics> = ::protobuf::lazy::Lazy {
3038            lock: ::protobuf::lazy::ONCE_INIT,
3039            ptr: 0 as *const Metrics,
3040        };
3041        unsafe {
3042            instance.get(Metrics::new)
3043        }
3044    }
3045}
3046
3047impl ::protobuf::Clear for Metrics {
3048    fn clear(&mut self) {
3049        self.num_uids.clear();
3050        self.unknown_fields.clear();
3051    }
3052}
3053
3054impl ::std::fmt::Debug for Metrics {
3055    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3056        ::protobuf::text_format::fmt(self, f)
3057    }
3058}
3059
3060impl ::protobuf::reflect::ProtobufValue for Metrics {
3061    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
3062        ::protobuf::reflect::ProtobufValueRef::Message(self)
3063    }
3064}
3065
3066#[derive(PartialEq,Clone,Default)]
3067pub struct NQuad {
3068    // message fields
3069    pub subject: ::std::string::String,
3070    pub predicate: ::std::string::String,
3071    pub object_id: ::std::string::String,
3072    pub object_value: ::protobuf::SingularPtrField<Value>,
3073    pub label: ::std::string::String,
3074    pub lang: ::std::string::String,
3075    pub facets: ::protobuf::RepeatedField<Facet>,
3076    // special fields
3077    pub unknown_fields: ::protobuf::UnknownFields,
3078    pub cached_size: ::protobuf::CachedSize,
3079}
3080
3081impl<'a> ::std::default::Default for &'a NQuad {
3082    fn default() -> &'a NQuad {
3083        <NQuad as ::protobuf::Message>::default_instance()
3084    }
3085}
3086
3087impl NQuad {
3088    pub fn new() -> NQuad {
3089        ::std::default::Default::default()
3090    }
3091
3092    // string subject = 1;
3093
3094
3095    pub fn get_subject(&self) -> &str {
3096        &self.subject
3097    }
3098    pub fn clear_subject(&mut self) {
3099        self.subject.clear();
3100    }
3101
3102    // Param is passed by value, moved
3103    pub fn set_subject(&mut self, v: ::std::string::String) {
3104        self.subject = v;
3105    }
3106
3107    // Mutable pointer to the field.
3108    // If field is not initialized, it is initialized with default value first.
3109    pub fn mut_subject(&mut self) -> &mut ::std::string::String {
3110        &mut self.subject
3111    }
3112
3113    // Take field
3114    pub fn take_subject(&mut self) -> ::std::string::String {
3115        ::std::mem::replace(&mut self.subject, ::std::string::String::new())
3116    }
3117
3118    // string predicate = 2;
3119
3120
3121    pub fn get_predicate(&self) -> &str {
3122        &self.predicate
3123    }
3124    pub fn clear_predicate(&mut self) {
3125        self.predicate.clear();
3126    }
3127
3128    // Param is passed by value, moved
3129    pub fn set_predicate(&mut self, v: ::std::string::String) {
3130        self.predicate = v;
3131    }
3132
3133    // Mutable pointer to the field.
3134    // If field is not initialized, it is initialized with default value first.
3135    pub fn mut_predicate(&mut self) -> &mut ::std::string::String {
3136        &mut self.predicate
3137    }
3138
3139    // Take field
3140    pub fn take_predicate(&mut self) -> ::std::string::String {
3141        ::std::mem::replace(&mut self.predicate, ::std::string::String::new())
3142    }
3143
3144    // string object_id = 3;
3145
3146
3147    pub fn get_object_id(&self) -> &str {
3148        &self.object_id
3149    }
3150    pub fn clear_object_id(&mut self) {
3151        self.object_id.clear();
3152    }
3153
3154    // Param is passed by value, moved
3155    pub fn set_object_id(&mut self, v: ::std::string::String) {
3156        self.object_id = v;
3157    }
3158
3159    // Mutable pointer to the field.
3160    // If field is not initialized, it is initialized with default value first.
3161    pub fn mut_object_id(&mut self) -> &mut ::std::string::String {
3162        &mut self.object_id
3163    }
3164
3165    // Take field
3166    pub fn take_object_id(&mut self) -> ::std::string::String {
3167        ::std::mem::replace(&mut self.object_id, ::std::string::String::new())
3168    }
3169
3170    // .api.Value object_value = 4;
3171
3172
3173    pub fn get_object_value(&self) -> &Value {
3174        self.object_value.as_ref().unwrap_or_else(|| Value::default_instance())
3175    }
3176    pub fn clear_object_value(&mut self) {
3177        self.object_value.clear();
3178    }
3179
3180    pub fn has_object_value(&self) -> bool {
3181        self.object_value.is_some()
3182    }
3183
3184    // Param is passed by value, moved
3185    pub fn set_object_value(&mut self, v: Value) {
3186        self.object_value = ::protobuf::SingularPtrField::some(v);
3187    }
3188
3189    // Mutable pointer to the field.
3190    // If field is not initialized, it is initialized with default value first.
3191    pub fn mut_object_value(&mut self) -> &mut Value {
3192        if self.object_value.is_none() {
3193            self.object_value.set_default();
3194        }
3195        self.object_value.as_mut().unwrap()
3196    }
3197
3198    // Take field
3199    pub fn take_object_value(&mut self) -> Value {
3200        self.object_value.take().unwrap_or_else(|| Value::new())
3201    }
3202
3203    // string label = 5;
3204
3205
3206    pub fn get_label(&self) -> &str {
3207        &self.label
3208    }
3209    pub fn clear_label(&mut self) {
3210        self.label.clear();
3211    }
3212
3213    // Param is passed by value, moved
3214    pub fn set_label(&mut self, v: ::std::string::String) {
3215        self.label = v;
3216    }
3217
3218    // Mutable pointer to the field.
3219    // If field is not initialized, it is initialized with default value first.
3220    pub fn mut_label(&mut self) -> &mut ::std::string::String {
3221        &mut self.label
3222    }
3223
3224    // Take field
3225    pub fn take_label(&mut self) -> ::std::string::String {
3226        ::std::mem::replace(&mut self.label, ::std::string::String::new())
3227    }
3228
3229    // string lang = 6;
3230
3231
3232    pub fn get_lang(&self) -> &str {
3233        &self.lang
3234    }
3235    pub fn clear_lang(&mut self) {
3236        self.lang.clear();
3237    }
3238
3239    // Param is passed by value, moved
3240    pub fn set_lang(&mut self, v: ::std::string::String) {
3241        self.lang = v;
3242    }
3243
3244    // Mutable pointer to the field.
3245    // If field is not initialized, it is initialized with default value first.
3246    pub fn mut_lang(&mut self) -> &mut ::std::string::String {
3247        &mut self.lang
3248    }
3249
3250    // Take field
3251    pub fn take_lang(&mut self) -> ::std::string::String {
3252        ::std::mem::replace(&mut self.lang, ::std::string::String::new())
3253    }
3254
3255    // repeated .api.Facet facets = 7;
3256
3257
3258    pub fn get_facets(&self) -> &[Facet] {
3259        &self.facets
3260    }
3261    pub fn clear_facets(&mut self) {
3262        self.facets.clear();
3263    }
3264
3265    // Param is passed by value, moved
3266    pub fn set_facets(&mut self, v: ::protobuf::RepeatedField<Facet>) {
3267        self.facets = v;
3268    }
3269
3270    // Mutable pointer to the field.
3271    pub fn mut_facets(&mut self) -> &mut ::protobuf::RepeatedField<Facet> {
3272        &mut self.facets
3273    }
3274
3275    // Take field
3276    pub fn take_facets(&mut self) -> ::protobuf::RepeatedField<Facet> {
3277        ::std::mem::replace(&mut self.facets, ::protobuf::RepeatedField::new())
3278    }
3279}
3280
3281impl ::protobuf::Message for NQuad {
3282    fn is_initialized(&self) -> bool {
3283        for v in &self.object_value {
3284            if !v.is_initialized() {
3285                return false;
3286            }
3287        };
3288        for v in &self.facets {
3289            if !v.is_initialized() {
3290                return false;
3291            }
3292        };
3293        true
3294    }
3295
3296    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
3297        while !is.eof()? {
3298            let (field_number, wire_type) = is.read_tag_unpack()?;
3299            match field_number {
3300                1 => {
3301                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.subject)?;
3302                },
3303                2 => {
3304                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.predicate)?;
3305                },
3306                3 => {
3307                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.object_id)?;
3308                },
3309                4 => {
3310                    ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.object_value)?;
3311                },
3312                5 => {
3313                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.label)?;
3314                },
3315                6 => {
3316                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.lang)?;
3317                },
3318                7 => {
3319                    ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.facets)?;
3320                },
3321                _ => {
3322                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
3323                },
3324            };
3325        }
3326        ::std::result::Result::Ok(())
3327    }
3328
3329    // Compute sizes of nested messages
3330    #[allow(unused_variables)]
3331    fn compute_size(&self) -> u32 {
3332        let mut my_size = 0;
3333        if !self.subject.is_empty() {
3334            my_size += ::protobuf::rt::string_size(1, &self.subject);
3335        }
3336        if !self.predicate.is_empty() {
3337            my_size += ::protobuf::rt::string_size(2, &self.predicate);
3338        }
3339        if !self.object_id.is_empty() {
3340            my_size += ::protobuf::rt::string_size(3, &self.object_id);
3341        }
3342        if let Some(ref v) = self.object_value.as_ref() {
3343            let len = v.compute_size();
3344            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
3345        }
3346        if !self.label.is_empty() {
3347            my_size += ::protobuf::rt::string_size(5, &self.label);
3348        }
3349        if !self.lang.is_empty() {
3350            my_size += ::protobuf::rt::string_size(6, &self.lang);
3351        }
3352        for value in &self.facets {
3353            let len = value.compute_size();
3354            my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
3355        };
3356        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
3357        self.cached_size.set(my_size);
3358        my_size
3359    }
3360
3361    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
3362        if !self.subject.is_empty() {
3363            os.write_string(1, &self.subject)?;
3364        }
3365        if !self.predicate.is_empty() {
3366            os.write_string(2, &self.predicate)?;
3367        }
3368        if !self.object_id.is_empty() {
3369            os.write_string(3, &self.object_id)?;
3370        }
3371        if let Some(ref v) = self.object_value.as_ref() {
3372            os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?;
3373            os.write_raw_varint32(v.get_cached_size())?;
3374            v.write_to_with_cached_sizes(os)?;
3375        }
3376        if !self.label.is_empty() {
3377            os.write_string(5, &self.label)?;
3378        }
3379        if !self.lang.is_empty() {
3380            os.write_string(6, &self.lang)?;
3381        }
3382        for v in &self.facets {
3383            os.write_tag(7, ::protobuf::wire_format::WireTypeLengthDelimited)?;
3384            os.write_raw_varint32(v.get_cached_size())?;
3385            v.write_to_with_cached_sizes(os)?;
3386        };
3387        os.write_unknown_fields(self.get_unknown_fields())?;
3388        ::std::result::Result::Ok(())
3389    }
3390
3391    fn get_cached_size(&self) -> u32 {
3392        self.cached_size.get()
3393    }
3394
3395    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
3396        &self.unknown_fields
3397    }
3398
3399    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
3400        &mut self.unknown_fields
3401    }
3402
3403    fn as_any(&self) -> &dyn (::std::any::Any) {
3404        self as &dyn (::std::any::Any)
3405    }
3406    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
3407        self as &mut dyn (::std::any::Any)
3408    }
3409    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
3410        self
3411    }
3412
3413    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
3414        Self::descriptor_static()
3415    }
3416
3417    fn new() -> NQuad {
3418        NQuad::new()
3419    }
3420
3421    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
3422        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
3423            lock: ::protobuf::lazy::ONCE_INIT,
3424            ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
3425        };
3426        unsafe {
3427            descriptor.get(|| {
3428                let mut fields = ::std::vec::Vec::new();
3429                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
3430                    "subject",
3431                    |m: &NQuad| { &m.subject },
3432                    |m: &mut NQuad| { &mut m.subject },
3433                ));
3434                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
3435                    "predicate",
3436                    |m: &NQuad| { &m.predicate },
3437                    |m: &mut NQuad| { &mut m.predicate },
3438                ));
3439                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
3440                    "object_id",
3441                    |m: &NQuad| { &m.object_id },
3442                    |m: &mut NQuad| { &mut m.object_id },
3443                ));
3444                fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Value>>(
3445                    "object_value",
3446                    |m: &NQuad| { &m.object_value },
3447                    |m: &mut NQuad| { &mut m.object_value },
3448                ));
3449                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
3450                    "label",
3451                    |m: &NQuad| { &m.label },
3452                    |m: &mut NQuad| { &mut m.label },
3453                ));
3454                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
3455                    "lang",
3456                    |m: &NQuad| { &m.lang },
3457                    |m: &mut NQuad| { &mut m.lang },
3458                ));
3459                fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Facet>>(
3460                    "facets",
3461                    |m: &NQuad| { &m.facets },
3462                    |m: &mut NQuad| { &mut m.facets },
3463                ));
3464                ::protobuf::reflect::MessageDescriptor::new::<NQuad>(
3465                    "NQuad",
3466                    fields,
3467                    file_descriptor_proto()
3468                )
3469            })
3470        }
3471    }
3472
3473    fn default_instance() -> &'static NQuad {
3474        static mut instance: ::protobuf::lazy::Lazy<NQuad> = ::protobuf::lazy::Lazy {
3475            lock: ::protobuf::lazy::ONCE_INIT,
3476            ptr: 0 as *const NQuad,
3477        };
3478        unsafe {
3479            instance.get(NQuad::new)
3480        }
3481    }
3482}
3483
3484impl ::protobuf::Clear for NQuad {
3485    fn clear(&mut self) {
3486        self.subject.clear();
3487        self.predicate.clear();
3488        self.object_id.clear();
3489        self.object_value.clear();
3490        self.label.clear();
3491        self.lang.clear();
3492        self.facets.clear();
3493        self.unknown_fields.clear();
3494    }
3495}
3496
3497impl ::std::fmt::Debug for NQuad {
3498    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
3499        ::protobuf::text_format::fmt(self, f)
3500    }
3501}
3502
3503impl ::protobuf::reflect::ProtobufValue for NQuad {
3504    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
3505        ::protobuf::reflect::ProtobufValueRef::Message(self)
3506    }
3507}
3508
3509#[derive(PartialEq,Clone,Default)]
3510pub struct Value {
3511    // message oneof groups
3512    pub val: ::std::option::Option<Value_oneof_val>,
3513    // special fields
3514    pub unknown_fields: ::protobuf::UnknownFields,
3515    pub cached_size: ::protobuf::CachedSize,
3516}
3517
3518impl<'a> ::std::default::Default for &'a Value {
3519    fn default() -> &'a Value {
3520        <Value as ::protobuf::Message>::default_instance()
3521    }
3522}
3523
3524#[derive(Clone,PartialEq,Debug)]
3525pub enum Value_oneof_val {
3526    default_val(::std::string::String),
3527    bytes_val(::std::vec::Vec<u8>),
3528    int_val(i64),
3529    bool_val(bool),
3530    str_val(::std::string::String),
3531    double_val(f64),
3532    geo_val(::std::vec::Vec<u8>),
3533    date_val(::std::vec::Vec<u8>),
3534    datetime_val(::std::vec::Vec<u8>),
3535    password_val(::std::string::String),
3536    uid_val(u64),
3537}
3538
3539impl Value {
3540    pub fn new() -> Value {
3541        ::std::default::Default::default()
3542    }
3543
3544    // string default_val = 1;
3545
3546
3547    pub fn get_default_val(&self) -> &str {
3548        match self.val {
3549            ::std::option::Option::Some(Value_oneof_val::default_val(ref v)) => v,
3550            _ => "",
3551        }
3552    }
3553    pub fn clear_default_val(&mut self) {
3554        self.val = ::std::option::Option::None;
3555    }
3556
3557    pub fn has_default_val(&self) -> bool {
3558        match self.val {
3559            ::std::option::Option::Some(Value_oneof_val::default_val(..)) => true,
3560            _ => false,
3561        }
3562    }
3563
3564    // Param is passed by value, moved
3565    pub fn set_default_val(&mut self, v: ::std::string::String) {
3566        self.val = ::std::option::Option::Some(Value_oneof_val::default_val(v))
3567    }
3568
3569    // Mutable pointer to the field.
3570    pub fn mut_default_val(&mut self) -> &mut ::std::string::String {
3571        if let ::std::option::Option::Some(Value_oneof_val::default_val(_)) = self.val {
3572        } else {
3573            self.val = ::std::option::Option::Some(Value_oneof_val::default_val(::std::string::String::new()));
3574        }
3575        match self.val {
3576            ::std::option::Option::Some(Value_oneof_val::default_val(ref mut v)) => v,
3577            _ => panic!(),
3578        }
3579    }
3580
3581    // Take field
3582    pub fn take_default_val(&mut self) -> ::std::string::String {
3583        if self.has_default_val() {
3584            match self.val.take() {
3585                ::std::option::Option::Some(Value_oneof_val::default_val(v)) => v,
3586                _ => panic!(),
3587            }
3588        } else {
3589            ::std::string::String::new()
3590        }
3591    }
3592
3593    // bytes bytes_val = 2;
3594
3595
3596    pub fn get_bytes_val(&self) -> &[u8] {
3597        match self.val {
3598            ::std::option::Option::Some(Value_oneof_val::bytes_val(ref v)) => v,
3599            _ => &[],
3600        }
3601    }
3602    pub fn clear_bytes_val(&mut self) {
3603        self.val = ::std::option::Option::None;
3604    }
3605
3606    pub fn has_bytes_val(&self) -> bool {
3607        match self.val {
3608            ::std::option::Option::Some(Value_oneof_val::bytes_val(..)) => true,
3609            _ => false,
3610        }
3611    }
3612
3613    // Param is passed by value, moved
3614    pub fn set_bytes_val(&mut self, v: ::std::vec::Vec<u8>) {
3615        self.val = ::std::option::Option::Some(Value_oneof_val::bytes_val(v))
3616    }
3617
3618    // Mutable pointer to the field.
3619    pub fn mut_bytes_val(&mut self) -> &mut ::std::vec::Vec<u8> {
3620        if let ::std::option::Option::Some(Value_oneof_val::bytes_val(_)) = self.val {
3621        } else {
3622            self.val = ::std::option::Option::Some(Value_oneof_val::bytes_val(::std::vec::Vec::new()));
3623        }
3624        match self.val {
3625            ::std::option::Option::Some(Value_oneof_val::bytes_val(ref mut v)) => v,
3626            _ => panic!(),
3627        }
3628    }
3629
3630    // Take field
3631    pub fn take_bytes_val(&mut self) -> ::std::vec::Vec<u8> {
3632        if self.has_bytes_val() {
3633            match self.val.take() {
3634                ::std::option::Option::Some(Value_oneof_val::bytes_val(v)) => v,
3635                _ => panic!(),
3636            }
3637        } else {
3638            ::std::vec::Vec::new()
3639        }
3640    }
3641
3642    // int64 int_val = 3;
3643
3644
3645    pub fn get_int_val(&self) -> i64 {
3646        match self.val {
3647            ::std::option::Option::Some(Value_oneof_val::int_val(v)) => v,
3648            _ => 0,
3649        }
3650    }
3651    pub fn clear_int_val(&mut self) {
3652        self.val = ::std::option::Option::None;
3653    }
3654
3655    pub fn has_int_val(&self) -> bool {
3656        match self.val {
3657            ::std::option::Option::Some(Value_oneof_val::int_val(..)) => true,
3658            _ => false,
3659        }
3660    }
3661
3662    // Param is passed by value, moved
3663    pub fn set_int_val(&mut self, v: i64) {
3664        self.val = ::std::option::Option::Some(Value_oneof_val::int_val(v))
3665    }
3666
3667    // bool bool_val = 4;
3668
3669
3670    pub fn get_bool_val(&self) -> bool {
3671        match self.val {
3672            ::std::option::Option::Some(Value_oneof_val::bool_val(v)) => v,
3673            _ => false,
3674        }
3675    }
3676    pub fn clear_bool_val(&mut self) {
3677        self.val = ::std::option::Option::None;
3678    }
3679
3680    pub fn has_bool_val(&self) -> bool {
3681        match self.val {
3682            ::std::option::Option::Some(Value_oneof_val::bool_val(..)) => true,
3683            _ => false,
3684        }
3685    }
3686
3687    // Param is passed by value, moved
3688    pub fn set_bool_val(&mut self, v: bool) {
3689        self.val = ::std::option::Option::Some(Value_oneof_val::bool_val(v))
3690    }
3691
3692    // string str_val = 5;
3693
3694
3695    pub fn get_str_val(&self) -> &str {
3696        match self.val {
3697            ::std::option::Option::Some(Value_oneof_val::str_val(ref v)) => v,
3698            _ => "",
3699        }
3700    }
3701    pub fn clear_str_val(&mut self) {
3702        self.val = ::std::option::Option::None;
3703    }
3704
3705    pub fn has_str_val(&self) -> bool {
3706        match self.val {
3707            ::std::option::Option::Some(Value_oneof_val::str_val(..)) => true,
3708            _ => false,
3709        }
3710    }
3711
3712    // Param is passed by value, moved
3713    pub fn set_str_val(&mut self, v: ::std::string::String) {
3714        self.val = ::std::option::Option::Some(Value_oneof_val::str_val(v))
3715    }
3716
3717    // Mutable pointer to the field.
3718    pub fn mut_str_val(&mut self) -> &mut ::std::string::String {
3719        if let ::std::option::Option::Some(Value_oneof_val::str_val(_)) = self.val {
3720        } else {
3721            self.val = ::std::option::Option::Some(Value_oneof_val::str_val(::std::string::String::new()));
3722        }
3723        match self.val {
3724            ::std::option::Option::Some(Value_oneof_val::str_val(ref mut v)) => v,
3725            _ => panic!(),
3726        }
3727    }
3728
3729    // Take field
3730    pub fn take_str_val(&mut self) -> ::std::string::String {
3731        if self.has_str_val() {
3732            match self.val.take() {
3733                ::std::option::Option::Some(Value_oneof_val::str_val(v)) => v,
3734                _ => panic!(),
3735            }
3736        } else {
3737            ::std::string::String::new()
3738        }
3739    }
3740
3741    // double double_val = 6;
3742
3743
3744    pub fn get_double_val(&self) -> f64 {
3745        match self.val {
3746            ::std::option::Option::Some(Value_oneof_val::double_val(v)) => v,
3747            _ => 0.,
3748        }
3749    }
3750    pub fn clear_double_val(&mut self) {
3751        self.val = ::std::option::Option::None;
3752    }
3753
3754    pub fn has_double_val(&self) -> bool {
3755        match self.val {
3756            ::std::option::Option::Some(Value_oneof_val::double_val(..)) => true,
3757            _ => false,
3758        }
3759    }
3760
3761    // Param is passed by value, moved
3762    pub fn set_double_val(&mut self, v: f64) {
3763        self.val = ::std::option::Option::Some(Value_oneof_val::double_val(v))
3764    }
3765
3766    // bytes geo_val = 7;
3767
3768
3769    pub fn get_geo_val(&self) -> &[u8] {
3770        match self.val {
3771            ::std::option::Option::Some(Value_oneof_val::geo_val(ref v)) => v,
3772            _ => &[],
3773        }
3774    }
3775    pub fn clear_geo_val(&mut self) {
3776        self.val = ::std::option::Option::None;
3777    }
3778
3779    pub fn has_geo_val(&self) -> bool {
3780        match self.val {
3781            ::std::option::Option::Some(Value_oneof_val::geo_val(..)) => true,
3782            _ => false,
3783        }
3784    }
3785
3786    // Param is passed by value, moved
3787    pub fn set_geo_val(&mut self, v: ::std::vec::Vec<u8>) {
3788        self.val = ::std::option::Option::Some(Value_oneof_val::geo_val(v))
3789    }
3790
3791    // Mutable pointer to the field.
3792    pub fn mut_geo_val(&mut self) -> &mut ::std::vec::Vec<u8> {
3793        if let ::std::option::Option::Some(Value_oneof_val::geo_val(_)) = self.val {
3794        } else {
3795            self.val = ::std::option::Option::Some(Value_oneof_val::geo_val(::std::vec::Vec::new()));
3796        }
3797        match self.val {
3798            ::std::option::Option::Some(Value_oneof_val::geo_val(ref mut v)) => v,
3799            _ => panic!(),
3800        }
3801    }
3802
3803    // Take field
3804    pub fn take_geo_val(&mut self) -> ::std::vec::Vec<u8> {
3805        if self.has_geo_val() {
3806            match self.val.take() {
3807                ::std::option::Option::Some(Value_oneof_val::geo_val(v)) => v,
3808                _ => panic!(),
3809            }
3810        } else {
3811            ::std::vec::Vec::new()
3812        }
3813    }
3814
3815    // bytes date_val = 8;
3816
3817
3818    pub fn get_date_val(&self) -> &[u8] {
3819        match self.val {
3820            ::std::option::Option::Some(Value_oneof_val::date_val(ref v)) => v,
3821            _ => &[],
3822        }
3823    }
3824    pub fn clear_date_val(&mut self) {
3825        self.val = ::std::option::Option::None;
3826    }
3827
3828    pub fn has_date_val(&self) -> bool {
3829        match self.val {
3830            ::std::option::Option::Some(Value_oneof_val::date_val(..)) => true,
3831            _ => false,
3832        }
3833    }
3834
3835    // Param is passed by value, moved
3836    pub fn set_date_val(&mut self, v: ::std::vec::Vec<u8>) {
3837        self.val = ::std::option::Option::Some(Value_oneof_val::date_val(v))
3838    }
3839
3840    // Mutable pointer to the field.
3841    pub fn mut_date_val(&mut self) -> &mut ::std::vec::Vec<u8> {
3842        if let ::std::option::Option::Some(Value_oneof_val::date_val(_)) = self.val {
3843        } else {
3844            self.val = ::std::option::Option::Some(Value_oneof_val::date_val(::std::vec::Vec::new()));
3845        }
3846        match self.val {
3847            ::std::option::Option::Some(Value_oneof_val::date_val(ref mut v)) => v,
3848            _ => panic!(),
3849        }
3850    }
3851
3852    // Take field
3853    pub fn take_date_val(&mut self) -> ::std::vec::Vec<u8> {
3854        if self.has_date_val() {
3855            match self.val.take() {
3856                ::std::option::Option::Some(Value_oneof_val::date_val(v)) => v,
3857                _ => panic!(),
3858            }
3859        } else {
3860            ::std::vec::Vec::new()
3861        }
3862    }
3863
3864    // bytes datetime_val = 9;
3865
3866
3867    pub fn get_datetime_val(&self) -> &[u8] {
3868        match self.val {
3869            ::std::option::Option::Some(Value_oneof_val::datetime_val(ref v)) => v,
3870            _ => &[],
3871        }
3872    }
3873    pub fn clear_datetime_val(&mut self) {
3874        self.val = ::std::option::Option::None;
3875    }
3876
3877    pub fn has_datetime_val(&self) -> bool {
3878        match self.val {
3879            ::std::option::Option::Some(Value_oneof_val::datetime_val(..)) => true,
3880            _ => false,
3881        }
3882    }
3883
3884    // Param is passed by value, moved
3885    pub fn set_datetime_val(&mut self, v: ::std::vec::Vec<u8>) {
3886        self.val = ::std::option::Option::Some(Value_oneof_val::datetime_val(v))
3887    }
3888
3889    // Mutable pointer to the field.
3890    pub fn mut_datetime_val(&mut self) -> &mut ::std::vec::Vec<u8> {
3891        if let ::std::option::Option::Some(Value_oneof_val::datetime_val(_)) = self.val {
3892        } else {
3893            self.val = ::std::option::Option::Some(Value_oneof_val::datetime_val(::std::vec::Vec::new()));
3894        }
3895        match self.val {
3896            ::std::option::Option::Some(Value_oneof_val::datetime_val(ref mut v)) => v,
3897            _ => panic!(),
3898        }
3899    }
3900
3901    // Take field
3902    pub fn take_datetime_val(&mut self) -> ::std::vec::Vec<u8> {
3903        if self.has_datetime_val() {
3904            match self.val.take() {
3905                ::std::option::Option::Some(Value_oneof_val::datetime_val(v)) => v,
3906                _ => panic!(),
3907            }
3908        } else {
3909            ::std::vec::Vec::new()
3910        }
3911    }
3912
3913    // string password_val = 10;
3914
3915
3916    pub fn get_password_val(&self) -> &str {
3917        match self.val {
3918            ::std::option::Option::Some(Value_oneof_val::password_val(ref v)) => v,
3919            _ => "",
3920        }
3921    }
3922    pub fn clear_password_val(&mut self) {
3923        self.val = ::std::option::Option::None;
3924    }
3925
3926    pub fn has_password_val(&self) -> bool {
3927        match self.val {
3928            ::std::option::Option::Some(Value_oneof_val::password_val(..)) => true,
3929            _ => false,
3930        }
3931    }
3932
3933    // Param is passed by value, moved
3934    pub fn set_password_val(&mut self, v: ::std::string::String) {
3935        self.val = ::std::option::Option::Some(Value_oneof_val::password_val(v))
3936    }
3937
3938    // Mutable pointer to the field.
3939    pub fn mut_password_val(&mut self) -> &mut ::std::string::String {
3940        if let ::std::option::Option::Some(Value_oneof_val::password_val(_)) = self.val {
3941        } else {
3942            self.val = ::std::option::Option::Some(Value_oneof_val::password_val(::std::string::String::new()));
3943        }
3944        match self.val {
3945            ::std::option::Option::Some(Value_oneof_val::password_val(ref mut v)) => v,
3946            _ => panic!(),
3947        }
3948    }
3949
3950    // Take field
3951    pub fn take_password_val(&mut self) -> ::std::string::String {
3952        if self.has_password_val() {
3953            match self.val.take() {
3954                ::std::option::Option::Some(Value_oneof_val::password_val(v)) => v,
3955                _ => panic!(),
3956            }
3957        } else {
3958            ::std::string::String::new()
3959        }
3960    }
3961
3962    // uint64 uid_val = 11;
3963
3964
3965    pub fn get_uid_val(&self) -> u64 {
3966        match self.val {
3967            ::std::option::Option::Some(Value_oneof_val::uid_val(v)) => v,
3968            _ => 0,
3969        }
3970    }
3971    pub fn clear_uid_val(&mut self) {
3972        self.val = ::std::option::Option::None;
3973    }
3974
3975    pub fn has_uid_val(&self) -> bool {
3976        match self.val {
3977            ::std::option::Option::Some(Value_oneof_val::uid_val(..)) => true,
3978            _ => false,
3979        }
3980    }
3981
3982    // Param is passed by value, moved
3983    pub fn set_uid_val(&mut self, v: u64) {
3984        self.val = ::std::option::Option::Some(Value_oneof_val::uid_val(v))
3985    }
3986}
3987
3988impl ::protobuf::Message for Value {
3989    fn is_initialized(&self) -> bool {
3990        true
3991    }
3992
3993    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
3994        while !is.eof()? {
3995            let (field_number, wire_type) = is.read_tag_unpack()?;
3996            match field_number {
3997                1 => {
3998                    if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
3999                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
4000                    }
4001                    self.val = ::std::option::Option::Some(Value_oneof_val::default_val(is.read_string()?));
4002                },
4003                2 => {
4004                    if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
4005                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
4006                    }
4007                    self.val = ::std::option::Option::Some(Value_oneof_val::bytes_val(is.read_bytes()?));
4008                },
4009                3 => {
4010                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
4011                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
4012                    }
4013                    self.val = ::std::option::Option::Some(Value_oneof_val::int_val(is.read_int64()?));
4014                },
4015                4 => {
4016                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
4017                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
4018                    }
4019                    self.val = ::std::option::Option::Some(Value_oneof_val::bool_val(is.read_bool()?));
4020                },
4021                5 => {
4022                    if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
4023                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
4024                    }
4025                    self.val = ::std::option::Option::Some(Value_oneof_val::str_val(is.read_string()?));
4026                },
4027                6 => {
4028                    if wire_type != ::protobuf::wire_format::WireTypeFixed64 {
4029                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
4030                    }
4031                    self.val = ::std::option::Option::Some(Value_oneof_val::double_val(is.read_double()?));
4032                },
4033                7 => {
4034                    if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
4035                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
4036                    }
4037                    self.val = ::std::option::Option::Some(Value_oneof_val::geo_val(is.read_bytes()?));
4038                },
4039                8 => {
4040                    if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
4041                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
4042                    }
4043                    self.val = ::std::option::Option::Some(Value_oneof_val::date_val(is.read_bytes()?));
4044                },
4045                9 => {
4046                    if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
4047                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
4048                    }
4049                    self.val = ::std::option::Option::Some(Value_oneof_val::datetime_val(is.read_bytes()?));
4050                },
4051                10 => {
4052                    if wire_type != ::protobuf::wire_format::WireTypeLengthDelimited {
4053                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
4054                    }
4055                    self.val = ::std::option::Option::Some(Value_oneof_val::password_val(is.read_string()?));
4056                },
4057                11 => {
4058                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
4059                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
4060                    }
4061                    self.val = ::std::option::Option::Some(Value_oneof_val::uid_val(is.read_uint64()?));
4062                },
4063                _ => {
4064                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
4065                },
4066            };
4067        }
4068        ::std::result::Result::Ok(())
4069    }
4070
4071    // Compute sizes of nested messages
4072    #[allow(unused_variables)]
4073    fn compute_size(&self) -> u32 {
4074        let mut my_size = 0;
4075        if let ::std::option::Option::Some(ref v) = self.val {
4076            match v {
4077                &Value_oneof_val::default_val(ref v) => {
4078                    my_size += ::protobuf::rt::string_size(1, &v);
4079                },
4080                &Value_oneof_val::bytes_val(ref v) => {
4081                    my_size += ::protobuf::rt::bytes_size(2, &v);
4082                },
4083                &Value_oneof_val::int_val(v) => {
4084                    my_size += ::protobuf::rt::value_size(3, v, ::protobuf::wire_format::WireTypeVarint);
4085                },
4086                &Value_oneof_val::bool_val(v) => {
4087                    my_size += 2;
4088                },
4089                &Value_oneof_val::str_val(ref v) => {
4090                    my_size += ::protobuf::rt::string_size(5, &v);
4091                },
4092                &Value_oneof_val::double_val(v) => {
4093                    my_size += 9;
4094                },
4095                &Value_oneof_val::geo_val(ref v) => {
4096                    my_size += ::protobuf::rt::bytes_size(7, &v);
4097                },
4098                &Value_oneof_val::date_val(ref v) => {
4099                    my_size += ::protobuf::rt::bytes_size(8, &v);
4100                },
4101                &Value_oneof_val::datetime_val(ref v) => {
4102                    my_size += ::protobuf::rt::bytes_size(9, &v);
4103                },
4104                &Value_oneof_val::password_val(ref v) => {
4105                    my_size += ::protobuf::rt::string_size(10, &v);
4106                },
4107                &Value_oneof_val::uid_val(v) => {
4108                    my_size += ::protobuf::rt::value_size(11, v, ::protobuf::wire_format::WireTypeVarint);
4109                },
4110            };
4111        }
4112        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
4113        self.cached_size.set(my_size);
4114        my_size
4115    }
4116
4117    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
4118        if let ::std::option::Option::Some(ref v) = self.val {
4119            match v {
4120                &Value_oneof_val::default_val(ref v) => {
4121                    os.write_string(1, v)?;
4122                },
4123                &Value_oneof_val::bytes_val(ref v) => {
4124                    os.write_bytes(2, v)?;
4125                },
4126                &Value_oneof_val::int_val(v) => {
4127                    os.write_int64(3, v)?;
4128                },
4129                &Value_oneof_val::bool_val(v) => {
4130                    os.write_bool(4, v)?;
4131                },
4132                &Value_oneof_val::str_val(ref v) => {
4133                    os.write_string(5, v)?;
4134                },
4135                &Value_oneof_val::double_val(v) => {
4136                    os.write_double(6, v)?;
4137                },
4138                &Value_oneof_val::geo_val(ref v) => {
4139                    os.write_bytes(7, v)?;
4140                },
4141                &Value_oneof_val::date_val(ref v) => {
4142                    os.write_bytes(8, v)?;
4143                },
4144                &Value_oneof_val::datetime_val(ref v) => {
4145                    os.write_bytes(9, v)?;
4146                },
4147                &Value_oneof_val::password_val(ref v) => {
4148                    os.write_string(10, v)?;
4149                },
4150                &Value_oneof_val::uid_val(v) => {
4151                    os.write_uint64(11, v)?;
4152                },
4153            };
4154        }
4155        os.write_unknown_fields(self.get_unknown_fields())?;
4156        ::std::result::Result::Ok(())
4157    }
4158
4159    fn get_cached_size(&self) -> u32 {
4160        self.cached_size.get()
4161    }
4162
4163    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
4164        &self.unknown_fields
4165    }
4166
4167    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
4168        &mut self.unknown_fields
4169    }
4170
4171    fn as_any(&self) -> &dyn (::std::any::Any) {
4172        self as &dyn (::std::any::Any)
4173    }
4174    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
4175        self as &mut dyn (::std::any::Any)
4176    }
4177    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
4178        self
4179    }
4180
4181    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
4182        Self::descriptor_static()
4183    }
4184
4185    fn new() -> Value {
4186        Value::new()
4187    }
4188
4189    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
4190        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
4191            lock: ::protobuf::lazy::ONCE_INIT,
4192            ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
4193        };
4194        unsafe {
4195            descriptor.get(|| {
4196                let mut fields = ::std::vec::Vec::new();
4197                fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
4198                    "default_val",
4199                    Value::has_default_val,
4200                    Value::get_default_val,
4201                ));
4202                fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>(
4203                    "bytes_val",
4204                    Value::has_bytes_val,
4205                    Value::get_bytes_val,
4206                ));
4207                fields.push(::protobuf::reflect::accessor::make_singular_i64_accessor::<_>(
4208                    "int_val",
4209                    Value::has_int_val,
4210                    Value::get_int_val,
4211                ));
4212                fields.push(::protobuf::reflect::accessor::make_singular_bool_accessor::<_>(
4213                    "bool_val",
4214                    Value::has_bool_val,
4215                    Value::get_bool_val,
4216                ));
4217                fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
4218                    "str_val",
4219                    Value::has_str_val,
4220                    Value::get_str_val,
4221                ));
4222                fields.push(::protobuf::reflect::accessor::make_singular_f64_accessor::<_>(
4223                    "double_val",
4224                    Value::has_double_val,
4225                    Value::get_double_val,
4226                ));
4227                fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>(
4228                    "geo_val",
4229                    Value::has_geo_val,
4230                    Value::get_geo_val,
4231                ));
4232                fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>(
4233                    "date_val",
4234                    Value::has_date_val,
4235                    Value::get_date_val,
4236                ));
4237                fields.push(::protobuf::reflect::accessor::make_singular_bytes_accessor::<_>(
4238                    "datetime_val",
4239                    Value::has_datetime_val,
4240                    Value::get_datetime_val,
4241                ));
4242                fields.push(::protobuf::reflect::accessor::make_singular_string_accessor::<_>(
4243                    "password_val",
4244                    Value::has_password_val,
4245                    Value::get_password_val,
4246                ));
4247                fields.push(::protobuf::reflect::accessor::make_singular_u64_accessor::<_>(
4248                    "uid_val",
4249                    Value::has_uid_val,
4250                    Value::get_uid_val,
4251                ));
4252                ::protobuf::reflect::MessageDescriptor::new::<Value>(
4253                    "Value",
4254                    fields,
4255                    file_descriptor_proto()
4256                )
4257            })
4258        }
4259    }
4260
4261    fn default_instance() -> &'static Value {
4262        static mut instance: ::protobuf::lazy::Lazy<Value> = ::protobuf::lazy::Lazy {
4263            lock: ::protobuf::lazy::ONCE_INIT,
4264            ptr: 0 as *const Value,
4265        };
4266        unsafe {
4267            instance.get(Value::new)
4268        }
4269    }
4270}
4271
4272impl ::protobuf::Clear for Value {
4273    fn clear(&mut self) {
4274        self.val = ::std::option::Option::None;
4275        self.val = ::std::option::Option::None;
4276        self.val = ::std::option::Option::None;
4277        self.val = ::std::option::Option::None;
4278        self.val = ::std::option::Option::None;
4279        self.val = ::std::option::Option::None;
4280        self.val = ::std::option::Option::None;
4281        self.val = ::std::option::Option::None;
4282        self.val = ::std::option::Option::None;
4283        self.val = ::std::option::Option::None;
4284        self.val = ::std::option::Option::None;
4285        self.unknown_fields.clear();
4286    }
4287}
4288
4289impl ::std::fmt::Debug for Value {
4290    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
4291        ::protobuf::text_format::fmt(self, f)
4292    }
4293}
4294
4295impl ::protobuf::reflect::ProtobufValue for Value {
4296    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
4297        ::protobuf::reflect::ProtobufValueRef::Message(self)
4298    }
4299}
4300
4301#[derive(PartialEq,Clone,Default)]
4302pub struct Facet {
4303    // message fields
4304    pub key: ::std::string::String,
4305    pub value: ::std::vec::Vec<u8>,
4306    pub val_type: Facet_ValType,
4307    pub tokens: ::protobuf::RepeatedField<::std::string::String>,
4308    pub alias: ::std::string::String,
4309    // special fields
4310    pub unknown_fields: ::protobuf::UnknownFields,
4311    pub cached_size: ::protobuf::CachedSize,
4312}
4313
4314impl<'a> ::std::default::Default for &'a Facet {
4315    fn default() -> &'a Facet {
4316        <Facet as ::protobuf::Message>::default_instance()
4317    }
4318}
4319
4320impl Facet {
4321    pub fn new() -> Facet {
4322        ::std::default::Default::default()
4323    }
4324
4325    // string key = 1;
4326
4327
4328    pub fn get_key(&self) -> &str {
4329        &self.key
4330    }
4331    pub fn clear_key(&mut self) {
4332        self.key.clear();
4333    }
4334
4335    // Param is passed by value, moved
4336    pub fn set_key(&mut self, v: ::std::string::String) {
4337        self.key = v;
4338    }
4339
4340    // Mutable pointer to the field.
4341    // If field is not initialized, it is initialized with default value first.
4342    pub fn mut_key(&mut self) -> &mut ::std::string::String {
4343        &mut self.key
4344    }
4345
4346    // Take field
4347    pub fn take_key(&mut self) -> ::std::string::String {
4348        ::std::mem::replace(&mut self.key, ::std::string::String::new())
4349    }
4350
4351    // bytes value = 2;
4352
4353
4354    pub fn get_value(&self) -> &[u8] {
4355        &self.value
4356    }
4357    pub fn clear_value(&mut self) {
4358        self.value.clear();
4359    }
4360
4361    // Param is passed by value, moved
4362    pub fn set_value(&mut self, v: ::std::vec::Vec<u8>) {
4363        self.value = v;
4364    }
4365
4366    // Mutable pointer to the field.
4367    // If field is not initialized, it is initialized with default value first.
4368    pub fn mut_value(&mut self) -> &mut ::std::vec::Vec<u8> {
4369        &mut self.value
4370    }
4371
4372    // Take field
4373    pub fn take_value(&mut self) -> ::std::vec::Vec<u8> {
4374        ::std::mem::replace(&mut self.value, ::std::vec::Vec::new())
4375    }
4376
4377    // .api.Facet.ValType val_type = 3;
4378
4379
4380    pub fn get_val_type(&self) -> Facet_ValType {
4381        self.val_type
4382    }
4383    pub fn clear_val_type(&mut self) {
4384        self.val_type = Facet_ValType::STRING;
4385    }
4386
4387    // Param is passed by value, moved
4388    pub fn set_val_type(&mut self, v: Facet_ValType) {
4389        self.val_type = v;
4390    }
4391
4392    // repeated string tokens = 4;
4393
4394
4395    pub fn get_tokens(&self) -> &[::std::string::String] {
4396        &self.tokens
4397    }
4398    pub fn clear_tokens(&mut self) {
4399        self.tokens.clear();
4400    }
4401
4402    // Param is passed by value, moved
4403    pub fn set_tokens(&mut self, v: ::protobuf::RepeatedField<::std::string::String>) {
4404        self.tokens = v;
4405    }
4406
4407    // Mutable pointer to the field.
4408    pub fn mut_tokens(&mut self) -> &mut ::protobuf::RepeatedField<::std::string::String> {
4409        &mut self.tokens
4410    }
4411
4412    // Take field
4413    pub fn take_tokens(&mut self) -> ::protobuf::RepeatedField<::std::string::String> {
4414        ::std::mem::replace(&mut self.tokens, ::protobuf::RepeatedField::new())
4415    }
4416
4417    // string alias = 5;
4418
4419
4420    pub fn get_alias(&self) -> &str {
4421        &self.alias
4422    }
4423    pub fn clear_alias(&mut self) {
4424        self.alias.clear();
4425    }
4426
4427    // Param is passed by value, moved
4428    pub fn set_alias(&mut self, v: ::std::string::String) {
4429        self.alias = v;
4430    }
4431
4432    // Mutable pointer to the field.
4433    // If field is not initialized, it is initialized with default value first.
4434    pub fn mut_alias(&mut self) -> &mut ::std::string::String {
4435        &mut self.alias
4436    }
4437
4438    // Take field
4439    pub fn take_alias(&mut self) -> ::std::string::String {
4440        ::std::mem::replace(&mut self.alias, ::std::string::String::new())
4441    }
4442}
4443
4444impl ::protobuf::Message for Facet {
4445    fn is_initialized(&self) -> bool {
4446        true
4447    }
4448
4449    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
4450        while !is.eof()? {
4451            let (field_number, wire_type) = is.read_tag_unpack()?;
4452            match field_number {
4453                1 => {
4454                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.key)?;
4455                },
4456                2 => {
4457                    ::protobuf::rt::read_singular_proto3_bytes_into(wire_type, is, &mut self.value)?;
4458                },
4459                3 => {
4460                    ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.val_type, 3, &mut self.unknown_fields)?
4461                },
4462                4 => {
4463                    ::protobuf::rt::read_repeated_string_into(wire_type, is, &mut self.tokens)?;
4464                },
4465                5 => {
4466                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.alias)?;
4467                },
4468                _ => {
4469                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
4470                },
4471            };
4472        }
4473        ::std::result::Result::Ok(())
4474    }
4475
4476    // Compute sizes of nested messages
4477    #[allow(unused_variables)]
4478    fn compute_size(&self) -> u32 {
4479        let mut my_size = 0;
4480        if !self.key.is_empty() {
4481            my_size += ::protobuf::rt::string_size(1, &self.key);
4482        }
4483        if !self.value.is_empty() {
4484            my_size += ::protobuf::rt::bytes_size(2, &self.value);
4485        }
4486        if self.val_type != Facet_ValType::STRING {
4487            my_size += ::protobuf::rt::enum_size(3, self.val_type);
4488        }
4489        for value in &self.tokens {
4490            my_size += ::protobuf::rt::string_size(4, &value);
4491        };
4492        if !self.alias.is_empty() {
4493            my_size += ::protobuf::rt::string_size(5, &self.alias);
4494        }
4495        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
4496        self.cached_size.set(my_size);
4497        my_size
4498    }
4499
4500    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
4501        if !self.key.is_empty() {
4502            os.write_string(1, &self.key)?;
4503        }
4504        if !self.value.is_empty() {
4505            os.write_bytes(2, &self.value)?;
4506        }
4507        if self.val_type != Facet_ValType::STRING {
4508            os.write_enum(3, self.val_type.value())?;
4509        }
4510        for v in &self.tokens {
4511            os.write_string(4, &v)?;
4512        };
4513        if !self.alias.is_empty() {
4514            os.write_string(5, &self.alias)?;
4515        }
4516        os.write_unknown_fields(self.get_unknown_fields())?;
4517        ::std::result::Result::Ok(())
4518    }
4519
4520    fn get_cached_size(&self) -> u32 {
4521        self.cached_size.get()
4522    }
4523
4524    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
4525        &self.unknown_fields
4526    }
4527
4528    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
4529        &mut self.unknown_fields
4530    }
4531
4532    fn as_any(&self) -> &dyn (::std::any::Any) {
4533        self as &dyn (::std::any::Any)
4534    }
4535    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
4536        self as &mut dyn (::std::any::Any)
4537    }
4538    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
4539        self
4540    }
4541
4542    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
4543        Self::descriptor_static()
4544    }
4545
4546    fn new() -> Facet {
4547        Facet::new()
4548    }
4549
4550    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
4551        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
4552            lock: ::protobuf::lazy::ONCE_INIT,
4553            ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
4554        };
4555        unsafe {
4556            descriptor.get(|| {
4557                let mut fields = ::std::vec::Vec::new();
4558                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
4559                    "key",
4560                    |m: &Facet| { &m.key },
4561                    |m: &mut Facet| { &mut m.key },
4562                ));
4563                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
4564                    "value",
4565                    |m: &Facet| { &m.value },
4566                    |m: &mut Facet| { &mut m.value },
4567                ));
4568                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Facet_ValType>>(
4569                    "val_type",
4570                    |m: &Facet| { &m.val_type },
4571                    |m: &mut Facet| { &mut m.val_type },
4572                ));
4573                fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
4574                    "tokens",
4575                    |m: &Facet| { &m.tokens },
4576                    |m: &mut Facet| { &mut m.tokens },
4577                ));
4578                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
4579                    "alias",
4580                    |m: &Facet| { &m.alias },
4581                    |m: &mut Facet| { &mut m.alias },
4582                ));
4583                ::protobuf::reflect::MessageDescriptor::new::<Facet>(
4584                    "Facet",
4585                    fields,
4586                    file_descriptor_proto()
4587                )
4588            })
4589        }
4590    }
4591
4592    fn default_instance() -> &'static Facet {
4593        static mut instance: ::protobuf::lazy::Lazy<Facet> = ::protobuf::lazy::Lazy {
4594            lock: ::protobuf::lazy::ONCE_INIT,
4595            ptr: 0 as *const Facet,
4596        };
4597        unsafe {
4598            instance.get(Facet::new)
4599        }
4600    }
4601}
4602
4603impl ::protobuf::Clear for Facet {
4604    fn clear(&mut self) {
4605        self.key.clear();
4606        self.value.clear();
4607        self.val_type = Facet_ValType::STRING;
4608        self.tokens.clear();
4609        self.alias.clear();
4610        self.unknown_fields.clear();
4611    }
4612}
4613
4614impl ::std::fmt::Debug for Facet {
4615    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
4616        ::protobuf::text_format::fmt(self, f)
4617    }
4618}
4619
4620impl ::protobuf::reflect::ProtobufValue for Facet {
4621    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
4622        ::protobuf::reflect::ProtobufValueRef::Message(self)
4623    }
4624}
4625
4626#[derive(Clone,PartialEq,Eq,Debug,Hash)]
4627pub enum Facet_ValType {
4628    STRING = 0,
4629    INT = 1,
4630    FLOAT = 2,
4631    BOOL = 3,
4632    DATETIME = 4,
4633}
4634
4635impl ::protobuf::ProtobufEnum for Facet_ValType {
4636    fn value(&self) -> i32 {
4637        *self as i32
4638    }
4639
4640    fn from_i32(value: i32) -> ::std::option::Option<Facet_ValType> {
4641        match value {
4642            0 => ::std::option::Option::Some(Facet_ValType::STRING),
4643            1 => ::std::option::Option::Some(Facet_ValType::INT),
4644            2 => ::std::option::Option::Some(Facet_ValType::FLOAT),
4645            3 => ::std::option::Option::Some(Facet_ValType::BOOL),
4646            4 => ::std::option::Option::Some(Facet_ValType::DATETIME),
4647            _ => ::std::option::Option::None
4648        }
4649    }
4650
4651    fn values() -> &'static [Self] {
4652        static values: &'static [Facet_ValType] = &[
4653            Facet_ValType::STRING,
4654            Facet_ValType::INT,
4655            Facet_ValType::FLOAT,
4656            Facet_ValType::BOOL,
4657            Facet_ValType::DATETIME,
4658        ];
4659        values
4660    }
4661
4662    fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
4663        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
4664            lock: ::protobuf::lazy::ONCE_INIT,
4665            ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
4666        };
4667        unsafe {
4668            descriptor.get(|| {
4669                ::protobuf::reflect::EnumDescriptor::new("Facet_ValType", file_descriptor_proto())
4670            })
4671        }
4672    }
4673}
4674
4675impl ::std::marker::Copy for Facet_ValType {
4676}
4677
4678impl ::std::default::Default for Facet_ValType {
4679    fn default() -> Self {
4680        Facet_ValType::STRING
4681    }
4682}
4683
4684impl ::protobuf::reflect::ProtobufValue for Facet_ValType {
4685    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
4686        ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
4687    }
4688}
4689
4690#[derive(PartialEq,Clone,Default)]
4691pub struct LoginRequest {
4692    // message fields
4693    pub userid: ::std::string::String,
4694    pub password: ::std::string::String,
4695    pub refresh_token: ::std::string::String,
4696    // special fields
4697    pub unknown_fields: ::protobuf::UnknownFields,
4698    pub cached_size: ::protobuf::CachedSize,
4699}
4700
4701impl<'a> ::std::default::Default for &'a LoginRequest {
4702    fn default() -> &'a LoginRequest {
4703        <LoginRequest as ::protobuf::Message>::default_instance()
4704    }
4705}
4706
4707impl LoginRequest {
4708    pub fn new() -> LoginRequest {
4709        ::std::default::Default::default()
4710    }
4711
4712    // string userid = 1;
4713
4714
4715    pub fn get_userid(&self) -> &str {
4716        &self.userid
4717    }
4718    pub fn clear_userid(&mut self) {
4719        self.userid.clear();
4720    }
4721
4722    // Param is passed by value, moved
4723    pub fn set_userid(&mut self, v: ::std::string::String) {
4724        self.userid = v;
4725    }
4726
4727    // Mutable pointer to the field.
4728    // If field is not initialized, it is initialized with default value first.
4729    pub fn mut_userid(&mut self) -> &mut ::std::string::String {
4730        &mut self.userid
4731    }
4732
4733    // Take field
4734    pub fn take_userid(&mut self) -> ::std::string::String {
4735        ::std::mem::replace(&mut self.userid, ::std::string::String::new())
4736    }
4737
4738    // string password = 2;
4739
4740
4741    pub fn get_password(&self) -> &str {
4742        &self.password
4743    }
4744    pub fn clear_password(&mut self) {
4745        self.password.clear();
4746    }
4747
4748    // Param is passed by value, moved
4749    pub fn set_password(&mut self, v: ::std::string::String) {
4750        self.password = v;
4751    }
4752
4753    // Mutable pointer to the field.
4754    // If field is not initialized, it is initialized with default value first.
4755    pub fn mut_password(&mut self) -> &mut ::std::string::String {
4756        &mut self.password
4757    }
4758
4759    // Take field
4760    pub fn take_password(&mut self) -> ::std::string::String {
4761        ::std::mem::replace(&mut self.password, ::std::string::String::new())
4762    }
4763
4764    // string refresh_token = 3;
4765
4766
4767    pub fn get_refresh_token(&self) -> &str {
4768        &self.refresh_token
4769    }
4770    pub fn clear_refresh_token(&mut self) {
4771        self.refresh_token.clear();
4772    }
4773
4774    // Param is passed by value, moved
4775    pub fn set_refresh_token(&mut self, v: ::std::string::String) {
4776        self.refresh_token = v;
4777    }
4778
4779    // Mutable pointer to the field.
4780    // If field is not initialized, it is initialized with default value first.
4781    pub fn mut_refresh_token(&mut self) -> &mut ::std::string::String {
4782        &mut self.refresh_token
4783    }
4784
4785    // Take field
4786    pub fn take_refresh_token(&mut self) -> ::std::string::String {
4787        ::std::mem::replace(&mut self.refresh_token, ::std::string::String::new())
4788    }
4789}
4790
4791impl ::protobuf::Message for LoginRequest {
4792    fn is_initialized(&self) -> bool {
4793        true
4794    }
4795
4796    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
4797        while !is.eof()? {
4798            let (field_number, wire_type) = is.read_tag_unpack()?;
4799            match field_number {
4800                1 => {
4801                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.userid)?;
4802                },
4803                2 => {
4804                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.password)?;
4805                },
4806                3 => {
4807                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.refresh_token)?;
4808                },
4809                _ => {
4810                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
4811                },
4812            };
4813        }
4814        ::std::result::Result::Ok(())
4815    }
4816
4817    // Compute sizes of nested messages
4818    #[allow(unused_variables)]
4819    fn compute_size(&self) -> u32 {
4820        let mut my_size = 0;
4821        if !self.userid.is_empty() {
4822            my_size += ::protobuf::rt::string_size(1, &self.userid);
4823        }
4824        if !self.password.is_empty() {
4825            my_size += ::protobuf::rt::string_size(2, &self.password);
4826        }
4827        if !self.refresh_token.is_empty() {
4828            my_size += ::protobuf::rt::string_size(3, &self.refresh_token);
4829        }
4830        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
4831        self.cached_size.set(my_size);
4832        my_size
4833    }
4834
4835    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
4836        if !self.userid.is_empty() {
4837            os.write_string(1, &self.userid)?;
4838        }
4839        if !self.password.is_empty() {
4840            os.write_string(2, &self.password)?;
4841        }
4842        if !self.refresh_token.is_empty() {
4843            os.write_string(3, &self.refresh_token)?;
4844        }
4845        os.write_unknown_fields(self.get_unknown_fields())?;
4846        ::std::result::Result::Ok(())
4847    }
4848
4849    fn get_cached_size(&self) -> u32 {
4850        self.cached_size.get()
4851    }
4852
4853    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
4854        &self.unknown_fields
4855    }
4856
4857    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
4858        &mut self.unknown_fields
4859    }
4860
4861    fn as_any(&self) -> &dyn (::std::any::Any) {
4862        self as &dyn (::std::any::Any)
4863    }
4864    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
4865        self as &mut dyn (::std::any::Any)
4866    }
4867    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
4868        self
4869    }
4870
4871    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
4872        Self::descriptor_static()
4873    }
4874
4875    fn new() -> LoginRequest {
4876        LoginRequest::new()
4877    }
4878
4879    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
4880        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
4881            lock: ::protobuf::lazy::ONCE_INIT,
4882            ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
4883        };
4884        unsafe {
4885            descriptor.get(|| {
4886                let mut fields = ::std::vec::Vec::new();
4887                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
4888                    "userid",
4889                    |m: &LoginRequest| { &m.userid },
4890                    |m: &mut LoginRequest| { &mut m.userid },
4891                ));
4892                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
4893                    "password",
4894                    |m: &LoginRequest| { &m.password },
4895                    |m: &mut LoginRequest| { &mut m.password },
4896                ));
4897                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
4898                    "refresh_token",
4899                    |m: &LoginRequest| { &m.refresh_token },
4900                    |m: &mut LoginRequest| { &mut m.refresh_token },
4901                ));
4902                ::protobuf::reflect::MessageDescriptor::new::<LoginRequest>(
4903                    "LoginRequest",
4904                    fields,
4905                    file_descriptor_proto()
4906                )
4907            })
4908        }
4909    }
4910
4911    fn default_instance() -> &'static LoginRequest {
4912        static mut instance: ::protobuf::lazy::Lazy<LoginRequest> = ::protobuf::lazy::Lazy {
4913            lock: ::protobuf::lazy::ONCE_INIT,
4914            ptr: 0 as *const LoginRequest,
4915        };
4916        unsafe {
4917            instance.get(LoginRequest::new)
4918        }
4919    }
4920}
4921
4922impl ::protobuf::Clear for LoginRequest {
4923    fn clear(&mut self) {
4924        self.userid.clear();
4925        self.password.clear();
4926        self.refresh_token.clear();
4927        self.unknown_fields.clear();
4928    }
4929}
4930
4931impl ::std::fmt::Debug for LoginRequest {
4932    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
4933        ::protobuf::text_format::fmt(self, f)
4934    }
4935}
4936
4937impl ::protobuf::reflect::ProtobufValue for LoginRequest {
4938    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
4939        ::protobuf::reflect::ProtobufValueRef::Message(self)
4940    }
4941}
4942
4943#[derive(PartialEq,Clone,Default)]
4944pub struct Jwt {
4945    // message fields
4946    pub access_jwt: ::std::string::String,
4947    pub refresh_jwt: ::std::string::String,
4948    // special fields
4949    pub unknown_fields: ::protobuf::UnknownFields,
4950    pub cached_size: ::protobuf::CachedSize,
4951}
4952
4953impl<'a> ::std::default::Default for &'a Jwt {
4954    fn default() -> &'a Jwt {
4955        <Jwt as ::protobuf::Message>::default_instance()
4956    }
4957}
4958
4959impl Jwt {
4960    pub fn new() -> Jwt {
4961        ::std::default::Default::default()
4962    }
4963
4964    // string access_jwt = 1;
4965
4966
4967    pub fn get_access_jwt(&self) -> &str {
4968        &self.access_jwt
4969    }
4970    pub fn clear_access_jwt(&mut self) {
4971        self.access_jwt.clear();
4972    }
4973
4974    // Param is passed by value, moved
4975    pub fn set_access_jwt(&mut self, v: ::std::string::String) {
4976        self.access_jwt = v;
4977    }
4978
4979    // Mutable pointer to the field.
4980    // If field is not initialized, it is initialized with default value first.
4981    pub fn mut_access_jwt(&mut self) -> &mut ::std::string::String {
4982        &mut self.access_jwt
4983    }
4984
4985    // Take field
4986    pub fn take_access_jwt(&mut self) -> ::std::string::String {
4987        ::std::mem::replace(&mut self.access_jwt, ::std::string::String::new())
4988    }
4989
4990    // string refresh_jwt = 2;
4991
4992
4993    pub fn get_refresh_jwt(&self) -> &str {
4994        &self.refresh_jwt
4995    }
4996    pub fn clear_refresh_jwt(&mut self) {
4997        self.refresh_jwt.clear();
4998    }
4999
5000    // Param is passed by value, moved
5001    pub fn set_refresh_jwt(&mut self, v: ::std::string::String) {
5002        self.refresh_jwt = v;
5003    }
5004
5005    // Mutable pointer to the field.
5006    // If field is not initialized, it is initialized with default value first.
5007    pub fn mut_refresh_jwt(&mut self) -> &mut ::std::string::String {
5008        &mut self.refresh_jwt
5009    }
5010
5011    // Take field
5012    pub fn take_refresh_jwt(&mut self) -> ::std::string::String {
5013        ::std::mem::replace(&mut self.refresh_jwt, ::std::string::String::new())
5014    }
5015}
5016
5017impl ::protobuf::Message for Jwt {
5018    fn is_initialized(&self) -> bool {
5019        true
5020    }
5021
5022    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
5023        while !is.eof()? {
5024            let (field_number, wire_type) = is.read_tag_unpack()?;
5025            match field_number {
5026                1 => {
5027                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.access_jwt)?;
5028                },
5029                2 => {
5030                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.refresh_jwt)?;
5031                },
5032                _ => {
5033                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
5034                },
5035            };
5036        }
5037        ::std::result::Result::Ok(())
5038    }
5039
5040    // Compute sizes of nested messages
5041    #[allow(unused_variables)]
5042    fn compute_size(&self) -> u32 {
5043        let mut my_size = 0;
5044        if !self.access_jwt.is_empty() {
5045            my_size += ::protobuf::rt::string_size(1, &self.access_jwt);
5046        }
5047        if !self.refresh_jwt.is_empty() {
5048            my_size += ::protobuf::rt::string_size(2, &self.refresh_jwt);
5049        }
5050        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
5051        self.cached_size.set(my_size);
5052        my_size
5053    }
5054
5055    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
5056        if !self.access_jwt.is_empty() {
5057            os.write_string(1, &self.access_jwt)?;
5058        }
5059        if !self.refresh_jwt.is_empty() {
5060            os.write_string(2, &self.refresh_jwt)?;
5061        }
5062        os.write_unknown_fields(self.get_unknown_fields())?;
5063        ::std::result::Result::Ok(())
5064    }
5065
5066    fn get_cached_size(&self) -> u32 {
5067        self.cached_size.get()
5068    }
5069
5070    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
5071        &self.unknown_fields
5072    }
5073
5074    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
5075        &mut self.unknown_fields
5076    }
5077
5078    fn as_any(&self) -> &dyn (::std::any::Any) {
5079        self as &dyn (::std::any::Any)
5080    }
5081    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
5082        self as &mut dyn (::std::any::Any)
5083    }
5084    fn into_any(self: Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
5085        self
5086    }
5087
5088    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
5089        Self::descriptor_static()
5090    }
5091
5092    fn new() -> Jwt {
5093        Jwt::new()
5094    }
5095
5096    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
5097        static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
5098            lock: ::protobuf::lazy::ONCE_INIT,
5099            ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
5100        };
5101        unsafe {
5102            descriptor.get(|| {
5103                let mut fields = ::std::vec::Vec::new();
5104                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
5105                    "access_jwt",
5106                    |m: &Jwt| { &m.access_jwt },
5107                    |m: &mut Jwt| { &mut m.access_jwt },
5108                ));
5109                fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
5110                    "refresh_jwt",
5111                    |m: &Jwt| { &m.refresh_jwt },
5112                    |m: &mut Jwt| { &mut m.refresh_jwt },
5113                ));
5114                ::protobuf::reflect::MessageDescriptor::new::<Jwt>(
5115                    "Jwt",
5116                    fields,
5117                    file_descriptor_proto()
5118                )
5119            })
5120        }
5121    }
5122
5123    fn default_instance() -> &'static Jwt {
5124        static mut instance: ::protobuf::lazy::Lazy<Jwt> = ::protobuf::lazy::Lazy {
5125            lock: ::protobuf::lazy::ONCE_INIT,
5126            ptr: 0 as *const Jwt,
5127        };
5128        unsafe {
5129            instance.get(Jwt::new)
5130        }
5131    }
5132}
5133
5134impl ::protobuf::Clear for Jwt {
5135    fn clear(&mut self) {
5136        self.access_jwt.clear();
5137        self.refresh_jwt.clear();
5138        self.unknown_fields.clear();
5139    }
5140}
5141
5142impl ::std::fmt::Debug for Jwt {
5143    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
5144        ::protobuf::text_format::fmt(self, f)
5145    }
5146}
5147
5148impl ::protobuf::reflect::ProtobufValue for Jwt {
5149    fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
5150        ::protobuf::reflect::ProtobufValueRef::Message(self)
5151    }
5152}
5153
5154static file_descriptor_proto_data: &'static [u8] = b"\
5155    \n\tapi.proto\x12\x03api\"\xa9\x02\n\x07Request\x12\x19\n\x08start_ts\
5156    \x18\x01\x20\x01(\x04R\x07startTs\x12\x14\n\x05query\x18\x04\x20\x01(\tR\
5157    \x05query\x12*\n\x04vars\x18\x05\x20\x03(\x0b2\x16.api.Request.VarsEntry\
5158    R\x04vars\x12\x1b\n\tread_only\x18\x06\x20\x01(\x08R\x08readOnly\x12\x1f\
5159    \n\x0bbest_effort\x18\x07\x20\x01(\x08R\nbestEffort\x12+\n\tmutations\
5160    \x18\x0c\x20\x03(\x0b2\r.api.MutationR\tmutations\x12\x1d\n\ncommit_now\
5161    \x18\r\x20\x01(\x08R\tcommitNow\x1a7\n\tVarsEntry\x12\x10\n\x03key\x18\
5162    \x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\
5163    \x028\x01\"\x1a\n\x04Uids\x12\x12\n\x04uids\x18\x01\x20\x03(\tR\x04uids\
5164    \"\xf7\x01\n\x08Response\x12\x12\n\x04json\x18\x01\x20\x01(\x0cR\x04json\
5165    \x12!\n\x03txn\x18\x02\x20\x01(\x0b2\x0f.api.TxnContextR\x03txn\x12&\n\
5166    \x07latency\x18\x03\x20\x01(\x0b2\x0c.api.LatencyR\x07latency\x12&\n\x07\
5167    metrics\x18\x04\x20\x01(\x0b2\x0c.api.MetricsR\x07metrics\x12+\n\x04uids\
5168    \x18\x0c\x20\x03(\x0b2\x17.api.Response.UidsEntryR\x04uids\x1a7\n\tUidsE\
5169    ntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\
5170    \x02\x20\x01(\tR\x05value:\x028\x01\"\xf3\x01\n\x08Mutation\x12\x19\n\
5171    \x08set_json\x18\x01\x20\x01(\x0cR\x07setJson\x12\x1f\n\x0bdelete_json\
5172    \x18\x02\x20\x01(\x0cR\ndeleteJson\x12\x1d\n\nset_nquads\x18\x03\x20\x01\
5173    (\x0cR\tsetNquads\x12\x1d\n\ndel_nquads\x18\x04\x20\x01(\x0cR\tdelNquads\
5174    \x12\x1c\n\x03set\x18\x05\x20\x03(\x0b2\n.api.NQuadR\x03set\x12\x1c\n\
5175    \x03del\x18\x06\x20\x03(\x0b2\n.api.NQuadR\x03del\x12\x12\n\x04cond\x18\
5176    \t\x20\x01(\tR\x04cond\x12\x1d\n\ncommit_now\x18\x0e\x20\x01(\x08R\tcomm\
5177    itNow\"\xe5\x01\n\tOperation\x12\x16\n\x06schema\x18\x01\x20\x01(\tR\x06\
5178    schema\x12\x1b\n\tdrop_attr\x18\x02\x20\x01(\tR\x08dropAttr\x12\x19\n\
5179    \x08drop_all\x18\x03\x20\x01(\x08R\x07dropAll\x12.\n\x07drop_op\x18\x04\
5180    \x20\x01(\x0e2\x15.api.Operation.DropOpR\x06dropOp\x12\x1d\n\ndrop_value\
5181    \x18\x05\x20\x01(\tR\tdropValue\"9\n\x06DropOp\x12\x08\n\x04NONE\x10\0\
5182    \x12\x07\n\x03ALL\x10\x01\x12\x08\n\x04DATA\x10\x02\x12\x08\n\x04ATTR\
5183    \x10\x03\x12\x08\n\x04TYPE\x10\x04\"\x1d\n\x07Payload\x12\x12\n\x04Data\
5184    \x18\x01\x20\x01(\x0cR\x04data\"\x88\x01\n\nTxnContext\x12\x19\n\x08star\
5185    t_ts\x18\x01\x20\x01(\x04R\x07startTs\x12\x1b\n\tcommit_ts\x18\x02\x20\
5186    \x01(\x04R\x08commitTs\x12\x18\n\x07aborted\x18\x03\x20\x01(\x08R\x07abo\
5187    rted\x12\x12\n\x04keys\x18\x04\x20\x03(\tR\x04keys\x12\x14\n\x05preds\
5188    \x18\x05\x20\x03(\tR\x05preds\"\x07\n\x05Check\"\x1b\n\x07Version\x12\
5189    \x10\n\x03tag\x18\x01\x20\x01(\tR\x03tag\"\xb9\x01\n\x07Latency\x12\x1d\
5190    \n\nparsing_ns\x18\x01\x20\x01(\x04R\tparsingNs\x12#\n\rprocessing_ns\
5191    \x18\x02\x20\x01(\x04R\x0cprocessingNs\x12\x1f\n\x0bencoding_ns\x18\x03\
5192    \x20\x01(\x04R\nencodingNs\x12.\n\x13assign_timestamp_ns\x18\x04\x20\x01\
5193    (\x04R\x11assignTimestampNs\x12\x19\n\x08total_ns\x18\x05\x20\x01(\x04R\
5194    \x07totalNs\"{\n\x07Metrics\x124\n\x08num_uids\x18\x01\x20\x03(\x0b2\x19\
5195    .api.Metrics.NumUidsEntryR\x07numUids\x1a:\n\x0cNumUidsEntry\x12\x10\n\
5196    \x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\
5197    \x04R\x05value:\x028\x01\"\xd9\x01\n\x05NQuad\x12\x18\n\x07subject\x18\
5198    \x01\x20\x01(\tR\x07subject\x12\x1c\n\tpredicate\x18\x02\x20\x01(\tR\tpr\
5199    edicate\x12\x1b\n\tobject_id\x18\x03\x20\x01(\tR\x08objectId\x12-\n\x0co\
5200    bject_value\x18\x04\x20\x01(\x0b2\n.api.ValueR\x0bobjectValue\x12\x14\n\
5201    \x05label\x18\x05\x20\x01(\tR\x05label\x12\x12\n\x04lang\x18\x06\x20\x01\
5202    (\tR\x04lang\x12\"\n\x06facets\x18\x07\x20\x03(\x0b2\n.api.FacetR\x06fac\
5203    ets\"\xe1\x02\n\x05Value\x12!\n\x0bdefault_val\x18\x01\x20\x01(\tH\0R\nd\
5204    efaultVal\x12\x1d\n\tbytes_val\x18\x02\x20\x01(\x0cH\0R\x08bytesVal\x12\
5205    \x19\n\x07int_val\x18\x03\x20\x01(\x03H\0R\x06intVal\x12\x1b\n\x08bool_v\
5206    al\x18\x04\x20\x01(\x08H\0R\x07boolVal\x12\x19\n\x07str_val\x18\x05\x20\
5207    \x01(\tH\0R\x06strVal\x12\x1f\n\ndouble_val\x18\x06\x20\x01(\x01H\0R\tdo\
5208    ubleVal\x12\x19\n\x07geo_val\x18\x07\x20\x01(\x0cH\0R\x06geoVal\x12\x1b\
5209    \n\x08date_val\x18\x08\x20\x01(\x0cH\0R\x07dateVal\x12#\n\x0cdatetime_va\
5210    l\x18\t\x20\x01(\x0cH\0R\x0bdatetimeVal\x12#\n\x0cpassword_val\x18\n\x20\
5211    \x01(\tH\0R\x0bpasswordVal\x12\x19\n\x07uid_val\x18\x0b\x20\x01(\x04H\0R\
5212    \x06uidValB\x05\n\x03val\"\xcf\x01\n\x05Facet\x12\x10\n\x03key\x18\x01\
5213    \x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\x0cR\x05value\
5214    \x12-\n\x08val_type\x18\x03\x20\x01(\x0e2\x12.api.Facet.ValTypeR\x07valT\
5215    ype\x12\x16\n\x06tokens\x18\x04\x20\x03(\tR\x06tokens\x12\x14\n\x05alias\
5216    \x18\x05\x20\x01(\tR\x05alias\"A\n\x07ValType\x12\n\n\x06STRING\x10\0\
5217    \x12\x07\n\x03INT\x10\x01\x12\t\n\x05FLOAT\x10\x02\x12\x08\n\x04BOOL\x10\
5218    \x03\x12\x0c\n\x08DATETIME\x10\x04\"g\n\x0cLoginRequest\x12\x16\n\x06use\
5219    rid\x18\x01\x20\x01(\tR\x06userid\x12\x1a\n\x08password\x18\x02\x20\x01(\
5220    \tR\x08password\x12#\n\rrefresh_token\x18\x03\x20\x01(\tR\x0crefreshToke\
5221    n\"E\n\x03Jwt\x12\x1d\n\naccess_jwt\x18\x01\x20\x01(\tR\taccessJwt\x12\
5222    \x1f\n\x0brefresh_jwt\x18\x02\x20\x01(\tR\nrefreshJwt2\xe7\x01\n\x06Dgra\
5223    ph\x12+\n\x05Login\x12\x11.api.LoginRequest\x1a\r.api.Response\"\0\x12&\
5224    \n\x05Query\x12\x0c.api.Request\x1a\r.api.Response\"\0\x12'\n\x05Alter\
5225    \x12\x0e.api.Operation\x1a\x0c.api.Payload\"\0\x123\n\rCommitOrAbort\x12\
5226    \x0f.api.TxnContext\x1a\x0f.api.TxnContext\"\0\x12*\n\x0cCheckVersion\
5227    \x12\n.api.Check\x1a\x0c.api.Version\"\0B\x18\n\tio.dgraphB\x0bDgraphPro\
5228    tob\x06proto3\
5229";
5230
5231static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy {
5232    lock: ::protobuf::lazy::ONCE_INIT,
5233    ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto,
5234};
5235
5236fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
5237    ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
5238}
5239
5240pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
5241    unsafe {
5242        file_descriptor_proto_lazy.get(|| {
5243            parse_descriptor_proto()
5244        })
5245    }
5246}